|
|
|
@ -6670,7 +6670,11 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
var ftpset = MsCodeFtpSetDAL.GetData("EDINAME='PIL'", Convert.ToString(Session["COMPANYID"]));
|
|
|
|
|
|
|
|
|
|
var filename = "";
|
|
|
|
|
filename = MsOpSeaeEdiPortDAL.CreateEdiPIL2(headList, Convert.ToString(Session["USERCODE"]), path, mblno, filetype, ftpset, portload, agent, cagent, forward, contractno);
|
|
|
|
|
if (portload == "CNDLC") {
|
|
|
|
|
filename = MsOpSeaeEdiPortDAL.CreateEdiPILDL(headList, Convert.ToString(Session["USERCODE"]), path, mblno, filetype, ftpset, portload, agent, cagent, forward, contractno);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
filename = MsOpSeaeEdiPortDAL.CreateEdiPIL2(headList, Convert.ToString(Session["USERCODE"]), path, mblno, filetype, ftpset, portload, agent, cagent, forward, contractno);
|
|
|
|
|
|
|
|
|
|
if (ftpset.RECEIVEEMAIL != "" && ftpset.RECEIVESIEMAIL != null && ftpset.SENDEMAIL != "" && ftpset.SENDEMAIL != null && !string.IsNullOrEmpty(ftpset.SENDEMAILSERVER) && !string.IsNullOrEmpty(ftpset.SENDEMAILPASS) && !string.IsNullOrEmpty(ftpset.SENDEMAILPORT))
|
|
|
|
|
{
|
|
|
|
@ -6869,7 +6873,12 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
{
|
|
|
|
|
var filename = "";
|
|
|
|
|
if (carrier != "PILMELL")
|
|
|
|
|
filename = MsOpSeaeEdiPortDAL.CreateEdiPIL2(headList, Convert.ToString(Session["USERCODE"]), path, mblno, filetype, ftpset, portload, agent, cagent, forward, contractno);
|
|
|
|
|
if (portload == "CNDLC")
|
|
|
|
|
{
|
|
|
|
|
filename = MsOpSeaeEdiPortDAL.CreateEdiPILDL(headList, Convert.ToString(Session["USERCODE"]), path, mblno, filetype, ftpset, portload, agent, cagent, forward, contractno);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
filename = MsOpSeaeEdiPortDAL.CreateEdiPIL2(headList, Convert.ToString(Session["USERCODE"]), path, mblno, filetype, ftpset, portload, agent, cagent, forward, contractno);
|
|
|
|
|
else filename = MsOpSeaeEdiPortDAL.CreateEdiPILMELL(headList, Convert.ToString(Session["USERCODE"]), path, mblno,"9", ftpset,0, filetype);
|
|
|
|
|
filename = Path.GetFileName(filename);
|
|
|
|
|
result.Data = "../../EDIFiles/SeaeEdi/" + filename;
|
|
|
|
|