分支自 SuZhouGuanHong/TaiYuanTaiZhong

huanghongfeng
2024-07-15 a765da90e5ee63e04d2d8460a5ad1ebd0e8eb4db
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_Comm.ItemDB
{
    public partial class GDXDB
    {
        public event Action<GDXDB> OnReadSignal;
        /// <summary>
        /// 设备名
        /// </summary>
        public string R_Name { get; set; }
        /// <summary>
        /// 车轮SN号
        /// </summary>
        public string R_wheel_SN { get; set; }
        /// <summary>
        /// 车轮类型
        /// </summary>
        public short R_wheel_type { get; set; }
        /// <summary>
        /// 零件状态
        /// </summary>
        public byte R_part_status { get; set; }
        /// <summary>
        /// 零件工艺
        /// </summary>
        public byte R_part_process { get; set; }
        public bool machine_nr;
        public bool R_machine_nr
        {
            get
            {
                return machine_nr;
            }
            set
            {
                if (value && (R_Name == "4.24" || R_Name == "5.24" || R_Name == "6.24"))
                {
                    ReadSignal(this);
                }
                machine_nr = value;
            }
        }
        public byte R_direction { get; set; }
        public void ReadSignal(GDXDB reader)
        {
            Task.Run(() =>
            {
                OnReadSignal?.Invoke(reader);
            });
        }
    }
}