Browse Source

[update]DTO增加 Required 特性

master
贾荣国 3 years ago
parent
commit
aefcd9f93b
  1. 6
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateDTO.cs
  2. 5
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateOrUpdateDTOBase.cs
  3. 11
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNDetailsDTO.cs
  4. 2
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNUpdateDTO.cs
  5. 4
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateDTO.cs
  6. 4
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateOrUpdateDTOBase.cs
  7. 9
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/PODetailDTO.cs
  8. 3
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDTO.cs
  9. 8
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateOrUpdateDTOBase.cs
  10. 10
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateDTO.cs
  11. 13
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateOrUpdateDTOBase.cs
  12. 4
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateDTO.cs
  13. 3
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateOrUpdateDTOBase.cs
  14. 2
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateDTO.cs
  15. 1
      ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateOrUpdateDTOBase.cs

6
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateDTO.cs

@ -10,36 +10,42 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
/// <summary> /// <summary>
/// 发货单号(ASN Number) /// 发货单号(ASN Number)
/// </summary> /// </summary>
[Required]
[Display(Name = "发货单号(AsnNumber)")] [Display(Name = "发货单号(AsnNumber)")]
public string AsnNumber { set; get; } public string AsnNumber { set; get; }
/// <summary> /// <summary>
/// 要货计划单号(Request Plan Number) /// 要货计划单号(Request Plan Number)
/// </summary> /// </summary>
[Required]
[Display(Name = "要货计划单号(RpNumber)")] [Display(Name = "要货计划单号(RpNumber)")]
public string RpNumber { set; get; } public string RpNumber { set; get; }
/// <summary> /// <summary>
/// 订单号(Purchase order number) /// 订单号(Purchase order number)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")] [Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; } public string PoNumber { set; get; }
/// <summary> /// <summary>
/// 供应商代码(Supplier code) /// 供应商代码(Supplier code)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商代码(SupplierCode)")] [Display(Name = "供应商代码(SupplierCode)")]
public string SupplierCode { set; get; } public string SupplierCode { set; get; }
/// <summary> /// <summary>
/// 地点(Site) /// 地点(Site)
/// </summary> /// </summary>
[Required]
[Display(Name = "地点(Site)")] [Display(Name = "地点(Site)")]
public string Site { set; get; } public string Site { set; get; }
/// <summary> /// <summary>
/// 公司(IAC company code) /// 公司(IAC company code)
/// </summary> /// </summary>
[Required]
[Display(Name = "公司(Company)")] [Display(Name = "公司(Company)")]
public string Company { set; get; } public string Company { set; get; }

5
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNCreateOrUpdateDTOBase.cs

@ -34,24 +34,28 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
/// <summary> /// <summary>
/// 仓库(Warehouse code) /// 仓库(Warehouse code)
/// </summary> /// </summary>
[Required]
[Display(Name = "仓库(Warehouse)")] [Display(Name = "仓库(Warehouse)")]
public string Warehouse { set; get; } public string Warehouse { set; get; }
/// <summary> /// <summary>
/// 收货口(Warehouse Dock) /// 收货口(Warehouse Dock)
/// </summary> /// </summary>
[Required]
[Display(Name = "收货口(Dock)")] [Display(Name = "收货口(Dock)")]
public string Dock { set; get; } public string Dock { set; get; }
/// <summary> /// <summary>
/// 时间窗口开始(Time Window Begin) /// 时间窗口开始(Time Window Begin)
/// </summary> /// </summary>
[Required]
[Display(Name = "时间窗口开始(TimeWindowBegin)")] [Display(Name = "时间窗口开始(TimeWindowBegin)")]
public DateTime TimeWindowBegin { set; get; } public DateTime TimeWindowBegin { set; get; }
/// <summary> /// <summary>
/// 时间窗口结束(Time Window End) /// 时间窗口结束(Time Window End)
/// </summary> /// </summary>
[Required]
[Display(Name = "时间窗口结束(TimeWindowEnd)")] [Display(Name = "时间窗口结束(TimeWindowEnd)")]
public DateTime TimeWindowEnd { set; get; } public DateTime TimeWindowEnd { set; get; }
@ -61,6 +65,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
[Display(Name = "备注(Remark)")] [Display(Name = "备注(Remark)")]
public string Remark { set; get; } public string Remark { set; get; }
[Required]
public virtual ICollection<ASNDetailsDTO> Details { get; set; } public virtual ICollection<ASNDetailsDTO> Details { get; set; }
/// <summary> /// <summary>

