Browse Source

[add]ASN_X12_856_3060 entity defination

master
贾荣国Home 3 years ago
parent
commit
22f16ff24f
  1. 28
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ASN_X12_856_3060.cs
  2. 16
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/BSN.cs
  3. 14
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CLD.cs
  4. 16
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CTT.cs
  5. 16
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/DTM.cs
  6. 18
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FOB.cs
  7. 28
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FunctionalGroup.cs
  8. 12
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GE.cs
  9. 18
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GS.cs
  10. 26
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL.cs
  11. 16
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_I.cs
  12. 22
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_S.cs
  13. 13
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_T.cs
  14. 25
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISA.cs
  15. 11
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISE.cs
  16. 12
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/LIN.cs
  17. 29
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/MEA.cs
  18. 26
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/N1.cs
  19. 16
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/PRF.cs
  20. 25
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/REF.cs
  21. 12
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SE.cs
  22. 18
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SN1.cs
  23. 12
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ST.cs
  24. 32
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ShipNotice.cs
  25. 19
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD1.cs
  26. 18
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD3.cs
  27. 23
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD5.cs
  28. 27
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TransactionSet.cs

28
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ASN_X12_856_3060.cs

@ -0,0 +1,28 @@
using System.Collections.Generic;
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// ASN X12 856-3060
/// 供应商发货单
/// </summary>
public class ASN_X12_856_3060
{
/// <summary>
/// Interchange Control Header
/// 报文头
/// </summary>
public ISA ISA { get; set; }
/// <summary>
/// Functional Group
/// 功能组列表
/// </summary>
public List<FunctionalGroup> SegmentGroups { get; set; }
/// <summary>
/// Interchange Control Trailer
/// 报文尾
/// </summary>
public ISE ISE { get; set; }
}

16
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/BSN.cs

@ -0,0 +1,16 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Beginning Segment
/// 事务头
/// </summary>
public class BSN
{
public string BSN01 { get; set; }
public string BSN02 { get; set; }
public string BSN03 { get; set; }
public string BSN04 { get; set; }
public string BSN05 { get; set; }
public string BSN06 { get; set; }
public string BSN07 { get; set; }
}

14
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CLD.cs

@ -0,0 +1,14 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Load Detail
/// 装载细节
/// </summary>
public class CLD
{
public string CLD01 { get; set; }
public string CLD02 { get; set; }
public string CLD03 { get; set; }
public string CLD04 { get; set; }
public string CLD05 { get; set; }
}

16
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CTT.cs

@ -0,0 +1,16 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Transaction Totals
/// 事务汇总
/// </summary>
public class CTT
{
public string CTT01 { get; set; }
public string CTT02 { get; set; }
public string CTT03 { get; set; }
public string CTT04 { get; set; }
public string CTT05 { get; set; }
public string CTT06 { get; set; }
public string CTT07 { get; set; }
}

16
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/DTM.cs

@ -0,0 +1,16 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Date And Time
/// 日期时间
/// </summary>
public class DTM
{
public string DTM01 { get; set; }
public string DTM02 { get; set; }
public string DTM03 { get; set; }
public string DTM04 { get; set; }
public string DTM05 { get; set; }
public string DTM06 { get; set; }
public string DTM07 { get; set; }
}

18
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FOB.cs

@ -0,0 +1,18 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// F.O.B Related Instructions
/// FOB 相关指令
/// </summary>
public class FOB
{
public string FOB01 { get; set; }
public string FOB02 { get; set; }
public string FOB03 { get; set; }
public string FOB04 { get; set; }
public string FOB05 { get; set; }
public string FOB06 { get; set; }
public string FOB07 { get; set; }
public string FOB08 { get; set; }
public string FOB09 { get; set; }
}

28
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FunctionalGroup.cs

@ -0,0 +1,28 @@
using System.Collections.Generic;
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Functional Group
/// 功能组
/// </summary>
public class FunctionalGroup
{
/// <summary>
/// Function Group Header
/// 功能组头
/// </summary>
public GS GS { get; set; }
/// <summary>
/// Transaction Set
/// 事务集合列表
/// </summary>
public List<TransactionSet> TransactionSets { get; set; }
/// <summary>
/// Function Group Trailer
/// 功能组尾
/// </summary>
public GE GE { get; set; }
}

12
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GE.cs

@ -0,0 +1,12 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Function Group Trailer
/// 功能组尾
/// </summary>
public class GE
{
public string GE01 { get; set; }
public string GE02 { get; set; }
}

