添加项目文件。
This commit is contained in:
23
MoviconWebApi/Entities/BaseEntity.cs
Normal file
23
MoviconWebApi/Entities/BaseEntity.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础实体类
|
||||
/// </summary>
|
||||
public abstract class BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
||||
190
MoviconWebApi/Entities/ClearData.cs
Normal file
190
MoviconWebApi/Entities/ClearData.cs
Normal file
@@ -0,0 +1,190 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 清洗数据
|
||||
/// </summary>
|
||||
[Table(Name = "ClearData")]
|
||||
public class ClearData
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备码
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceCode", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序进程
|
||||
/// </summary>
|
||||
[Column(Name = "program_process", StringLength = 100, IsNullable = true)]
|
||||
public string? program_process { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 车型
|
||||
/// </summary>
|
||||
[Column(Name = "vehicle_model", StringLength = 100, IsNullable = true)]
|
||||
public string? vehicle_model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下车号
|
||||
/// </summary>
|
||||
[Column(Name = "locomotive_number", StringLength = 100, IsNullable = true)]
|
||||
public string? locomotive_number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修程
|
||||
/// </summary>
|
||||
[Column(Name = "repair_process", StringLength = 100, IsNullable = true)]
|
||||
public string? repair_process { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件名称
|
||||
/// </summary>
|
||||
[Column(Name = "component_name", StringLength = 100, IsNullable = true)]
|
||||
public string? component_name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 位别
|
||||
/// </summary>
|
||||
[Column(Name = "part_position", StringLength = 100, IsNullable = true)]
|
||||
public string? part_position { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件编号
|
||||
/// </summary>
|
||||
[Column(Name = "part_num", StringLength = 100, IsNullable = true)]
|
||||
public string? part_num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件二维码
|
||||
/// </summary>
|
||||
[Column(Name = "part_qrid", StringLength = 100, IsNullable = true)]
|
||||
public string? part_qrid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序进程百分比
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkProgramProcessPercentage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkProgramProcessPercentage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序进程
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkProgramProcess", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkProgramProcess { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型清洗时长
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkPerModelCleaningDuration", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelCleaningDuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型用清洗剂量
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkPerModelCleaningAgentUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelCleaningAgentUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型用水量
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkPerModelWaterUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelWaterUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水罐温度
|
||||
/// </summary>
|
||||
[Column(Name = "WaterTank_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? WaterTank_Temp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐温度
|
||||
/// </summary>
|
||||
[Column(Name = "AgentTank_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? AgentTank_Temp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水罐液位
|
||||
/// </summary>
|
||||
[Column(Name = "WaterTank_Level", StringLength = 100, IsNullable = true)]
|
||||
public string? WaterTank_Level { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐液位
|
||||
/// </summary>
|
||||
[Column(Name = "AgentTank_Level", StringLength = 100, IsNullable = true)]
|
||||
public string? AgentTank_Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 浸泡池1温度
|
||||
/// </summary>
|
||||
[Column(Name = "SoakingTank1_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? SoakingTank1_Temp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 浸泡池2温度
|
||||
/// </summary>
|
||||
[Column(Name = "SoakingTank2_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? SoakingTank2_Temp { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热水罐加热模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_WaterTankHeat", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_WaterTankHeat { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热水罐补水模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_WaterTankAdd", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_WaterTankAdd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐加热模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_CleaningAgentTankHeat", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CleaningAgentTankHeat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐补水模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_CleaningAgentTankAdd", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CleaningAgentTankAdd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能监控
|
||||
/// </summary>
|
||||
[Column(Name = "Test_ElectricSurveillance", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_ElectricSurveillance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 蒸汽监控
|
||||
/// </summary>
|
||||
[Column(Name = "Test_SteamSurveillance", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_SteamSurveillance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
||||
76
MoviconWebApi/Entities/ComponentsInfo.cs
Normal file
76
MoviconWebApi/Entities/ComponentsInfo.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 不论多部件还是单部件均采用数组,若为单部件则数组中仅有一个对象
|
||||
/// </summary>
|
||||
[Table(Name = "ComponentsInfo")]
|
||||
public class ComponentsInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 车型
|
||||
/// </summary>
|
||||
[JsonProperty("part_Vehicle_model")]
|
||||
[Column(Name = "part_Vehicle_model", StringLength = 100, IsNullable = true)]
|
||||
public string? part_Vehicle_model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 车号
|
||||
/// </summary>
|
||||
[JsonProperty("part_locomotive_number")]
|
||||
[Column(Name = "part_locomotive_number", StringLength = 100, IsNullable = true)]
|
||||
public string? part_locomotive_number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修程
|
||||
/// </summary>
|
||||
[JsonProperty("part_repair_process")]
|
||||
[Column(Name = "part_repair_process", StringLength = 100, IsNullable = true)]
|
||||
public string? part_repair_process { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 位别
|
||||
/// </summary>
|
||||
[JsonProperty("part_position")]
|
||||
[Column(Name = "part_position", StringLength = 100, IsNullable = true)]
|
||||
public string? part_position { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件名称
|
||||
/// </summary>
|
||||
[JsonProperty("part_name")]
|
||||
[Column(Name = "part_name", StringLength = 100, IsNullable = true)]
|
||||
public string? part_name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件编号
|
||||
/// </summary>
|
||||
[JsonProperty("part_num")]
|
||||
[Column(Name = "part_num", StringLength = 100, IsNullable = true)]
|
||||
public string? part_num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二维码id
|
||||
/// </summary>
|
||||
[JsonProperty("part_qrid")]
|
||||
[Column(Name = "part_qrid", StringLength = 100, IsNullable = true)]
|
||||
public string? part_qrid { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
|
||||
public long DataReocrdId { get; set; }
|
||||
public DataReocrd? DataReocrd { get; set; }
|
||||
}
|
||||
}
|
||||
194
MoviconWebApi/Entities/CurRunClearState.cs
Normal file
194
MoviconWebApi/Entities/CurRunClearState.cs
Normal file
@@ -0,0 +1,194 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 当前运行的清洗状态
|
||||
/// </summary>
|
||||
[Table(Name = "CurRunClearState")]
|
||||
public class CurRunClearState
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备码
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceCode", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序进程
|
||||
/// </summary>
|
||||
[Column(Name = "program_process", StringLength = 100, IsNullable = true)]
|
||||
public string? program_process { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 车型
|
||||
/// </summary>
|
||||
[Column(Name = "vehicle_model", StringLength = 100, IsNullable = true)]
|
||||
public string? vehicle_model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下车号
|
||||
/// </summary>
|
||||
[Column(Name = "locomotive_number", StringLength = 100, IsNullable = true)]
|
||||
public string? locomotive_number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修程
|
||||
/// </summary>
|
||||
[Column(Name = "repair_process", StringLength = 100, IsNullable = true)]
|
||||
public string? repair_process { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件名称
|
||||
/// </summary>
|
||||
[Column(Name = "component_name", StringLength = 100, IsNullable = true)]
|
||||
public string? component_name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 位别
|
||||
/// </summary>
|
||||
[Column(Name = "part_position", StringLength = 100, IsNullable = true)]
|
||||
public string? part_position { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件编号
|
||||
/// </summary>
|
||||
[Column(Name = "part_num", StringLength = 100, IsNullable = true)]
|
||||
public string? part_num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件二维码
|
||||
/// </summary>
|
||||
[Column(Name = "part_qrid", StringLength = 100, IsNullable = true)]
|
||||
public string? part_qrid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序进程百分比
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkProgramProcessPercentage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkProgramProcessPercentage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序进程
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkProgramProcess", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkProgramProcess { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 零部件设备状态
|
||||
/// </summary>
|
||||
[Column(Name = "Test_PartsEquipmentStatus", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_PartsEquipmentStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型清洗时长
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkPerModelCleaningDuration", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelCleaningDuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型用清洗剂量
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkPerModelCleaningAgentUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelCleaningAgentUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型用水量
|
||||
/// </summary>
|
||||
[Column(Name = "Test_FrameworkPerModelWaterUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelWaterUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水罐温度
|
||||
/// </summary>
|
||||
[Column(Name = "WaterTank_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? WaterTank_Temp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐温度
|
||||
/// </summary>
|
||||
[Column(Name = "AgentTank_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? AgentTank_Temp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水罐液位
|
||||
/// </summary>
|
||||
[Column(Name = "WaterTank_Level", StringLength = 100, IsNullable = true)]
|
||||
public string? WaterTank_Level { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐液位
|
||||
/// </summary>
|
||||
[Column(Name = "AgentTank_Level", StringLength = 100, IsNullable = true)]
|
||||
public string? AgentTank_Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 浸泡池1温度
|
||||
/// </summary>
|
||||
[Column(Name = "SoakingTank1_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? SoakingTank1_Temp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 浸泡池2温度
|
||||
/// </summary>
|
||||
[Column(Name = "SoakingTank2_Temp", StringLength = 100, IsNullable = true)]
|
||||
public string? SoakingTank2_Temp { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热水罐加热模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_WaterTankHeat", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_WaterTankHeat { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热水罐补水模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_WaterTankAdd", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_WaterTankAdd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐加热模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_CleaningAgentTankHeat", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CleaningAgentTankHeat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐补水模式运行
|
||||
/// </summary>
|
||||
[Column(Name = "Test_CleaningAgentTankAdd", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CleaningAgentTankAdd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电能监控
|
||||
/// </summary>
|
||||
[Column(Name = "Test_ElectricSurveillance", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_ElectricSurveillance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 蒸汽监控
|
||||
/// </summary>
|
||||
[Column(Name = "Test_SteamSurveillance", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_SteamSurveillance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
||||
77
MoviconWebApi/Entities/DataReocrd.cs
Normal file
77
MoviconWebApi/Entities/DataReocrd.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据记录
|
||||
/// </summary>
|
||||
[Table(Name = "DataReocrd")]
|
||||
public class DataReocrd
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备编号
|
||||
/// </summary>
|
||||
[JsonProperty("DeviceCode")]
|
||||
[Column(Name = "Device_Code", StringLength = 100, IsNullable = true)]
|
||||
public string Device_Code { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
[JsonProperty("DeviceName")]
|
||||
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
|
||||
public string Device_Name { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 设备厂商
|
||||
/// </summary>
|
||||
[JsonProperty("DeviceManufacturer")]
|
||||
[Column(Name = "Device_Manufacturer", StringLength = 100, IsNullable = true)]
|
||||
public string Device_Manufacturer { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 设备状态, 代码含义自定
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
[Column(Name = "Device_Status", StringLength = 100, IsNullable = true)]
|
||||
public string Device_Status { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 设备错误
|
||||
/// </summary>
|
||||
[JsonProperty("FaultDetails")]
|
||||
[Column(Name = "FaultDetails", StringLength = 100, IsNullable = true)]
|
||||
public string? FaultDetails { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 部件信息列表
|
||||
/// </summary>
|
||||
public List<ComponentsInfo>? ListComponentsInfo { get; set; } = new List<ComponentsInfo>();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 部件信息列表
|
||||
/// </summary>
|
||||
public List<TestData>? TestData { get; set; } = new List<TestData>();
|
||||
|
||||
}
|
||||
}
|
||||
57
MoviconWebApi/Entities/DeviceAlarm.cs
Normal file
57
MoviconWebApi/Entities/DeviceAlarm.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备报警
|
||||
/// </summary>
|
||||
[Table(Name = "DeviceAlarm")]
|
||||
public class DeviceAlarm
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设备码
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceCode", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceState", IsNullable = true)]
|
||||
public int? DeviceState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警信息
|
||||
/// </summary>
|
||||
[Column(Name = "AlarmMessage", StringLength = 180, IsNullable = true)]
|
||||
public string? AlarmMessage { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Column(CanUpdate = false)]
|
||||
public DateTime StartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Column(CanUpdate = false)]
|
||||
public DateTime EndTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
92
MoviconWebApi/Entities/DeviceState.cs
Normal file
92
MoviconWebApi/Entities/DeviceState.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
/// </summary>
|
||||
[Table(Name = "DeviceState")]
|
||||
public class DeviceState
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设备码
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceCode", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 开机时长(status为1)
|
||||
/// </summary>
|
||||
[Column(Name = "PowerOnTime", IsNullable = true)]
|
||||
public int? PowerOnTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行时长(status为2)
|
||||
/// </summary>
|
||||
[Column(Name = "RunTime", IsNullable = true)]
|
||||
public int? RunTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 待机时长(status为3)
|
||||
/// </summary>
|
||||
[Column(Name = "StandbyTime", IsNullable = true)]
|
||||
public int? StandbyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 故障时长(status为4)
|
||||
/// </summary>
|
||||
[Column(Name = "FaultTime", IsNullable = true)]
|
||||
public int? FaultTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关机时长(status为5)
|
||||
/// </summary>
|
||||
[Column(Name = "ShutdownTime", IsNullable = true)]
|
||||
public int? ShutdownTime { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 使用率(PowerOnTime+ RunTime+ StandbyTime+ FaultTime)/( EndTime- StartTime) 从ts_sh_device_status_change_log中计算
|
||||
///// </summary>
|
||||
//[Column(Name = "UseRatio", IsNullable = true)]
|
||||
//public int? UseRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 使用率(PowerOnTime+ RunTime+ StandbyTime+ FaultTime)/( EndTime- StartTime) 从ts_sh_device_status_change_log中计算
|
||||
/// </summary>
|
||||
[Column(Name = "UseRatio", StringLength = 100, IsNullable = true)]
|
||||
public string? UseRatio { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 故障次数
|
||||
/// </summary>
|
||||
[Column(Name = "FaultNum", IsNullable = true)]
|
||||
public int? FaultNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作业次数,建议从作业数据表中取数据
|
||||
/// </summary>
|
||||
[Column(Name = "JobNum", IsNullable = true)]
|
||||
public int? JobNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
||||
195
MoviconWebApi/Entities/TestData.cs
Normal file
195
MoviconWebApi/Entities/TestData.cs
Normal file
@@ -0,0 +1,195 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 测试数据
|
||||
/// </summary>
|
||||
[Table(Name = "TestData")]
|
||||
public class TestData
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架设备状态
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkEquipmentStatus")]
|
||||
[Column(Name = "Test_FrameworkEquipmentStatus", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkEquipmentStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 零部件设备状态
|
||||
/// </summary>
|
||||
[JsonProperty("Test_PartsEquipmentStatus")]
|
||||
[Column(Name = "Test_PartsEquipmentStatus", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_PartsEquipmentStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架累计用清洗剂量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkCumulativeCleaningAgentUsage")]
|
||||
[Column(Name = "Test_FrameworkCumulativeCleaningAgentUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkCumulativeCleaningAgentUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架累计用水量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkCumulativeWaterUsage")]
|
||||
[Column(Name = "Test_FrameworkCumulativeWaterUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkCumulativeWaterUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架累计清洗时长
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkCumulativeCleaningDuration")]
|
||||
[Column(Name = "Test_FrameworkCumulativeCleaningDuration", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkCumulativeCleaningDuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 零部件累计用水量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_PartsCumulativeWaterUsage")]
|
||||
[Column(Name = "Test_PartsCumulativeWaterUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_PartsCumulativeWaterUsage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 零部件累计清洗时长
|
||||
/// </summary>
|
||||
[JsonProperty("Test_PartsCumulativeCleaningDuration")]
|
||||
[Column(Name = "Test_PartsCumulativeCleaningDuration", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_PartsCumulativeCleaningDuration { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 累计检修数量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_CumulativeMaintenanceCount")]
|
||||
[Column(Name = "Test_CumulativeMaintenanceCount", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CumulativeMaintenanceCount { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 机器人1状态
|
||||
/// </summary>
|
||||
[JsonProperty("Test_Robot1Status")]
|
||||
[Column(Name = "Test_Robot1Status", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_Robot1Status { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 机器人2状态
|
||||
/// </summary>
|
||||
[JsonProperty("Test_Robot2Status")]
|
||||
[Column(Name = "Test_Robot2Status", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_Robot2Status { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构架清洗数量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkCleaningCount")]
|
||||
[Column(Name = "Test_FrameworkCleaningCount", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkCleaningCount { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型清洗时长
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkPerModelCleaningDuration")]
|
||||
[Column(Name = "Test_FrameworkPerModelCleaningDuration", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelCleaningDuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型用清洗剂量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkPerModelCleaningAgentUsage")]
|
||||
[Column(Name = "Test_FrameworkPerModelCleaningAgentUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelCleaningAgentUsage { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构架单个机型用水量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_FrameworkPerModelWaterUsage")]
|
||||
[Column(Name = "Test_FrameworkPerModelWaterUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_FrameworkPerModelWaterUsage { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 零部件单次清洗时长
|
||||
/// </summary>
|
||||
[JsonProperty("Test_PartsSingleCleaningDuration")]
|
||||
[Column(Name = "Test_PartsSingleCleaningDuration", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_PartsSingleCleaningDuration { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 零部件单次用水量
|
||||
/// </summary>
|
||||
[JsonProperty("Test_PartsSingleWaterUsage")]
|
||||
[Column(Name = "Test_PartsSingleWaterUsage", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_PartsSingleWaterUsage { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 水罐温度
|
||||
/// </summary>
|
||||
[JsonProperty("Test_WaterTankTemperature")]
|
||||
[Column(Name = "Test_WaterTankTemperature", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_WaterTankTemperature { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐温度
|
||||
/// </summary>
|
||||
[JsonProperty("Test_CleaningAgentTankTemperature")]
|
||||
[Column(Name = "Test_CleaningAgentTankTemperature", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CleaningAgentTankTemperature { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 浸泡池1温度
|
||||
/// </summary>
|
||||
[JsonProperty("Test_SoakingTank1Temperature")]
|
||||
[Column(Name = "Test_SoakingTank1Temperature", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_SoakingTank1Temperature { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 浸泡池2温度
|
||||
/// </summary>
|
||||
[JsonProperty("Test_SoakingTank2Temperature")]
|
||||
[Column(Name = "Test_SoakingTank2Temperature", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_SoakingTank2Temperature { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 水罐液位
|
||||
/// </summary>
|
||||
[JsonProperty("Test_WaterTankLevel")]
|
||||
[Column(Name = "Test_WaterTankLevel", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_WaterTankLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清洗剂罐液位
|
||||
/// </summary>
|
||||
[JsonProperty("Test_CleaningAgentTankLevel")]
|
||||
[Column(Name = "Test_CleaningAgentTankLevel", StringLength = 100, IsNullable = true)]
|
||||
public string? Test_CleaningAgentTankLevel { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
|
||||
public long DataReocrdId { get; set; }
|
||||
public DataReocrd? DataReocrd { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user