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

dev
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,15 +8645,21 @@ 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) {
headname = _this.initctncolumns[b].dataIndex; //console.log(b);
if (!_this.needFind(headname)) { //console.log(_this.initctncolumns);
return value; if (b < _this.initctncolumns.length) {
} else { headname = _this.initctncolumns[b].dataIndex;
isdifferent = _this.FindDiffenet_record(record.get("CNTRNO"), headname, value); if (!_this.needFind(headname)) {
return value;
} else {
isdifferent = _this.FindDiffenet_record(record.get("CNTRNO"), headname, value);
if (isdifferent) { if (isdifferent) {
meta.tdCls = 'feestatus_shenmodify'; meta.tdCls = 'feestatus_shenmodify';
}
return value;
} }
} else {
return value; return value;
} }
}, },

Loading…
Cancel
Save