| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | { |
| | | return Service.AgvCarrying(row, startColumn, endColumn, layer, targetLayer); |
| | | } |
| | | /// <summary> |
| | | /// æµè¯å åæºåºåº |
| | | /// </summary> |
| | | [HttpPost, HttpGet, Route("SCOUT"), AllowAnonymous] |
| | | public WebResponseContent SCCarrying(string sourceAddress, string roadWay, int taskType) |
| | | { |
| | | WMSTaskDTO taskDTO = new WMSTaskDTO() |
| | | { |
| | | Id = 1, |
| | | SourceAddress = sourceAddress, |
| | | TaskNum = DateTime.Now.ToString("mmss").ObjToInt(), |
| | | PalletCode= roadWay+ DateTime.Now.ToString("mmss"), |
| | | RoadWay = roadWay, |
| | | TaskType = taskType, |
| | | TaskStatus = TaskStatusEnum.New.ObjToInt(), |
| | | TargetAddress = "", |
| | | Grade = 0, |
| | | WarehouseId = 1, |
| | | PalletType = 1 |
| | | }; |
| | | return Service.ReceiveWMSTask(new List<WMSTaskDTO> { taskDTO }); |
| | | } |
| | | /// <summary> |
| | | /// æµè¯å åæºå
¥åº |
| | | /// </summary> |
| | | [HttpPost, HttpGet, Route("SCIN"), AllowAnonymous] |
| | | public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, string roadWay, int taskType = 0) |
| | | { |
| | | return Service.RequestWMSTaskSimple(palletCode,sourceAddress, roadWay, taskType); |
| | | } |
| | | //[HttpPost, HttpGet, Route("WebSocketPushMessage"), AllowAnonymous] |
| | | //public WebResponseContent WebSocketPushMessage(string message) |
| | | //{ |