|
|
@ -4708,7 +4708,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
edi.INPUTBY = Session["SHOWNAME"].ToString();
|
|
|
|
edi.INPUTBY = Session["SHOWNAME"].ToString();
|
|
|
|
edi.INPUTBYID = Session["USERID"].ToString();
|
|
|
|
edi.INPUTBYID = Session["USERID"].ToString();
|
|
|
|
edi.CORPID = Session["COMPANYID"].ToString();
|
|
|
|
edi.CORPID = Session["COMPANYID"].ToString();
|
|
|
|
edi.CONSIGNEE = edi.CONSIGNEE==null?"": edi.CONSIGNEE.Replace(" ", " ");
|
|
|
|
edi.CONSIGNEE = edi.CONSIGNEE == null ? "" : edi.CONSIGNEE.Replace(" ", " ");
|
|
|
|
edi.CONSIGNEENAME = edi.CONSIGNEENAME == null ? "" : edi.CONSIGNEENAME.Replace(" ", " ");
|
|
|
|
edi.CONSIGNEENAME = edi.CONSIGNEENAME == null ? "" : edi.CONSIGNEENAME.Replace(" ", " ");
|
|
|
|
edi.NOTIFYPARTYNAME = edi.NOTIFYPARTYNAME == null ? "" : edi.NOTIFYPARTYNAME.Replace(" ", " ");
|
|
|
|
edi.NOTIFYPARTYNAME = edi.NOTIFYPARTYNAME == null ? "" : edi.NOTIFYPARTYNAME.Replace(" ", " ");
|
|
|
|
|
|
|
|
|
|
|
@ -5152,6 +5152,8 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
ctn.ctn_id = Guid.NewGuid().ToString();
|
|
|
|
ctn.ctn_id = Guid.NewGuid().ToString();
|
|
|
|
ctn.MFNO = edi.MFNO;
|
|
|
|
ctn.MFNO = edi.MFNO;
|
|
|
|
ctn.CNTRNO = it;
|
|
|
|
ctn.CNTRNO = it;
|
|
|
|
|
|
|
|
ctn.CTN = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTN).FirstOrDefault();
|
|
|
|
|
|
|
|
ctn.SIZE = cclist.Where(x => x.CNTRNO == it).Select(x => x.SIZE).FirstOrDefault();
|
|
|
|
ctn.SEALNO = cclist.Where(x => x.CNTRNO == it).Select(x => x.SEALNO).FirstOrDefault();
|
|
|
|
ctn.SEALNO = cclist.Where(x => x.CNTRNO == it).Select(x => x.SEALNO).FirstOrDefault();
|
|
|
|
ctn.CTNCODE = i.ToString().PadLeft(2, '0');
|
|
|
|
ctn.CTNCODE = i.ToString().PadLeft(2, '0');
|
|
|
|
ctn.CTNALL = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTNALL).FirstOrDefault();
|
|
|
|
ctn.CTNALL = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTNALL).FirstOrDefault();
|
|
|
@ -5497,7 +5499,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
if (merge)
|
|
|
|
if (merge)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//没有主单的主提单号
|
|
|
|
//没有主单的主提单号
|
|
|
|
var mmList = ediList.Where(x => x.HBLNO != "" && x.BSNO == ""&&x.HBLNO!=x.MBLNO).Select(x => x.MBLNO).Distinct().ToList();
|
|
|
|
var mmList = ediList.Where(x => x.HBLNO != "" && x.BSNO == "" && x.HBLNO != x.MBLNO).Select(x => x.MBLNO).Distinct().ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in mmList)
|
|
|
|
foreach (var item in mmList)
|
|
|
@ -5608,6 +5610,8 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
ctn.ctn_id = Guid.NewGuid().ToString();
|
|
|
|
ctn.ctn_id = Guid.NewGuid().ToString();
|
|
|
|
ctn.MFNO = edi.MFNO;
|
|
|
|
ctn.MFNO = edi.MFNO;
|
|
|
|
ctn.CNTRNO = it;
|
|
|
|
ctn.CNTRNO = it;
|
|
|
|
|
|
|
|
ctn.CTN = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTN).FirstOrDefault();
|
|
|
|
|
|
|
|
ctn.SIZE = cclist.Where(x => x.CNTRNO == it).Select(x => x.SIZE).FirstOrDefault();
|
|
|
|
ctn.SEALNO = cclist.Where(x => x.CNTRNO == it).Select(x => x.SEALNO).FirstOrDefault();
|
|
|
|
ctn.SEALNO = cclist.Where(x => x.CNTRNO == it).Select(x => x.SEALNO).FirstOrDefault();
|
|
|
|
ctn.CTNCODE = i.ToString().PadLeft(2, '0');
|
|
|
|
ctn.CTNCODE = i.ToString().PadLeft(2, '0');
|
|
|
|
ctn.CTNALL = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTNALL).FirstOrDefault();
|
|
|
|
ctn.CTNALL = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTNALL).FirstOrDefault();
|
|
|
|