From e1dd1dc9ba7135e3d64a65587d6c1be2c3e18c5a Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 25 六月 2025 11:01:22 +0800
Subject: [PATCH] 提交最新优化代码

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/SupplierDTO.cs |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/SupplierDTO.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/SupplierDTO.cs"
index 4ea44a1..f5d96aa 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/SupplierDTO.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/SupplierDTO.cs"
@@ -3,31 +3,77 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using WIDESEA_Core.Attributes;
 
 namespace WIDESEA_DTO.Basic
 {
+    [ModelValidate]
     public class SupplierDTO
     {
+        /// <summary>
+        /// 渚涘簲鍟嗙紪鐮�
+        /// </summary>
+        [PropertyValidate("渚涘簲鍟嗙紪鐮�", NotNullAndEmpty = true)]
         public string Code { get; set; }
 
+        /// <summary>
+        /// 渚涘簲鍟嗗叏绉�
+        /// </summary>
+        [PropertyValidate("渚涘簲鍟嗗叏绉�", NotNullAndEmpty = true)]
         public string Name { get; set; }
 
+        /// <summary>
+        /// 渚涘簲鍟嗙畝绉�
+        /// </summary>
+        [PropertyValidate("渚涘簲鍟嗙畝绉�", NotNullAndEmpty = true)]
         public string ShortName { get; set; }
 
+        /// <summary>
+        /// 鑱旂郴浜�
+        /// </summary>
+        [PropertyValidate("鑱旂郴浜�", NotNullAndEmpty = true)]
         public string Contacts { get; set; }
 
+        /// <summary>
+        /// 鑱旂郴鐢佃瘽
+        /// </summary>
+        [PropertyValidate("鑱旂郴鐢佃瘽", NotNullAndEmpty = true)]
         public string ContactNumber { get; set; }
 
+        /// <summary>
+        /// 鑱旂郴鍦板潃
+        /// </summary>
+        [PropertyValidate("鑱旂郴鍦板潃", NotNullAndEmpty = true)]
         public string ContactAddress { get; set; }
 
+        /// <summary>
+        /// 鐢靛瓙閭
+        /// </summary>
+        [PropertyValidate("鐢靛瓙閭", NotNullAndEmpty = true)]
         public string Email { get; set; }
 
+        /// <summary>
+        /// 鎻忚堪
+        /// </summary>
+        [PropertyValidate("鎻忚堪", NotNullAndEmpty = true)]
         public string Description { get; set; }
 
+        /// <summary>
+        /// 鐘舵��
+        /// </summary>
+        [PropertyValidate("鐘舵��", NotNullAndEmpty = true)]
         public int State { get; set; }
 
-        public string InvOrgId { get; set; }
+        /// <summary>
+        /// 搴撳瓨缁勭粐
+        /// </summary>
+        [PropertyValidate("搴撳瓨缁勭粐", NotNullAndEmpty = true)]
+        public string InvOrgId { get; set; } = "娣畨鐗瑰垱浜屽巶";
 
-        public string OperateType {  get; set; }
+        /// <summary>
+        /// 鎿嶄綔绫诲瀷
+        /// </summary>
+        [PropertyValidate("鎿嶄綔绫诲瀷", NotNullAndEmpty = true,Check = new object[] { 0, 1, 2 })]
+        public string OperateType { get; set; }
     }
 }

--
Gitblit v1.9.3