EquipmentHealthVM.cs
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using System;
using System.Data;
namespace Hh.Mes.POJO.ViewModel.Equipment
{
/// <summary>
/// 设备健康
/// </summary>
public class EquipmentHealthVM
{
public EquipmentStatusDto EquipmentStatus { get; set; }
/// <summary>
/// 设备未处理故障条数
/// </summary>
public int AlarmTotal { get; set; }
/// <summary>
/// 设备部件保养提醒条数
/// </summary>
public int MaintainTotal { get; set; }
public string EquipmentCode { get; set; }
public string EquipmentName { get; set; }
public string ProjectName { get; set; }
public string IP { get; set; }
public string Status { get; set; }
}
public class EquipmentStatusDto
{
/// <summary>
/// 当天开机时间【秒】
/// </summary>
public double TodayPowerTime { get; set; }
/// <summary>
/// 本月开机时间 【秒】
/// </summary>
public double CurrentMonthPowerTime { get; set; }
/// <summary>
/// 空闲时间 秒
/// </summary>
public double FreeTime { get; set; }
/// <summary>
/// 空闲占比
/// </summary>
public double FreeProportion { get; set; }
/// <summary>
/// 运行时间 秒
/// </summary>
public double RunTime { get; set; }
public double RunProportion { get; set; }
/// <summary>
/// 故障时间 秒
/// </summary>
public double AlarmTime { get; set; }
/// <summary>
/// 故障占比
/// </summary>
public double AlarmProportion { get; set; }
/// <summary>
/// 离线时间 秒
/// </summary>
public double OfflineTime { get; set; }
/// <summary>
/// 离线占比
/// </summary>
public double OfflineProportion { get; set; }
}
}