From aefcd9f93b54ff0329cb15ca6b80eb74fa0742c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=8D=A3=E5=9B=BD?= Date: Mon, 1 Nov 2021 13:22:43 +0800 Subject: [PATCH] =?UTF-8?q?[update]DTO=E5=A2=9E=E5=8A=A0=20Required=20?= =?UTF-8?q?=E7=89=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ASNs/ASNCreateDTO.cs | 6 ++++++ .../ASNs/ASNCreateOrUpdateDTOBase.cs | 5 +++++ .../ASNs/ASNDetailsDTO.cs | 11 +++++++++++ .../ASNs/ASNUpdateDTO.cs | 2 ++ .../POs/POCreateDTO.cs | 4 ++++ .../POs/POCreateOrUpdateDTOBase.cs | 4 ++++ .../POs/PODetailDTO.cs | 9 +++++++++ .../Parts/PartCreateDTO.cs | 3 +++ .../Parts/PartCreateOrUpdateDTOBase.cs | 8 ++++++++ .../Receipts/ReceiptCreateDTO.cs | 10 ++++++++++ .../Receipts/ReceiptCreateOrUpdateDTOBase.cs | 15 ++++++++++++++- .../SupplierParts/SupplierPartCreateDTO.cs | 4 ++++ .../SupplierPartCreateOrUpdateDTOBase.cs | 3 +++ .../Suppliers/SupplierCreateDTO.cs | 2 ++ .../Suppliers/SupplierCreateOrUpdateDTOBase.cs | 3 ++- 15 files changed, 87 insertions(+), 2 deletions(-) diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateDTO.cs index 25b6f7c..2c81e46 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateDTO.cs @@ -10,36 +10,42 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs /// /// 发货单号(ASN Number) /// + [Required] [Display(Name = "发货单号(AsnNumber)")] public string AsnNumber { set; get; } /// /// 要货计划单号(Request Plan Number) /// + [Required] [Display(Name = "要货计划单号(RpNumber)")] public string RpNumber { set; get; } /// /// 订单号(Purchase order number) /// + [Required] [Display(Name = "订单号(PoNumber)")] public string PoNumber { set; get; } /// /// 供应商代码(Supplier code) /// + [Required] [Display(Name = "供应商代码(SupplierCode)")] public string SupplierCode { set; get; } /// /// 地点(Site) /// + [Required] [Display(Name = "地点(Site)")] public string Site { set; get; } /// /// 公司(IAC company code) /// + [Required] [Display(Name = "公司(Company)")] public string Company { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateOrUpdateDTOBase.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateOrUpdateDTOBase.cs index 67621b2..b8342a5 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateOrUpdateDTOBase.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateOrUpdateDTOBase.cs @@ -34,24 +34,28 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs /// /// 仓库(Warehouse code) /// + [Required] [Display(Name = "仓库(Warehouse)")] public string Warehouse { set; get; } /// /// 收货口(Warehouse Dock) /// + [Required] [Display(Name = "收货口(Dock)")] public string Dock { set; get; } /// /// 时间窗口开始(Time Window Begin) /// + [Required] [Display(Name = "时间窗口开始(TimeWindowBegin)")] public DateTime TimeWindowBegin { set; get; } /// /// 时间窗口结束(Time Window End) /// + [Required] [Display(Name = "时间窗口结束(TimeWindowEnd)")] public DateTime TimeWindowEnd { set; get; } @@ -61,6 +65,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs [Display(Name = "备注(Remark)")] public string Remark { set; get; } + [Required] public virtual ICollection Details { get; set; } /// diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNDetailsDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNDetailsDTO.cs index 174d0e8..77e5292 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNDetailsDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNDetailsDTO.cs @@ -14,66 +14,77 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs /// /// 发货单号(ASN Number) /// + [Required] [Display(Name = "发货单号(AsnNumber)")] public string AsnNumber { set; get; } /// /// 订单号(Purchase order number) /// + [Required] [Display(Name = "订单号(PoNumber)")] public string PoNumber { set; get; } /// /// 订单行(Purchase order Line) /// + [Required] [Display(Name = "订单行(PoLine)")] public string PoLine { set; get; } /// /// 零件号(PartCode) /// + [Required] [Display(Name = "零件号(PartCode)")] public string PartCode { set; get; } /// /// 批次(Lot number) /// + [Required] [Display(Name = "批次(Lot)")] public string Lot { set; get; } /// /// 供应商批次(Supplier Lot) /// + [Required] [Display(Name = "供应商批次(SupplierLot)")] public string SupplierLot { set; get; } /// /// 生产日期(Produce Date) /// + [Required] [Display(Name = "生产日期(ProductionDate)")] public DateTime ProductionDate { set; get; } /// /// 计量单位(Unit of measure) /// + [Required] [Display(Name = "计量单位(Uom)")] public string Uom { set; get; } /// /// 发货数量(Delivery quantity) /// + [Required] [Display(Name = "发货数量(DeliverQty)")] public decimal DeliverQty { set; get; } /// /// 标包计量单位(standard package um) /// + [Required] [Display(Name = "标包计量单位(Standard Pack Uom)")] public string StdPackUom { set; get; } /// /// 标包数量(standard package quantity) /// + [Required] [Display(Name = "标包数量(Standard Pack Qty)")] public decimal StdPackQty { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNUpdateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNUpdateDTO.cs index df9018b..85046b5 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNUpdateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNUpdateDTO.cs @@ -10,6 +10,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs /// /// 状态(Status) /// + [Required] [Display(Name = "状态(Status)")] public int Status { set; get; } @@ -17,6 +18,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs /// /// 是否已读(IsRead) /// + [Required] [Display(Name = "是否已读(IsRead)")] public bool IsRead { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateDTO.cs index ddb1a05..980b725 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateDTO.cs @@ -10,24 +10,28 @@ namespace Win_in.Sfs.Scp.WebApi.POs /// /// 订单号(PoNumber) /// + [Required] [Display(Name = "订单号(PoNumber)")] public string PoNumber { set; get; } /// /// 供应商代码(SupplierCode) /// + [Required] [Display(Name = "供应商代码(SupplierCode)")] public string SupplierCode { set; get; } /// /// 地点(Site) /// + [Required] [Display(Name = "地点(Site)")] public string Site { set; get; } /// /// 公司(Company) /// + [Required] [Display(Name = "公司(Company)")] public string Company { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateOrUpdateDTOBase.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateOrUpdateDTOBase.cs index b9cb407..8637c98 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateOrUpdateDTOBase.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateOrUpdateDTOBase.cs @@ -15,24 +15,28 @@ namespace Win_in.Sfs.Scp.WebApi.POs /// /// 订单类型(PoType) /// + [Required] [Display(Name = "订单类型(PoType)")] public string PoType { set; get; } /// /// 订单状态(Status) /// + [Required] [Display(Name = "订单状态(Status)")] public int Status { set; get; } /// /// 是否寄存订单(IsConsignment) /// + [Required] [Display(Name = "是否寄存订单(IsConsignment)")] public bool IsConsignment { set; get; } /// /// 订单日期(OrderDate) /// + [Required] [Display(Name = "订单日期(OrderDate)")] public DateTime OrderDate { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/PODetailDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/PODetailDTO.cs index 443ef9d..38fd6c4 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/PODetailDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/PODetailDTO.cs @@ -13,30 +13,35 @@ namespace Win_in.Sfs.Scp.WebApi.POs /// /// 订单号(PoNumber) /// + [Required] [Display(Name = "订单号(PoNumber)")] public string PoNumber { set; get; } /// /// 订单行(PoLine) /// + [Required] [Display(Name = "订单行(PoLine)")] public string PoLine { set; get; } /// /// 零件号(PartCode) /// + [Required] [Display(Name = "零件号(PartCode)")] public string PartCode { set; get; } /// /// 计量单位(Uom) /// + [Required] [Display(Name = "计量单位(Uom)")] public string Uom { set; get; } /// /// 订单数量(Order Qty) /// + [Required] [Display(Name = "订单数量(OrderQty)")] public decimal OrderQty { set; get; } @@ -44,18 +49,21 @@ namespace Win_in.Sfs.Scp.WebApi.POs /// /// 已关闭数量(Closed Qty) /// + [Required] [Display(Name = "已关闭数量(Closed Qty)")] public decimal ClosedQty { get; set; } /// /// 标包计量单位(Standard Pack Uom) /// + [Required] [Display(Name = "标包计量单位(Standard Pack Uom)")] public string StdPackUom { set; get; } /// /// 标包数量(Standard Pack Qty) /// + [Required] [Display(Name = "标包数量(Standard Pack Qty)")] public decimal StdPackQty { set; get; } @@ -86,6 +94,7 @@ namespace Win_in.Sfs.Scp.WebApi.POs /// /// 订单行状态(LineStatus) /// + [Required] [Display(Name = "订单行状态(LineStatus)")] public int LineStatus { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDTO.cs index 0402b9e..73fca63 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDTO.cs @@ -10,18 +10,21 @@ namespace Win_in.Sfs.Scp.WebApi.Parts /// /// 代码(Code) /// + [Required] [Display(Name = "代码")] public string Code { get; set; } /// /// 地点(Site) /// + [Required] [Display(Name = "地点")] public string Site { get; set; } /// /// 公司(Company) /// + [Required] [Display(Name = "公司")] public string Company { get; set; } } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateOrUpdateDTOBase.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateOrUpdateDTOBase.cs index 04833b0..511cd45 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateOrUpdateDTOBase.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateOrUpdateDTOBase.cs @@ -17,6 +17,7 @@ namespace Win_in.Sfs.Scp.WebApi.Parts /// /// 名称(Name) /// + [Required] [Display(Name = "名称")] public string Name { get; set; } @@ -35,30 +36,35 @@ namespace Win_in.Sfs.Scp.WebApi.Parts /// /// 状态(Status) /// + [Required] [Display(Name = "状态")] public string Status { get; set; } /// /// 制造件(Can make) /// + [Required] [Display(Name = "制造件")] public bool CanMake { get; set; } /// /// 采购件(Can buy) /// + [Required] [Display(Name = "采购件")] public bool CanBuy { get; set; } /// /// 计量单位(Uom) /// + [Required] [Display(Name = "计量单位")] public string Uom { get; set; } /// /// ABC类(abcClass) /// + [Required] [Display(Name = "ABC类")] public string AbcClass { get; set; } @@ -113,12 +119,14 @@ namespace Win_in.Sfs.Scp.WebApi.Parts /// /// 标包计量单位(Standard Pack Uom) /// + [Required] [Display(Name = "标包计量单位")] public string StdPackUom { get; set; } /// /// 标包数量(Standard Pack Qty) /// + [Required] [Display(Name = "标包数量")] public decimal StdPackQty { get; set; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateDTO.cs index 122b52c..bfb9fe8 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateDTO.cs @@ -10,30 +10,35 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts /// /// ջ(RcNumber) /// + [Required] [Display(Name = "ջ(RcNumber)")] public string RcNumber { set; get; } /// /// (AsnNumber) /// + [Required] [Display(Name = "(AsnNumber)")] public string AsnNumber { set; get; } /// /// Ҫƻ(RpNumber) /// + [Required] [Display(Name = "Ҫƻ(RpNumber)")] public string RpNumber { set; get; } /// /// (PoNumber) /// + [Required] [Display(Name = "(PoNumber)")] public string PoNumber { set; get; } /// /// Ӧ̴(PoNumber) /// + [Required] [Display(Name = "Ӧ̴(SupplierCode)")] public string SupplierCode { set; get; } @@ -42,6 +47,7 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts /// "" :ջ(Receipts) /// "R":˻(Return Document) /// + [Required] [Display(Name = "ջ(RcType)")] public string RcType { set; get; } @@ -49,24 +55,28 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts /// /// ص(Site) /// + [Required] [Display(Name = "ص(Site)")] public string Site { set; get; } /// /// ˾(Company) /// + [Required] [Display(Name = "˾(Company)")] public string Company { set; get; } /// /// (PoLine) /// + [Required] [Display(Name = "(PoLine)")] public string PoLine { set; get; } /// /// (PartCode) /// + [Required] [Display(Name = "(PartCode)")] public string PartCode { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateOrUpdateDTOBase.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateOrUpdateDTOBase.cs index 1c6df20..d1b871c 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateOrUpdateDTOBase.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateOrUpdateDTOBase.cs @@ -12,78 +12,91 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts /// /// 仓库(Warehouse) /// + [Required] [Display(Name = "仓库(Warehouse)")] public string Warehouse { set; get; } /// /// 收货口(Dock) /// + [Required] [Display(Name = "收货口(Dock)")] public string Dock { set; get; } /// /// 时间窗口开始(TimeWindowBegin) /// + [Required] [Display(Name = "时间窗口开始(TimeWindowBegin)")] public DateTime TimeWindowBegin { set; get; } /// /// 时间窗口结束(TimeWindowEnd) /// + [Required] [Display(Name = "时间窗口结束(TimeWindowEnd)")] public DateTime TimeWindowEnd { set; get; } - + /// /// 收货时间(ReceiveTime) /// + [Required] [Display(Name = "收货时间(ReceiveTime)")] public DateTime ReceiveTime { set; get; } /// /// 批次(Lot) /// + [Required] [Display(Name = "批次(Lot)")] public string Lot { set; get; } /// /// 供应商批次(SupplierLot) /// + [Required] [Display(Name = "供应商批次(SupplierLot)")] public string SupplierLot { set; get; } /// /// 生产日期(ProductionDate) /// + [Required] [Display(Name = "生产日期(ProductionDate)")] public DateTime ProductionDate { set; get; } /// /// 计量单位(Uom) /// + [Required] [Display(Name = "计量单位(Uom)")] public string Uom { set; get; } /// /// 发货数量(DeliverQty) /// + [Required] [Display(Name = "发货数量(DeliverQty)")] public decimal DeliverQty { set; get; } /// /// 收货数量(ReceiveQty) /// + [Required] [Display(Name = "收货数量(ReceiveQty)")] public decimal ReceiveQty { set; get; } /// /// 标包计量单位(Standard Pack Uom) /// + [Required] [Display(Name = "标包计量单位(Standard Pack Uom)")] public string StdPackUom { set; get; } /// /// 标包数量(Standard Pack Qty) /// + [Required] [Display(Name = "标包数量(Standard Pack Qty)")] public decimal StdPackQty { set; get; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateDTO.cs index 3185327..680a107 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateDTO.cs @@ -10,24 +10,28 @@ namespace Win_in.Sfs.Scp.WebApi.SupplierParts /// /// Ӧ̴(SupplierCode) /// + [Required] [Display(Name = "Ӧ̴(SupplierCode)")] public string SupplierCode { set; get; } /// /// (PartCode) /// + [Required] [Display(Name = "(PartCode)")] public string PartCode { set; get; } /// /// ص(Site) /// + [Required] [Display(Name = "ص")] public string Site { get; set; } /// /// ˾(Company) /// + [Required] [Display(Name = "˾")] public string Company { get; set; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateOrUpdateDTOBase.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateOrUpdateDTOBase.cs index b2f04f2..bd66e2d 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateOrUpdateDTOBase.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateOrUpdateDTOBase.cs @@ -11,18 +11,21 @@ namespace Win_in.Sfs.Scp.WebApi.SupplierParts /// /// 供应商零件号(SupplierPartCode) /// + [Required] [Display(Name = "供应商零件号(SupplierPartCode)")] public string SupplierPartCode { set; get; } /// /// 供应商标包计量单位(SupplierStdPackUom) /// + [Required] [Display(Name = "供应商标包计量单位(SupplierStdPackUom)")] public string SupplierStdPackUom { get; set; } /// /// 供应商标包数量 /// + [Required] [Display(Name = "供应商标包数量(SupplierStdPackQty)")] public decimal SupplierStdPackQty { get; set; } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateDTO.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateDTO.cs index 791ed60..619267f 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateDTO.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateDTO.cs @@ -10,12 +10,14 @@ namespace Win_in.Sfs.Scp.WebApi.Suppliers /// /// (Code) /// + [Required] [Display(Name = "(Code)")] public string Code { set; get; } /// /// ˾(Company) /// + [Required] [Display(Name = "˾(Company)")] public string Company { set; get; } } diff --git a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateOrUpdateDTOBase.cs b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateOrUpdateDTOBase.cs index d2e9dc7..8c298f6 100644 --- a/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateOrUpdateDTOBase.cs +++ b/ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateOrUpdateDTOBase.cs @@ -7,11 +7,12 @@ namespace Win_in.Sfs.Scp.WebApi.Suppliers { public abstract class SupplierCreateOrUpdateDTOBase : EntityDtoBase { - + /// /// 简称(Name) /// + [Required] [Display(Name = "简称(Name)")] public string Name { set; get; }