#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; }
    }
}