12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Runtime.CompilerServices;
- using System.Runtime.Serialization;
- namespace GDNXFD.Data
- {
- //ID STATIONID PROJECTID LINEID WINDTURBINEID CATEGORY
- //STARTPLANTIME ENDPLANTIME OPERATOR WINDTURBINENAME
- //STATIONNAME PROJECTNAME LINENAME
- [DataContract]
- [Table("MAINTAINPLAN")]
- public class MaintainPlan : INotifyPropertyChanged
- {
- [DataMember]
- [Column("ID")]
- public string Id { get; set; }
- [DataMember]
- [Column("STATIONID")]
- public string StationId { get; set; }
- [DataMember]
- [Column("PROJECTID")]
- public string ProjectId { get; set; }
- [DataMember]
- [Column("LINEID")]
- public string LineId { get; set; }
- [DataMember]
- [Column("WINDTURBINEID")]
- public string WindturbineId { get; set; }
- [DataMember]
- [Column("CATEGORY")]
- public long Category { get; set; }
- [DataMember]
- [Column("STARTPLANTIME")]
- public DateTime StartPlanTime { get; set; }
- [DataMember]
- [Column("ENDPLANTIME")]
- public DateTime EndPlanTime { get; set; }
- [DataMember]
- [Column("OPERATOR")]
- public string Operator { get; set; }
- [DataMember]
- [Column("STATIONNAME")]
- public string StationName { get; set; }
- [DataMember]
- [Column("PROJECTNAME")]
- public string ProjectName { get; set; }
- [DataMember]
- [Column("LINENAME")]
- public string LineName { get; set; }
- [DataMember]
- [Column("WINDTURBINENAME")]
- public string WindturbineName { get; set; }
- /// <summary>
- /// Property changed event
- /// </summary>
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged([CallerMemberName] string caller = "")
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(caller));
- }
- }
- }
- }
|