|
|
@ -854,8 +854,9 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
r.WriteLine("03:" + ISSUETYPE + ":" + bill.ISSUEPLACEID.Trim() + ":" + bill.ISSUEPLACE.Trim() + ":" + GetDateStr(bill.ISSUEDATE, "yyyyMMdd") + ":" + GetBillNum2(bill.NOBILL) + ":" + bill.PREPARDAT + ":" + bill.PAYABLEAT + "'");
|
|
|
|
r.WriteLine("03:" + ISSUETYPE + ":" + bill.ISSUEPLACEID.Trim() + ":" + bill.ISSUEPLACE.Trim() + ":" + GetDateStr(bill.ISSUEDATE, "yyyyMMdd") + ":" + GetBillNum2(bill.NOBILL) + ":" + bill.PREPARDAT + ":" + bill.PAYABLEAT + "'");
|
|
|
|
icount++;
|
|
|
|
icount++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//2024-09-13 参考韩工东胜7去掉ETD
|
|
|
|
r.WriteLine("11:" + bill.VESSELID + ":" + bill.VESSEL + ":" + bill.VOYNO + ":::::" + GetDateStr(bill.ETD, "yyyyMMdd") + ":::::'");
|
|
|
|
//r.WriteLine("11:" + bill.VESSELID + ":" + bill.VESSEL + ":" + bill.VOYNO + ":::::" + GetDateStr(bill.ETD, "yyyyMMdd") + ":::::'");
|
|
|
|
|
|
|
|
r.WriteLine("11:" + bill.VESSELID + ":" + bill.VESSEL + ":" + bill.VOYNO + "::::::::::'");
|
|
|
|
icount++;
|
|
|
|
icount++;
|
|
|
|
|
|
|
|
|
|
|
|
var DESTINATIONID = bill.DESTINATIONID;
|
|
|
|
var DESTINATIONID = bill.DESTINATIONID;
|
|
|
@ -917,7 +918,8 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("20::" + formatListStr(ShippingList, 6) + "'");
|
|
|
|
//2024-09-13 韩工确认最大行数6改为9
|
|
|
|
|
|
|
|
r.WriteLine("20::" + formatListStr(ShippingList, 9) + "'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -929,7 +931,8 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("21::" + formatListStr(ShippingList, 6) + "'");
|
|
|
|
//2024-09-13 韩工确认最大行数6改为9
|
|
|
|
|
|
|
|
r.WriteLine("21::" + formatListStr(ShippingList, 9) + "'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -940,7 +943,8 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("22::" + formatListStr(ShippingList, 6) + "'");
|
|
|
|
//2024-09-13 韩工确认最大行数6改为9
|
|
|
|
|
|
|
|
r.WriteLine("22::" + formatListStr(ShippingList, 9) + "'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -989,17 +993,23 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
if (kingweight == 0)
|
|
|
|
if (kingweight == 0)
|
|
|
|
kingweight = 100;
|
|
|
|
kingweight = 100;
|
|
|
|
|
|
|
|
|
|
|
|
r.WriteLine("41:1:" + bill.HSCODE + ":" + cargoid + ":" + bill.PKGS.ToString() + ":" + bill.KINDPKGS_EDI_CODE + ":" + bill.KINDPKGS + ":" + kingweight.ToString("0.###") + ":"
|
|
|
|
r.WriteLine("41:1:" + bill.HSCODE + ":" + cargoid + ":" + bill.PKGS.ToString() + ":" + bill.KINDPKGS_EDI_CODE + ":" + bill.KINDPKGS + ":" + kingweight.ToString() + ":"
|
|
|
|
+ bill.CBM.ToString("0.###") + "::::::" + bill.KGS.ToString("0.###") + ":::'");
|
|
|
|
+ bill.CBM.ToString() + "::::::" + bill.KGS.ToString() + ":::'");
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
|
|
if (cargoid == "R")
|
|
|
|
if (cargoid == "R")
|
|
|
|
|
|
|
|
{
|
|
|
|
r.WriteLine("43::::::::::" + bill.REEFERF + ":C:" + bill.TEMPSET + ":" + bill.TEMPMIN + ":" + bill.TEMPMAX + ":::::'");
|
|
|
|
r.WriteLine("43::::::::::" + bill.REEFERF + ":C:" + bill.TEMPSET + ":" + bill.TEMPMIN + ":" + bill.TEMPMAX + ":::::'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (cargoid == "D")
|
|
|
|
else if (cargoid == "D")
|
|
|
|
|
|
|
|
{
|
|
|
|
r.WriteLine("43:" + bill.DCLASS + ":" + bill.DPAGE + ":" + bill.DUNNO + ":" + bill.DLABEL + "::::::::::::'");
|
|
|
|
r.WriteLine("43:" + bill.DCLASS + ":" + bill.DPAGE + ":" + bill.DUNNO + ":" + bill.DLABEL + "::::::::::::'");
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.MARKS);
|
|
|
|
Shipping = formatEdiStr("txt", bill.MARKS);
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
@ -1131,7 +1141,7 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
if (InttrEdi.filetype == "E")
|
|
|
|
if (InttrEdi.filetype == "E")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("51:" + ctn.CNTRNO + ":" + ctn.CTNALLCODE + ":"
|
|
|
|
r.WriteLine("51:" + ctn.CNTRNO + ":" + ctn.CTNALLCODE + ":"
|
|
|
|
+ ctn.SEALNO + ":" + ctn.PKGS.ToString() + ":" + ctn.KGS.ToString("0.###") + "::" + ctn.CBM.ToString("0.###") + ":" + bill.EDIATTNEMAIL + "'");
|
|
|
|
+ ctn.SEALNO + ":" + ctn.PKGS.ToString() + ":" + ctn.KGS.ToString() + "::" + ctn.CBM.ToString() + ":" + bill.EDIATTNEMAIL + "'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
|
|
if (bill.CTNGOODSLIST != null && bill.CTNGOODSLIST.Count != 0)
|
|
|
|
if (bill.CTNGOODSLIST != null && bill.CTNGOODSLIST.Count != 0)
|
|
|
@ -1139,7 +1149,7 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
foreach (var ctnhs in bill.CTNGOODSLIST)
|
|
|
|
foreach (var ctnhs in bill.CTNGOODSLIST)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("53:" + ctnhs.HSCODE + ":" + ctnhs.PKGS.ToString() + ":"
|
|
|
|
r.WriteLine("53:" + ctnhs.HSCODE + ":" + ctnhs.PKGS.ToString() + ":"
|
|
|
|
+ ctnhs.KGS.ToString("0.###") + ":" + ctnhs.CBM.ToString("0.###") + ":" + ctnhs.KINDPKGS_EDI_CODE + ":" + ctnhs.KINDPKGS + "'");
|
|
|
|
+ ctnhs.KGS.ToString() + ":" + ctnhs.CBM.ToString() + ":" + ctnhs.KINDPKGS_EDI_CODE + ":" + ctnhs.KINDPKGS + "'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
Shipping = formatEdiStr("txt", ctnhs.DESCRIPTION);
|
|
|
|
Shipping = formatEdiStr("txt", ctnhs.DESCRIPTION);
|
|
|
|
ShippingList = formatlengthStr(Shipping, 70);
|
|
|
|
ShippingList = formatlengthStr(Shipping, 70);
|
|
|
@ -1183,13 +1193,20 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
r.WriteLine("53:" + bill.HSCODE + ":" + ctn.PKGS.ToString() + ":"
|
|
|
|
|
|
|
|
+ ctn.KGS.ToString() + ":" + ctn.CBM.ToString() + ":" + ctn.KINDPKGS_EDI_CODE + ":" + ctn.KINDPKGS + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!string.IsNullOrEmpty(ctn.CNTRNO))
|
|
|
|
if (!string.IsNullOrEmpty(ctn.CNTRNO))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("51:" + ctn.CNTRNO + ":" + ctn.CTNALLCODE + ":"
|
|
|
|
r.WriteLine("51:" + ctn.CNTRNO + ":" + ctn.CTNALLCODE + ":"
|
|
|
|
+ ctn.SEALNO + ":" + ctn.PKGS.ToString() + ":" + ctn.KGS.ToString("0.###") + ":'");
|
|
|
|
+ ctn.SEALNO + ":" + ctn.PKGS.ToString() + ":" + ctn.KGS.ToString() + ":'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1198,7 +1215,7 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
//icount = icount + 1;
|
|
|
|
r.WriteLine("99:" + icount.ToString() + "'");
|
|
|
|
r.WriteLine("99:" + icount.ToString() + "'");
|
|
|
|
r.Close();
|
|
|
|
r.Close();
|
|
|
|
f.Close();
|
|
|
|
f.Close();
|
|
|
|