DeviceFault.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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("P3_DEVICE_FAULT")]
  15. public class DeviceFault: INotifyPropertyChanged
  16. {
  17. [DataMember]
  18. [Column("ID")]
  19. public string ID { get; set; }
  20. [DataMember]
  21. [Column("CODE")]
  22. public string code { get; set; }
  23. [DataMember]
  24. [Column("FAULTID")]
  25. public string FaultId { get; set; }
  26. [DataMember]
  27. [Column("NAME")]
  28. public string Name { get; set; }
  29. [DataMember]
  30. [Column("HALTTYPE")]
  31. public string HaltType { get; set; }
  32. [DataMember]
  33. [Column("CATEGORY")]
  34. public string CateGory { get; set; }
  35. [DataMember]
  36. [Column("FAULTLEVEL")]
  37. public int FaultLevel { get; set; }
  38. [DataMember]
  39. [Column("CAUSE")]
  40. public string Cause { get; set; }
  41. [DataMember]
  42. [Column("DEVICEMODEL")]
  43. public string DeviceModel { get; set; }
  44. /// <summary>
  45. /// Property changed event
  46. /// </summary>
  47. public event PropertyChangedEventHandler PropertyChanged;
  48. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  49. {
  50. if (PropertyChanged != null)
  51. {
  52. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  53. }
  54. }
  55. }
  56. }