| | |
| | | /// </summary> |
| | | /// <param name="saveModel">ä»»å¡å·</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous] |
| | | //[TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [HttpGet,HttpPost, Route("CompleteTaskAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> CompleteTaskAsync(int taskNum) |
| | | { |
| | | return await Service.CompleteAsync(taskNum); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡åæ¶ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet,Route("TaskCancel"), AllowAnonymous] |
| | | public WebResponseContent TaskCancel(int taskNum) |
| | | { |
| | | return Service.TaskCancel(taskNum); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("GetTaskInfo")] |
| | | public WebResponseContent GetTaskInfo() |
| | | { |
| | | return Service.GetTaskInfo(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 请æ±å
¥åºä»»å¡ |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | public async Task<WebResponseContent> RequestTaskAsync([FromBody] RequestTaskDto input) |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestInboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestInboundTaskAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.RequestTaskAsync(input); |
| | | return await Service.RequestInboundTaskAsync(input); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.RequestLocationAsync(input); |
| | |
| | | /// </summary> |
| | | /// <param name="request">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestOutTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | public async Task<WebResponseContent> RequestOutTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestOutboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestOutTaskAsync(taskDto); |
| | | return await Service.RequestOutboundTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åºåºè³ç¼ååº |
| | | /// </summary> |
| | | /// <param name="request">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("OutBoundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })] |
| | | public Task<WebResponseContent> OutBoundTaskAsync(string palletCode) |
| | | { |
| | | return Service.OutBoundTaskAsync(palletCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost,HttpGet,Route("UpdateTaskStatus") ,AllowAnonymous] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> UpdateTaskStatus([FromBody] UpdateStatusDto input) |
| | | { |
| | | return await Service.UpdateTaskStatus(input.TaskNum, input.TaskState); |
| | |
| | | return await Service.AcrossFloorTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跨楼å±ä»»å¡è¯·æ± |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestAcrossFloorTaskAsync")] |
| | | public async Task<WebResponseContent> RequestAcrossFloorTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestAcrossFloorTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestPointAcrossFloorTaskAsync")] |
| | | public async Task<WebResponseContent> RequestPointAcrossFloorTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestPointAcrossFloorTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AGVæ¬è¿ä»»å¡è¯·æ± |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestAGVCarryTaskAsync")] |
| | | public async Task<WebResponseContent> RequestAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestAGVCarryTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestAGVCarryTaskAsync")] |
| | | public async Task<WebResponseContent> RequestPointAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestPointAGVCarryTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetEmptyLocation")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<DtLocationInfo> GetEmptyLocation(string roadWay) |
| | | { |
| | | return await Service.GetEmptyLocation(roadWay); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetAGVEmptyCacheLocation")] |
| | | public async Task<DtLocationInfo> GetAGVEmptyCacheLocation(int AreaId) |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<DtLocationInfo> GetAGVEmptyCacheLocation(int AreaId,DtLocationInfo location) |
| | | { |
| | | return await Service.GetAGVEmptyCacheLocation(AreaId); |
| | | return await Service.GetAGVEmptyCacheLocation(AreaId,location); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("StackerIsNeedRelocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> StackerIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.StackerIsNeedRelocationAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("AGVIsNeedRelocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> AGVIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.AGVIsNeedRelocationAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public Task<WebResponseContent> ERPAllocate(DtStockInfo stockInfo) |
| | | { |
| | | return Service.ERPAllocate(stockInfo); |
| | | } |
| | | } |