wanshenmean
2026-03-19 c493779a8504fe1eb548c865ff268a7f7436ec01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
        }
    }
}