wanghaomei 2 years ago
commit 5802f2d069

@ -4708,7 +4708,7 @@ namespace DSWeb.MvcShipping.Controllers
edi.INPUTBY = Session["SHOWNAME"].ToString();
edi.INPUTBYID = Session["USERID"].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.NOTIFYPARTYNAME = edi.NOTIFYPARTYNAME == null ? "" : edi.NOTIFYPARTYNAME.Replace(" ", " ");
@ -5152,6 +5152,8 @@ namespace DSWeb.MvcShipping.Controllers
ctn.ctn_id = Guid.NewGuid().ToString();
ctn.MFNO = edi.MFNO;
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.CTNCODE = i.ToString().PadLeft(2, '0');
ctn.CTNALL = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTNALL).FirstOrDefault();
@ -5497,7 +5499,7 @@ namespace DSWeb.MvcShipping.Controllers
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)
@ -5608,6 +5610,8 @@ namespace DSWeb.MvcShipping.Controllers
ctn.ctn_id = Guid.NewGuid().ToString();
ctn.MFNO = edi.MFNO;
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.CTNCODE = i.ToString().PadLeft(2, '0');
ctn.CTNALL = cclist.Where(x => x.CNTRNO == it).Select(x => x.CTNALL).FirstOrDefault();

@ -2481,7 +2481,7 @@ namespace DSWeb.Helper
flag = false;
return false;
}
var codeCtn = codeCtnList.FirstOrDefault(cc => cc.EDICODE == item.CTNALL);
var codeCtn = codeCtnList.FirstOrDefault(cc => cc.CTN == item.CTNALL);
if (codeCtn == null)
{
@ -2491,7 +2491,7 @@ namespace DSWeb.Helper
else
{
ctn.CTN = codeCtn.CTN;
ctn.CTN = codeCtn.CTN.Replace(codeCtn.CTNSIZE, "");
ctn.SIZE = codeCtn.CTNSIZE;
}
@ -2864,7 +2864,7 @@ namespace DSWeb.Helper
flag = false;
return false;
}
var codeCtn = codeCtnList.FirstOrDefault(cc => cc.EDICODE == item.CTNALL);
var codeCtn = codeCtnList.FirstOrDefault(cc => cc.CTN == item.CTNALL);
if (codeCtn == null)
{
@ -2874,7 +2874,7 @@ namespace DSWeb.Helper
else
{
ctn.CTN = codeCtn.CTN;
ctn.CTN = codeCtn.CTN.Replace(codeCtn.CTNSIZE, "");
ctn.SIZE = codeCtn.CTNSIZE;
}

Loading…
Cancel
Save