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

dev
ddlucky 9 months ago
parent ac88785837
commit b289c5b5ed

@ -820,7 +820,11 @@ namespace DSWeb.MvcShipping.Controllers
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")
{
@ -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)
{
jsonRespose.SetDBResult(result);
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
//jsonRespose.SetDBResult(result);
//return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
return BasicDataRefDAL.GetContentResult(result);
}
result = modb.SaveHead(OpSeaeAms);
@ -847,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) {

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

@ -172,7 +172,8 @@ namespace DSWeb.MvcShipping.Models.BookingConfirm
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()

@ -8522,6 +8522,9 @@ Ext.extend(Shipping.Booking_SIEdit, Ext.Panel, {
a = typeof (SIValue);
b = typeof (LocalValue);
//console.log(FieldName);
//console.log(SIValue);
//console.log(LocalValue);
isdifferent = this.checkDifferent(FieldName, SIValue, LocalValue);
if (isdifferent) {
@ -8642,6 +8645,9 @@ Ext.extend(Shipping.Booking_SIEdit, Ext.Panel, {
return result;
},
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;
if (!_this.needFind(headname)) {
return value;
@ -8653,6 +8659,9 @@ Ext.extend(Shipping.Booking_SIEdit, Ext.Panel, {
}
return value;
}
} else {
return value;
}
},
getFieldCheck: function (FieldName) {

Loading…
Cancel
Save