11
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNDetailsDTO.cs

@ -14,66 +14,77 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
/// <summary> /// <summary>
/// 发货单号(ASN Number) /// 发货单号(ASN Number)
/// </summary> /// </summary>
[Required]
[Display(Name = "发货单号(AsnNumber)")] [Display(Name = "发货单号(AsnNumber)")]
public string AsnNumber { set; get; } public string AsnNumber { set; get; }
/// <summary> /// <summary>
/// 订单号(Purchase order number) /// 订单号(Purchase order number)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")] [Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; } public string PoNumber { set; get; }
/// <summary> /// <summary>
/// 订单行(Purchase order Line) /// 订单行(Purchase order Line)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单行(PoLine)")] [Display(Name = "订单行(PoLine)")]
public string PoLine { set; get; } public string PoLine { set; get; }
/// <summary> /// <summary>
/// 零件号(PartCode) /// 零件号(PartCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "零件号(PartCode)")] [Display(Name = "零件号(PartCode)")]
public string PartCode { set; get; } public string PartCode { set; get; }
/// <summary> /// <summary>
/// 批次(Lot number) /// 批次(Lot number)
/// </summary> /// </summary>
[Required]
[Display(Name = "批次(Lot)")] [Display(Name = "批次(Lot)")]
public string Lot { set; get; } public string Lot { set; get; }
/// <summary> /// <summary>
/// 供应商批次(Supplier Lot) /// 供应商批次(Supplier Lot)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商批次(SupplierLot)")] [Display(Name = "供应商批次(SupplierLot)")]
public string SupplierLot { set; get; } public string SupplierLot { set; get; }
/// <summary> /// <summary>
/// 生产日期(Produce Date) /// 生产日期(Produce Date)
/// </summary> /// </summary>
[Required]
[Display(Name = "生产日期(ProductionDate)")] [Display(Name = "生产日期(ProductionDate)")]
public DateTime ProductionDate { set; get; } public DateTime ProductionDate { set; get; }
/// <summary> /// <summary>
/// 计量单位(Unit of measure) /// 计量单位(Unit of measure)
/// </summary> /// </summary>
[Required]
[Display(Name = "计量单位(Uom)")] [Display(Name = "计量单位(Uom)")]
public string Uom { set; get; } public string Uom { set; get; }
/// <summary> /// <summary>
/// 发货数量(Delivery quantity) /// 发货数量(Delivery quantity)
/// </summary> /// </summary>
[Required]
[Display(Name = "发货数量(DeliverQty)")] [Display(Name = "发货数量(DeliverQty)")]
public decimal DeliverQty { set; get; } public decimal DeliverQty { set; get; }
/// <summary> /// <summary>
/// 标包计量单位(standard package um) /// 标包计量单位(standard package um)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包计量单位(Standard Pack Uom)")] [Display(Name = "标包计量单位(Standard Pack Uom)")]
public string StdPackUom { set; get; } public string StdPackUom { set; get; }
/// <summary> /// <summary>
/// 标包数量(standard package quantity) /// 标包数量(standard package quantity)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包数量(Standard Pack Qty)")] [Display(Name = "标包数量(Standard Pack Qty)")]
public decimal StdPackQty { set; get; } public decimal StdPackQty { set; get; }

2
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/ASNs/ASNUpdateDTO.cs

