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.
41 lines
821 B
41 lines
821 B
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Win_in.Sfs.Scp.WebApi.Asns;
|
|
|
|
/// <summary>
|
|
/// Transaction Set Header
|
|
/// 事务集合头
|
|
/// </summary>
|
|
public class ST
|
|
{
|
|
/// <summary>
|
|
/// Transaction Set Id
|
|
/// 事务类型ID
|
|
/// </summary>
|
|
[StringLength(3, MinimumLength = 3)]
|
|
public string ST01 { get; } = "856";
|
|
|
|
/// <summary>
|
|
/// Transaction Set Control Number
|
|
/// 事务编号
|
|
/// </summary>
|
|
[StringLength(9, MinimumLength = 4)]
|
|
public string ST02 { get; set; }
|
|
|
|
public ST()
|
|
{
|
|
|
|
}
|
|
|
|
public ST(string transactionCode)
|
|
{
|
|
ST02 = transactionCode;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "ST"
|
|
+ X12Const.ElementSeparator + ST01
|
|
+ X12Const.ElementSeparator + ST02;
|
|
}
|
|
}
|