应对网上订舱的 订舱确认,略微修改

YingHang
ddlucky 9 months ago
parent ac88785837
commit b289c5b5ed

@ -820,7 +820,11 @@ namespace DSWeb.MvcShipping.Controllers
var detailmodb = new ModelObjectDB(); var detailmodb = new ModelObjectDB();
OpSeaeData.NOPKGS = OpSeaeData.PKGS.ToString() + OpSeaeData.KINDPKGS.ToString();
OpSeaeData.NOPKGS = CtnList.Sum(s=>s.PKGS) + OpSeaeData.KINDPKGS.ToString();
OpSeaeData.GROSSWEIGHT = CtnList.Sum(s => s.KGS) + "KGS";
OpSeaeData.MEASUREMENT = CtnList.Sum(s => s.CBM) + "CBM";
if (SIData["ISMULTI"] == "true") if (SIData["ISMULTI"] == "true")
{ {
@ -833,11 +837,18 @@ namespace DSWeb.MvcShipping.Controllers
} }
} }
result = modb.SaveHead(OpSeaeData);
var userid = Convert.ToString(Session["USERID"]);
var username = Convert.ToString(Session["SHOWNAME"]);
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);
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) };
return BasicDataRefDAL.GetContentResult(result);
} }
result = modb.SaveHead(OpSeaeAms); result = modb.SaveHead(OpSeaeAms);
@ -847,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) {

@ -737,6 +737,8 @@ namespace DSWeb.Areas.MvcShipping.DAL.BookingConfirm
return result; return result;
} }
//
result.Success = true; result.Success = true;
return result; return result;
} }

@ -172,7 +172,8 @@ namespace DSWeb.MvcShipping.Models.BookingConfirm
public static string getSQL() public static string getSQL()
{ {
return " SELECT [CTN_ID],[ORDNO],[CTNALL],[CTNNUM],[TEU],[CNTRNO],[SEALNO],[PKGS],[KINDPKGS],[KGS],[CBM],[TAREWEIGHT],[CTNSTATUS],[WEIGHTYPE],[WEIGHKGS],[WEIGHATTN],[VGMCONNCOM],[WEIGHTEL],[WEIGHDATE],[VGMADDR],[VGMEMAIL],[REMARK] ,(select bsno from OP_SEAE_ORDER where ORDNO in(select ORDNO from op_seae_si where SINO=[OP_SI_CTN].ORDNO)) BSNO_PARENT,(select bsno from OP_SEAE_ORDER where ORDNO =[OP_SI_CTN].ORDNO) BSNO,(select MBLNO from OP_SEAE_SI where SINO =[OP_SI_CTN].ORDNO) SI_MBLNO FROM [OP_SI_CTN] "; return " SELECT [CTN_ID],[ORDNO],[CTNALL]," +
"case when isnull(CNTRNO,'')<>'' then 1 else [CTNNUM] end as CTNNUM,[TEU],[CNTRNO],[SEALNO],[PKGS],[KINDPKGS],[KGS],[CBM],[TAREWEIGHT],[CTNSTATUS],[WEIGHTYPE],[WEIGHKGS],[WEIGHATTN],[VGMCONNCOM],[WEIGHTEL],[WEIGHDATE],[VGMADDR],[VGMEMAIL],[REMARK] ,(select bsno from OP_SEAE_ORDER where ORDNO in(select ORDNO from op_seae_si where SINO=[OP_SI_CTN].ORDNO)) BSNO_PARENT,(select bsno from OP_SEAE_ORDER where ORDNO =[OP_SI_CTN].ORDNO) BSNO,(select MBLNO from OP_SEAE_SI where SINO =[OP_SI_CTN].ORDNO) SI_MBLNO FROM [OP_SI_CTN] ";
} }
public Booking_SICtnmb() public Booking_SICtnmb()

@ -8522,6 +8522,9 @@ Ext.extend(Shipping.Booking_SIEdit, Ext.Panel, {
a = typeof (SIValue); a = typeof (SIValue);
b = typeof (LocalValue); b = typeof (LocalValue);
//console.log(FieldName);
//console.log(SIValue);
//console.log(LocalValue);
isdifferent = this.checkDifferent(FieldName, SIValue, LocalValue); isdifferent = this.checkDifferent(FieldName, SIValue, LocalValue);
if (isdifferent) { if (isdifferent) {
@ -8642,6 +8645,9 @@ Ext.extend(Shipping.Booking_SIEdit, Ext.Panel, {
return result; return result;
}, },
gridCellrenderer: function (value, meta, record, a, b, parentstore, c) { gridCellrenderer: function (value, meta, record, a, b, parentstore, c) {
//console.log(b);
//console.log(_this.initctncolumns);
if (b < _this.initctncolumns.length) {
headname = _this.initctncolumns[b].dataIndex; headname = _this.initctncolumns[b].dataIndex;
if (!_this.needFind(headname)) { if (!_this.needFind(headname)) {
return value; return value;
@ -8653,6 +8659,9 @@ Ext.extend(Shipping.Booking_SIEdit, Ext.Panel, {
} }
return value; return value;
} }
} else {
return value;
}
}, },
getFieldCheck: function (FieldName) { getFieldCheck: function (FieldName) {

Loading…
Cancel
Save