dengjunjie
2026-03-03 2744064f23c2233fb700970801d2ddc802f38160
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core;
using WIDESEAWCS_DTO.AGV.HIKROBOT;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Tasks
{
    public partial class TaskJob
    {
        #region 处理海康AGV任务
        public void HIKROBOTTask(List<Dt_Task> tasks)
        {
            foreach (var item in tasks)
            {
                SendHIKROBOTTask(item);
            }
        }
        #endregion
 
        #region 下发海康AGV任务
        public void SendHIKROBOTTask(Dt_Task task)
        {
            WebResponseContent content = new WebResponseContent();
            HIKROBOTTaskSubmit hIKROBOTTaskSubmit = new HIKROBOTTaskSubmit();
            try
            {
                hIKROBOTTaskSubmit.taskType = "";
                hIKROBOTTaskSubmit.targetRoute = new List<TargetRouteDto> { new TargetRouteDto() };
                hIKROBOTTaskSubmit.initPriority = task.Grade;
            }
            catch (Exception ex)
            {
                content.Error(ex.Message);
            }
            finally
            {
 
            }
        }
        #endregion
    }
}