方合用,任务列表中的派车业务,生成费用时在BXGID中记录”任务生成“,在【取消生成费用】时,仅删除此业务中 BXGID=”任务生成“ 的费用

dev
ddlucky 5 months ago
parent db454520c2
commit 6a6b30ce2d

@ -1669,7 +1669,12 @@ namespace DSWeb.Areas.TruckMng.DAL.MsRptPcHeadEdit
{
foreach (var orderfee in orderfeeList)
{
MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, "","","RMB","车辆成本");
//MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, "","","RMB","车辆成本");
var newfee = ChFeeHelper.getChFee(USERID, headData.gId, "车辆费用", 2, orderfee.FEENAME, orderfee.AMOUNT, "单次", 1, "", "","");
newfee.BXGID = "任务生成";
cdc.ch_fee.Add(newfee);
}
task.ISCOMPLETE = 1;
cdc.op_task.AddOrUpdate(task);
@ -1702,6 +1707,7 @@ namespace DSWeb.Areas.TruckMng.DAL.MsRptPcHeadEdit
//MsChFeeDAL.MakeNewFee(USERID, headData.gId, "车辆费用", "其它", 2, orderfee.FEENAME, orderfee.AMOUNT, "单票", 1, "");
var newfee = ChFeeHelper.getChFee(USERID, headData.gId, cust, 2, feename, (decimal)Fuel.JYAMOUNT, "单次", (decimal)Fuel.JYCOUNT, "", Fuel.JYTYPE+" "+Fuel.REMARK);
newfee.BXGID = "任务生成";
cdc.ch_fee.Add(newfee);
}
@ -1742,7 +1748,7 @@ namespace DSWeb.Areas.TruckMng.DAL.MsRptPcHeadEdit
return result;
}
var feelist = cdc.ch_fee.Where(x => x.BSNO == headData.gId ).ToList();
var feelist = cdc.ch_fee.Where(x => x.BSNO == headData.gId && x.BXGID=="任务生成" ).ToList();
if (feelist != null && feelist.Count > 0) {

Loading…
Cancel
Save