You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Win_in.Sfs.Scp.WebApi.Asns;
|
|
|
|
/// <summary>
|
|
/// Item detail Shipment
|
|
/// 物品细节发运
|
|
/// </summary>
|
|
public class SN1
|
|
{
|
|
public string SN101 { get; } = string.Empty;
|
|
|
|
|
|
/// <summary>
|
|
/// Number Of Units Shipped
|
|
/// 发货数量
|
|
/// </summary>
|
|
[StringLength(10, MinimumLength = 1)]
|
|
public string SN102 { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Unit Of Measure Code
|
|
/// EA = Each
|
|
/// PK = Package
|
|
/// CA = Case
|
|
/// LO = Lot
|
|
/// PL = Pallet
|
|
/// 计量单位代码
|
|
/// </summary>
|
|
[StringLength(2, MinimumLength = 2)]
|
|
public string SN103 { get; set; }
|
|
|
|
/// <summary>
|
|
/// Quantity Shipped To Date
|
|
/// 累计已发数量
|
|
/// </summary>
|
|
[StringLength(9, MinimumLength = 1)]
|
|
public string SN104 { get; set; }
|
|
|
|
public string SN105 { get;}
|
|
public string SN106 { get;}
|
|
public string SN107 { get;}
|
|
public string SN108 { get;}
|
|
|
|
public SN1(int qty,string uom,int totalQty)
|
|
{
|
|
SN102 = qty.ToString();
|
|
SN103 = uom;
|
|
SN104 = totalQty.ToString();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "SN1"
|
|
+ X12Const.ElementSeparator + SN101
|
|
+ X12Const.ElementSeparator + SN102
|
|
+ X12Const.ElementSeparator + SN103;
|
|
}
|
|
}
|