1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- using System.Runtime.Serialization;
- using System.ServiceModel;
- namespace GDNXFD.Data
- {
- [DataContract]
- [Table("FAULTHISTORY")]
- public class FaultHistory : INotifyPropertyChanged
- {
- [DataMember]
- [Column("ID")]
- public long Id { get; set; }
- [DataMember]
- [Column("FAULTTIME")] //报警时间
- public DateTime AlertTime { get; set; }
- [DataMember]
- [Column("MESSAGETYPE")] //对象类型
- public int MessageType { get; set; }
- [DataMember]
- [Column("SNAPID")] //报警内容
- public long SnapID { get; set; }
- [DataMember]
- [Column("CONFIRMTYPE")]
- public int ConfirmType { get; set; }
- [DataMember]
- [Column("CONFIRMTIME")]
- public DateTime? ConfirmTime { get; set; }
- [DataMember]
- [Column("CONFIRMPERSON")]
- public string ConfirmPerson { get; set; }
- //人为选择的首出报警
- [DataMember]
- [Column("ALERTSNAPID")]
- public long AlertSnapId { 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));
- }
- }
- }
- }
|