MaintainPlan.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.ComponentModel;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.Serialization;
  6. namespace GDNXFD.Data
  7. {
  8. //ID STATIONID PROJECTID LINEID WINDTURBINEID CATEGORY
  9. //STARTPLANTIME ENDPLANTIME OPERATOR WINDTURBINENAME
  10. //STATIONNAME PROJECTNAME LINENAME
  11. [DataContract]
  12. [Table("MAINTAINPLAN")]
  13. public class MaintainPlan : INotifyPropertyChanged
  14. {
  15. [DataMember]
  16. [Column("ID")]
  17. public string Id { get; set; }
  18. [DataMember]
  19. [Column("STATIONID")]
  20. public string StationId { get; set; }
  21. [DataMember]
  22. [Column("PROJECTID")]
  23. public string ProjectId { get; set; }
  24. [DataMember]
  25. [Column("LINEID")]
  26. public string LineId { get; set; }
  27. [DataMember]
  28. [Column("WINDTURBINEID")]
  29. public string WindturbineId { get; set; }
  30. [DataMember]
  31. [Column("CATEGORY")]
  32. public long Category { get; set; }
  33. [DataMember]
  34. [Column("STARTPLANTIME")]
  35. public DateTime StartPlanTime { get; set; }
  36. [DataMember]
  37. [Column("ENDPLANTIME")]
  38. public DateTime EndPlanTime { get; set; }
  39. [DataMember]
  40. [Column("OPERATOR")]
  41. public string Operator { get; set; }
  42. [DataMember]
  43. [Column("STATIONNAME")]
  44. public string StationName { get; set; }
  45. [DataMember]
  46. [Column("PROJECTNAME")]
  47. public string ProjectName { get; set; }
  48. [DataMember]
  49. [Column("LINENAME")]
  50. public string LineName { get; set; }
  51. [DataMember]
  52. [Column("WINDTURBINENAME")]
  53. public string WindturbineName { get; set; }
  54. /// <summary>
  55. /// Property changed event
  56. /// </summary>
  57. public event PropertyChangedEventHandler PropertyChanged;
  58. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  59. {
  60. if (PropertyChanged != null)
  61. {
  62. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  63. }
  64. }
  65. }
  66. }