|
|
@ -1041,19 +1041,30 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
Shipping = formatEdiStr("txt", bill.MARKS);
|
|
|
|
Shipping = formatEdiStr("txt", bill.MARKS);
|
|
|
|
ShippingList = formatlengthStr(Shipping, 35);
|
|
|
|
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 i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var z = 0; z < 10; z++)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ((i * 10 + z) < ShippingList.Count)
|
|
|
|
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
|
|
|
|
tempstr = tempstr + ShippingList[i * 10 + z];
|
|
|
|
|
|
|
|
if (z < 9) tempstr = tempstr + ":";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tempstr != "44:")
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine(tempstr + "'");
|
|
|
|
r.WriteLine("44:" + ShippingList[i] + "'");
|
|
|
|
icount++;
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1067,35 +1078,38 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (ShippingList[i] != "")
|
|
|
|
if (!string.IsNullOrWhiteSpace(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("47:" + ShippingList[i]+ "'");
|
|
|
|
r.WriteLine(strtemp + "'");
|
|
|
|
|
|
|
|
strtemp = "47:" + ShippingList[i] + ":";
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
icount = icount + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
m = m + 1;
|
|
|
|
//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))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
r.WriteLine(strtemp + "'");
|
|
|
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//if (!string.IsNullOrWhiteSpace(strtemp))
|
|
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
// r.WriteLine(strtemp + "'");
|
|
|
|
|
|
|
|
// icount = icount + 1;
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
var ISSOC = "N";
|
|
|
|
var ISSOC = "N";
|
|
|
|
if (bill.ISCONTAINERSOC) ISSOC = "Y";
|
|
|
|
if (bill.ISCONTAINERSOC) ISSOC = "Y";
|
|
|
|