using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.WES { /// /// 儲存區基本資料類別 /// [Table("CFG_STORAGE")] public class CfgStorageDto : CommonDto { /// /// 倉庫編號 /// /// WHS[Sequence * 2] [Column(Name = "WAREHOUSE_ID")] [Required, Key, StringLength(5), JsonPropertyName("WAREHOUSE_ID"), JsonPropertyOrder(1)] public string WAREHOUSE_ID { get; set; } /// /// 儲存區編號 /// /// /// STAT[Floor][Sequence * 2]
/// AUTO[Floor][Sequence * 2]
/// TEMP[Floor][Sequence * 2]
///
[Column(Name = "STORAGE_ID")] [Required, Key, StringLength(7), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(2)] public string STORAGE_ID { get; set; } /// /// 儲存區名稱 /// [Column(Name = "STORAGE_NAME")] [StringLength(30), JsonPropertyName("STORAGE_NAME"), JsonPropertyOrder(3)] public string STORAGE_NAME { get; set; } /// /// 儲存區敘述 /// [Column(Name = "STORAGE_DESC")] [StringLength(50), JsonPropertyName("STORAGE_DESC"), JsonPropertyOrder(4)] public string STORAGE_DESC { get; set; } /// /// 儲存區類別 /// /// /// 0 = Station /// 1 = Warehouse /// [Column(Name = "STORAGE_TYPE")] [Required, JsonPropertyName("STORAGE_TYPE"), JsonPropertyOrder(5)] public int STORAGE_TYPE { get; set; } } }