| 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 | 
|     { | 
|         /// <summary> | 
|         /// 上游单据编号 | 
|         /// </summary> | 
|         [PropertyValidate("上游单据编号", NotNullAndEmpty = true)] | 
|         public string OrderNo { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 单据类型 | 
|         /// </summary> | 
|         [PropertyValidate("单据类型", NotNullAndEmpty = true)] | 
|         public int Type { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 操作类型 | 
|         /// </summary> | 
|         [PropertyValidate("操作类型", Check = new object[] { 1, 2, 3, 4 })] | 
|         public int OperateType { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 采购数量 | 
|         /// </summary> | 
|         [PropertyValidate("采购数量", MinValue = 0, IsContainMinValue = false)] | 
|         public float Amount { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 下单日期 | 
|         /// </summary> | 
|         [PropertyValidate("下单日期", NotNullAndEmpty = true)] | 
|         public string OrderDate { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 备注 | 
|         /// </summary> | 
|         public string Note { get; set; } | 
|   | 
|         [PropertyValidate("单据明细信息", NotNullAndEmpty = true)] | 
|         public List<InboundOrderDetailAddDTO> MList { get; set; } | 
|     } | 
|   | 
|     [ModelValidate] | 
|     public class InboundOrderDetailAddDTO | 
|     { | 
|         /// <summary> | 
|         /// 物料编号 | 
|         /// </summary> | 
|         [PropertyValidate("物料编号", NotNullAndEmpty = true)] | 
|         public string MaterielCode { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 数量 | 
|         /// </summary> | 
|         [PropertyValidate("数量", NotNullAndEmpty = true, MinValue = 0, IsContainMinValue = false)] | 
|         public float Qty { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 仓库编号 | 
|         /// </summary> | 
|         [PropertyValidate("仓库编号", NotNullAndEmpty = true)] | 
|         public int WaId { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 单位 | 
|         /// </summary> | 
|         [PropertyValidate("单位", NotNullAndEmpty = true)] | 
|         public string Unit { get; set; } | 
|     } | 
| } |