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

using System.ComponentModel.DataAnnotations;
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Line Item Detail
/// 行物品细节
/// </summary>
public class LIN
{
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)]
public string LIN03 { get; set; }
public LIN(string itemCode)
{
LIN03 = itemCode;
}
public override string ToString()
{
return "LIN"
+ X12Const.ElementSeparator + LIN01
+ X12Const.ElementSeparator + LIN02
+ X12Const.ElementSeparator + LIN03;
}
}