添加项目文件。
This commit is contained in:
97
MoviconHub.App/Models/DeviceState.cs
Normal file
97
MoviconHub.App/Models/DeviceState.cs
Normal file
@@ -0,0 +1,97 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MoviconHub.App.Models
|
||||
{
|
||||
/// <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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user