123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using IntelligentControlForsx.Service.WindturbineControl.Domain.Cmd;
- namespace IntelligentControlForsx.Service.WindturbineControl.Domain.Task
- {
- /// <summary>
- /// 控制任务
- /// </summary>
- public class ControlTask
- {
- /// <summary>
- /// 日志id
- /// </summary>
- public int LogId { set; get; }
- /// <summary>
- /// 风机编号
- /// </summary>
- public string WindturbineId { set; get; }
- /// <summary>
- /// 风机型号
- /// </summary>
- public string ModelId { set; get; }
- /// <summary>
- /// 风场编号
- /// </summary>
- public string StationId { set; get; }
- /// <summary>
- /// 控制类型
- /// </summary>
- public CmdType ControlType;
- /// <summary>
- /// Modbus命令类型 遥信-0,遥测-1,遥控-2,遥调-3,遥视-4
- /// </summary>
- public byte GycpType;
- /// <summary>
- /// 命令操作句柄
- /// </summary>
- public IntPtr CmdIntPtr { set; get; }
- /// <summary>
- /// 操作用户
- /// </summary>
- public int ControlUserId { set; get; }
- /// <summary>
- /// 操作用户姓名
- /// </summary>
- public string ControlUserName { set; get; }
- /// <summary>
- /// 命令地址ID
- /// </summary>
- public int CmdId { set; get; }
- /// <summary>
- /// 命令值
- /// </summary>
- public double CmdValue { set; get; }
- /// <summary>
- /// 任务创建时间
- /// </summary>
- public DateTime CreateTime { set; get; }
- /// <summary>
- /// 发送控制命令时间
- /// </summary>
- public DateTime? SendControlTime { set; get; }
- /// <summary>
- /// 控制命令错误码
- /// </summary>
- public int? SendControlErrorInfo { set; get; }
- /// <summary>
- /// 控制命令是否发送成功
- /// </summary>
- public bool? IsSendControlSuccess { set; get; }
- /// <summary>
- /// 发送复位命令时间--105机型 命令地址置0
- /// </summary>
- public DateTime? SendResetTime { set; get; }
- /// <summary>
- /// 复位命令是否成功105机型 命令地址置0
- /// </summary>
- public bool? IsSendResetSuccess { set; get; }
- /// <summary>
- /// 复位命令错误码
- /// </summary>
- public int? SendResetlErrorInfo { set; get; }
- /// <summary>
- /// 是否已保存至数据库
- /// </summary>
- public bool IsSave { set; get; }
- /// <summary>
- /// 发送记录是否更新完毕
- /// </summary>
- public bool IsUpdateOver { set; get; }
- }
- }
|