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.
40 lines
876 B
40 lines
876 B
3 years ago
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
||
|
namespace Win_in.Sfs.Scp.WebApi.Asns;
|
||
3 years ago
|
|
||
|
/// <summary>
|
||
|
/// Line Item Detail
|
||
|
/// 行物品细节
|
||
|
/// </summary>
|
||
|
public class LIN
|
||
|
{
|
||
3 years ago
|
public string LIN01 { get; } = string.Empty;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Product/Service Id Qualifier
|
||
|
/// 零件号限定符
|
||
|
/// </summary>
|
||
|
[StringLength(2, MinimumLength = 2)]
|
||
|
public string LIN02 { get; } = "BP";
|
||
|
|
||
|
/// <summary>
|
||
|
/// Product/Service Id
|
||
|
/// 零件号
|
||
|
/// </summary>
|
||
|
[StringLength(30, MinimumLength = 1)]
|
||
3 years ago
|
public string LIN03 { get; set; }
|
||
3 years ago
|
|
||
|
public LIN(string itemCode)
|
||
|
{
|
||
|
LIN03 = itemCode;
|
||
|
}
|
||
|
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "LIN"
|
||
|
+ X12Const.ElementSeparator + LIN01
|
||
|
+ X12Const.ElementSeparator + LIN02
|
||
|
+ X12Const.ElementSeparator + LIN03;
|
||
|
}
|
||
3 years ago
|
}
|