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