| | |
| | | 锘縰sing HslCommunication; |
| | | using HslCommunication.WebSocket; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Information; |
| | |
| | | |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | var RelocationTask = _taskRepository.QueryData(x => _taskService.TaskAcrossFloorboundTypes.Contains(x.TaskType) && x.TaskState == (int)TaskAGVCarryStatusEnum.CarryNew); |
| | | var RelocationTask = _taskRepository.QueryData(x => _taskService.TaskRelocationboundTypes.Contains(x.TaskType) && x.TaskState == (int)TaskRelocationStatusEnum.RelocationNewAGV); |
| | | if (RelocationTask.Count > 0) |
| | | { |
| | | foreach (var item in RelocationTask) |
| | |
| | | var structs = BitConverter.GetBytes(InteractiveSignal).Reverse().ToArray().ToBoolArray(); |
| | | |
| | | bool IsWrite = false; |
| | | if (taskNum == 0) |
| | | |
| | | { |
| | | if (structs[0] && !structs[1]) |
| | | { |
| | |
| | | if (IsAddTask) |
| | | _taskService.ReceiveWMSTask(taskDTO); |
| | | |
| | | var taskNew = _taskRepository.QueryData(x => _taskService.TaskRelocationboundTypes.Contains(x.TaskType) && x.TaskState == (int)TaskAGVCarryStatusEnum.CarryNew); |
| | | var taskNew = _taskRepository.QueryData(x => _taskService.TaskRelocationboundTypes.Contains(x.TaskType) && x.TaskState == (int)TaskRelocationStatusEnum.RelocationNewAGV); |
| | | if (taskNew.Count > 0) |
| | | { |
| | | if (taskNew[0].Floor == "2F") |