领胜LDS 键盘AOI检测项目
wells.liu
2020-07-07 5918194fccdb2a2303e713b8d2f3335243b9e2ef
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
57
58
59
60
61
62
63
64
65
using Bro.Common.Helper;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using static Bro.Common.Helper.EnumHelper;
 
namespace Bro.Common.Interface
{
    public interface IProcess : ILogger, IExceptionHandler
    {
        #region 属性
        IProcessConfig IConfig { get; set; }
 
        List<ProcessMethodAttribute> ProcessMethodCollection { get; set; }
        Dictionary<string, MethodInfo> ProcessMethodDict { get; set; }
        List<IDevice> DeviceCollection { get; set; }
 
        string ProductionCode { get; set; }
        DeviceState ProcessState { get; set; }
 
        #endregion
 
        #region 方法
        /// <summary>
        /// 打开
        /// </summary>
        void Open(bool isServiceMode = false);
 
        void Open();
 
        /// <summary>
        /// 关闭
        /// </summary>
        void Close();
 
        /// <summary>
        /// 初始化Process
        /// </summary>
        void InitialProcess(string configPath);
 
        void InitialProcess();
 
        void InitialProcessMethods();
        #endregion
 
        #region 事件
        ///// <summary>
        ///// 图像输出事件
        ///// </summary>
        //event Action<string, Bitmap, string> OnBitmapOutput;
 
        event Action<DeviceState> OnProcessStateChanged;
        event Action<string> OnAlarmUpdate;        
 
        Action<DateTime, int> OnUpdateResult { get; set; }
        Action<float> OnUpdateCT { get; set; }
        #endregion
 
        #region 数据库操作
        void SaveProcessConfig(IProcessConfig config);
        void CreateNewConfig(IProcessConfig config,string newProductionCode);
        #endregion
    }
}