|
|
|
@ -2065,6 +2065,7 @@ namespace DSWeb.Areas.Dispatch.Controllers
|
|
|
|
|
var cdc = new Common.DB.CommonDataContext();
|
|
|
|
|
var currTaskList = cdc.op_task.Where(x => x.BSNO == headData.gId).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var currtask = new op_task_md();
|
|
|
|
|
|
|
|
|
|
if (currTaskList != null && currTaskList.Count > 0)
|
|
|
|
@ -2100,11 +2101,11 @@ namespace DSWeb.Areas.Dispatch.Controllers
|
|
|
|
|
if (driverList != null && driverList.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
currtask.CREATEUSER = driverList[0].DrvName;
|
|
|
|
|
currtask.CREATER = driverList[0].DrvName;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cdc.op_task.AddOrUpdate(currtask);
|
|
|
|
|
cdc.SaveChanges();
|
|
|
|
|