|
|
@ -827,6 +827,9 @@ namespace Myshipping.Application.EDI
|
|
|
|
r.WriteLine("TSR+30+2'");
|
|
|
|
r.WriteLine("TSR+30+2'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//2024-05-22 少了一行计数追加上 JHQ
|
|
|
|
|
|
|
|
//icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
|
|
var str_pay = "";
|
|
|
|
var str_pay = "";
|
|
|
|
if (bill.BLFRT.IndexOf("PREPAID") >= 0)
|
|
|
|
if (bill.BLFRT.IndexOf("PREPAID") >= 0)
|
|
|
|
str_pay = bill.PREPARDAT;
|
|
|
|
str_pay = bill.PREPARDAT;
|
|
|
@ -869,9 +872,9 @@ namespace Myshipping.Application.EDI
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*件重尺*/
|
|
|
|
/*件重尺*/
|
|
|
|
r.WriteLine("CNT+7:" + Math.Round(bill.KGS,3) + ":KGM'");//按照四舍五入的国际标准
|
|
|
|
r.WriteLine("CNT+7:" + Math.Round(bill.KGS, 3) + ":KGM'");//按照四舍五入的国际标准
|
|
|
|
r.WriteLine("CNT+11:" + bill.PKGS.ToString() + "'");
|
|
|
|
r.WriteLine("CNT+11:" + bill.PKGS.ToString() + "'");
|
|
|
|
r.WriteLine("CNT+15:" + Math.Round(bill.CBM,3) + ":MTQ'");
|
|
|
|
r.WriteLine("CNT+15:" + Math.Round(bill.CBM, 3) + ":MTQ'");
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 3;
|
|
|
|
icount = icount + 3;
|
|
|
|
|
|
|
|
|
|
|
@ -906,23 +909,31 @@ namespace Myshipping.Application.EDI
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (InttrEdi.UseForWarderCode)
|
|
|
|
if (bill.CARRIEREDICODE == "ANNU" || bill.CARRIEREDICODE == "CMDU" || bill.CARRIEREDICODE == "CHNL")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("RFF+FF:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
r.WriteLine("RFF+FF:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
r.WriteLine("RFF+ON:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 2;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bill.ORDERNO.Trim() != "")
|
|
|
|
if (InttrEdi.UseForWarderCode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("RFF+FF:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
r.WriteLine("RFF+FF:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
r.WriteLine("RFF+ON:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
r.WriteLine("RFF+ON:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
icount = icount + 2;
|
|
|
|
icount = icount + 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (bill.ORDERNO.Trim() != "")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
r.WriteLine("RFF+FF:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
|
|
|
|
r.WriteLine("RFF+ON:" + bill.ORDERNO.Trim() + "'");
|
|
|
|
|
|
|
|
icount = icount + 2;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (bill.CARRIEREDICODE != "COSU")
|
|
|
|
if (bill.CARRIEREDICODE != "COSU" && !string.IsNullOrWhiteSpace(bill.MBLNO))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bill.CARRIEREDICODE == "HLCU")
|
|
|
|
if (bill.CARRIEREDICODE == "HLCU")
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -936,6 +947,7 @@ namespace Myshipping.Application.EDI
|
|
|
|
}
|
|
|
|
}
|
|
|
|
icount = icount + 2;
|
|
|
|
icount = icount + 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
r.WriteLine("RFF+CT:" + bill.CONTRACTNO + "'");
|
|
|
|
r.WriteLine("RFF+CT:" + bill.CONTRACTNO + "'");
|
|
|
|
|
|
|
|
|
|
|
|
if (bill.BLFRT.IndexOf("PREPAID") >= 0)
|
|
|
|
if (bill.BLFRT.IndexOf("PREPAID") >= 0)
|
|
|
@ -1256,6 +1268,7 @@ namespace Myshipping.Application.EDI
|
|
|
|
else
|
|
|
|
else
|
|
|
|
r.WriteLine("NAD+FW+++" + formatEdiStr("txt", bill.WEITUO) + "'");
|
|
|
|
r.WriteLine("NAD+FW+++" + formatEdiStr("txt", bill.WEITUO) + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1263,7 +1276,7 @@ namespace Myshipping.Application.EDI
|
|
|
|
if (InttrEdi.UseForWarderCode)
|
|
|
|
if (InttrEdi.UseForWarderCode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("NAD+FW+" + InttrEdi.ForWarderCode + ":160:86++" + InttrEdi.ForWarderName + "'");
|
|
|
|
r.WriteLine("NAD+FW+" + InttrEdi.ForWarderCode + ":160:86++" + InttrEdi.ForWarderName + "'");
|
|
|
|
icount++;
|
|
|
|
icount = icount + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1271,6 +1284,8 @@ namespace Myshipping.Application.EDI
|
|
|
|
r.WriteLine("NAD+FW+" + InttrEdi.SENDCODE + ":160:86++" + InttrEdi.SENDNAME.Substring(0, 35) + "+" + InttrEdi.SENDNAME.Substring(35) + "'");
|
|
|
|
r.WriteLine("NAD+FW+" + InttrEdi.SENDCODE + ":160:86++" + InttrEdi.SENDNAME.Substring(0, 35) + "+" + InttrEdi.SENDNAME.Substring(35) + "'");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
r.WriteLine("NAD+FW+" + InttrEdi.SENDCODE + ":160:86++" + InttrEdi.SENDNAME + "'");
|
|
|
|
r.WriteLine("NAD+FW+" + InttrEdi.SENDCODE + ":160:86++" + InttrEdi.SENDNAME + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|