|
|
|
@ -1985,7 +1985,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);
|
|
|
|
@ -2018,6 +2023,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);
|
|
|
|
|
}
|
|
|
|
@ -2058,7 +2064,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) {
|
|
|
|
|
|
|
|
|
|