|
|
|
@ -363,6 +363,9 @@ namespace Myshipping.Application.EDI.ESL
|
|
|
|
|
{ error = error + "<br />提单号:" + headData.MBLNO + " 目的地代码不能为空或录入不正确(必须是5位代码)"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(headData.ESLLINECODE))
|
|
|
|
|
{ error = error + "<br />提单号:" + headData.MBLNO + " 航司航线不能为空"; }
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(headData.KINDPKGS_EDI_CODE))
|
|
|
|
|
{ error = error + "<br />提单号:" + headData.MBLNO + " 包装EDI代码不能为空"; }
|
|
|
|
|
if (headData.PKGS == 0)
|
|
|
|
@ -828,7 +831,11 @@ namespace Myshipping.Application.EDI.ESL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.SHIPPER);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
/*
|
|
|
|
|
2023-04-06 ESL的EDI去掉校验后,这里需要截取需要按照最大35来截取
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
*/
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
@ -840,7 +847,11 @@ namespace Myshipping.Application.EDI.ESL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.CONSIGNEE);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
/*
|
|
|
|
|
2023-04-06 ESL的EDI去掉校验后,这里需要截取需要按照最大35来截取
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
*/
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
@ -851,7 +862,11 @@ namespace Myshipping.Application.EDI.ESL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.NOTIFYPARTY);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
/*
|
|
|
|
|
2023-04-06 ESL的EDI去掉校验后,这里需要截取需要按照最大35来截取
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 75);
|
|
|
|
|
*/
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
|
|
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
|