|
|
@ -210,7 +210,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
var headData = JsonConvert.Deserialize<MsOpAirn>(data);
|
|
|
|
var headData = JsonConvert.Deserialize<MsOpAirn>(data);
|
|
|
|
|
|
|
|
DBResult result=new DBResult();
|
|
|
|
var CargobodyList = JsonConvert.Deserialize<List<MsOpAirn_Cargomb>>(CargoBody);
|
|
|
|
var CargobodyList = JsonConvert.Deserialize<List<MsOpAirn_Cargomb>>(CargoBody);
|
|
|
|
var CargodelbodyList = JsonConvert.Deserialize<List<MsOpAirn_Cargomb>>(CargoDelBody);
|
|
|
|
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");
|
|
|
|
//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 isPost = true;
|
|
|
|
var errorstr = "";
|
|
|
|
var errorstr = "";
|
|
|
|
//var isuse = false;
|
|
|
|
//var isuse = false;
|
|
|
@ -263,7 +269,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
var feecount = BasicDataRefDAL.GetExist("ch_fee", " BSNO='" + headData.BSNO + "' ");
|
|
|
|
var feecount = BasicDataRefDAL.GetExist("ch_fee", " BSNO='" + headData.BSNO + "' ");
|
|
|
|
|
|
|
|
|
|
|
|
if (feecount > 0) {
|
|
|
|
if (feecount > 0) {
|
|
|
|
var oldheadData = MsOpAirnDAL.GetData(" B.BSNO='" + headData.BSNO + "' ");
|
|
|
|
|
|
|
|
headData.BLFRT = oldheadData.BLFRT;
|
|
|
|
headData.BLFRT = oldheadData.BLFRT;
|
|
|
|
|
|
|
|
|
|
|
|
headData.PFREIGHT = oldheadData.PFREIGHT;
|
|
|
|
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"]),"内贸空运","主单保存");
|
|
|
|
BasicDataRefDAL.SaveLog("opstatus="+ opstatus+":"+JsonConvert.Serialize(headData)+"//"+ JsonConvert.Serialize(CargobodyList), Convert.ToString(Session["SHOWNAME"]),"内贸空运","主单保存");
|
|
|
|
|
|
|
|
|
|
|
|
var modb = new ModelObjectRepository();
|
|
|
|
var modb = new ModelObjectRepository();
|
|
|
|
DBResult result = modb.Save(headData,
|
|
|
|
result = modb.Save(headData,
|
|
|
|
ModelObjectConvert<MsOpAirn_Cargomb>.ToModelObjectList(CargobodyList),
|
|
|
|
ModelObjectConvert<MsOpAirn_Cargomb>.ToModelObjectList(CargobodyList),
|
|
|
|
ModelObjectConvert<MsOpAirn_Cargomb>.ToModelObjectList(CargodelbodyList)
|
|
|
|
ModelObjectConvert<MsOpAirn_Cargomb>.ToModelObjectList(CargodelbodyList)
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -506,7 +512,6 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
if (iscreatecustno == true)
|
|
|
|
if (iscreatecustno == true)
|
|
|
|
MsSysBillNoSetDAL.DeleteBsNo(headData.CUSTNO);
|
|
|
|
MsSysBillNoSetDAL.DeleteBsNo(headData.CUSTNO);
|
|
|
|
|
|
|
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
|
|
|
result.Success = false;
|
|
|
|
result.Success = false;
|
|
|
|
result.Message = errorstr + "重复,不允许保存!";
|
|
|
|
result.Message = errorstr + "重复,不允许保存!";
|
|
|
|
|
|
|
|
|
|
|
|