|
@@ -103,9 +103,25 @@ namespace WCS.WorkEngineering.Systems
|
|
|
db.Default.UpdateableRowLock(task).UpdateColumns(x => new { x.Status, x.AgvTaskID }).ExecuteCommand();
|
|
|
task.AddWCS_TASK_DTL(db.Default, task.Device, $"初始化单独返皮盘任务");
|
|
|
}
|
|
|
- else if (task.BusType == TaskBusType.芯股用空托盘入库.GetDescription())
|
|
|
+ else if (task.BusType == TaskBusType.芯股用空托盘入库.GetDescription()) return;
|
|
|
+ else if (task.BusType == TaskBusType.人工满托入库.GetDescription())
|
|
|
{
|
|
|
- return;
|
|
|
+ var agv = new WCS_AgvTaskInfo()
|
|
|
+ {
|
|
|
+ ID = db.GetAgvTaskId(),
|
|
|
+ TaskType = AGVTaskType.EnterDepot,
|
|
|
+ Status = AGVTaskStatus.NewBuild,
|
|
|
+ TaskId = task.ID,
|
|
|
+ Position = task.WorkBench,
|
|
|
+ Station = task.AddrFrom,
|
|
|
+ AddWho = "WCS",
|
|
|
+ AddTime = DateTime.Now
|
|
|
+ };
|
|
|
+ db.Default.InsertableRowLock(agv).SplitTable().ExecuteCommand();
|
|
|
+ task.AgvTaskID = agv.ID;
|
|
|
+ task.Status = Entity.TaskStatus.WaitingToExecute;
|
|
|
+ db.Default.UpdateableRowLock(task).UpdateColumns(x => new { x.Status, x.AgvTaskID }).ExecuteCommand();
|
|
|
+ task.AddWCS_TASK_DTL(db.Default, task.Device, $"初始化人工满托入库任务");
|
|
|
}
|
|
|
else
|
|
|
{
|