2022-11-15 19:00:36 +08:00
|
|
|
|
using iTextSharp.xmp.impl;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2022-11-15 17:36:23 +08:00
|
|
|
|
|
|
|
|
|
namespace FrontendWebApi.Models
|
|
|
|
|
{
|
|
|
|
|
public class FindDevice
|
|
|
|
|
{
|
|
|
|
|
public string main_system_tag { get; set; }
|
2022-11-17 14:57:08 +08:00
|
|
|
|
public string sub_system_tag { get; set; }
|
2022-11-15 17:36:23 +08:00
|
|
|
|
public string building_tag { get; set; }
|
|
|
|
|
public string floor_tag { get; set; }
|
2022-11-15 19:00:36 +08:00
|
|
|
|
public string device_guid { get; set; }
|
2023-01-18 10:20:29 +08:00
|
|
|
|
public string device_number { get; set; }
|
2023-09-23 18:14:35 +08:00
|
|
|
|
|
|
|
|
|
public List<string> main_system_tags { get; set; } = new List<string>();
|
2022-11-15 17:36:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BuildList
|
|
|
|
|
{
|
|
|
|
|
public string full_name { get; set; }
|
|
|
|
|
public string building_tag { get; set; }
|
2022-12-07 11:10:04 +08:00
|
|
|
|
public string urn_3D { get; set; }
|
2023-02-02 12:08:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 0single_1group;燈控是否為群控/單獨(個別燈具)控制
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Int16 forge_light_group { get; set; }
|
2022-11-15 17:36:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class FloorList
|
|
|
|
|
{
|
|
|
|
|
public string full_name { get; set; }
|
|
|
|
|
public string floor_tag { get; set; }
|
2022-12-31 11:13:35 +08:00
|
|
|
|
public string floor_guid { get; set; }
|
2022-11-15 19:00:36 +08:00
|
|
|
|
public string map_name { get; set; }
|
|
|
|
|
public string floor_map_name { get; set; }
|
2022-12-30 19:03:31 +08:00
|
|
|
|
public string urn_3D { get; set; }
|
2022-11-15 17:36:23 +08:00
|
|
|
|
public List<DeviceLists> device_list {get; set;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DeviceLists
|
|
|
|
|
{
|
|
|
|
|
public string device_guid { get; set; }
|
2022-11-16 17:23:00 +08:00
|
|
|
|
public string device_number { get; set; }
|
2022-11-15 17:36:23 +08:00
|
|
|
|
public string full_name { get; set; }
|
|
|
|
|
public string device_coordinate { get; set; }
|
2022-11-15 19:00:36 +08:00
|
|
|
|
public string device_coordinate_3d { get; set; }
|
2022-11-15 17:36:23 +08:00
|
|
|
|
public string status { get; set; }
|
2022-12-01 19:32:32 +08:00
|
|
|
|
public int priority { get; set; }
|
2022-11-23 17:19:28 +08:00
|
|
|
|
public string device_status
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
Dictionary<string, string> name = new Dictionary<string, string>()
|
|
|
|
|
{
|
|
|
|
|
{ "0", "關閉"},
|
|
|
|
|
{ "1", "正常"},
|
|
|
|
|
{ "2", "異常"}
|
|
|
|
|
};
|
|
|
|
|
return name[status];
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-11-17 14:52:07 +08:00
|
|
|
|
public string device_image { get; set; }
|
2022-11-17 18:46:49 +08:00
|
|
|
|
public string device_image_url { get; set; }
|
2022-11-17 15:14:59 +08:00
|
|
|
|
public string device_normal_point_id { get; set; }
|
|
|
|
|
public string device_normal_point_guid { get; set; }
|
|
|
|
|
public string device_normal_point_col { get; set; }
|
2022-11-23 15:36:59 +08:00
|
|
|
|
public string device_normal_point_name { get; set; }
|
2022-11-17 15:14:59 +08:00
|
|
|
|
public string device_normal_point_value { get; set; }
|
2022-11-17 14:52:07 +08:00
|
|
|
|
public string device_normal_flashing { get; set; }
|
2023-04-25 22:22:20 +08:00
|
|
|
|
public string device_normal_color { get; set; }
|
2022-11-17 15:14:59 +08:00
|
|
|
|
public string device_close_point_id { get; set; }
|
|
|
|
|
public string device_close_point_guid { get; set; }
|
|
|
|
|
public string device_close_point_col { get; set; }
|
2022-11-23 15:36:59 +08:00
|
|
|
|
public string device_close_point_name { get; set; }
|
2022-11-17 15:14:59 +08:00
|
|
|
|
public string device_close_point_value { get; set; }
|
2022-11-17 14:52:07 +08:00
|
|
|
|
public string device_close_flashing { get; set; }
|
2023-04-25 22:22:20 +08:00
|
|
|
|
public string device_close_color { get; set; }
|
2022-11-17 15:14:59 +08:00
|
|
|
|
public string device_error_point_id { get; set; }
|
|
|
|
|
public string device_error_point_guid { get; set; }
|
|
|
|
|
public string device_error_point_col { get; set; }
|
2022-11-23 15:36:59 +08:00
|
|
|
|
public string device_error_point_name { get; set; }
|
2022-11-17 15:14:59 +08:00
|
|
|
|
public string device_error_point_value { get; set; }
|
2022-11-17 14:52:07 +08:00
|
|
|
|
public string device_error_flashing { get; set; }
|
2023-04-25 22:22:20 +08:00
|
|
|
|
public string device_error_color { get; set; }
|
2022-12-31 15:33:19 +08:00
|
|
|
|
public string room_dbid { get; set; }
|
2023-01-03 10:53:51 +08:00
|
|
|
|
public string forge_dbid { get; set; }
|
2022-11-17 18:25:40 +08:00
|
|
|
|
public List<DeviceNode> Device_nodes { get; set; }
|
2022-11-15 17:36:23 +08:00
|
|
|
|
}
|
2022-11-15 19:00:36 +08:00
|
|
|
|
|
2023-01-18 11:12:08 +08:00
|
|
|
|
public class DeviceBaseList
|
|
|
|
|
{
|
|
|
|
|
public string device_guid { get; set; }
|
|
|
|
|
public string device_number { get; set; }
|
|
|
|
|
public string full_name { get; set; }
|
|
|
|
|
public string device_coordinate { get; set; }
|
|
|
|
|
public string device_coordinate_3d { get; set; }
|
|
|
|
|
public int priority { get; set; }
|
|
|
|
|
public string forge_dbid { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-15 19:00:36 +08:00
|
|
|
|
public class DeviceBaseInfo
|
|
|
|
|
{
|
|
|
|
|
public string device_number { get; set; }
|
|
|
|
|
public string device_coordinate { get; set; }
|
|
|
|
|
public string device_coordinate_3d { get; set; }
|
|
|
|
|
public string full_name { get; set; }
|
|
|
|
|
public string device_ip { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DeviceOpeRecord
|
|
|
|
|
{
|
|
|
|
|
public string fix_do { get; set; }
|
|
|
|
|
public byte work_type { get; set; }
|
|
|
|
|
public string work_type_name
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
Dictionary<byte, string> name = new Dictionary<byte, string>()
|
|
|
|
|
{
|
|
|
|
|
{ 1 , "保養" },
|
|
|
|
|
{ 2 , "維修" }
|
|
|
|
|
};
|
|
|
|
|
return name[work_type];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string work_person_name { get; set; }
|
|
|
|
|
public DateTime finish_time { get; set; }
|
|
|
|
|
public DateTime created_at { get; set; }
|
2022-11-18 09:21:42 +08:00
|
|
|
|
public string createdAt
|
2022-11-15 19:00:36 +08:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2022-11-18 09:21:42 +08:00
|
|
|
|
return created_at.ToString("yyyy-MM-dd HH:mm:ss");
|
2022-11-15 19:00:36 +08:00
|
|
|
|
}
|
|
|
|
|
} //創建時間
|
|
|
|
|
|
2022-11-18 09:21:42 +08:00
|
|
|
|
public string finishTime
|
2022-11-15 19:00:36 +08:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2022-11-18 09:21:42 +08:00
|
|
|
|
return finish_time.ToString("yyyy-MM-dd HH:mm:ss");
|
2022-11-15 19:00:36 +08:00
|
|
|
|
}
|
|
|
|
|
} //結束時間
|
2022-11-17 17:56:21 +08:00
|
|
|
|
public string device_node_guid { get; set; }
|
|
|
|
|
public string device_node_name { get; set; }
|
2022-11-15 19:00:36 +08:00
|
|
|
|
}
|
2022-12-23 14:11:54 +08:00
|
|
|
|
|
|
|
|
|
public class DevForCor
|
|
|
|
|
{
|
|
|
|
|
public string device_guid { get; set; }
|
|
|
|
|
public string device_number { get; set; }
|
2022-12-27 10:10:55 +08:00
|
|
|
|
public string device_floor_tag { get; set; }
|
2022-12-23 14:11:54 +08:00
|
|
|
|
public string device_coordinate_3d { get; set; }
|
2023-02-24 16:03:17 +08:00
|
|
|
|
public string full_name { get; set; }
|
2022-12-27 18:44:22 +08:00
|
|
|
|
public int? forge_dbid { get; set; }
|
2023-03-13 15:26:34 +08:00
|
|
|
|
public List<DeviceNode> Device_nodes { get; set; }
|
2022-12-23 14:11:54 +08:00
|
|
|
|
}
|
2023-01-04 15:12:20 +08:00
|
|
|
|
|
|
|
|
|
public class DevNodeForCor
|
|
|
|
|
{
|
|
|
|
|
public string device_guid { get; set; }
|
|
|
|
|
public int priority { get; set; }
|
|
|
|
|
public string device_node_coordinate_3d { get; set; }
|
|
|
|
|
public int? forge_dbid { get; set; }
|
|
|
|
|
}
|
2023-01-06 18:39:55 +08:00
|
|
|
|
|
|
|
|
|
public class DeviceItemViewModel
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public short deleted { get; set; }
|
|
|
|
|
public string full_name { get; set; }
|
|
|
|
|
public string points { get; set; }
|
|
|
|
|
public string unit { get; set; }
|
|
|
|
|
public short is_show { get; set; }
|
|
|
|
|
public short? is_show_riserDiagram { get; set; }
|
|
|
|
|
public short is_controll { get; set; }
|
|
|
|
|
public short is_bool { get; set; }
|
|
|
|
|
public short is_link { get; set; }
|
|
|
|
|
public short is_show_history { get; set; }
|
|
|
|
|
public string device_system_tag { get; set; }
|
|
|
|
|
public string device_name_tag { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class FindDeviceItem : FindDevice
|
|
|
|
|
{
|
|
|
|
|
public string points { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
2023-01-13 16:06:47 +08:00
|
|
|
|
|
|
|
|
|
public class ForgeInvisible
|
|
|
|
|
{
|
|
|
|
|
public string invisible_type { get; set; }
|
|
|
|
|
public string invisible_value { get; set; }
|
|
|
|
|
public string sub_system_tag { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-23 18:14:35 +08:00
|
|
|
|
public class DeviceFullList : DeviceBaseList
|
|
|
|
|
{
|
|
|
|
|
public string device_building_tag { get; set; }
|
|
|
|
|
public string device_system_tag { get; set; }
|
|
|
|
|
public string device_name_tag { get; set; }
|
|
|
|
|
}
|
2023-01-13 16:06:47 +08:00
|
|
|
|
|
2023-10-24 18:04:16 +08:00
|
|
|
|
public class DeviceDisaster
|
|
|
|
|
{
|
|
|
|
|
public string device_guid { get; set; }
|
|
|
|
|
public string device_system_value { get; set; }
|
|
|
|
|
public string device_building_tag { get; set; }
|
|
|
|
|
public string device_system_tag { get; set; }
|
|
|
|
|
public string device_name_tag { get; set; }
|
|
|
|
|
public string device_floor_tag { get; set; }
|
|
|
|
|
public string device_serial_tag { get; set; }
|
|
|
|
|
public string device_number { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-26 18:13:06 +08:00
|
|
|
|
public class FindDeviceDisaster
|
|
|
|
|
{
|
|
|
|
|
public string building_tag { get; set; }
|
|
|
|
|
}
|
2022-11-15 17:36:23 +08:00
|
|
|
|
}
|