| | |
| | | { |
| | | return WebResponseContent.Instance.Error("鏈壘鍒拌浠诲姟淇℃伅"); |
| | | } |
| | | if(task.TaskState == TaskStatusEnum.SC_Executing.ObjToInt()) |
| | | if (task.TaskState == TaskStatusEnum.SC_Executing.ObjToInt() || (task.DeviceCode.Contains("SC01")&& task.TaskState == TaskStatusEnum.Pending.ObjToInt())) |
| | | { |
| | | _taskService.UpdateTask(task, TaskStatusEnum.SC_Execute); |
| | | } |
| | |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("RecWMSTaskHandCancel"), AllowAnonymous] |
| | | public WebResponseContent RecWMSTaskHandCancel(int taskNum) |
| | | { |
| | | return Service.RecWMSTaskHandCancel(taskNum); |
| | | } |
| | | } |
| | | } |