using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.Attributes; namespace WIDESEA_DTO.Basic { /// /// 博思通采购入库单接收实体 /// [ModelValidate] public class BSTPurchaseOrderDTO { /// /// 数据获取方式标识(1:新增 2:修改 3:删除) /// [PropertyValidate("数据获取方式标识(1:新增 2:修改 3:删除)", NotNullAndEmpty = true)] public int Way { get; set; } /// /// 纸质收货单主表ID /// [PropertyValidate("纸质收货单主表ID", NotNullAndEmpty = true)] public int PaperReceiptId { get; set; } /// /// 纸质收货单编号 /// [PropertyValidate("纸质收货单编号", NotNullAndEmpty = true)] public string PaperReceiptNo { get; set; } /// /// 供应商编号 /// [PropertyValidate("供应商编号", NotNullAndEmpty = true)] public string VendNo { get; set; } /// /// 总采购长度 /// [PropertyValidate("总采购长度", NotNullAndEmpty = true)] public decimal TotalProcurementLength { get; set; } /// /// 收货日期 /// [PropertyValidate("收货日期", NotNullAndEmpty = true)] public long ReceiptDate { get; set; } /// /// 备注信息 /// [PropertyValidate("备注信息", NotNullAndEmpty = false)] public string? Remark { get; set; } /// /// 纸质收货单明细列表 /// [PropertyValidate("纸质收货单明细列表", NotNullAndEmpty = true)] public List PaperReceiptDetails { get; set; } } /// /// 采购收货明细 /// public class PaperReceiptDetailsItem { /// /// 关联的主表ID /// [PropertyValidate("关联的主表ID", NotNullAndEmpty = true)] public int PaperReceiptId { get; set; } /// /// 物料条码 /// [PropertyValidate("物料条码", NotNullAndEmpty = true)] public string Barcode { get; set; } /// /// 物料来源ID(上游) /// [PropertyValidate("物料ID", NotNullAndEmpty = true)] public int MaterialId { get; set; } /// /// 物料编号 /// [PropertyValidate("物料编号", NotNullAndEmpty = true)] public string MaterialNo { get; set; } /// /// 批次序列号 /// [PropertyValidate("批次序列号", NotNullAndEmpty = true)] public int SeqNo { get; set; } /// /// 幅宽 /// [PropertyValidate("幅宽", NotNullAndEmpty = true)] public decimal W { get; set; } /// /// 厚度 /// [PropertyValidate("厚度", NotNullAndEmpty = true)] public decimal Thick { get; set; } /// /// 采购长度 /// [PropertyValidate("采购长度", NotNullAndEmpty = true)] public decimal ProcurementLength { get; set; } /// /// 交货数量 /// [PropertyValidate("交货数量", NotNullAndEmpty = true)] public decimal DeliveryQty { get; set; } /// /// 计量单位(KG) /// [PropertyValidate("计量单位", NotNullAndEmpty = true)] public string Unit { get; set; } } }