|
|
|
@ -1036,19 +1036,30 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
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++)
|
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if ((i * 10 + z) < ShippingList.Count)
|
|
|
|
|
tempstr = tempstr + ShippingList[i * 10 + z];
|
|
|
|
|
if (z < 9) tempstr = tempstr + ":";
|
|
|
|
|
}
|
|
|
|
|
if (tempstr != "44:")
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
|
|
|
|
|
{
|
|
|
|
|
r.WriteLine(tempstr + "'");
|
|
|
|
|
icount++;
|
|
|
|
|
r.WriteLine("44:" + ShippingList[i] + "'");
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1062,28 +1073,33 @@ namespace Myshipping.Application.EDI.VOLTA
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
if (ShippingList[i] != "")
|
|
|
|
|
{
|
|
|
|
|
if (m <= 5)
|
|
|
|
|
{
|
|
|
|
|
if (m == 1) strtemp = "47:" + ShippingList[i] + ":";
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (m == 5)
|
|
|
|
|
strtemp = strtemp + ShippingList[i];
|
|
|
|
|
else
|
|
|
|
|
strtemp = strtemp + ShippingList[i] + ":";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
|
|
|
|
|
{
|
|
|
|
|
m = 1;
|
|
|
|
|
r.WriteLine(strtemp + "'");
|
|
|
|
|
strtemp = "47:" + ShippingList[i] + ":";
|
|
|
|
|
r.WriteLine("47:" + ShippingList[i] + "'");
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
}
|
|
|
|
|
m = m + 1;
|
|
|
|
|
}
|
|
|
|
|
//if (ShippingList[i] != "")
|
|
|
|
|
//{
|
|
|
|
|
// if (m <= 5)
|
|
|
|
|
// {
|
|
|
|
|
// if (m == 1) strtemp = "47:" + ShippingList[i] + ":";
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// if (m == 5)
|
|
|
|
|
// strtemp = strtemp + ShippingList[i];
|
|
|
|
|
// else
|
|
|
|
|
// strtemp = strtemp + ShippingList[i] + ":";
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// m = 1;
|
|
|
|
|
// r.WriteLine(strtemp + "'");
|
|
|
|
|
// strtemp = "47:" + ShippingList[i] + ":";
|
|
|
|
|
// icount = icount + 1;
|
|
|
|
|
// }
|
|
|
|
|
// m = m + 1;
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(strtemp))
|
|
|
|
|