alielie
2025-03-13 a3ba25607612818c28d421bfa8eb2f92339d71ac
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
using HMI.Core.Entity;
using System;
 
namespace HMI.IOMonitor.Entity
{
    /// <summary>
    /// DIO属性类
    /// </summary>
    [Serializable]
    public class DIO :NotifyBase
    {
        public DIO()
        {
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="diotype">DIO类型</param>
        /// <param name="name">DIO名称</param>
        /// <param name="no">DIO编号</param>
        /// <param name="value">DIO的值</param>
        public DIO(string diotype, string name, string no, bool value)
        {
            this.DIOType = diotype;
            this.Name = name;
            this.No = no;
            this.Value = value;
        }
 
 
        /// <summary>
        /// DIO类型
        /// </summary>
        private string dIOType;
        public string DIOType { get => dIOType; set { Set(ref dIOType, value); } }
 
        /// <summary>
        /// 纯编号
        /// </summary>
        private decimal dioNo;
        public decimal DIO_No { get => dioNo; set { Set(ref dioNo, value); } }
 
        /// <summary>
        /// 名称
        /// </summary>
        private string name;
        public string Name { get => name; set { Set(ref name, value); } }
 
        /// <summary>
        /// DIO编号
        /// </summary>
        public string No { get; set; }
 
        ////[XmlIgnore]
 
        /// <summary>
        /// DIO的值
        /// </summary>
        public bool Value { get; set; }
    }
}