修改VOLTA收、发、通单行最大字符

master
jianghaiqing 4 weeks ago
parent 7a57fbe093
commit ece9fe9ce9

@ -936,12 +936,12 @@ namespace Myshipping.Application.EDI.VOLTA
Shipping = formatEdiStr("txt", bill.SHIPPER); Shipping = formatEdiStr("txt", bill.SHIPPER);
ShippingList = formatlengthStr(Shipping, 35); ShippingList = formatlengthStr(Shipping, 75);
if (ShippingList.Count != 0 && Shipping.Length > 0) if (ShippingList.Count != 0 && Shipping.Length > 0)
{ {
//2024-09-13 韩工确认最大行数6改为9 //2024-09-13 韩工确认最大行数6改为9
r.WriteLine("20::" + formatListStr(ShippingList, 9) + "'"); r.WriteLine("20::" + formatListStr(ShippingList, 6) + "'");
icount = icount + 1; icount = icount + 1;
} }
@ -949,31 +949,31 @@ namespace Myshipping.Application.EDI.VOLTA
Shipping = formatEdiStr("txt", bill.CONSIGNEE); Shipping = formatEdiStr("txt", bill.CONSIGNEE);
ShippingList = formatlengthStr(Shipping, 35); ShippingList = formatlengthStr(Shipping, 75);
if (ShippingList.Count != 0 && Shipping.Length > 0) if (ShippingList.Count != 0 && Shipping.Length > 0)
{ {
//2024-09-13 韩工确认最大行数6改为9 //2024-09-13 韩工确认最大行数6改为9
r.WriteLine("21::" + formatListStr(ShippingList, 9) + "'"); r.WriteLine("21::" + formatListStr(ShippingList, 6) + "'");
icount = icount + 1; icount = icount + 1;
} }
Shipping = formatEdiStr("txt", bill.NOTIFYPARTY); Shipping = formatEdiStr("txt", bill.NOTIFYPARTY);
ShippingList = formatlengthStr(Shipping, 35); ShippingList = formatlengthStr(Shipping, 75);
if (ShippingList.Count != 0 && Shipping.Length > 0) if (ShippingList.Count != 0 && Shipping.Length > 0)
{ {
//2024-09-13 韩工确认最大行数6改为9 //2024-09-13 韩工确认最大行数6改为9
r.WriteLine("22::" + formatListStr(ShippingList, 9) + "'"); r.WriteLine("22::" + formatListStr(ShippingList, 6) + "'");
icount = icount + 1; icount = icount + 1;
} }
Shipping = formatEdiStr("txt", !string.IsNullOrWhiteSpace(bill.NOTIFYPARTY2) ? bill.NOTIFYPARTY2 : ""); Shipping = formatEdiStr("txt", !string.IsNullOrWhiteSpace(bill.NOTIFYPARTY2) ? bill.NOTIFYPARTY2 : "");
ShippingList = formatlengthStr(Shipping, 35); ShippingList = formatlengthStr(Shipping, 75);
if (!string.IsNullOrWhiteSpace(Shipping)) if (!string.IsNullOrWhiteSpace(Shipping))
{ {
@ -986,7 +986,7 @@ namespace Myshipping.Application.EDI.VOLTA
} }
Shipping = bill.AMSCONSIGNEE; Shipping = bill.AMSCONSIGNEE;
ShippingList = formatlengthStr(Shipping, 35); ShippingList = formatlengthStr(Shipping, 75);
if (!string.IsNullOrWhiteSpace(Shipping)) if (!string.IsNullOrWhiteSpace(Shipping))
{ {
@ -997,7 +997,7 @@ namespace Myshipping.Application.EDI.VOLTA
Shipping = bill.AMSNOTIFYPARTY; Shipping = bill.AMSNOTIFYPARTY;
ShippingList = formatlengthStr(Shipping, 35); ShippingList = formatlengthStr(Shipping, 75);
if (!string.IsNullOrWhiteSpace(Shipping)) if (!string.IsNullOrWhiteSpace(Shipping))
{ {

Loading…
Cancel
Save