193 lines
6.8 KiB
C#
193 lines
6.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Repository.Models
|
|
{
|
|
public enum BackgroundServiceTaskType : byte
|
|
{
|
|
raw_data_archive = 0, //資料歸檔
|
|
data_delivery = 1, //資料派送
|
|
}
|
|
|
|
public class BackgroundServiceTask
|
|
{
|
|
private string complete_at;
|
|
private string created_at;
|
|
private string updated_at;
|
|
public int Id { get; set; }
|
|
public byte Task_type { get; set; }
|
|
public string Target_ip { get; set; }
|
|
public string Target_table { get; set; }
|
|
public string Mode { get; set; }
|
|
public string Target_data { get; set; }
|
|
public string Target_files { get; set; }
|
|
public int Repeat_times { get; set; }
|
|
public byte Is_complete { get; set; }
|
|
public string Complete_at { get { return Convert.ToDateTime(complete_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { complete_at = value; } }
|
|
public string Created_at { get { return Convert.ToDateTime(created_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { created_at = value; } }
|
|
public string Updated_at { get { return Convert.ToDateTime(updated_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { updated_at = value; } }
|
|
}
|
|
|
|
public class FileInfo
|
|
{
|
|
public string Folder { get; set; }
|
|
public string OriginalFileName { get; set; }
|
|
public string FileName { get; set; }
|
|
public string File { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 取得niagara資料
|
|
/// </summary>
|
|
public class Device_value
|
|
{
|
|
public string value { get; set; }
|
|
public string tag_name { get; set; }
|
|
public string point_name { get; set; }
|
|
public string building { get; set; }
|
|
public string displayName { get; set; }
|
|
}
|
|
|
|
public class Device_item8
|
|
{
|
|
public string name { get; set; }
|
|
public string value { get; set; }
|
|
public string tag_name { get; set; }
|
|
public string device_area_tag { 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_master_tag { get; set; }
|
|
public string device_last_name_tag { get; set; }
|
|
public string device_serial_tag { get; set; }
|
|
public string point_name { get; set; }
|
|
//public string result_value { get; set; }
|
|
public string device_model_tag { get; set; }
|
|
}
|
|
|
|
public class NiagaraTags
|
|
{
|
|
public int id { get; set; }
|
|
public string db_tags { get; set; }
|
|
public string niagara_tags { get; set; }
|
|
public string device_area_tag { 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_master_tag { get; set; }
|
|
public string device_last_name_tag { get; set; }
|
|
public string device_serial_tag { get; set; }
|
|
public string device_full_name { get; set; }
|
|
public string atDateTime { get; set; }
|
|
public int is_used { get; set; }
|
|
public string device_model_tag { get; set; }
|
|
}
|
|
|
|
public class NiagaraTagsForItem
|
|
{
|
|
public string device_area_tag { 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_point_name { get; set; }
|
|
public string full_name { get; set; }
|
|
public string parent_path { get; set; }
|
|
public bool is_history { get; set; }
|
|
}
|
|
|
|
public class building_menu
|
|
{
|
|
public string building_tag { get; set; }
|
|
public string device_system_tag { get; set; }
|
|
public string device_name_tag { get; set; }
|
|
}
|
|
public class AuthPage
|
|
{
|
|
public string AuthCode { get; set; }
|
|
public byte AuthType { get; set; }
|
|
public string MainName { get; set; }
|
|
public string SubName { get; set; }
|
|
public string building_guid { get; set; }
|
|
public string building_tag { get; set; }
|
|
public string ShowView { get; set; }
|
|
public string created_at { get; set; }
|
|
}
|
|
public class device_kind
|
|
{
|
|
public string device_kind_guid { get; set; }
|
|
}
|
|
|
|
public class ImpNiaItem
|
|
{
|
|
public string device_number { get; set; }
|
|
public string device_area_tag { 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_point_name { get; set; }
|
|
public string device_floor_tag { get; set; }
|
|
|
|
public string parent_path { get; set; }
|
|
public string check_status { get; set; }
|
|
public string full_name { get; set; }
|
|
public bool isHistory { get; set; }
|
|
public string device_master_tag { get; set; } //add by jiahao 2023-07-23
|
|
|
|
public string device_last_name_tag { get; set; }//add by jiahao 2023-07-23
|
|
|
|
public string device_serial_tag { get; set; }//add by jiahao 2023-07-23
|
|
}
|
|
|
|
public class control_point
|
|
{
|
|
public string name { get; set; }
|
|
public string displayName { get; set; }
|
|
public bool isHistory { get; set; }
|
|
}
|
|
|
|
public class DeviceDisasterOutput
|
|
{
|
|
public string device_guid { 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; }
|
|
public string device_system_value { get; set; }
|
|
}
|
|
|
|
public class Device_value_disaster
|
|
{
|
|
public string value { get; set; }
|
|
public string tag_name { get; set; }
|
|
public string point_name { get; set; }
|
|
public string building { get; set; }
|
|
public string displayName { get; set; }
|
|
public string disasterValue { get; set; }
|
|
}
|
|
|
|
public class BuildingDetail
|
|
{
|
|
public string area_tag { get; set; }
|
|
public string obixSlot { get; set; }
|
|
}
|
|
|
|
public class DeviceControlPoint
|
|
{
|
|
public string name { get; set; }
|
|
public string displayName { get; set; }
|
|
public string device_area_tag { 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_number { get; set; }
|
|
public string device_point_name { get; set; }
|
|
}
|
|
}
|