ElectricalTestingPointAI.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. namespace GDNXFD.Data
  10. {
  11. [Table("ELECTRICALTESTINGPOINTAI2")]
  12. public class ElectricalTestingPointAI : TestingPointBase, INotifyPropertyChanged
  13. {
  14. private string _id;
  15. private string _stationId;
  16. private string _uniformCode;
  17. private string _name;
  18. [Column("ID")]
  19. public string Id
  20. {
  21. get { return _id; }
  22. set
  23. {
  24. _id = value;
  25. RaisePropertyChanged();
  26. }
  27. }
  28. [Column("WINDPOWERSTATIONID")]
  29. public string WindPowerStationId
  30. {
  31. get { return _stationId; }
  32. set
  33. {
  34. _stationId = value;
  35. RaisePropertyChanged();
  36. }
  37. }
  38. [Column("CODE")]
  39. public override string UniformCode
  40. {
  41. get { return _uniformCode; }
  42. set
  43. {
  44. _uniformCode = value;
  45. RaisePropertyChanged();
  46. }
  47. }
  48. [Column("NAME")]
  49. public override string Name
  50. {
  51. get { return _name; }
  52. set
  53. {
  54. _name = value;
  55. RaisePropertyChanged();
  56. }
  57. }
  58. /// <summary>
  59. /// Property changed event
  60. /// </summary>
  61. public event PropertyChangedEventHandler PropertyChanged;
  62. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  63. {
  64. if (PropertyChanged != null)
  65. {
  66. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  67. }
  68. }
  69. }
  70. }