From d8db1698c125618c1b5f62b009204ddc5d4eed5a Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 19 三月 2025 20:34:08 +0800
Subject: [PATCH] 成品代码更新....
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Inbound/InboundOrderAddDTO.cs | 54 +++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 45 insertions(+), 9 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Inbound/InboundOrderAddDTO.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Inbound/InboundOrderAddDTO.cs"
index 978f3ac..8665342 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Inbound/InboundOrderAddDTO.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Inbound/InboundOrderAddDTO.cs"
@@ -13,31 +13,67 @@
/// <summary>
/// 涓婃父鍗曟嵁缂栧彿
/// </summary>
- public string UpperOrderNo { get; set; }
-
- /// <summary>
- /// 鍗曟嵁缂栧彿
- /// </summary>
+ [PropertyValidate("涓婃父鍗曟嵁缂栧彿", NotNullAndEmpty = true)]
public string OrderNo { get; set; }
/// <summary>
/// 鍗曟嵁绫诲瀷
/// </summary>
[PropertyValidate("鍗曟嵁绫诲瀷", NotNullAndEmpty = true)]
- public int OrderType { get; set; }
+ public int Type { get; set; }
- public string OperateType { 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 Remark { get; set; }
+ public string Note { get; set; }
[PropertyValidate("鍗曟嵁鏄庣粏淇℃伅", NotNullAndEmpty = true)]
- public List<InboundOrderDetailAddDTO> Details { get; set; }
+ 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; }
}
}
--
Gitblit v1.9.3