12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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
- {
- // ( "ID" NVARCHAR2(50) NOT NULL ENABLE,
- //"WINDPOWERSTATIONID" VARCHAR2(50),
- //"WINDTURBINEID" VARCHAR2(50),
- //"STOPTIME" DATE,
- //"STARTTIME" DATE,
- //"STOPHOURS" NUMBER(18,2),
- //"LOSSPOWER" NUMBER(18,2),
- //"STOPTYPEID" VARCHAR2(50),
- //"ISHANDLE" NUMBER(*,0),
- //"WARNINGID" VARCHAR2(50),
- //"PROJECTID" VARCHAR2(50),
- //"HANDLEWAY" VARCHAR2(200),
- //"FAULTVIEW" VARCHAR2(200),
- //"STATUSCODE" NUMBER(*,0),
- //"MAINID" VARCHAR2(50),
- //"RESETRATE" VARCHAR2(50),
- //"STATERATE" VARCHAR2(50),
- //"FAILRATE" VARCHAR2(50),
- //"WARNINGRECORDSID" NUMBER(*,0),
- [DataContract]
- [Table("SHUTDOWNEVENT")]
- public class ShutdownEvent : INotifyPropertyChanged
- {
- [DataMember]
- [Column("ID")]
- public string Id { get; set; }
- [DataMember]
- [Column("STOPTIME")] //报警时间
- public DateTime StopTime { get; set; }
- [DataMember]
- [Column("WINDPOWERSTATIONID")]
- public string StationId { get; set; }
- [DataMember]
- [Column("WINDTURBINEID")]
- public string WindturbineId { get; set; }
- [DataMember]
- [Column("WARNINGID")]
- public string WaringId { get; set; }
- [DataMember]
- [Column("WARNINGRECORDSID")]
- public string WarningRecordId { 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));
- }
- }
- }
- }
|