|
|
|
@ -215,36 +215,35 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
{
|
|
|
|
|
var ctn = item.Adapt<SeaExportShippingBillCtn>();
|
|
|
|
|
ctn.Pid = info.Id;
|
|
|
|
|
if (ctn.CtnAll.Length == 4)
|
|
|
|
|
{
|
|
|
|
|
ctn.Size = ctn.CtnAll != null ? ctn.CtnAll.Substring(0, 2) : "";
|
|
|
|
|
ctn.Ctn = ctn.CtnAll != null ? ctn.CtnAll.Substring(2, 2) : "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (ctn.CtnAll.Contains("'"))
|
|
|
|
|
{
|
|
|
|
|
ctn.Size = ctn.CtnAll.Split("'")[0].ToString();
|
|
|
|
|
ctn.Ctn = ctn.CtnAll.Split("'")[1].ToString();
|
|
|
|
|
//if (ctn.CtnAll.Length == 4)
|
|
|
|
|
//{
|
|
|
|
|
// ctn.Size = ctn.CtnAll != null ? ctn.CtnAll.Substring(0, 2) : "";
|
|
|
|
|
// ctn.Ctn = ctn.CtnAll != null ? ctn.CtnAll.Substring(2, 2) : "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//}
|
|
|
|
|
//if (ctn.CtnAll.Contains("'"))
|
|
|
|
|
//{
|
|
|
|
|
// ctn.Size = ctn.CtnAll.Split("'")[0].ToString();
|
|
|
|
|
// ctn.Ctn = ctn.CtnAll.Split("'")[1].ToString();
|
|
|
|
|
//}
|
|
|
|
|
tenantDb.Insertable(ctn).ExecuteCommand();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var ctn = ctnList.First(x => x.Id == item.Id);
|
|
|
|
|
ctn = item.Adapt(ctn);
|
|
|
|
|
if (ctn.CtnAll.Length == 4)
|
|
|
|
|
{
|
|
|
|
|
ctn.Size = ctn.CtnAll != null ? ctn.CtnAll.Substring(0, 2) : "";
|
|
|
|
|
ctn.Ctn = ctn.CtnAll != null ? ctn.CtnAll.Substring(2, 2) : "";
|
|
|
|
|
//if (ctn.CtnAll.Length == 4)
|
|
|
|
|
//{
|
|
|
|
|
// ctn.Size = ctn.CtnAll != null ? ctn.CtnAll.Substring(0, 2) : "";
|
|
|
|
|
// ctn.Ctn = ctn.CtnAll != null ? ctn.CtnAll.Substring(2, 2) : "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (ctn.CtnAll.Contains("'"))
|
|
|
|
|
{
|
|
|
|
|
ctn.Size = ctn.CtnAll.Split("'")[0].ToString();
|
|
|
|
|
ctn.Ctn = ctn.CtnAll.Split("'")[1].ToString();
|
|
|
|
|
//}
|
|
|
|
|
//if (ctn.CtnAll.Contains("'"))
|
|
|
|
|
//{
|
|
|
|
|
// ctn.Size = ctn.CtnAll.Split("'")[0].ToString();
|
|
|
|
|
// ctn.Ctn = ctn.CtnAll.Split("'")[1].ToString();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//}
|
|
|
|
|
tenantDb.Updateable(ctn).ExecuteCommand();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|