using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using ChangKeTec.Wms.Models.Enums; namespace ChangKeTec.Wms.Models.Wms { public partial class TB_PACK_UNPACK { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UID { get; set; } [Required(AllowEmptyStrings = true)] [StringLength(50)] [DisplayName("单据编号")] public string BillNum { get; set; } [Required(AllowEmptyStrings = true)] [StringLength(50)] [DisplayName("物料号")] public string PartCode { get; set; } [NotMapped] [DisplayName("物料描述")] public string PartDesc => WmsCache.GetPartDesc(PartCode); [Required(AllowEmptyStrings = true)] [StringLength(20)] [DisplayName("批次")] public string Batch { get; set; } [Column(TypeName = "money")] [DisplayName("数量")] public decimal Qty { get; set; } [Required(AllowEmptyStrings = true)] [StringLength(50)] [DisplayName("来源箱码")] public string FromBarCode { get; set; } [StringLength(50)] [DisplayName("目标箱码")] public string ToBarCode { get; set; } [StringLength(50)] [DisplayName("来源库位")] public string FromLocCode { get; set; } [StringLength(50)] [DisplayName("目标库位")] public string ToLocCode { get; set; } [StringLength(50)] [DisplayName("来源器具")] public string FromEqptCode { get; set; } [StringLength(50)] [DisplayName("目标器具")] public string ToEqptCode { get; set; } [StringLength(200)] [DisplayName("备注")] public string Remark { get; set; } [DisplayName("物料状态")] public EnumStockState State { get; set; } [Column(TypeName = "date")] [DisplayName("生产日期")] public DateTime ProduceDate { get; set; } [StringLength(50)] [DisplayName("供应商编号")] public string VendId { get; set; } [StringLength(50)] [DisplayName("供应商批次")] public string VendBatch { get; set; } } }