|
|
@ -1633,6 +1633,10 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
error = IsCreateEdiYT(headData, type, filetype, filerole, carrier);
|
|
|
|
error = IsCreateEdiYT(headData, type, filetype, filerole, carrier);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (type == "CSSA")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
error = IsCreateEdiCSSA(headData, type, filetype, filerole, carrier);
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (type == "CMAEDI")
|
|
|
|
else if (type == "CMAEDI")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
error = IsCreateCMA(headData,filetype, filerole, isbill, carrier,0,"","");
|
|
|
|
error = IsCreateCMA(headData,filetype, filerole, isbill, carrier,0,"","");
|
|
|
@ -1704,6 +1708,10 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
result = CreateEdiYT(headData, usercode, path, mblno, filetype, filerole, ftpset, type, isbill, portload);
|
|
|
|
result = CreateEdiYT(headData, usercode, path, mblno, filetype, filerole, ftpset, type, isbill, portload);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (type == "CSSA")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
result = CreateCSSAXmlStr(headData, usercode, path, mblno, filetype, filerole, ftpset, type, isbill, portload);
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (type == "CMAEDI")
|
|
|
|
else if (type == "CMAEDI")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (filetype=="E")
|
|
|
|
if (filetype=="E")
|
|
|
@ -43409,7 +43417,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return error;
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public static string CreateCSSAXmlStr(List<MsOpSeae> headData, string usercode, string path, string mblno, string filerole, CodeFtpSet ftpset, int isbill, string carrier, string filetype, int IsNADFW, string tbNADFWID, string tbNADFW)
|
|
|
|
public static string CreateCSSAXmlStr(List<MsOpSeae> headData, string usercode, string path, string mblno, string filetype, string filerole, CodeFtpSet ftpset, string type, int isbill, string carrier)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string tmpfilename = mblno + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".XML";
|
|
|
|
string tmpfilename = mblno + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".XML";
|
|
|
|
string filename = path + "\\" + tmpfilename;
|
|
|
|
string filename = path + "\\" + tmpfilename;
|
|
|
@ -43508,7 +43516,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("<text>" + ShippingList[i] + "</text>");
|
|
|
|
r.WriteLine("<text>" + formatEdiStr("xml",ShippingList[i]) + "</text>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r.WriteLine("</shipper>");
|
|
|
|
r.WriteLine("</shipper>");
|
|
|
@ -43525,7 +43533,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("<text>" + ShippingList[i] + "</text>");
|
|
|
|
r.WriteLine("<text>" + formatEdiStr("xml", ShippingList[i]) + "</text>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r.WriteLine("</consignee>");
|
|
|
|
r.WriteLine("</consignee>");
|
|
|
@ -43543,11 +43551,11 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("<text>" + ShippingList[i] + "</text>");
|
|
|
|
r.WriteLine("<text>" + formatEdiStr("xml",ShippingList[i]) + "</text>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r.WriteLine("</notifyparty>");
|
|
|
|
r.WriteLine("</notifyparty>");
|
|
|
|
r.WriteLine("<ordermemo>" + billams.ORDERREMARK + "</ordermemo>");
|
|
|
|
r.WriteLine("<ordermemo>" + formatEdiStr("xml", billams.ORDERREMARK) + "</ordermemo>");
|
|
|
|
r.WriteLine("<numberoforiginals>" + GetBillNum(bill.NOBILL) + "</numberoforiginals>");
|
|
|
|
r.WriteLine("<numberoforiginals>" + GetBillNum(bill.NOBILL) + "</numberoforiginals>");
|
|
|
|
r.WriteLine("<numberofcopys>" + GetBillNum(bill.COPYNOBILL) + "</numberofcopys>");
|
|
|
|
r.WriteLine("<numberofcopys>" + GetBillNum(bill.COPYNOBILL) + "</numberofcopys>");
|
|
|
|
r.WriteLine("<placeofissuecode>" +GetPortEDICode(bill.ISSUEPLACEID,"CSSA") + "</placeofissuecode>");
|
|
|
|
r.WriteLine("<placeofissuecode>" +GetPortEDICode(bill.ISSUEPLACEID,"CSSA") + "</placeofissuecode>");
|
|
|
@ -43677,7 +43685,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("<text>" + ShippingList[i] + "</text>");
|
|
|
|
r.WriteLine("<text>" + formatEdiStr("xml", ShippingList[i]) + "</text>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r.WriteLine("</marksandnumbers>");
|
|
|
|
r.WriteLine("</marksandnumbers>");
|
|
|
@ -43703,7 +43711,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
for (var i = 0; i < ShippingList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
r.WriteLine("<text>" + ShippingList[i] + "</text>");
|
|
|
|
r.WriteLine("<text>" + formatEdiStr("xml", ShippingList[i]) + "</text>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r.WriteLine("</description>");
|
|
|
|
r.WriteLine("</description>");
|
|
|
|