using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Common.CommonEnum;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Stock;
|
using WIDESEA_DTO.Task;
|
using WIDESEA_ITaskInfoService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_WMSServer.Controllers.TaskInfo
|
{
|
/// <summary>
|
/// 任务
|
/// </summary>
|
[Route("api/Task")]
|
[ApiController]
|
public class WCSTaskController : ApiBaseController<ITaskService, Dt_Task>
|
{
|
public WCSTaskController(ITaskService service) : base(service)
|
{
|
}
|
|
//输送线任务下发
|
[HttpPost, Route("PLC_IssueTasks")]
|
public WCSginseng PLC_IssueTasks(int TaskId, int AreaNo, string ContainerNo, int ContainerType, string FromPoint, string ToPoint)
|
{
|
return Service.PLC_IssueTasks(TaskId, AreaNo,ContainerNo, ContainerType, FromPoint, ToPoint);
|
}
|
|
//堆垛机任务下发
|
[HttpGet, Route("SC_IssueTasks")]
|
public WCSginseng SC_IssueTasks(int TaskId, int AreaNo, string ContainerNo, int ContainerType, string FromPoint, string ToPoint)
|
{
|
return Service.SC_IssueTasks(TaskId, AreaNo, ContainerNo, ContainerType, FromPoint, ToPoint);
|
}
|
|
}
|
}
|