@ -10,6 +10,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
/// <summary> /// <summary>
/// 状态(Status) /// 状态(Status)
/// </summary> /// </summary>
[Required]
[Display(Name = "状态(Status)")] [Display(Name = "状态(Status)")]
public int Status { set; get; } public int Status { set; get; }
@ -17,6 +18,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
/// <summary> /// <summary>
/// 是否已读(IsRead) /// 是否已读(IsRead)
/// </summary> /// </summary>
[Required]
[Display(Name = "是否已读(IsRead)")] [Display(Name = "是否已读(IsRead)")]
public bool IsRead { set; get; } public bool IsRead { set; get; }

4
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateDTO.cs

@ -10,24 +10,28 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary> /// <summary>
/// 订单号(PoNumber) /// 订单号(PoNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")] [Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; } public string PoNumber { set; get; }
/// <summary> /// <summary>
/// 供应商代码(SupplierCode) /// 供应商代码(SupplierCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商代码(SupplierCode)")] [Display(Name = "供应商代码(SupplierCode)")]
public string SupplierCode { set; get; } public string SupplierCode { set; get; }
/// <summary> /// <summary>
/// 地点(Site) /// 地点(Site)
/// </summary> /// </summary>
[Required]
[Display(Name = "地点(Site)")] [Display(Name = "地点(Site)")]
public string Site { set; get; } public string Site { set; get; }
/// <summary> /// <summary>
/// 公司(Company) /// 公司(Company)
/// </summary> /// </summary>
[Required]
[Display(Name = "公司(Company)")] [Display(Name = "公司(Company)")]
public string Company { set; get; } public string Company { set; get; }

4
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/POCreateOrUpdateDTOBase.cs

@ -15,24 +15,28 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary> /// <summary>
/// 订单类型(PoType) /// 订单类型(PoType)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单类型(PoType)")] [Display(Name = "订单类型(PoType)")]
public string PoType { set; get; } public string PoType { set; get; }
/// <summary> /// <summary>
/// 订单状态(Status) /// 订单状态(Status)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单状态(Status)")] [Display(Name = "订单状态(Status)")]
public int Status { set; get; } public int Status { set; get; }
/// <summary> /// <summary>
/// 是否寄存订单(IsConsignment) /// 是否寄存订单(IsConsignment)
/// </summary> /// </summary>
[Required]
[Display(Name = "是否寄存订单(IsConsignment)")] [Display(Name = "是否寄存订单(IsConsignment)")]
public bool IsConsignment { set; get; } public bool IsConsignment { set; get; }
/// <summary> /// <summary>
/// 订单日期(OrderDate) /// 订单日期(OrderDate)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单日期(OrderDate)")] [Display(Name = "订单日期(OrderDate)")]
public DateTime OrderDate { set; get; } public DateTime OrderDate { set; get; }

9
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/POs/PODetailDTO.cs

@ -13,30 +13,35 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary> /// <summary>
/// 订单号(PoNumber) /// 订单号(PoNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")] [Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; } public string PoNumber { set; get; }
/// <summary> /// <summary>
/// 订单行(PoLine) /// 订单行(PoLine)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单行(PoLine)")] [Display(Name = "订单行(PoLine)")]
public string PoLine { set; get; } public string PoLine { set; get; }
/// <summary> /// <summary>
/// 零件号(PartCode) /// 零件号(PartCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "零件号(PartCode)")] [Display(Name = "零件号(PartCode)")]
public string PartCode { set; get; } public string PartCode { set; get; }
/// <summary> /// <summary>
/// 计量单位(Uom) /// 计量单位(Uom)
/// </summary> /// </summary>
[Required]
[Display(Name = "计量单位(Uom)")] [Display(Name = "计量单位(Uom)")]
public string Uom { set; get; } public string Uom { set; get; }
/// <summary> /// <summary>
/// 订单数量(Order Qty) /// 订单数量(Order Qty)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单数量(OrderQty)")] [Display(Name = "订单数量(OrderQty)")]
public decimal OrderQty { set; get; } public decimal OrderQty { set; get; }
@ -44,18 +49,21 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary> /// <summary>
/// 已关闭数量(Closed Qty) /// 已关闭数量(Closed Qty)
/// </summary> /// </summary>
[Required]
[Display(Name = "已关闭数量(Closed Qty)")] [Display(Name = "已关闭数量(Closed Qty)")]
public decimal ClosedQty { get; set; } public decimal ClosedQty { get; set; }
/// <summary> /// <summary>
/// 标包计量单位(Standard Pack Uom) /// 标包计量单位(Standard Pack Uom)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包计量单位(Standard Pack Uom)")] [Display(Name = "标包计量单位(Standard Pack Uom)")]
public string StdPackUom { set; get; } public string StdPackUom { set; get; }
/// <summary> /// <summary>
/// 标包数量(Standard Pack Qty) /// 标包数量(Standard Pack Qty)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包数量(Standard Pack Qty)")] [Display(Name = "标包数量(Standard Pack Qty)")]
public decimal StdPackQty { set; get; } public decimal StdPackQty { set; get; }
@ -86,6 +94,7 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary> /// <summary>
/// 订单行状态(LineStatus) /// 订单行状态(LineStatus)
/// </summary> /// </summary>
[Required]
[Display(Name = "订单行状态(LineStatus)")] [Display(Name = "订单行状态(LineStatus)")]
public int LineStatus { set; get; } public int LineStatus { set; get; }

