ControlTask.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using IntelligentControlForsx.Service.WindturbineControl.Domain.Cmd;
  7. namespace IntelligentControlForsx.Service.WindturbineControl.Domain.Task
  8. {
  9. /// <summary>
  10. /// 控制任务
  11. /// </summary>
  12. public class ControlTask
  13. {
  14. /// <summary>
  15. /// 日志id
  16. /// </summary>
  17. public int LogId { set; get; }
  18. /// <summary>
  19. /// 风机编号
  20. /// </summary>
  21. public string WindturbineId { set; get; }
  22. /// <summary>
  23. /// 风机型号
  24. /// </summary>
  25. public string ModelId { set; get; }
  26. /// <summary>
  27. /// 风场编号
  28. /// </summary>
  29. public string StationId { set; get; }
  30. /// <summary>
  31. /// 控制类型
  32. /// </summary>
  33. public CmdType ControlType;
  34. /// <summary>
  35. /// Modbus命令类型 遥信-0,遥测-1,遥控-2,遥调-3,遥视-4
  36. /// </summary>
  37. public byte GycpType;
  38. /// <summary>
  39. /// 命令操作句柄
  40. /// </summary>
  41. public IntPtr CmdIntPtr { set; get; }
  42. /// <summary>
  43. /// 操作用户
  44. /// </summary>
  45. public int ControlUserId { set; get; }
  46. /// <summary>
  47. /// 操作用户姓名
  48. /// </summary>
  49. public string ControlUserName { set; get; }
  50. /// <summary>
  51. /// 命令地址ID
  52. /// </summary>
  53. public int CmdId { set; get; }
  54. /// <summary>
  55. /// 命令值
  56. /// </summary>
  57. public double CmdValue { set; get; }
  58. /// <summary>
  59. /// 任务创建时间
  60. /// </summary>
  61. public DateTime CreateTime { set; get; }
  62. /// <summary>
  63. /// 发送控制命令时间
  64. /// </summary>
  65. public DateTime? SendControlTime { set; get; }
  66. /// <summary>
  67. /// 控制命令错误码
  68. /// </summary>
  69. public int? SendControlErrorInfo { set; get; }
  70. /// <summary>
  71. /// 控制命令是否发送成功
  72. /// </summary>
  73. public bool? IsSendControlSuccess { set; get; }
  74. /// <summary>
  75. /// 发送复位命令时间--105机型 命令地址置0
  76. /// </summary>
  77. public DateTime? SendResetTime { set; get; }
  78. /// <summary>
  79. /// 复位命令是否成功105机型 命令地址置0
  80. /// </summary>
  81. public bool? IsSendResetSuccess { set; get; }
  82. /// <summary>
  83. /// 复位命令错误码
  84. /// </summary>
  85. public int? SendResetlErrorInfo { set; get; }
  86. /// <summary>
  87. /// 是否已保存至数据库
  88. /// </summary>
  89. public bool IsSave { set; get; }
  90. /// <summary>
  91. /// 发送记录是否更新完毕
  92. /// </summary>
  93. public bool IsUpdateOver { set; get; }
  94. }
  95. }