|
|
|
@ -484,11 +484,11 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
{
|
|
|
|
|
if (headData.CARRIEREDICODE == "HLCU")
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.SHIPPER, 75, headData.MBLNO, "发货人", 6, "-", false);
|
|
|
|
|
error += formatlengthError("txt", headData.SHIPPER, 65, headData.MBLNO, "发货人", 6, "-", false);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.SHIPPER, 75, headData.MBLNO, "发货人", 6, "*", false);
|
|
|
|
|
error += formatlengthError("txt", headData.SHIPPER, 65, headData.MBLNO, "发货人", 6, "*", false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -510,11 +510,11 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
{
|
|
|
|
|
if (headData.CARRIEREDICODE == "HLCU")
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.CONSIGNEE, 75, headData.MBLNO, "收货人", 6, "--", false);
|
|
|
|
|
error += formatlengthError("txt", headData.CONSIGNEE, 65, headData.MBLNO, "收货人", 6, "--", false);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.CONSIGNEE, 75, headData.MBLNO, "收货人", 6, "**", false);
|
|
|
|
|
error += formatlengthError("txt", headData.CONSIGNEE, 65, headData.MBLNO, "收货人", 6, "**", false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -536,18 +536,18 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
{
|
|
|
|
|
if (headData.CARRIEREDICODE == "HLCU")
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.NOTIFYPARTY, 75, headData.MBLNO, "通知人", 6, "---", false);
|
|
|
|
|
error += formatlengthError("txt", headData.NOTIFYPARTY, 65, headData.MBLNO, "通知人", 6, "---", false);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.NOTIFYPARTY, 75, headData.MBLNO, "通知人", 6, "***", false);
|
|
|
|
|
error += formatlengthError("txt", headData.NOTIFYPARTY, 65, headData.MBLNO, "通知人", 6, "***", false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(headData.NOTIFYPARTY2))
|
|
|
|
|
{
|
|
|
|
|
error += formatlengthError("txt", headData.NOTIFYPARTY2, 75, headData.MBLNO, "第二通知人", 5, "", false);
|
|
|
|
|
error += formatlengthError("txt", headData.NOTIFYPARTY2, 65, headData.MBLNO, "第二通知人", 6, "", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var ctnlist = headData.CTNLIST;
|
|
|
|
@ -936,7 +936,7 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.SHIPPER);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 65);
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
@ -949,7 +949,7 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.CONSIGNEE);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 65);
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
@ -961,7 +961,7 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.NOTIFYPARTY);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 65);
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
@ -973,7 +973,7 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", !string.IsNullOrWhiteSpace(bill.NOTIFYPARTY2) ? bill.NOTIFYPARTY2 : "");
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 65);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(Shipping))
|
|
|
|
|
{
|
|
|
|
@ -986,7 +986,7 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Shipping = bill.AMSCONSIGNEE;
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 65);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(Shipping))
|
|
|
|
|
{
|
|
|
|
@ -997,7 +997,7 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = bill.AMSNOTIFYPARTY;
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 65);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(Shipping))
|
|
|
|
|
{
|
|
|
|
|