using WIDESEAWCS_ITaskInfoService;
|
using WIDESEAWCS_Model.Models;
|
|
namespace WIDESEAWCS_Tasks
|
{
|
/// <summary>
|
/// 输送线任务访问器:统一封装任务查询与 WMS 请求。
|
/// </summary>
|
public class ConveyorLineTaskFilter
|
{
|
private readonly ITaskService _taskService;
|
|
public ConveyorLineTaskFilter(ITaskService taskService)
|
{
|
_taskService = taskService;
|
}
|
|
public Dt_Task? QueryPendingTask(string deviceCode, string childDeviceCode)
|
{
|
return _taskService.QueryConveyorLineTask(deviceCode, childDeviceCode);
|
}
|
|
public Dt_Task? QueryExecutingTask(int taskNo, string childDeviceCode)
|
{
|
return _taskService.QueryExecutingConveyorLineTask(taskNo, childDeviceCode);
|
}
|
|
public bool RequestWmsTask(string barcode, string childDeviceCode)
|
{
|
return _taskService.RequestWMSTask(barcode, childDeviceCode).Status;
|
}
|
}
|
}
|