From 13fac67a21f8679e284635802fd259e9fced5c60 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期二, 17 十二月 2024 11:35:37 +0800 Subject: [PATCH] 2024121701 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/SupplierDTO.cs | 65 +++++++++++++++++++++++--------- 1 files changed, 46 insertions(+), 19 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 6f11d3a..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" @@ -8,45 +8,72 @@ namespace WIDESEA_DTO.Basic { [ModelValidate] - public class Supplier - { - /// <summary> - /// - /// </summary> - public string From { get; set; } - /// <summary> - /// - /// </summary> - public string DateTime { get; set; } - /// <summary> - /// - /// </summary> - [PropertyValidate("鐗╂枡鍒楄〃", NotNullAndEmpty = true)] - public SupplierDTO Content { get; set; } - } - [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