|
|
|
@ -843,7 +843,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
var COMPANYID = Convert.ToString(Session["COMPANYID"]);
|
|
|
|
|
var COMPANYNAME = Convert.ToString(Session["COMPANYNAME"]);
|
|
|
|
|
//result = modb.SaveHead(OpSeaeData);
|
|
|
|
|
result = DSWeb.MvcShipping.DAL.MsOpSeaeDAL.MsOpSeaeDAL.DoSave("edit", OpSeaeData, CtnList, userid, username, COMPANYID, COMPANYNAME);
|
|
|
|
|
result = DSWeb.MvcShipping.DAL.MsOpSeaeDAL.MsOpSeaeDAL.DoSave("edit", OpSeaeData, null, userid, username, COMPANYID, COMPANYNAME);
|
|
|
|
|
if (!result.Success)
|
|
|
|
|
{
|
|
|
|
|
//jsonRespose.SetDBResult(result);
|
|
|
|
@ -858,14 +858,14 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//result = modb.SaveComm("BSNO", ctnParentIDValue
|
|
|
|
|
// , ModelObjectConvert<MsOpSeaeDetail>.ToModelObjectList(CtnList)
|
|
|
|
|
// ,null);
|
|
|
|
|
//if (!result.Success)
|
|
|
|
|
//{
|
|
|
|
|
// jsonRespose.SetDBResult(result);
|
|
|
|
|
// return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
//}
|
|
|
|
|
result = modb.SaveComm("BSNO", ctnParentIDValue
|
|
|
|
|
, ModelObjectConvert<MsOpSeaeDetail>.ToModelObjectList(CtnList)
|
|
|
|
|
, null);
|
|
|
|
|
if (!result.Success)
|
|
|
|
|
{
|
|
|
|
|
jsonRespose.SetDBResult(result);
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var ctndetail in ChangeCtnDetailList) {
|
|
|
|
|