namespace iWareSql.MyDbContext { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; public partial class v_purchase_order { [StringLength(50)] public string PurchaseNo { get; set; } [StringLength(50)] public string DeliveryType { get; set; } [StringLength(10)] public string POApprovalStatus { get; set; } [StringLength(50)] public string Supplier { get; set; } [StringLength(100)] public string SupplierCode { get; set; } [StringLength(100)] public string SupplierName { get; set; } [Key] [Column(Order = 0, TypeName = "numeric")] public decimal AlreadyQuantity { get; set; } [Key] [Column(Order = 1, TypeName = "numeric")] public decimal ThisTimeQuantity { get; set; } [Key] [Column(Order = 2, TypeName = "numeric")] public decimal Quantity { get; set; } public long? Id { get; set; } public long? PurchaseOrderId { get; set; } [StringLength(50)] public string DeliveryNo { get; set; } [StringLength(50)] public string WareMaterialCode { get; set; } [StringLength(50)] public string BarCode { get; set; } public decimal? DeliveryQuantity { get; set; } public decimal? GoodsQuantity { get; set; } public int? Status { get; set; } [StringLength(500)] public string Remark { get; set; } public int? SignStatus { get; set; } public long? TenantId { get; set; } public DateTimeOffset? CreatedTime { get; set; } public DateTimeOffset? UpdatedTime { get; set; } [StringLength(20)] public string CreatedUserName { get; set; } public long? CreatedUserId { get; set; } public long? UpdatedUserId { get; set; } [StringLength(20)] public string UpdatedUserName { get; set; } public bool? IsDeleted { get; set; } [StringLength(50)] public string BarNo { get; set; } [StringLength(50)] public string BasicSupplierInfoCode { get; set; } public decimal? Price { get; set; } [StringLength(100)] public string Machine { get; set; } public int? MaterialType { get; set; } [StringLength(50)] public string MaterialTypeName { get; set; } public bool? IsCheck { get; set; } public int? CheckStatus { get; set; } [StringLength(50)] public string SequenceNo { get; set; } public bool? IsSpecial { get; set; } public DateTime? SAP_CreatedTime { get; set; } [StringLength(100)] public string SAP_CreatedUserName { get; set; } public DateTime? SAP_UpdatedTime { get; set; } [StringLength(100)] public string SAP_UpdatedUserName { get; set; } [StringLength(100)] public string Sap_Location { get; set; } [StringLength(100)] public string WERKS { get; set; } [StringLength(100)] public string NETWR { get; set; } [StringLength(100)] public string NETPR { get; set; } [StringLength(100)] public string MWSKZ { get; set; } [StringLength(100)] public string LOEKZ { get; set; } public DateTime? EINDT { get; set; } [StringLength(50)] public string EBELP { get; set; } [StringLength(50)] public string Unit { get; set; } public int? WriteOffQuantity { get; set; } public DateTime? Sap_PushTime { get; set; } public int? Sap_CancelConfirmStatus { get; set; } public int? Sap_CancelConfirmCount { get; set; } public int? Sap_ConfirmStatus { get; set; } public int? Sap_ConfirmCount { get; set; } [StringLength(200)] public string Sap_ConfirmMessage { get; set; } [StringLength(100)] public string EBELN { get; set; } [StringLength(50)] public string MAKTX { get; set; } public decimal? ToBeDeliveredQuantity { get; set; } public decimal? ToBeInvoicedQuantity { get; set; } public DateTimeOffset? EstimatedDate { get; set; } [StringLength(200)] public string OperationRemark { get; set; } [StringLength(200)] public string MatDoc { get; set; } public bool? HasHistory { get; set; } public decimal? Sap_HistoryQuantity { get; set; } } }