| | |
| | | using WIDESEA_DTO; |
| | | using Org.BouncyCastle.Asn1.Mozilla; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.Task; |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="saveModel">ä»»å¡å·</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous] |
| | | [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("RequestInboundTaskAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestInboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestInboundTaskAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.RequestInboundTaskAsync(input); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°è´§ä½ä»»å¡ç¶æå°ä¸ä¸ä¸ªèç¹ |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestRelocationTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input) |
| | | public Task<WebResponseContent> RequestRelocationTaskAsync(string SourceAddress, string TargetAddress) |
| | | { |
| | | return await Service.RequestLocationAsync(input); |
| | | return Service.RequestRelocationTaskAsync(SourceAddress, TargetAddress); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="request">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestOutboundTaskAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestOutboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto 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, string remark, int doubleTray) |
| | | { |
| | | return Service.OutBoundTaskAsync(palletCode, remark, doubleTray); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("OtherOutBoundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })] |
| | | public Task<WebResponseContent> OtherOutBoundTaskAsync([FromBody] List<DtStockInfoDetail> details) |
| | | { |
| | | return Service.OtherOutBoundTaskAsync(details); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("HandAllocateOutBoundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })] |
| | | public Task<WebResponseContent> HandAllocateOutBoundTaskAsync([FromBody] List<DtStockInfoDetail> details) |
| | | { |
| | | return Service.HandAllocateOutBoundTaskAsync(details); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | [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("UpdateStartLocationInfo")] |
| | | public async Task<WebResponseContent> UpdateStartLocationInfo([FromBody]Dt_Task task) |
| | | { |
| | | return await Service.UpdateStartLocationInfo(task); |
| | | } |
| | | [HttpPost,HttpGet, AllowAnonymous, Route("RequestLocation")] |
| | | public Task<WebResponseContent> RequestLocation(string palletCode) |
| | | { |
| | | return Service.RequestLocation(palletCode); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åå§åæåæº |
| | | /// </summary> |
| | | [HttpGet, HttpPost, AllowAnonymous, Route("elevator")] |
| | | public Task<WebResponseContent> InitializationElevator() |
| | | { |
| | | return Service.InitializationElevator(); |
| | | } |
| | | } |