using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CK.SCP.Models.ScpEntity { public partial class TF_PO_DETAIL { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UID { get; set; } [Key] [Column(Order = 0)] [StringLength(50)] public string BillNum { get; set; } public string ErpBillNum { get; set; } [Key] [Column(Order = 1)] [DatabaseGenerated(DatabaseGeneratedOption.None)] public int ErpLineNum { get; set; } [Required] [StringLength(50)] public string PartCode { get; set; } [Column(TypeName = "money")] public decimal BillQty { get; set; } [Column(TypeName = "money")] public decimal ShippedQty { get; set; } [Column(TypeName = "money")] public decimal ReceivedQty { get; set; } [Column(TypeName = "money")] public decimal? RejectQty { get; set; } [StringLength(50)] public string PoUnit { get; set; } [StringLength(50)] public string LocUnit { get; set; } [Column(TypeName = "money")] public decimal Price { get; set; } [StringLength(50)] public string Currency { get; set; } [Column(TypeName = "date")] public DateTime DueDate { get; set; } [Column(TypeName = "money")] public decimal PackQty { get; set; } public int State { get; set; } [StringLength(200)] public string Remark { get; set; } public decimal? UmConv { get; set; } [NotMapped] [DisplayName("描述一")] public string PartDesc1 => ScpCache.GetPartDesc1(PartCode); [NotMapped] [DisplayName("待发数量")] public decimal OpenQty => BillQty - ShippedQty; [NotMapped] [DisplayName("发货数量")] public decimal Qty1 => BillQty - ShippedQty; [NotMapped] [DisplayName("发货数量")] public decimal Qty2 { get; set; } [NotMapped] [DisplayName("发货数量")] public decimal Qty3 { get; set; } [NotMapped] [DisplayName("批次")] public string Batch1 { get; set; } [NotMapped] [DisplayName("批次")] public string Batch2 { get; set; } [NotMapped] [DisplayName("批次")] public string Batch3 { get; set; } } }