1
pulg
2025-05-27 bc3d7a828114cb9df154da869ec986cf6733a779
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
48
49
50
51
52
53
54
55
56
using HH.WCS.Hexafluo.process;
using HH.WCS.Hexafluo.wms;
using HH.WCS.SJML.api;
using System.Collections.Generic;
using static HH.WCS.SJML.api.ApiModel;
 
namespace HH.WCS.Hexafluo.api
{
    /// <summary>
    /// api接口辅助类
    /// </summary>
    public class ApiHelper
    {
        static ApiHelper()
        {
 
        }
 
        internal static SimpleResult NoticeComplete()
        {
            //人工给信号出库完成时候,我们查询一下当前的出库单,查到了出库单,找到出库单相关的任务,是否全部完成,如果是修改中间表状态
            return new SimpleResult { };
        }
 
 
 
        internal static void AddTask(AddTaskModel model)
        {
            if (!TaskHelper.CheckExist(model.No))
            {
                if (LocationHelper.CheckExist(model.From) && LocationHelper.CheckExist(model.To))
                {
                    TaskHelper.CreateTask(model.No, model.From, model.To, "搬运", 99, "");
                }
 
            }
        }
 
        public class AddTaskModel
        {
            public string From { get; set; }
            public string To { get; set; }
            public string No { get; set; }
        }
        public class LocationModel
        {
            public string location { get; set; }
        }
 
        internal static SimpleResult OperateCameraInfo(List<LocationState> models)
        {
            DeviceProcess.SetCameraInfo(models);
            return null;
        }
    }
}