3
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDTO.cs

@ -10,18 +10,21 @@ namespace Win_in.Sfs.Scp.WebApi.Parts
/// <summary> /// <summary>
/// 代码(Code) /// 代码(Code)
/// </summary> /// </summary>
[Required]
[Display(Name = "代码")] [Display(Name = "代码")]
public string Code { get; set; } public string Code { get; set; }
/// <summary> /// <summary>
/// 地点(Site) /// 地点(Site)
/// </summary> /// </summary>
[Required]
[Display(Name = "地点")] [Display(Name = "地点")]
public string Site { get; set; } public string Site { get; set; }
/// <summary> /// <summary>
/// 公司(Company) /// 公司(Company)
/// </summary> /// </summary>
[Required]
[Display(Name = "公司")] [Display(Name = "公司")]
public string Company { get; set; } public string Company { get; set; }
} }

8
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateOrUpdateDTOBase.cs

@ -17,6 +17,7 @@ namespace Win_in.Sfs.Scp.WebApi.Parts
/// <summary> /// <summary>
/// 名称(Name) /// 名称(Name)
/// </summary> /// </summary>
[Required]
[Display(Name = "名称")] [Display(Name = "名称")]
public string Name { get; set; } public string Name { get; set; }
@ -35,30 +36,35 @@ namespace Win_in.Sfs.Scp.WebApi.Parts
/// <summary> /// <summary>
/// 状态(Status) /// 状态(Status)
/// </summary> /// </summary>
[Required]
[Display(Name = "状态")] [Display(Name = "状态")]
public string Status { get; set; } public string Status { get; set; }
/// <summary> /// <summary>
/// 制造件(Can make) /// 制造件(Can make)
/// </summary> /// </summary>
[Required]
[Display(Name = "制造件")] [Display(Name = "制造件")]
public bool CanMake { get; set; } public bool CanMake { get; set; }
/// <summary> /// <summary>
/// 采购件(Can buy) /// 采购件(Can buy)
/// </summary> /// </summary>
[Required]
[Display(Name = "采购件")] [Display(Name = "采购件")]
public bool CanBuy { get; set; } public bool CanBuy { get; set; }
/// <summary> /// <summary>
/// 计量单位(Uom) /// 计量单位(Uom)
/// </summary> /// </summary>
[Required]
[Display(Name = "计量单位")] [Display(Name = "计量单位")]
public string Uom { get; set; } public string Uom { get; set; }
/// <summary> /// <summary>
/// ABC类(abcClass) /// ABC类(abcClass)
/// </summary> /// </summary>
[Required]
[Display(Name = "ABC类")] [Display(Name = "ABC类")]
public string AbcClass { get; set; } public string AbcClass { get; set; }
@ -113,12 +119,14 @@ namespace Win_in.Sfs.Scp.WebApi.Parts
/// <summary> /// <summary>
/// 标包计量单位(Standard Pack Uom) /// 标包计量单位(Standard Pack Uom)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包计量单位")] [Display(Name = "标包计量单位")]
public string StdPackUom { get; set; } public string StdPackUom { get; set; }
/// <summary> /// <summary>
/// 标包数量(Standard Pack Qty) /// 标包数量(Standard Pack Qty)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包数量")] [Display(Name = "标包数量")]
public decimal StdPackQty { get; set; } public decimal StdPackQty { get; set; }

