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 TF_SO { [DatabaseGenerated(DatabaseGeneratedOption.Computed)] public int UID { get; set; } [NotMapped] public string 状态 => ((EnumFormState)State).ToString(); [Key] [StringLength(50)] [DisplayName("单据编号")] public string BillNum { get; set; } public EnumBillType BillType { get; set; } [Required(AllowEmptyStrings = true)] [StringLength(200)] [DisplayName("客户编号")] public string CustId { get; set; } [NotMapped] public string 客户名称 => WmsCache.GetCustName(CustId); [StringLength(50)] [DisplayName("操作员")] public string OperName { get; set; } [DisplayName("单据时间")] public DateTime BillTime { get; set; } [Column(TypeName = "date")] [DisplayName("开始时间")] public DateTime? BeginDate { get; set; } [Column(TypeName = "date")] [DisplayName("截止时间")] public DateTime? EndDate { get; set; } public int State { get; set; } [StringLength(50)] [DisplayName("备注")] public string Remark { get; set; } } }