71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
using NPOI.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FrontendWebApi.Models
|
|
{
|
|
public class AlarmRecordPanelRawData
|
|
{
|
|
public string building_guid { get; set; }
|
|
public string building_name { get; set; }
|
|
public string main_system_guid { get; set; }
|
|
public string main_system_name { get; set; }
|
|
|
|
}
|
|
public class AlarmRecordPanel
|
|
{
|
|
public string building_guid { get; set; }
|
|
public string building_name { get; set; }
|
|
public List<MainSystemPanel> mainSystemPanels { get; set; }
|
|
}
|
|
|
|
public class MainSystemPanel
|
|
{
|
|
public string main_system_guid { get; set; }
|
|
public string main_system_name { get; set; }
|
|
}
|
|
|
|
public class AlarmRecord
|
|
{
|
|
public string device_number { get; set; }
|
|
public string device_point { get; set; }
|
|
public string alarm_path { get; set; }
|
|
public string msgText { get; set; }
|
|
public string alarm_timestamp { get; set; }
|
|
public int priority { get; set; }
|
|
public string normal_timestamp { get; set; }
|
|
public byte ackState { get; set; }
|
|
public string ackText { get; set; }
|
|
public string alarm_className { get; set; }
|
|
public string userAccount { get; set; }
|
|
}
|
|
|
|
public class AlarmRecordFullInfo : AlarmRecord
|
|
{
|
|
public string device_name { get; set; }
|
|
|
|
}
|
|
|
|
public class AlarmRecordFilter
|
|
{
|
|
public string StartTimestamp { get; set; }
|
|
public string EndTimestamp { get; set; }
|
|
public string Building_guid { get; set; }
|
|
public List<string> Main_system_guids { get; set; }
|
|
public byte IsSolve { get;set;}
|
|
public byte IsAck { get;set;}
|
|
}
|
|
|
|
public class VAlarmRecord
|
|
{
|
|
public DateTime timestamp { get; set; }
|
|
public int id { get; set; }
|
|
public int priority { get; set; }
|
|
public string alarmClass_txt { get; set; }
|
|
public string device_name { get; set; }
|
|
public string errMsg { get; set; }
|
|
}
|
|
}
|