| | |
| | | public class PDAController : ApiBaseController<ITaskService, Dt_Task> |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | public PDAController(ITaskService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | private readonly ITaskCZService _taskCZService; |
| | | public PDAController(ITaskService service, IHttpContextAccessor httpContextAccessor, ITaskCZService taskCZService) : base(service) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _taskCZService = taskCZService; |
| | | } |
| | | |
| | | [HttpPost, Route("AGVPage"), AllowAnonymous] |
| | |
| | | } |
| | | |
| | | [HttpPost, Route("AddCZTask"), AllowAnonymous] |
| | | public WebResponseContent AddCZTask([FromBody] CZTaskDto czTaskDto) |
| | | public Task<WebResponseContent> AddCZTask([FromBody] CZTaskDto czTaskDto) |
| | | { |
| | | return WebResponseContent.Instance.OK(); |
| | | return _taskCZService.AddTaskCZAsync(czTaskDto); |
| | | } |
| | | |
| | | [HttpPost, Route("EmptyTask"), AllowAnonymous] |
| | | public Task<WebResponseContent> EmptyTask([FromBody] SaveModel saveModel) |
| | | { |
| | | return _taskCZService.EmptyTask(saveModel); |
| | | } |
| | | [HttpPost, Route("OutBoundTask"), AllowAnonymous] |
| | | public Task<WebResponseContent> OutBoundTask([FromBody] string sourceAddress) |
| | | { |
| | | return _taskCZService.OutBoundTask(sourceAddress); |
| | | } |
| | | |
| | | [HttpPost, Route("OutBoundTasks"), AllowAnonymous] |
| | | public Task<WebResponseContent> OutBoundTasks([FromBody] SaveModel saveModel) |
| | | { |
| | | return _taskCZService.OutBoundTasks(saveModel); |
| | | } |
| | | } |
| | | } |