18
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GS.cs

@ -0,0 +1,18 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Function Group Header
/// 功能组头
/// </summary>
public class GS
{
public string GS01 { get; set; }
public string GS02 { get; set; }
public string GS03 { get; set; }
public string GS04 { get; set; }
public string GS05 { get; set; }
public string GS06 { get; set; }
public string GS07 { get; set; }
public string GS08 { get; set; }
}

26
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL.cs

@ -0,0 +1,26 @@
using JetBrains.Annotations;
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Hierarchical Level
/// 层级结构
/// </summary>
public abstract class HL
{
public HL(LevelType hl03)
{
HL03 = hl03.ToString();
}
public string HL01 { get; set; }
public string HL02 { get; set; }
public string HL03 { get; }
public string HL04 { get; set; }
public enum LevelType
{
S,
T,
I
}
}

16
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_I.cs

@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace Win_in.Sfs.Scp.WebApi.Asns;
public class HL_I:HL
{
public HL_I() : base(LevelType.I)
{
}
public LIN LIN { get; set; }
public SN1 SN1 { get; set; }
public PRF PRF { get; set; }
public CLD CLD { get; set; }
public List<REF> REF_LSs { get; set; }
}

22
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_S.cs

@ -0,0 +1,22 @@
using System.Collections.Generic;
namespace Win_in.Sfs.Scp.WebApi.Asns;
public class HL_S:HL
{
public HL_S() : base(LevelType.S)
{
}
public MEA MEA_G { get; set; }
public MEA MEA_N { get; set; }
public TD1 TD1 { get; set; }
public TD5 TD5 { get; set; }
public TD3 TD3 { get; set; }
public REF REF_BM { get; set; }
public REF REF_PK { get; set; }
public N1 N1_SF { get; set; }
public N1 N1_ST { get; set; }
public List<HL_T> HL_Ts { get; set; }
public List<HL_I> HL_Is { get; set; }
}

13
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_T.cs

@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace Win_in.Sfs.Scp.WebApi.Asns;
public class HL_T:HL
{
public HL_T() : base(LevelType.T)
{
}
public REF REF_LS { get; set; }
public List<HL_I> HL_Is { get; set; }
}

25
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISA.cs

@ -0,0 +1,25 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Interchange Control Header
/// 报文头
/// </summary>
public class ISA
{
public string ISA01 { get; set; }
public string ISA02 { get; set; }
public string ISA03 { get; set; }
public string ISA04 { get; set; }
public string ISA05 { get; set; }
public string ISA06 { get; set; }
public string ISA07 { get; set; }
public string ISA08 { get; set; }
public string ISA09 { get; set; }
public string ISA10 { get; set; }
public string ISA11 { get; set; }
public string ISA12 { get; set; }
public string ISA13 { get; set; }
public string ISA14 { get; set; }
public string ISA15 { get; set; }
public string ISA16 { get; set; }
}

11
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISE.cs

@ -0,0 +1,11 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Interchange Control Trailer
/// 报文尾
/// </summary>
public class ISE
{
public string ISE01 { get; set; }
public string ISE02 { get; set; }
}

12
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/LIN.cs

@ -0,0 +1,12 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Line Item Detail
/// 行物品细节
/// </summary>
public class LIN
{
public string LIN01 { get; set; }
public string LIN02 { get; set; }
public string LIN03 { get; set; }
}

29
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/MEA.cs

@ -0,0 +1,29 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Measurements
/// 计量信息
/// </summary>
public class MEA
{
public MEA(MeaType mea02)
{
MEA02 = mea02.ToString();
}
public string MEA01 { get; set; }
public string MEA02 { get; }
public string MEA03 { get; set; }
public string MEA04 { get; set; }
public string MEA05 { get; set; }
public string MEA06 { get; set; }
public string MEA07 { get; set; }
public string MEA08 { get; set; }
public string MEA09 { get; set; }
public string MEA10 { get; set; }
public enum MeaType
{
G,
N
}
}

26
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/N1.cs

@ -0,0 +1,26 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Name
/// 名称
/// </summary>
public class N1
{
public N1(NameType n101)
{
N101 = n101.ToString();
}
public string N101 { get; }
public string N102 { get; set; }
public string N103 { get; set; }
public string N104 { get; set; }
public string N105 { get; set; }
public string N106 { get; set; }
public enum NameType
{
SF,
ST
}
}

16
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/PRF.cs

