| | |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO.ToMes; |
| | | using WIDESEA_ITaskInfoService; |
| | |
| | | { |
| | | return Service.sendAllocationTask(allocationTask); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// æç任塿°æ®ä¼ è¾å¯¹è±¡ |
| | | /// ç¨äºå
é¨ä¸å¡æ°æ®ä¼ è¾ |
| | | /// </summary> |
| | | public class PalletTaskDTO |
| | | { |
| | | /// <summary> |
| | | /// ä¸å¡ID |
| | | /// </summary> |
| | | public string BusinessId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ID |
| | | /// </summary> |
| | | public string TaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æçç¼ç |
| | | /// </summary> |
| | | public string PalletCode { get; set; } |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// MES忶任塿¥å£ |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("cancelTask"), AllowAnonymous] |
| | | public ApiResponse<object> Cancelinventory([FromBody] PalletTaskDTO palletTaskDTO) |
| | | { |
| | | return Service.Cancelinventory(palletTaskDTO.PalletCode); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// MESæå¨ä»»å¡å®æ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("mockComplete"), AllowAnonymous] |
| | | public WebResponseContent ManualTaskCompleted([FromBody] PalletTaskDTO palletTaskDTO) |
| | | { |
| | | return Service.ManualTaskCompleted(palletTaskDTO.PalletCode); |
| | | } |
| | | } |
| | | } |