WarningRecord.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Runtime.Serialization;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace GDNXFD.Data
  11. {
  12. // ( "ID" NVARCHAR2(50) NOT NULL ENABLE,
  13. //"WINDPOWERSTATIONID" VARCHAR2(50),
  14. //"WINDTURBINEID" VARCHAR2(50),
  15. //"STOPTIME" DATE,
  16. //"STARTTIME" DATE,
  17. //"STOPHOURS" NUMBER(18,2),
  18. //"LOSSPOWER" NUMBER(18,2),
  19. //"STOPTYPEID" VARCHAR2(50),
  20. //"ISHANDLE" NUMBER(*,0),
  21. //"WARNINGID" VARCHAR2(50),
  22. //"PROJECTID" VARCHAR2(50),
  23. //"HANDLEWAY" VARCHAR2(200),
  24. //"FAULTVIEW" VARCHAR2(200),
  25. //"STATUSCODE" NUMBER(*,0),
  26. //"MAINID" VARCHAR2(50),
  27. //"RESETRATE" VARCHAR2(50),
  28. //"STATERATE" VARCHAR2(50),
  29. //"FAILRATE" VARCHAR2(50),
  30. //"WARNINGRECORDSID" NUMBER(*,0),
  31. [DataContract]
  32. [Table("SHUTDOWNEVENT")]
  33. public class ShutdownEvent : INotifyPropertyChanged
  34. {
  35. [DataMember]
  36. [Column("ID")]
  37. public string Id { get; set; }
  38. [DataMember]
  39. [Column("STOPTIME")] //报警时间
  40. public DateTime StopTime { get; set; }
  41. [DataMember]
  42. [Column("WINDPOWERSTATIONID")]
  43. public string StationId { get; set; }
  44. [DataMember]
  45. [Column("WINDTURBINEID")]
  46. public string WindturbineId { get; set; }
  47. [DataMember]
  48. [Column("WARNINGID")]
  49. public string WaringId { get; set; }
  50. [DataMember]
  51. [Column("WARNINGRECORDSID")]
  52. public string WarningRecordId { get; set; }
  53. /// <summary>
  54. /// Property changed event
  55. /// </summary>
  56. public event PropertyChangedEventHandler PropertyChanged;
  57. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  58. {
  59. if (PropertyChanged != null)
  60. {
  61. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  62. }
  63. }
  64. }
  65. }