20230307瑞京内贸空运:1主单内的分单号改为不允许修改;2不论主单还是分单,费用锁定时不允许执行保存。

DS7_JinGang
ddlucky 2 years ago
parent 6754eb5d4f
commit af4b56571f

@ -210,7 +210,7 @@ namespace DSWeb.MvcShipping.Controllers
{
var headData = JsonConvert.Deserialize<MsOpAirn>(data);
DBResult result=new DBResult();
var CargobodyList = JsonConvert.Deserialize<List<MsOpAirn_Cargomb>>(CargoBody);
var CargodelbodyList = JsonConvert.Deserialize<List<MsOpAirn_Cargomb>>(CargoDelBody);
@ -220,6 +220,12 @@ namespace DSWeb.MvcShipping.Controllers
//headData.CREATETIME = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
}
var oldheadData = MsOpAirnDAL.GetData(" B.BSNO='" + headData.BSNO + "' ");
if (oldheadData.FEESTATUS == true) {
result.SetErrorInfo("费用锁定的业务不允许修改");
}
var isPost = true;
var errorstr = "";
//var isuse = false;
@ -263,7 +269,7 @@ namespace DSWeb.MvcShipping.Controllers
var feecount = BasicDataRefDAL.GetExist("ch_fee", " BSNO='" + headData.BSNO + "' ");
if (feecount > 0) {
var oldheadData = MsOpAirnDAL.GetData(" B.BSNO='" + headData.BSNO + "' ");
headData.BLFRT = oldheadData.BLFRT;
headData.PFREIGHT = oldheadData.PFREIGHT;
@ -348,7 +354,7 @@ namespace DSWeb.MvcShipping.Controllers
BasicDataRefDAL.SaveLog("opstatus="+ opstatus+":"+JsonConvert.Serialize(headData)+"//"+ JsonConvert.Serialize(CargobodyList), Convert.ToString(Session["SHOWNAME"]),"内贸空运","主单保存");
var modb = new ModelObjectRepository();
DBResult result = modb.Save(headData,
result = modb.Save(headData,
ModelObjectConvert<MsOpAirn_Cargomb>.ToModelObjectList(CargobodyList),
ModelObjectConvert<MsOpAirn_Cargomb>.ToModelObjectList(CargodelbodyList)
);
@ -506,7 +512,6 @@ namespace DSWeb.MvcShipping.Controllers
if (iscreatecustno == true)
MsSysBillNoSetDAL.DeleteBsNo(headData.CUSTNO);
var result = new DBResult();
result.Success = false;
result.Message = errorstr + "重复,不允许保存!";

@ -799,6 +799,7 @@ Ext.extend(Shipping.MsOpAirnEdit, Ext.Panel, {
}]
}, {
fieldLabel: '分单号',
readOnly: true,
name: 'HBLNO'
}, this.comboxStlName, {
fieldLabel: '结算日期',

Loading…
Cancel
Save