using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CK.SCP.Models.ScpEntity { public partial class TS_BARCODE_CUSTOM { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long UID { get; set; } [StringLength(50)] public string BarCode { get; set; } [Required] [StringLength(500)] public string FullBarCode { get; set; } [Required] [StringLength(50)] public string PartCode { get; set; } [StringLength(50)] public string VendPartCode { get; set; } [Required] [StringLength(50)] public string Batch { get; set; } [Column(TypeName = "datetime2")] public DateTime ProduceDate { get; set; } public int ManageType { get; set; } [Required] [StringLength(50)] public string SerialNum { get; set; } [Column(TypeName = "money")] public decimal Qty { get; set; } public int BarCodeType { get; set; } [Required] [StringLength(50)] public string BillNum { get; set; } public int PoBillLine { get; set; } [StringLength(50)] public string VendId { get; set; } [StringLength(50)] public string VendBatch { get; set; } [Column(TypeName = "money")] public decimal PackQty { get; set; } [Required] [StringLength(50)] public string CreateOper { get; set; } public DateTime CreateTime { get; set; } public int State { get; set; } [StringLength(500)] public string Remark { get; set; } public string PoUnit { get; set; } public string LocUnit { get; set; } public string Site { get; set; } public string Qlevel { get; set; } public string QMark { get; set; } public string ProjectId { get; set; } public string PoBillNum { get; set; } public Guid Guid { get; set; } [DisplayName("供应商名称")] public string VendName => ScpCache.GetVendName(VendId, Site)+"(自定义)"; [DisplayName("零件名称")] public string PartDesc => ScpCache.GetPartDesc1(PartCode, Site); [DisplayName("零件名称")] public string PartName => ScpCache.GetPartDesc1(PartCode, Site); [NotMapped] public List UIDList { get; set; } } }