|
|
|
@ -1041,19 +1041,30 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
Shipping = formatEdiStr("txt", bill.MARKS);
|
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < Math.Ceiling(Convert.ToDecimal(Convert.ToDecimal(ShippingList.Count) / Convert.ToDecimal(10))); i++)
|
|
|
|
|
//for (var i = 0; i < Math.Ceiling(Convert.ToDecimal(Convert.ToDecimal(ShippingList.Count) / Convert.ToDecimal(10))); i++)
|
|
|
|
|
//{
|
|
|
|
|
// var tempstr = "44:";
|
|
|
|
|
// for (var z = 0; z < 10; z++)
|
|
|
|
|
// {
|
|
|
|
|
// if ((i * 10 + z) < ShippingList.Count)
|
|
|
|
|
// tempstr = tempstr + ShippingList[i * 10 + z];
|
|
|
|
|
// if (z < 9) tempstr = tempstr + ":";
|
|
|
|
|
// }
|
|
|
|
|
// if (tempstr != "44:")
|
|
|
|
|
// {
|
|
|
|
|
// r.WriteLine(tempstr + "'");
|
|
|
|
|
// icount++;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
if (ShippingList.Count != 0 && Shipping.Length > 0)
|
|
|
|
|
{
|
|
|
|
|
var tempstr = "44:";
|
|
|
|
|
for (var z = 0; z < 10; z++)
|
|
|
|
|
{
|
|
|
|
|
if ((i * 10 + z) < ShippingList.Count)
|
|
|
|
|
tempstr = tempstr + ShippingList[i * 10 + z];
|
|
|
|
|
if (z < 9) tempstr = tempstr + ":";
|
|
|
|
|
}
|
|
|
|
|
if (tempstr != "44:")
|
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
r.WriteLine(tempstr + "'");
|
|
|
|
|
icount++;
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
|
|
|
|
|
{
|
|
|
|
|
r.WriteLine("44:" + ShippingList[i] + "'");
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1069,7 +1080,7 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
|
|
|
|
|
{
|
|
|
|
|
r.WriteLine("47:" + ShippingList[i]);
|
|
|
|
|
r.WriteLine("47:" + ShippingList[i]+ "'");
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
|
|
//if (m <= 5)
|
|
|
|
|