using System; using System.Collections.Generic; using System.Text; namespace solarApp.Model { public class errMain_model { public int id { get; set; } public string site_id { get; set; } public Int64 timestamp { get; set; } public string datestamp { get; set; } public int uuidHash { get; set; } public Byte[] uuid { get; set; } public string isOpen {get; set;} public string sourceState { get; set; } public string ackState { get; set; } public Int16 ackRequired { get; set; } public int alarmClass { get; set; } public int priority { get; set; } public Int64 normalTime { get; set; } public Int64 ackTime { get; set; } public string userAccount { get; set; } public int alarmTransition { get; set; } public Int64 lastUpdate { get; set; } public string errDevice { get; set; } public string err_valuekind { get; set; } public string errValue { get; set; } public string errMsg { get; set; } public string errCode { get; set; } public string errDeviceBrand { get; set; } public string errDeviceModel { get; set; } } public class ExceptionEmailInfo { public int id { get; set; }//Id編號 public string site_id { get; set; }//電站編號 public string alarmClassName { get; set; }//異常類別 public string errDevice { get; set; }//設備編號 public string errValue { get; set; }//原始值 public string dev_time { get; set; }//發生時間 public string errMsg { get; set; }//錯誤原因 public string PowerStationName { get; set; }//電站名稱 public int PowerStationId { get; set; }//電站流水號 public string normalTime { get; set; }//賦歸時間 public string errMsgT { get; set; } //errMsgType public int priority { get; set; }//priority public int sourceState { get; set; }//異常狀態 public string emailTime { get; set; }//送到寄信資料表的時間 } public class NoticeInfo { public int Id { get; set; }//Id編號 public int Type { get; set; }//設備類型 public string RecipientName { get; set; }//收件人 public string RecipientEmail { get; set; }//收件Email public string Subject { get; set; }//主旨 public string Content { get; set; }//內容 public int ExceptionId { get; set; }//異常id public int IsDelivery { get; set; }//是否已寄出信件 public string DeliveryAt { get; set; }//寄出時間 public string CreatedAt { get; set; } //製造時間 } public class AlarmorionInfo { public int id { get; set; } public string site_id { get; set; } public string timestamp2 { get; set; } public string datestamp { get; set; } public int uuidHash { get; set; } //public Byte[] uuid { get; set; } public string isOpen { get; set; } public string sourceState { get; set; } public string ackState { get; set; } public Int16 ackRequired { get; set; } public int alarmClass { get; set; } public int priority { get; set; } public Int64 normalTime { get; set; } public Int64 ackTime { get; set; } public string userAccount { get; set; } public int alarmTransition { get; set; } public Int64 lastUpdate { get; set; } public string siteID { get; set; } public string deviceID { get; set; } public string errMsg { get; set; } } public class max_id { public int new_id { get; set; } public int old_id { get; set; } } }