alielie
2025-10-13 e3868d4d61ded0e76fc8fe3fdacdd9e6d9113cf1
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
66
67
68
69
70
71
72
using HMI.Core.Entity;
using HMI.Core;
 
namespace Plugin.DOControl.Entity
{
    public enum ControlType
    {
        BOOL = 0,
        BYTE = 1,
        INT = 2,
        UINT = 3,
        DINT = 4,
        UDINT = 5,
        REAL = 6,
        LREAL = 7,
        TIME = 8,
        WORD = 9,
        STRING = 10,
        WSTRING = 11,
        PULSE = 12
    }
    public class DOControlData : SelectBase
    {
        /// <summary>
        /// 分组名称
        /// </summary>
        [ExcelColumn("doc.group")]
        public string Group { get; set; }
 
        /// <summary>
        /// 控制点名称
        /// </summary>
        [ExcelColumn("doc.name")]
        public string Name { get; set; }
 
        /// <summary>
        /// 地址
        /// </summary>
        [ExcelColumn("doc.address")]
        public string Address { get; set; }
        [ExcelColumn("doc.readOnly")]
        public bool ReadOnly { get; set; }
 
        /// <summary>
        /// 按下值
        /// </summary>
        [ExcelColumn("doc.pressDownValue")]
        public string PressDownValue { get; set; }
 
        /// <summary>
        /// 抬起值
        /// </summary>
        [ExcelColumn("doc.pressUpValue")]
        public string PressUpValue { get; set; }
 
        /// <summary>
        /// 值格式
        /// </summary>
        public string ValueFormat { get; set; }
 
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }
 
        /// <summary>
        /// 控制类型
        /// </summary>
        [ExcelColumn("doc.controlType")]
        public ControlType ControlType { get; set; }
    }
}