using System.ComponentModel.DataAnnotations; namespace Win_in.Sfs.Scp.WebApi.Asns; /// /// Line Item Detail /// 行物品细节 /// public class LIN { public string LIN01 { get; } = string.Empty; /// /// Product/Service Id Qualifier /// 零件号限定符 /// [StringLength(2, MinimumLength = 2)] public string LIN02 { get; } = "BP"; /// /// Product/Service Id /// 零件号 /// [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; } }