using Business.Core.Attributes; using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Business.Domain { /// /// 采购订单明细详情 /// [CollectionName("dopbase", "srm_po_list")] [Comment("采购订单明细详情")] [Index(nameof(po_billno), nameof(polist_row), nameof(tenant_id), nameof(factory_id), IsUnique = true)] public class srm_po_list : BaseEntity { /// /// po单id /// [Required] [Comment("po单id")] public long? po_id { get; set; } /// /// po单号 /// [StringLength(80)] [Comment("po单号")] public string po_billno { get; set; } /// /// 行号 /// [Comment("行号")] public int? polist_row { get; set; } /// /// pr申请单id /// [Required] [Comment("pr申请单id")] public long? pr_id { get; set; } /// /// pr申请单号 /// [StringLength(80)] [Comment("pr申请单号")] public string pr_billno { get; set; } /// /// 关联工单号 /// [StringLength(80)] [Comment("关联工单号")] public string po_mono { get; set; } /// /// 供应商id /// [Required] [Comment("供应商id")] public long? pr_purchase_id { get; set; } /// /// 供应商名称 /// [StringLength(80)] [Comment("供应商名称")] public string pr_purchase_name { get; set; } /// /// 收货仓库id /// [Required] [Comment("收货仓库id")] public long? stock_id { get; set; } /// /// 收货仓库名称 /// [StringLength(80)] [Comment("收货仓库名称")] public string stock_name { get; set; } /// /// 物料id /// [Required] [Comment("物料id")] public long? icitem_id { get; set; } /// /// 物料编码 /// [StringLength(100)] [Comment("物料编码")] public string ItemNum { get; set; } /// /// 物料名称 /// [StringLength(100)] [Comment("物料名称")] public string icitem_name { get; set; } /// /// 物料编码 /// [StringLength(80)] [Comment("物料编码")] public string number { get; set; } /// /// 规格型号 /// [StringLength(200)] [Comment("规格型号")] public string model { get; set; } /// /// 交期确认状态 /// [Comment("交期确认状态")] public int? deliveryconfirmstate { get; set; } /// /// 物流状态 /// [Comment("物流状态")] public int? logisticsstate { get; set; } /// /// 订单数量 /// [Precision(23, 10)] [Comment("订单数量")] public decimal? qty { get; set; } /// /// 净价 /// [Precision(23, 10)] [Comment("净价")] public decimal? netprice { get; set; } /// /// 税率 /// [Precision(23, 10)] [Comment("税率")] public decimal? rate { get; set; } /// /// 含税单价 /// [Precision(23, 10)] [Comment("含税单价")] public decimal? price { get; set; } /// /// 总价 /// [Precision(23, 10)] [Comment("总价")] public decimal? total_price { get; set; } /// /// 计划数量 /// [Precision(23, 10)] [Comment("计划数量")] public decimal? plan_qty { get; set; } /// /// 单位 /// [Comment("单位")] public string unit { get; set; } /// /// 数据状态标识 0停用 1启用 /// [Comment("数据状态标识")] public int? state { get; set; } /// /// 需求到货日期 /// [Comment("需求到货日期")] public DateTime? rarrdate { get; set; } /// /// 评审状态(0-待评审、1-评审通过、2-评审未通过) /// [Comment("评审状态")] public int? rstate { get; set; } /// /// 评审次数 /// [Comment("评审次数")] public int rnumber { get; set; } /// /// 已发货数量 /// [Precision(23, 10)] [Comment("已发货数量")] public decimal? shippedqty { get; set; } /// /// 已收货数量 /// [Precision(23, 10)] [Comment("已收货数量")] public decimal? rqty { get; set; } /// /// 已入库数量 /// [Precision(23, 10)] [Comment("已入库数量")] public decimal? esqty { get; set; } /// /// 采购到货日期 /// [Comment("采购到货日期")] public DateTime? procurement_rarr_date { get; set; } /// /// 再计划到货日期 /// [Comment("再计划到货日期")] public DateTime? rparrive_date { get; set; } /// /// 供应商交期 /// [Comment("供应商交期")] public DateTime? purchase_date { get; set; } /// /// 采购确认到货日期 /// [Comment("采购确认到货日期")] public DateTime? pur_affirmdate { get; set; } /// /// 币别 /// [Required] [Comment("币别")] public long? currencytype { get; set; } /// /// 计算ID /// [Comment("计算id")] [NotMapped] public long? bang_id { get; set; } } }