ShutdownEvent.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. [DataContract]
  13. [Table("VIEW_SHUTDOWNEVENT")]
  14. public class ShutdownEvent : INotifyPropertyChanged
  15. {
  16. [DataMember]
  17. [Column("ID")]
  18. public string Id { get; set; }
  19. [DataMember]
  20. [Column("WINDTURBINEID")]
  21. public string WindturbineId { get; set; }
  22. [DataMember]
  23. [Column("WTNAME")]
  24. public string WtName { get; set; }
  25. [DataMember]
  26. [Column("STOPTIME")]
  27. public DateTime StopTime { get; set; }
  28. [DataMember]
  29. [Column("STOPHOURS")] //报警时间
  30. public double StopHours { get; set; }
  31. [DataMember]
  32. [Column("STOPTYPEID")]
  33. public string StopTypeId { get; set; }
  34. [DataMember]
  35. [Column("TYPENAME")]
  36. public string TypeName { get; set; }
  37. /// <summary>
  38. /// Property changed event
  39. /// </summary>
  40. public event PropertyChangedEventHandler PropertyChanged;
  41. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  42. {
  43. if (PropertyChanged != null)
  44. {
  45. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  46. }
  47. }
  48. }
  49. }