10
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateDTO.cs

@ -10,30 +10,35 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts
/// <summary> /// <summary>
/// 澗새데뵀(RcNumber) /// 澗새데뵀(RcNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "澗새데뵀(RcNumber)")] [Display(Name = "澗새데뵀(RcNumber)")]
public string RcNumber { set; get; } public string RcNumber { set; get; }
/// <summary> /// <summary>
/// 랙새데뵀(AsnNumber) /// 랙새데뵀(AsnNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "랙새데뵀(AsnNumber)")] [Display(Name = "랙새데뵀(AsnNumber)")]
public string AsnNumber { set; get; } public string AsnNumber { set; get; }
/// <summary> /// <summary>
/// 狼새셕뺍데뵀(RpNumber) /// 狼새셕뺍데뵀(RpNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "狼새셕뺍데뵀(RpNumber)")] [Display(Name = "狼새셕뺍데뵀(RpNumber)")]
public string RpNumber { set; get; } public string RpNumber { set; get; }
/// <summary> /// <summary>
/// 땐데뵀(PoNumber) /// 땐데뵀(PoNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "땐데뵀(PoNumber)")] [Display(Name = "땐데뵀(PoNumber)")]
public string PoNumber { set; get; } public string PoNumber { set; get; }
/// <summary> /// <summary>
/// 묩壇�덜쯤(PoNumber) /// 묩壇�덜쯤(PoNumber)
/// </summary> /// </summary>
[Required]
[Display(Name = "묩壇�덜쯤(SupplierCode)")] [Display(Name = "묩壇�덜쯤(SupplierCode)")]
public string SupplierCode { set; get; } public string SupplierCode { set; get; }
@ -42,6 +47,7 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts
/// "" :澗새데(Receipts) /// "" :澗새데(Receipts)
/// "R":藁새데(Return Document) /// "R":藁새데(Return Document)
/// </summary> /// </summary>
[Required]
[Display(Name = "澗새데잚謹(RcType)")] [Display(Name = "澗새데잚謹(RcType)")]
public string RcType { set; get; } public string RcType { set; get; }
@ -49,24 +55,28 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts
/// <summary> /// <summary>
/// 뒈듐(Site) /// 뒈듐(Site)
/// </summary> /// </summary>
[Required]
[Display(Name = "뒈듐(Site)")] [Display(Name = "뒈듐(Site)")]
public string Site { set; get; } public string Site { set; get; }
/// <summary> /// <summary>
/// 무鱇(Company) /// 무鱇(Company)
/// </summary> /// </summary>
[Required]
[Display(Name = "무鱇(Company)")] [Display(Name = "무鱇(Company)")]
public string Company { set; get; } public string Company { set; get; }
/// <summary> /// <summary>
/// 땐데契(PoLine) /// 땐데契(PoLine)
/// </summary> /// </summary>
[Required]
[Display(Name = "땐데契(PoLine)")] [Display(Name = "땐데契(PoLine)")]
public string PoLine { set; get; } public string PoLine { set; get; }
/// <summary> /// <summary>
/// 쥐숭뵀(PartCode) /// 쥐숭뵀(PartCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "쥐숭뵀(PartCode)")] [Display(Name = "쥐숭뵀(PartCode)")]
public string PartCode { set; get; } public string PartCode { set; get; }

13
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Receipts/ReceiptCreateOrUpdateDTOBase.cs

