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>
/// 发货单号(ASN Number)
/// </summary>
[Required]
[Display(Name = "发货单号(AsnNumber)")]
public string AsnNumber { set; get; }
/// <summary>
/// 要货计划单号(Request Plan Number)
/// </summary>
[Required]
[Display(Name = "要货计划单号(RpNumber)")]
public string RpNumber { set; get; }
/// <summary>
/// 订单号(Purchase order number)
/// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; }
/// <summary>
/// 供应商代码(Supplier code)
/// </summary>
[Required]
[Display(Name = "供应商代码(SupplierCode)")]
public string SupplierCode { set; get; }
/// <summary>
/// 地点(Site)
/// </summary>
[Required]
[Display(Name = "地点(Site)")]
public string Site { set; get; }
/// <summary>
/// 公司(IAC company code)
/// </summary>
[Required]
[Display(Name = "公司(Company)")]
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>
/// 仓库(Warehouse code)
/// </summary>
[Required]
[Display(Name = "仓库(Warehouse)")]
public string Warehouse { set; get; }
/// <summary>
/// 收货口(Warehouse Dock)
/// </summary>
[Required]
[Display(Name = "收货口(Dock)")]
public string Dock { set; get; }
/// <summary>
/// 时间窗口开始(Time Window Begin)
/// </summary>
[Required]
[Display(Name = "时间窗口开始(TimeWindowBegin)")]
public DateTime TimeWindowBegin { set; get; }
/// <summary>
/// 时间窗口结束(Time Window End)
/// </summary>
[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<ASNDetailsDTO> Details { get; set; }
/// <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>
/// 发货单号(ASN Number)
/// </summary>
[Required]
[Display(Name = "发货单号(AsnNumber)")]
public string AsnNumber { set; get; }
/// <summary>
/// 订单号(Purchase order number)
/// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; }
/// <summary>
/// 订单行(Purchase order Line)
/// </summary>
[Required]
[Display(Name = "订单行(PoLine)")]
public string PoLine { set; get; }
/// <summary>
/// 零件号(PartCode)
/// </summary>
[Required]
[Display(Name = "零件号(PartCode)")]
public string PartCode { set; get; }
/// <summary>
/// 批次(Lot number)
/// </summary>
[Required]
[Display(Name = "批次(Lot)")]
public string Lot { set; get; }
/// <summary>
/// 供应商批次(Supplier Lot)
/// </summary>
[Required]
[Display(Name = "供应商批次(SupplierLot)")]
public string SupplierLot { set; get; }
/// <summary>
/// 生产日期(Produce Date)
/// </summary>
[Required]
[Display(Name = "生产日期(ProductionDate)")]
public DateTime ProductionDate { set; get; }
/// <summary>
/// 计量单位(Unit of measure)
/// </summary>
[Required]
[Display(Name = "计量单位(Uom)")]
public string Uom { set; get; }
/// <summary>
/// 发货数量(Delivery quantity)
/// </summary>
[Required]
[Display(Name = "发货数量(DeliverQty)")]
public decimal DeliverQty { set; get; }
/// <summary>
/// 标包计量单位(standard package um)
/// </summary>
[Required]
[Display(Name = "标包计量单位(Standard Pack Uom)")]
public string StdPackUom { set; get; }
/// <summary>
/// 标包数量(standard package quantity)
/// </summary>
[Required]
[Display(Name = "标包数量(Standard Pack Qty)")]
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>
/// 状态(Status)
/// </summary>
[Required]
[Display(Name = "状态(Status)")]
public int Status { set; get; }
@ -17,6 +18,7 @@ namespace Win_in.Sfs.Scp.WebApi.ASNs
/// <summary>
/// 是否已读(IsRead)
/// </summary>
[Required]
[Display(Name = "是否已读(IsRead)")]
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>
/// 订单号(PoNumber)
/// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; }
/// <summary>
/// 供应商代码(SupplierCode)
/// </summary>
[Required]
[Display(Name = "供应商代码(SupplierCode)")]
public string SupplierCode { set; get; }
/// <summary>
/// 地点(Site)
/// </summary>
[Required]
[Display(Name = "地点(Site)")]
public string Site { set; get; }
/// <summary>
/// 公司(Company)
/// </summary>
[Required]
[Display(Name = "公司(Company)")]
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>
/// 订单类型(PoType)
/// </summary>
[Required]
[Display(Name = "订单类型(PoType)")]
public string PoType { set; get; }
/// <summary>
/// 订单状态(Status)
/// </summary>
[Required]
[Display(Name = "订单状态(Status)")]
public int Status { set; get; }
/// <summary>
/// 是否寄存订单(IsConsignment)
/// </summary>
[Required]
[Display(Name = "是否寄存订单(IsConsignment)")]
public bool IsConsignment { set; get; }
/// <summary>
/// 订单日期(OrderDate)
/// </summary>
[Required]
[Display(Name = "订单日期(OrderDate)")]
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>
/// 订单号(PoNumber)
/// </summary>
[Required]
[Display(Name = "订单号(PoNumber)")]
public string PoNumber { set; get; }
/// <summary>
/// 订单行(PoLine)
/// </summary>
[Required]
[Display(Name = "订单行(PoLine)")]
public string PoLine { set; get; }
/// <summary>
/// 零件号(PartCode)
/// </summary>
[Required]
[Display(Name = "零件号(PartCode)")]
public string PartCode { set; get; }
/// <summary>
/// 计量单位(Uom)
/// </summary>
[Required]
[Display(Name = "计量单位(Uom)")]
public string Uom { set; get; }
/// <summary>
/// 订单数量(Order Qty)
/// </summary>
[Required]
[Display(Name = "订单数量(OrderQty)")]
public decimal OrderQty { set; get; }
@ -44,18 +49,21 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary>
/// 已关闭数量(Closed Qty)
/// </summary>
[Required]
[Display(Name = "已关闭数量(Closed Qty)")]
public decimal ClosedQty { get; set; }
/// <summary>
/// 标包计量单位(Standard Pack Uom)
/// </summary>
[Required]
[Display(Name = "标包计量单位(Standard Pack Uom)")]
public string StdPackUom { set; get; }
/// <summary>
/// 标包数量(Standard Pack Qty)
/// </summary>
[Required]
[Display(Name = "标包数量(Standard Pack Qty)")]
public decimal StdPackQty { set; get; }
@ -86,6 +94,7 @@ namespace Win_in.Sfs.Scp.WebApi.POs
/// <summary>
/// 订单行状态(LineStatus)
/// </summary>
[Required]
[Display(Name = "订单行状态(LineStatus)")]
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>
/// 代码(Code)
/// </summary>
[Required]
[Display(Name = "代码")]
public string Code { get; set; }
/// <summary>
/// 地点(Site)
/// </summary>
[Required]
[Display(Name = "地点")]
public string Site { get; set; }
/// <summary>
/// 公司(Company)
/// </summary>
[Required]
[Display(Name = "公司")]
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>
/// 名称(Name)
/// </summary>
[Required]
[Display(Name = "名称")]
public string Name { get; set; }
@ -35,30 +36,35 @@ namespace Win_in.Sfs.Scp.WebApi.Parts
/// <summary>
/// 状态(Status)
/// </summary>
[Required]
[Display(Name = "状态")]
public string Status { get; set; }
/// <summary>
/// 制造件(Can make)
/// </summary>
[Required]
[Display(Name = "制造件")]
public bool CanMake { get; set; }
/// <summary>
/// 采购件(Can buy)
/// </summary>
[Required]
[Display(Name = "采购件")]
public bool CanBuy { get; set; }
/// <summary>
/// 计量单位(Uom)
/// </summary>
[Required]
[Display(Name = "计量单位")]
public string Uom { get; set; }
/// <summary>
/// ABC类(abcClass)
/// </summary>
[Required]
[Display(Name = "ABC类")]
public string AbcClass { get; set; }
@ -113,12 +119,14 @@ namespace Win_in.Sfs.Scp.WebApi.Parts
/// <summary>
/// 标包计量单位(Standard Pack Uom)
/// </summary>
[Required]
[Display(Name = "标包计量单位")]
public string StdPackUom { get; set; }
/// <summary>
/// 标包数量(Standard Pack Qty)
/// </summary>
[Required]
[Display(Name = "标包数量")]
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>
/// 澗새데뵀(RcNumber)
/// </summary>
[Required]
[Display(Name = "澗새데뵀(RcNumber)")]
public string RcNumber { set; get; }
/// <summary>
/// 랙새데뵀(AsnNumber)
/// </summary>
[Required]
[Display(Name = "랙새데뵀(AsnNumber)")]
public string AsnNumber { set; get; }
/// <summary>
/// 狼새셕뺍데뵀(RpNumber)
/// </summary>
[Required]
[Display(Name = "狼새셕뺍데뵀(RpNumber)")]
public string RpNumber { set; get; }
/// <summary>
/// 땐데뵀(PoNumber)
/// </summary>
[Required]
[Display(Name = "땐데뵀(PoNumber)")]
public string PoNumber { set; get; }
/// <summary>
/// 묩壇�덜쯤(PoNumber)
/// </summary>
[Required]
[Display(Name = "묩壇�덜쯤(SupplierCode)")]
public string SupplierCode { set; get; }
@ -42,6 +47,7 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts
/// "" :澗새데(Receipts)
/// "R":藁새데(Return Document)
/// </summary>
[Required]
[Display(Name = "澗새데잚謹(RcType)")]
public string RcType { set; get; }
@ -49,24 +55,28 @@ namespace Win_in.Sfs.Scp.WebApi.Receipts
/// <summary>
/// 뒈듐(Site)
/// </summary>
[Required]
[Display(Name = "뒈듐(Site)")]
public string Site { set; get; }
/// <summary>
/// 무鱇(Company)
/// </summary>
[Required]
[Display(Name = "무鱇(Company)")]
public string Company { set; get; }
/// <summary>
/// 땐데契(PoLine)
/// </summary>
[Required]
[Display(Name = "땐데契(PoLine)")]
public string PoLine { set; get; }
/// <summary>
/// 쥐숭뵀(PartCode)
/// </summary>
[Required]
[Display(Name = "쥐숭뵀(PartCode)")]
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>
/// 仓库(Warehouse)
/// </summary>
[Required]
[Display(Name = "仓库(Warehouse)")]
public string Warehouse { set; get; }
/// <summary>
/// 收货口(Dock)
/// </summary>
[Required]
[Display(Name = "收货口(Dock)")]
public string Dock { set; get; }
/// <summary>
/// 时间窗口开始(TimeWindowBegin)
/// </summary>
[Required]
[Display(Name = "时间窗口开始(TimeWindowBegin)")]
public DateTime TimeWindowBegin { set; get; }
/// <summary>
/// 时间窗口结束(TimeWindowEnd)
/// </summary>
[Required]
[Display(Name = "时间窗口结束(TimeWindowEnd)")]
public DateTime TimeWindowEnd { set; get; }
/// <summary>
/// 收货时间(ReceiveTime)
/// </summary>
[Required]
[Display(Name = "收货时间(ReceiveTime)")]
public DateTime ReceiveTime { set; get; }
/// <summary>
/// 批次(Lot)
/// </summary>
[Required]
[Display(Name = "批次(Lot)")]
public string Lot { set; get; }
/// <summary>
/// 供应商批次(SupplierLot)
/// </summary>
[Required]
[Display(Name = "供应商批次(SupplierLot)")]
public string SupplierLot { set; get; }
/// <summary>
/// 生产日期(ProductionDate)
/// </summary>
[Required]
[Display(Name = "生产日期(ProductionDate)")]
public DateTime ProductionDate { set; get; }
/// <summary>
/// 计量单位(Uom)
/// </summary>
[Required]
[Display(Name = "计量单位(Uom)")]
public string Uom { set; get; }
/// <summary>
/// 发货数量(DeliverQty)
/// </summary>
[Required]
[Display(Name = "发货数量(DeliverQty)")]
public decimal DeliverQty { set; get; }
/// <summary>
/// 收货数量(ReceiveQty)
/// </summary>
[Required]
[Display(Name = "收货数量(ReceiveQty)")]
public decimal ReceiveQty { set; get; }
/// <summary>
/// 标包计量单位(Standard Pack Uom)
/// </summary>
[Required]
[Display(Name = "标包计量单位(Standard Pack Uom)")]
public string StdPackUom { set; get; }
/// <summary>
/// 标包数量(Standard Pack Qty)
/// </summary>
[Required]
[Display(Name = "标包数量(Standard Pack Qty)")]
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>
/// 供应商代码(SupplierCode)
/// </summary>
[Required]
[Display(Name = "供应商代码(SupplierCode)")]
public string SupplierCode { set; get; }
/// <summary>
/// 零件号(PartCode)
/// </summary>
[Required]
[Display(Name = "零件号(PartCode)")]
public string PartCode { set; get; }
/// <summary>
/// 地点(Site)
/// </summary>
[Required]
[Display(Name = "地点")]
public string Site { get; set; }
/// <summary>
/// 公司(Company)
/// </summary>
[Required]
[Display(Name = "公司")]
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>
/// 供应商零件号(SupplierPartCode)
/// </summary>
[Required]
[Display(Name = "供应商零件号(SupplierPartCode)")]
public string SupplierPartCode { set; get; }
/// <summary>
/// 供应商标包计量单位(SupplierStdPackUom)
/// </summary>
[Required]
[Display(Name = "供应商标包计量单位(SupplierStdPackUom)")]
public string SupplierStdPackUom { get; set; }
/// <summary>
/// 供应商标包数量
/// </summary>
[Required]
[Display(Name = "供应商标包数量(SupplierStdPackQty)")]
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>
/// 代码(Code)
/// </summary>
[Required]
[Display(Name = "代码(Code)")]
public string Code { set; get; }
/// <summary>
/// 公司(Company)
/// </summary>
[Required]
[Display(Name = "公司(Company)")]
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>
/// 简称(Name)
/// </summary>
[Required]
[Display(Name = "简称(Name)")]
public string Name { set; get; }

Loading…
Cancel
Save