1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Runtime.Serialization;
- using System.Text;
- using System.Threading.Tasks;
- namespace GDNXFD.Data
- {
- [DataContract]
- [Table("VIEW_SHUTDOWNEVENT")]
- public class ShutdownEvent : INotifyPropertyChanged
- {
- [DataMember]
- [Column("ID")]
- public string Id { get; set; }
- [DataMember]
- [Column("WINDTURBINEID")]
- public string WindturbineId { get; set; }
- [DataMember]
- [Column("WTNAME")]
- public string WtName { get; set; }
- [DataMember]
- [Column("STOPTIME")]
- public DateTime StopTime { get; set; }
- [DataMember]
- [Column("STOPHOURS")] //报警时间
- public double StopHours { get; set; }
- [DataMember]
- [Column("STOPTYPEID")]
- public string StopTypeId { get; set; }
- [DataMember]
- [Column("TYPENAME")]
- public string TypeName { 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));
- }
- }
- }
- }
|