|
@@ -62,8 +62,10 @@ namespace WCS.WorkEngineering.Systems
|
|
|
Station = task.WorkBench,
|
|
|
AddWho = "WCS"
|
|
|
};
|
|
|
+ if (task.Floor == 2) agvTask.Position = task.SrmStation;
|
|
|
db.Default.Insertable(agvTask).SplitTable().ExecuteCommand();
|
|
|
//更新任务状态
|
|
|
+
|
|
|
task.Status = Entity.TaskStatus.WaitingToExecute;
|
|
|
task.AgvTaskID = agvTask.ID;
|
|
|
db.Default.Updateable(task).ExecuteCommand();
|