xxyy
2025-03-18 d4cae5c48af02e109b1febce8c7c21e560cd6525
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 命名空间:WIDESEAWCS_QuartzJob
 * 创建者:胡童庆
 * 创建时间:2024/8/2 16:13:36
 * 版本:V1.0.0
 * 描述:设备协议DTO
 *
 * ----------------------------------------------------------------
 * 修改人:
 * 修改时间:
 * 版本:V1.0.1
 * 修改说明:
 * 
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEAWCS_QuartzJob.DTO
{
    public class DeviceProDTO
    {
        /// <summary>
        /// 协议主键
        /// </summary>
        public int DeviceProId { get; set; }
 
        /// <summary>
        /// 设备信息主键
        /// </summary>
        public int DeviceId { get; set; }
 
        /// <summary>
        /// 子设备编号
        /// </summary>
        public string DeviceChildCode { get; set; }
 
        /// <summary>
        /// 协议数据块
        /// </summary>
        public string DeviceProDataBlock { get; set; }
 
        /// <summary>
        /// 偏移量
        /// </summary>
        public decimal DeviceProOffset { get; set; }
 
        /// <summary>
        /// 协议地址
        /// </summary>
        public string DeviceProAddress
        {
            get
            {
                return DeviceProDataBlock + "." + DeviceProOffset;
            }
        }
 
        /// <summary>
        /// 数据类型
        /// </summary>
        public string DeviceDataType { get; set; }
 
        /// <summary>
        /// 数据长度
        /// </summary>
        public int DeviceProDataLength { get; set; }
 
        /// <summary>
        /// 参数名称
        /// </summary>
        public string DeviceProParamName { get; set; }
 
        /// <summary>
        /// 参数类型
        /// </summary>
        public string DeviceProParamType { get; set; }
 
        /// <summary>
        /// 参数说明
        /// </summary>
        public string DeviceProParamDes { get; set; }
    }
}