FaultHistory.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.Text;
  8. using System.Threading.Tasks;
  9. using System.Runtime.Serialization;
  10. using System.ServiceModel;
  11. namespace GDNXFD.Data
  12. {
  13. [DataContract]
  14. [Table("FAULTHISTORY")]
  15. public class FaultHistory : INotifyPropertyChanged
  16. {
  17. [DataMember]
  18. [Column("ID")]
  19. public long Id { get; set; }
  20. [DataMember]
  21. [Column("FAULTTIME")] //报警时间
  22. public DateTime AlertTime { get; set; }
  23. [DataMember]
  24. [Column("MESSAGETYPE")] //对象类型
  25. public int MessageType { get; set; }
  26. [DataMember]
  27. [Column("SNAPID")] //报警内容
  28. public long SnapID { get; set; }
  29. [DataMember]
  30. [Column("CONFIRMTYPE")]
  31. public int ConfirmType { get; set; }
  32. [DataMember]
  33. [Column("CONFIRMTIME")]
  34. public DateTime? ConfirmTime { get; set; }
  35. [DataMember]
  36. [Column("CONFIRMPERSON")]
  37. public string ConfirmPerson { get; set; }
  38. //人为选择的首出报警
  39. [DataMember]
  40. [Column("ALERTSNAPID")]
  41. public long AlertSnapId { get; set; }
  42. /// <summary>
  43. /// Property changed event
  44. /// </summary>
  45. public event PropertyChangedEventHandler PropertyChanged;
  46. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  47. {
  48. if (PropertyChanged != null)
  49. {
  50. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  51. }
  52. }
  53. }
  54. }