using Estsh.Core.Base; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; namespace Estsh.Core.Models { /// /// ,数据实体对象 /// [Table("wms_purchase")] [Serializable] public class WmsPurchase : BaseEntity { [Column("ruid")] [DisplayName(" ")] public int Ruid { get; set; } [Column("order_no")] [DisplayName(" ")] public string OrderNo { get; set; } [Column("order_type")] [DisplayName(" ")] public int OrderType { get; set; } [Column("order_status")] [DisplayName(" ")] public int OrderStatus { get; set; } [Column("vendor_id")] [DisplayName(" ")] public int VendorId { get; set; } [Column("vendor_code")] [DisplayName(" ")] public string VendorCode { get; set; } [Column("se_date")] [DisplayName(" ")] public string SeDate { get; set; } [Column("se_time")] [DisplayName(" ")] public string SeTime { get; set; } [Column("dock")] [DisplayName(" ")] public string Dock { get; set; } [Column("ref_order_no")] [DisplayName(" ")] public string RefOrderNo { get; set; } [Column("pstyp")] [DisplayName(" ")] public int? Pstyp { get; set; } #region 扩展字段 [NotMapped] [Column("item_no")] [DisplayName(" ")] public string ItemNo { get; set; } [NotMapped] [Column("part_id")] [DisplayName(" ")] public int PartId { get; set; } [NotMapped] [Column("part_no")] [DisplayName(" ")] public string PartNo { get; set; } [NotMapped] [Column("part_spec")] [DisplayName(" ")] public string PartSpec { get; set; } [NotMapped] [Column("qty")] [DisplayName(" ")] public decimal Qty { get; set; } [NotMapped] [Column("rec_qty")] [DisplayName(" ")] public decimal RecQty { get; set; } [NotMapped] [Column("box_qty")] [DisplayName(" ")] public decimal BoxQty { get; set; } [NotMapped] [Column("rec_box_qty")] [DisplayName(" ")] public decimal RecBoxQty { get; set; } [NotMapped] [Column("snp_qty")] [DisplayName(" ")] public decimal SnpQty { get; set; } [NotMapped] [Column("unit")] [DisplayName(" ")] public string Unit { get; set; } [NotMapped] [Column("erp_warehouse")] [DisplayName(" ")] public string ErpWarehouse { get; set; } [NotMapped] [Column("item_status")] [DisplayName(" ")] public string ItemStatus { get; set; } [NotMapped] [Column("order_status_desc")] [DisplayName(" ")] public string OrderStatusDesc { get; set; } [NotMapped] [Column("order_type_desc")] [DisplayName(" ")] public string OrderTypeDesc { get; set; } [NotMapped] [Column("vendor_name")] [DisplayName(" ")] public string VendorName { get; set; } [NotMapped] [Column("item_part_no")] [DisplayName(" ")] public string ItemPartNo { get; set; } #endregion } }