| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Common; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_DTO; |
| | | using WIDESEAWCS_DTO.WMS; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | |
| | |
| | | /// <param name="taskDTOs"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("UpdateTaskStatus"), AllowAnonymous] |
| | | public WebResponseContent UpdateTaskStatus([FromBody] object TaskDTO) |
| | | public ReturnGALAXIS UpdateTaskStatus([FromBody] object TaskDTO) |
| | | { |
| | | return _taskService.UpdateTaskStatus(TaskDTO, DeviceTypeEnum.GALAXIS); |
| | | ReturnGALAXIS returnGALAXIS = new ReturnGALAXIS(); |
| | | var take= _taskService.UpdateTaskStatus(TaskDTO, DeviceTypeEnum.GALAXIS); |
| | | if (take.Status) |
| | | { |
| | | returnGALAXIS.returnStatus = 0; |
| | | returnGALAXIS.msgTime=DateTime.Now.ToString(); |
| | | returnGALAXIS.returnInfo = ""; |
| | | } |
| | | else |
| | | { |
| | | returnGALAXIS.returnStatus=take.Code; |
| | | returnGALAXIS.msgTime=DateTime.Now.ToString(); |
| | | returnGALAXIS.returnInfo = take.Message; |
| | | } |
| | | |
| | | return returnGALAXIS; |
| | | } |
| | | } |
| | | } |