diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/AsnFactory.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/AsnFactory.cs index 4ef5cd8..9365ed6 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/AsnFactory.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Asns/AsnFactory.cs @@ -160,7 +160,8 @@ namespace Win_in.Sfs.Scp.WebApi .SetST(shipNoticeCode) .SetBSN(noticeNumber, datetime, purpose) .SetDTM(datetime, datetimeType); - shipNotice.AddSegment(4); + + shipNotice.AddSegment(5); return shipNotice; } diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/SE.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/SE.cs index 68c20e8..22c1e31 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/SE.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/SE.cs @@ -13,7 +13,7 @@ public class SE /// 段落数量 /// [StringLength(9,MinimumLength = 1)] - public string SE01 { get; set; } = "1"; + public string SE01 { get; set; } /// /// Transaction Set Control Number @@ -27,7 +27,7 @@ public class SE } - public SE(string transactionCode ,int segmentCount = 1) + public SE(string transactionCode ,int segmentCount) { SE01 = segmentCount.ToString(); SE02 = transactionCode; diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/ShipNoticeExtensions.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/ShipNoticeExtensions.cs index 5cc2dea..cc3862f 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/ShipNoticeExtensions.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/ShipNotices/ShipNoticeExtensions.cs @@ -4,36 +4,40 @@ namespace Win_in.Sfs.Scp.WebApi.Asns; public static class ShipNoticeExtensions { - public static ShipNotice SetST(this ShipNotice shipNotice,string shipNoticeCode) + public static ShipNotice SetST(this ShipNotice shipNotice, string shipNoticeCode) { shipNotice.ST = new ST(shipNoticeCode); return shipNotice; } - public static ShipNotice SetBSN(this ShipNotice shipNotice,string noticeNumber, DateTime datetime, string purpose = "00") + public static ShipNotice SetBSN(this ShipNotice shipNotice, string noticeNumber, DateTime datetime, string purpose = "00") { shipNotice.BSN = new BSN(noticeNumber, datetime, purpose); - return shipNotice; } + return shipNotice; + } - public static ShipNotice SetDTM(this ShipNotice shipNotice, DateTime dateTime,string datetimeType="011") + public static ShipNotice SetDTM(this ShipNotice shipNotice, DateTime dateTime, string datetimeType = "011") { shipNotice.DTM = new DTM(dateTime, datetimeType); - return shipNotice;} - - public static ShipNotice AddShipment(this ShipNotice shipNotice,Shipment shipment) + return shipNotice; + } + + public static ShipNotice AddShipment(this ShipNotice shipNotice, Shipment shipment) { shipNotice.Shipment = shipment; - return shipNotice;} + return shipNotice; + } public static ShipNotice SetCTT(this ShipNotice shipNotice) { - shipNotice.CTT = new CTT(shipNotice.HlCount,shipNotice.HashTotal); + shipNotice.CTT = new CTT(shipNotice.HlCount, shipNotice.HashTotal); return shipNotice; } public static ShipNotice SetSE(this ShipNotice shipNotice, string shipNoticeCode) { - shipNotice.SE = new SE(shipNoticeCode,shipNotice.SegmentCount); - return shipNotice; } - + shipNotice.SE = new SE(shipNoticeCode, shipNotice.SegmentCount); + return shipNotice; + } + } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj index 5a23123..39484fe 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj @@ -7,8 +7,8 @@ Win_in.Sfs.Scp.WebApi true Win_in.Sfs.Scp.WebApi-4681b4fd-151f-4221-84a4-929d86723e4c - 1.22.0615.1 - 1.22.0615.1 + 1.22.0620.1 + 1.22.0620.1