|
|
|
@ -2233,14 +2233,19 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
//则用ctnall的前两位填充size
|
|
|
|
|
//用ctnall的后两位填充ctn
|
|
|
|
|
|
|
|
|
|
foreach (var ctn in bodyList) {
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ctn.CTNALL) && string.IsNullOrWhiteSpace(ctn.SIZE))
|
|
|
|
|
{
|
|
|
|
|
ctn.SIZE = ctn.CTNALL.Substring(0, 2);
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ctn.CTNALL) && string.IsNullOrWhiteSpace(ctn.CTN))
|
|
|
|
|
if (bodyList != null)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
foreach (var ctn in bodyList)
|
|
|
|
|
{
|
|
|
|
|
ctn.SIZE = ctn.CTNALL.Substring(ctn.CTNALL.Length - 2, 2);
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ctn.CTNALL) && string.IsNullOrWhiteSpace(ctn.SIZE))
|
|
|
|
|
{
|
|
|
|
|
ctn.SIZE = ctn.CTNALL.Substring(0, 2);
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(ctn.CTNALL) && string.IsNullOrWhiteSpace(ctn.CTN))
|
|
|
|
|
{
|
|
|
|
|
ctn.SIZE = ctn.CTNALL.Substring(ctn.CTNALL.Length - 2, 2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|