@ -0,0 +1,16 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Purchase Order
/// 采购订单
/// </summary>
public class PRF
{
public string PRF01 { get; set; }
public string PRF02 { get; set; }
public string PRF03 { get; set; }
public string PRF04 { get; set; }
public string PRF05 { get; set; }
public string PRF06 { get; set; }
public string PRF07 { get; set; }
}

25
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/REF.cs

@ -0,0 +1,25 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Reference
/// 参考信息
/// </summary>
public class REF
{
public REF(RefType ref01)
{
REF01 = ref01.ToString();
}
public string REF01 { get; }
public string REF02 { get; set; }
public string REF03 { get; set; }
public string REF04 { get; set; }
public enum RefType
{
BM,
PK,
LS,
LT
}
}

12
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SE.cs

@ -0,0 +1,12 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Transaction Set Trailer
/// 事务集合尾
/// </summary>
public class SE
{
public string SE01 { get; set; }
public string SE02 { get; set; }
}

18
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SN1.cs

@ -0,0 +1,18 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Item detail Shipment
/// 物品细节发运
/// </summary>
public class SN1
{
public string SN101 { get; set; }
public string SN102 { get; set; }
public string SN103 { get; set; }
public string SN104 { get; set; }
public string SN105 { get; set; }
public string SN106 { get; set; }
public string SN107 { get; set; }
public string SN108 { get; set; }
public string SN109 { get; set; }
}

12
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ST.cs

@ -0,0 +1,12 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Transaction Set Header
/// 事务集合头
/// </summary>
public class ST
{
public string ST01 { get; set; }
public string ST02 { get; set; }
}

32
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ShipNotice.cs

@ -0,0 +1,32 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Ship Notice
/// 发货单
/// </summary>
public class ShipNotice
{
/// <summary>
/// Beginning Segment
/// 事务头
/// </summary>
public BSN BSN { get; set; }
/// <summary>
/// Shipped Date And Time
/// 发货日期时间
/// </summary>
public DTM DTM { get; set; }
/// <summary>
/// Hierarchical Level of Shipment
/// 发货单层级
/// </summary>
public HL HL_S { get; set; }
/// <summary>
/// Transaction Totals
/// 事务汇总
/// </summary>
public CTT CTT { get; set; }
}

19
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD1.cs

@ -0,0 +1,19 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Carrier Details (quantity & weight)
/// 载体细节(数量和重量)
/// </summary>
public class TD1
{
public string TD101 { get; set; }
public string TD102 { get; set; }
public string TD103 { get; set; }
public string TD104 { get; set; }
public string TD105 { get; set; }
public string TD106 { get; set; }
public string TD107 { get; set; }
public string TD108 { get; set; }
public string TD109 { get; set; }
public string TD110 { get; set; }
}

18
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD3.cs

@ -0,0 +1,18 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Carrier Details (routing)
/// 载体细节(路径)
/// </summary>
public class TD3
{
public string TD301 { get; set; }
public string TD302 { get; set; }
public string TD303 { get; set; }
public string TD304 { get; set; }
public string TD305 { get; set; }
public string TD306 { get; set; }
public string TD307 { get; set; }
public string TD308 { get; set; }
public string TD309 { get; set; }
}

23
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD5.cs

@ -0,0 +1,23 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Carrier Details (equipment)
/// 载体细节(设备)
/// </summary>
public class TD5
{
public string TD501 { get; set; }
public string TD502 { get; set; }
public string TD503 { get; set; }
public string TD504 { get; set; }
public string TD505 { get; set; }
public string TD506 { get; set; }
public string TD507 { get; set; }
public string TD508 { get; set; }
public string TD509 { get; set; }
public string TD510 { get; set; }
public string TD511 { get; set; }
public string TD512 { get; set; }
public string TD513 { get; set; }
public string TD514 { get; set; }
}

27
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TransactionSet.cs

@ -0,0 +1,27 @@
namespace Win_in.Sfs.Scp.WebApi.Asns;
/// <summary>
/// Transaction Set
/// 事务集合
/// </summary>
public class TransactionSet
{
/// <summary>
/// Transaction Set Header
/// 事务集合头
/// </summary>
public ST ST { get; set; }
/// <summary>
/// Ship Notice
/// 发货单列表
/// </summary>
public ShipNotice ShipNotice { get; set; }
/// <summary>
/// Transaction Set Trailer
/// 事务集合尾
/// </summary>
public SE SE { get; set; }
}
Loading…
Cancel
Save