@ -12,78 +12,91 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts
/// <summary> /// <summary>
/// 仓库(Warehouse) /// 仓库(Warehouse)
/// </summary> /// </summary>
[Required]
[Display(Name = "仓库(Warehouse)")] [Display(Name = "仓库(Warehouse)")]
public string Warehouse { set; get; } public string Warehouse { set; get; }
/// <summary> /// <summary>
/// 收货口(Dock) /// 收货口(Dock)
/// </summary> /// </summary>
[Required]
[Display(Name = "收货口(Dock)")] [Display(Name = "收货口(Dock)")]
public string Dock { set; get; } public string Dock { set; get; }
/// <summary> /// <summary>
/// 时间窗口开始(TimeWindowBegin) /// 时间窗口开始(TimeWindowBegin)
/// </summary> /// </summary>
[Required]
[Display(Name = "时间窗口开始(TimeWindowBegin)")] [Display(Name = "时间窗口开始(TimeWindowBegin)")]
public DateTime TimeWindowBegin { set; get; } public DateTime TimeWindowBegin { set; get; }
/// <summary> /// <summary>
/// 时间窗口结束(TimeWindowEnd) /// 时间窗口结束(TimeWindowEnd)
/// </summary> /// </summary>
[Required]
[Display(Name = "时间窗口结束(TimeWindowEnd)")] [Display(Name = "时间窗口结束(TimeWindowEnd)")]
public DateTime TimeWindowEnd { set; get; } public DateTime TimeWindowEnd { set; get; }
/// <summary> /// <summary>
/// 收货时间(ReceiveTime) /// 收货时间(ReceiveTime)
/// </summary> /// </summary>
[Required]
[Display(Name = "收货时间(ReceiveTime)")] [Display(Name = "收货时间(ReceiveTime)")]
public DateTime ReceiveTime { set; get; } public DateTime ReceiveTime { set; get; }
/// <summary> /// <summary>
/// 批次(Lot) /// 批次(Lot)
/// </summary> /// </summary>
[Required]
[Display(Name = "批次(Lot)")] [Display(Name = "批次(Lot)")]
public string Lot { set; get; } public string Lot { set; get; }
/// <summary> /// <summary>
/// 供应商批次(SupplierLot) /// 供应商批次(SupplierLot)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商批次(SupplierLot)")] [Display(Name = "供应商批次(SupplierLot)")]
public string SupplierLot { set; get; } public string SupplierLot { set; get; }
/// <summary> /// <summary>
/// 生产日期(ProductionDate) /// 生产日期(ProductionDate)
/// </summary> /// </summary>
[Required]
[Display(Name = "生产日期(ProductionDate)")] [Display(Name = "生产日期(ProductionDate)")]
public DateTime ProductionDate { set; get; } public DateTime ProductionDate { set; get; }
/// <summary> /// <summary>
/// 计量单位(Uom) /// 计量单位(Uom)
/// </summary> /// </summary>
[Required]
[Display(Name = "计量单位(Uom)")] [Display(Name = "计量单位(Uom)")]
public string Uom { set; get; } public string Uom { set; get; }
/// <summary> /// <summary>
/// 发货数量(DeliverQty) /// 发货数量(DeliverQty)
/// </summary> /// </summary>
[Required]
[Display(Name = "发货数量(DeliverQty)")] [Display(Name = "发货数量(DeliverQty)")]
public decimal DeliverQty { set; get; } public decimal DeliverQty { set; get; }
/// <summary> /// <summary>
/// 收货数量(ReceiveQty) /// 收货数量(ReceiveQty)
/// </summary> /// </summary>
[Required]
[Display(Name = "收货数量(ReceiveQty)")] [Display(Name = "收货数量(ReceiveQty)")]
public decimal ReceiveQty { set; get; } public decimal ReceiveQty { set; get; }
/// <summary> /// <summary>
/// 标包计量单位(Standard Pack Uom) /// 标包计量单位(Standard Pack Uom)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包计量单位(Standard Pack Uom)")] [Display(Name = "标包计量单位(Standard Pack Uom)")]
public string StdPackUom { set; get; } public string StdPackUom { set; get; }
/// <summary> /// <summary>
/// 标包数量(Standard Pack Qty) /// 标包数量(Standard Pack Qty)
/// </summary> /// </summary>
[Required]
[Display(Name = "标包数量(Standard Pack Qty)")] [Display(Name = "标包数量(Standard Pack Qty)")]
public decimal StdPackQty { set; get; } public decimal StdPackQty { set; get; }

