| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Common.CommonEnum; |
| | |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO.Stock; |
| | | using WIDESEA_DTO.Task; |
| | | using WIDESEA_DTO.ToMes; |
| | | using WIDESEA_ITaskInfoService; |
| | | using WIDESEA_Model.Models; |
| | | |
| | |
| | | public TaskController(ITaskService service) : base(service) |
| | | { |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡å®ææ¥å£ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, Route("TaskCompleted"), AllowAnonymous] |
| | | public WebResponseContent TaskCompleted(int taskNum) |
| | | { |
| | | return Service.TaskCompleted(taskNum); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ç§»åºç³è¯·å¤ææ¥å£ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, Route("IsRelocations"), AllowAnonymous] |
| | | public WebResponseContent IsRelocations(int taskNum) |
| | | { |
| | | return Service.IsRelocations(taskNum); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 忶任塿¥å£ |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns></returns> |
| | | [HttpGet, Route("Cancelinventory"), AllowAnonymous] |
| | | public WebResponseContent Cancelinventory(int taskNum) |
| | | { |
| | | return Service.Cancelinventory(taskNum); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// WCSç³è¯·å
¥åºä»»å¡(ä¸åé
è´§ä½) |
| | | /// </summary> |
| | |
| | | return Service.DeviceRequestInboundTaskSimple(stationCode, palletCode); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
¥åºä»»å¡å®æ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("InboundTaskCompleted"), AllowAnonymous] |
| | | public WebResponseContent InboundTaskCompleted(int taskNum) |
| | | |
| | | [HttpGet, Route("chuku"), AllowAnonymous] |
| | | public WebResponseContent chuku(string locationCode) |
| | | { |
| | | return Service.InboundTaskCompleted(taskNum); |
| | | return Service.chuku(locationCode); |
| | | } |
| | | } |
| | | } |