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