diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ASN_X12_856_3060.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ASN_X12_856_3060.cs new file mode 100644 index 0000000..8c60e50 --- /dev/null +++ b/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; + +/// +/// ASN X12 856-3060 +/// 供应商发货单 +/// +public class ASN_X12_856_3060 +{ + /// + /// Interchange Control Header + /// 报文头 + /// + public ISA ISA { get; set; } + + /// + /// Functional Group + /// 功能组列表 + /// + public List SegmentGroups { get; set; } + + /// + /// Interchange Control Trailer + /// 报文尾 + /// + public ISE ISE { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/BSN.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/BSN.cs new file mode 100644 index 0000000..16b3e37 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/BSN.cs @@ -0,0 +1,16 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Beginning Segment +/// 事务头 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CLD.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CLD.cs new file mode 100644 index 0000000..0d360f4 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CLD.cs @@ -0,0 +1,14 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Load Detail +/// 装载细节 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CTT.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CTT.cs new file mode 100644 index 0000000..1e49025 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/CTT.cs @@ -0,0 +1,16 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Transaction Totals +/// 事务汇总 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/DTM.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/DTM.cs new file mode 100644 index 0000000..3f32520 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/DTM.cs @@ -0,0 +1,16 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Date And Time +/// 日期时间 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FOB.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FOB.cs new file mode 100644 index 0000000..a034063 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FOB.cs @@ -0,0 +1,18 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// F.O.B Related Instructions +/// FOB 相关指令 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FunctionalGroup.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/FunctionalGroup.cs new file mode 100644 index 0000000..56b9f96 --- /dev/null +++ b/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; + +/// +/// Functional Group +/// 功能组 +/// +public class FunctionalGroup +{ + /// + /// Function Group Header + /// 功能组头 + /// + public GS GS { get; set; } + + /// + /// Transaction Set + /// 事务集合列表 + /// + public List TransactionSets { get; set; } + + /// + /// Function Group Trailer + /// 功能组尾 + /// + public GE GE { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GE.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GE.cs new file mode 100644 index 0000000..869d5dd --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GE.cs @@ -0,0 +1,12 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Function Group Trailer +/// 功能组尾 +/// +public class GE +{ + public string GE01 { get; set; } + public string GE02 { get; set; } + +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GS.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GS.cs new file mode 100644 index 0000000..76e3d7b --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/GS.cs @@ -0,0 +1,18 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Function Group Header +/// 功能组头 +/// +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; } + +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL.cs new file mode 100644 index 0000000..a65f376 --- /dev/null +++ b/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; + +/// +/// Hierarchical Level +/// 层级结构 +/// +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 + } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_I.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_I.cs new file mode 100644 index 0000000..a778e2a --- /dev/null +++ b/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_LSs { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_S.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_S.cs new file mode 100644 index 0000000..a88f887 --- /dev/null +++ b/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_Ts { get; set; } + public List HL_Is { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_T.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/HL_T.cs new file mode 100644 index 0000000..75f5cf9 --- /dev/null +++ b/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_Is { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISA.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISA.cs new file mode 100644 index 0000000..263bc0c --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISA.cs @@ -0,0 +1,25 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Interchange Control Header +/// 报文头 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISE.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISE.cs new file mode 100644 index 0000000..0aa2712 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ISE.cs @@ -0,0 +1,11 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Interchange Control Trailer +/// 报文尾 +/// +public class ISE +{ + public string ISE01 { get; set; } + public string ISE02 { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/LIN.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/LIN.cs new file mode 100644 index 0000000..20b6813 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/LIN.cs @@ -0,0 +1,12 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Line Item Detail +/// 行物品细节 +/// +public class LIN +{ + public string LIN01 { get; set; } + public string LIN02 { get; set; } + public string LIN03 { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/MEA.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/MEA.cs new file mode 100644 index 0000000..328d556 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/MEA.cs @@ -0,0 +1,29 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Measurements +/// 计量信息 +/// +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 + } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/N1.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/N1.cs new file mode 100644 index 0000000..ee845d4 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/N1.cs @@ -0,0 +1,26 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Name +/// 名称 +/// +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 + } + +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/PRF.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/PRF.cs new file mode 100644 index 0000000..a2a08bf --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/PRF.cs @@ -0,0 +1,16 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Purchase Order +/// 采购订单 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/REF.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/REF.cs new file mode 100644 index 0000000..d3d3891 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/REF.cs @@ -0,0 +1,25 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Reference +/// 参考信息 +/// +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 + } +} diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SE.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SE.cs new file mode 100644 index 0000000..275aac8 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SE.cs @@ -0,0 +1,12 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Transaction Set Trailer +/// 事务集合尾 +/// +public class SE +{ + public string SE01 { get; set; } + public string SE02 { get; set; } + +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SN1.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SN1.cs new file mode 100644 index 0000000..703237c --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/SN1.cs @@ -0,0 +1,18 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Item detail Shipment +/// 物品细节发运 +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ST.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ST.cs new file mode 100644 index 0000000..5354099 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ST.cs @@ -0,0 +1,12 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Transaction Set Header +/// 事务集合头 +/// +public class ST +{ + public string ST01 { get; set; } + public string ST02 { get; set; } + +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ShipNotice.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ShipNotice.cs new file mode 100644 index 0000000..f40f2f6 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/ShipNotice.cs @@ -0,0 +1,32 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Ship Notice +/// 发货单 +/// +public class ShipNotice +{ + /// + /// Beginning Segment + /// 事务头 + /// + public BSN BSN { get; set; } + + /// + /// Shipped Date And Time + /// 发货日期时间 + /// + public DTM DTM { get; set; } + + /// + /// Hierarchical Level of Shipment + /// 发货单层级 + /// + public HL HL_S { get; set; } + + /// + /// Transaction Totals + /// 事务汇总 + /// + public CTT CTT { get; set; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD1.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD1.cs new file mode 100644 index 0000000..37b271b --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD1.cs @@ -0,0 +1,19 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Carrier Details (quantity & weight) +/// 载体细节(数量和重量) +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD3.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD3.cs new file mode 100644 index 0000000..5e22e83 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD3.cs @@ -0,0 +1,18 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Carrier Details (routing) +/// 载体细节(路径) +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD5.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD5.cs new file mode 100644 index 0000000..4e74bc6 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TD5.cs @@ -0,0 +1,23 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Carrier Details (equipment) +/// 载体细节(设备) +/// +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; } +} \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TransactionSet.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TransactionSet.cs new file mode 100644 index 0000000..1aa3b05 --- /dev/null +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain/Asns/TransactionSet.cs @@ -0,0 +1,27 @@ +namespace Win_in.Sfs.Scp.WebApi.Asns; + +/// +/// Transaction Set +/// 事务集合 +/// +public class TransactionSet +{ + /// + /// Transaction Set Header + /// 事务集合头 + /// + public ST ST { get; set; } + + /// + /// Ship Notice + /// 发货单列表 + /// + public ShipNotice ShipNotice { get; set; } + + /// + /// Transaction Set Trailer + /// 事务集合尾 + /// + public SE SE { get; set; } + +} \ No newline at end of file