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