using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ChangKeTec.Wms.Models.Wms { public partial class TA_STORE_LOCATION { [DatabaseGenerated(DatabaseGeneratedOption.Computed)] public int UID { get; set; } [DisplayName("状态")] public int State { get; set; } [Key] [StringLength(50)] [DisplayName("库位编号")] public string LocCode { get; set; } [StringLength(50)] [DisplayName("库位名称")] public string LocName { get; set; } [Required(AllowEmptyStrings = true)] [StringLength(50)] [DisplayName("ERP库位编号")] public string ErpLocCode { get; set; } [Required(AllowEmptyStrings = true)] [StringLength(50)] [DisplayName("库区")] public string AreaCode { get; set; } [StringLength(50)] [DisplayName("库位组")] public string GroupCode { get; set; } [StringLength(50)] [DisplayName("库位类型")] public string LocType { get; set; } [StringLength(50)] [DisplayName("默认物料")] public string DefaultPartCode { get; set; } [DisplayName("允许负库存")] public bool IsEnableNegativeStock { get; set; } [DisplayName("自动移除零库存")] public bool AutoRemoveZeroStockDetail { get; set; } [DisplayName("最大容量")] public int MaxBoxQty { get; set; } [Column(TypeName = "money")] [DisplayName("占用百分百")] public decimal StoredPercent { get; set; } [DisplayName("允许混存")] public bool IsEnableMix { get; set; } [StringLength(50)] [DisplayName("项目编号")] public string ProjectId { get; set; } [StringLength(50)] [DisplayName("库管员")] public string StoreKeeper { get; set; } [StringLength(500)] [DisplayName("备注")] public string Remark { get; set; } //[NotMapped] //[StringLength(50)] //[DisplayName("仓库编号")] //public string WhseCode => WmsCache.GetWhseCode(GroupCode); } }