using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.Attributes; namespace WIDESEA_DTO.Inbound { [ModelValidate] public class InboundOrderAddDTO { /// /// 上游单据编号 /// [PropertyValidate("上游单据编号", NotNullAndEmpty = true)] public string OrderNo { get; set; } /// /// 单据类型 /// [PropertyValidate("单据类型", NotNullAndEmpty = true)] public int Type { get; set; } /// /// 操作类型 /// [PropertyValidate("操作类型", Check = new object[] { 1, 2, 3, 4 })] public int OperateType { get; set; } /// /// 采购数量 /// [PropertyValidate("采购数量", MinValue = 0, IsContainMinValue = false)] public decimal Amount { get; set; } /// /// 下单日期 /// [PropertyValidate("下单日期", NotNullAndEmpty = true)] public string OrderDate { get; set; } /// /// 备注 /// public string Note { get; set; } [PropertyValidate("单据明细信息", NotNullAndEmpty = true)] public List MList { get; set; } } [ModelValidate] public class InboundOrderDetailAddDTO { /// /// 物料编号 /// [PropertyValidate("物料编号", NotNullAndEmpty = true)] public string MaterielCode { get; set; } /// /// 数量 /// [PropertyValidate("数量", NotNullAndEmpty = true, MinValue = 0, IsContainMinValue = false)] public decimal Qty { get; set; } /// /// 仓库编号 /// [PropertyValidate("仓库编号", NotNullAndEmpty = true)] public int WaId { get; set; } /// /// 单位 /// [PropertyValidate("单位", NotNullAndEmpty = true)] public string Unit { get; set; } } /// /// /// public class BarcodesModel { public string barcode { get; set; } public string outBoxbarcodes { get; set; } public decimal qty { get; set; } public string unit { get; set; } } /// /// /// public class InBoundDetailsModel { public string materialCode { get; set; } public string supplyCode { get; set; } public string batchNo { get; set; } public string lineNo { get; set; } public decimal qty { get; set; } public string unit { get; set; } public string warehouseCode { get; set; } public List barcodes { get; set; } } /// /// /// public class InBoundsModel { /// /// /// public string orderNo { get; set; } public string business_type { get; set; } public bool isBatch { get; set; } public string factoryArea { get; set; } public List details { get; set; } } /// /// /// public class InboundRequestModel { public string reqCode { get; set; } public string reqTime { get; set; } public int operationType { get; set; } public List inBounds { get; set; } } public class FeedbackInboundRequestModel { public string reqCode { get; set; } public string reqTime { get; set; } public int operationType { get; set; } /// /// /// public string orderNo { get; set; } public string business_type { get; set; } public int status { get; set; } public string factoryArea { get; set; } public List details { get; set; } } public class FeedbackInboundDetailsModel { public string materialCode { get; set; } public string supplyCode { get; set; } public string batchNo { get; set; } public string lineNo { get; set; } public decimal qty { get; set; } public string unit { get; set; } public string warehouseCode { get; set; } public List barcodes { get; set; } } public class FeedbackBarcodesModel { public string barcode { get; set; } public decimal qty { get; set; } } }