AdviceModel.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace GDNXFD.Data.Model
  9. {
  10. [DataContract]
  11. [Table("WISDOM_CALC_CACHE")]
  12. public class AdviceModel
  13. {
  14. [DataMember]
  15. [Column("ID")]
  16. public int Id { set; get; }
  17. [DataMember]
  18. [Column("WINDTURBINEID")]
  19. public string WindturbineId { set; get; }
  20. [DataMember]
  21. [Column("STATIONID")]
  22. public string StationId { set; get; }
  23. [DataMember]
  24. [Column("MODELID")]
  25. public string ModelId { set; get; }
  26. /// <summary>
  27. /// 建议操作
  28. /// </summary>
  29. [DataMember]
  30. [Column("ADVICEOPERATION")]
  31. public OperateStyle AdviseOperation { set; get; }
  32. /// <summary>
  33. /// 推荐来源 1=实时状态,2=报警,3=风功率预测,4=健康管理,5=性能等级评估
  34. /// </summary>
  35. [DataMember]
  36. [Column("ADVICETYPE")]
  37. public CalculationOriginType AdviceType { set; get; }
  38. /// <summary>
  39. /// 上一次更新时间
  40. /// </summary>
  41. [DataMember]
  42. [Column("LASTUPDATETIME")]
  43. public DateTime LastUpdateTime { set; get; }
  44. /// <summary>
  45. /// 建议执行时间
  46. /// </summary>
  47. [DataMember]
  48. [Column("ADVICEEXECUTETIME")]
  49. public DateTime AdviceExecuteTime { set; get; }
  50. /// <summary>
  51. /// 实际执行时间
  52. /// </summary>
  53. [DataMember]
  54. [Column("EXECUTETIME")]
  55. public DateTime? ExecuteTime { set; get; }
  56. /// <summary>
  57. /// 实际执行的动作
  58. /// </summary>
  59. [DataMember]
  60. [Column("EXECUTEOPERATION")]
  61. public OperateStyle? ExecuteOperation { set; get; }
  62. /// <summary>
  63. /// 操作员
  64. /// </summary>
  65. [DataMember]
  66. [Column("OPERATER")]
  67. public string Operater { set; get; }
  68. /// <summary>
  69. /// 计算结果当前状态,1=未执行,2=用户执行,3=用户取消,4=系统取消
  70. /// </summary>
  71. [DataMember]
  72. [Column("STATUS")]
  73. public int Status { set; get; }
  74. /// <summary>
  75. /// 备注
  76. /// </summary>
  77. [DataMember]
  78. [Column("NOTES")]
  79. public string Notes { set; get; }
  80. }
  81. }