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.
38 lines
866 B
38 lines
866 B
3 years ago
|
using System;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
||
|
namespace Win_in.Sfs.Scp.WebApi.Asns;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Interchange Control Trailer
|
||
|
/// 报文尾
|
||
|
/// </summary>
|
||
|
public class IEA
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Number of Functional Groups in Transmission
|
||
|
/// 包含的功能组数量
|
||
|
/// </summary>
|
||
|
[StringLength(5, MinimumLength = 1)]
|
||
|
public string IEA01 { get; set; } = "1";
|
||
|
|
||
|
/// <summary>
|
||
|
/// Transmission Control Number
|
||
|
/// 报文编号
|
||
|
/// </summary>
|
||
|
[StringLength(9, MinimumLength = 9)]
|
||
|
public string IEA02 { get; set; }
|
||
|
|
||
|
public IEA(string code, int count = 1)
|
||
|
{
|
||
|
IEA01 = count.ToString();
|
||
|
IEA02 = code;
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "IEA"
|
||
|
+ X12Const.ElementSeparator + IEA01
|
||
|
+ X12Const.ElementSeparator + IEA02;
|
||
|
}
|
||
|
}
|