4
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateDTO.cs

@ -10,24 +10,28 @@ namespace Win_in.Sfs.Scp.WebApi.SupplierParts
/// <summary> /// <summary>
/// 供应商代码(SupplierCode) /// 供应商代码(SupplierCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商代码(SupplierCode)")] [Display(Name = "供应商代码(SupplierCode)")]
public string SupplierCode { set; get; } public string SupplierCode { set; get; }
/// <summary> /// <summary>
/// 零件号(PartCode) /// 零件号(PartCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "零件号(PartCode)")] [Display(Name = "零件号(PartCode)")]
public string PartCode { set; get; } public string PartCode { set; get; }
/// <summary> /// <summary>
/// 地点(Site) /// 地点(Site)
/// </summary> /// </summary>
[Required]
[Display(Name = "地点")] [Display(Name = "地点")]
public string Site { get; set; } public string Site { get; set; }
/// <summary> /// <summary>
/// 公司(Company) /// 公司(Company)
/// </summary> /// </summary>
[Required]
[Display(Name = "公司")] [Display(Name = "公司")]
public string Company { get; set; } public string Company { get; set; }

3
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/SupplierParts/SupplierPartCreateOrUpdateDTOBase.cs

@ -11,18 +11,21 @@ namespace Win_in.Sfs.Scp.WebApi.SupplierParts
/// <summary> /// <summary>
/// 供应商零件号(SupplierPartCode) /// 供应商零件号(SupplierPartCode)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商零件号(SupplierPartCode)")] [Display(Name = "供应商零件号(SupplierPartCode)")]
public string SupplierPartCode { set; get; } public string SupplierPartCode { set; get; }
/// <summary> /// <summary>
/// 供应商标包计量单位(SupplierStdPackUom) /// 供应商标包计量单位(SupplierStdPackUom)
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商标包计量单位(SupplierStdPackUom)")] [Display(Name = "供应商标包计量单位(SupplierStdPackUom)")]
public string SupplierStdPackUom { get; set; } public string SupplierStdPackUom { get; set; }
/// <summary> /// <summary>
/// 供应商标包数量 /// 供应商标包数量
/// </summary> /// </summary>
[Required]
[Display(Name = "供应商标包数量(SupplierStdPackQty)")] [Display(Name = "供应商标包数量(SupplierStdPackQty)")]
public decimal SupplierStdPackQty { get; set; } public decimal SupplierStdPackQty { get; set; }

2
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateDTO.cs

@ -10,12 +10,14 @@ namespace Win_in.Sfs.Scp.WebApi.Suppliers
/// <summary> /// <summary>
/// 代码(Code) /// 代码(Code)
/// </summary> /// </summary>
[Required]
[Display(Name = "代码(Code)")] [Display(Name = "代码(Code)")]
public string Code { set; get; } public string Code { set; get; }
/// <summary> /// <summary>
/// 公司(Company) /// 公司(Company)
/// </summary> /// </summary>
[Required]
[Display(Name = "公司(Company)")] [Display(Name = "公司(Company)")]
public string Company { set; get; } public string Company { set; get; }
} }

1
ScpWebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Suppliers/SupplierCreateOrUpdateDTOBase.cs

@ -12,6 +12,7 @@ namespace Win_in.Sfs.Scp.WebApi.Suppliers
/// <summary> /// <summary>
/// 简称(Name) /// 简称(Name)
/// </summary> /// </summary>
[Required]
[Display(Name = "简称(Name)")] [Display(Name = "简称(Name)")]
public string Name { set; get; } public string Name { set; get; }

Loading…
Cancel
Save