MonitorViewModel.cs
2.51 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
using HHECS.Infrastructure.CommonHelper;
using HHECS.Model.Entities;
using HHECS.Model.Enums;
using System.Collections.Generic;
namespace HHECS.Web.Models
{
/// <summary>
/// 设备监控视图模型
/// </summary>
public class MonitorViewModel
{
/// <summary>
/// 设备信息
/// </summary>
public Equipment Equipment { get; set; }
/// <summary>
/// 错误消息列表
/// </summary>
public List<string> AlarmMsg { get; set; }
/// <summary>
/// 设备状态标识
/// </summary>
public int EquipmentStatus { get; set; }
/// <summary>
/// 设备状态名称
/// </summary>
public string EquipmentStatusName => EquipmentStatus < 0 ? "无状态信息" : EnumHelper.GetDescription<EquipmentStatusRecordStatus>(EquipmentStatus.ToString());
/// <summary>
/// 保养状态标识
/// </summary>
public EquipmentMaintainStatus MaintainStatus { get; set; }
/// <summary>
/// 保养状态名称
/// </summary>
public string MaintainStatusName => EnumHelper.GetDescription<EquipmentMaintainStatus>(MaintainStatus.GetIndexString());
/// <summary>
/// 运行总次数
/// </summary>
public int RunTotal { get; set; }
/// <summary>
/// 故障总次数
/// </summary>
public int ErrorTotal { get; set; }
/// <summary>
/// 空闲总次数
/// </summary>
public int FreeTotal { get; set; }
/// <summary>
/// 在线状态
/// </summary>
public bool Online { get; set; }
/// <summary>
/// 温度
/// </summary>
public double WalkTemperature { get; set; }
/// <summary>
/// 震动
/// </summary>
public double WalkVibrationVelocity { get; set; }
/// <summary>
/// 温度
/// </summary>
public double LiftTemperature { get; set; }
/// <summary>
/// 震动
/// </summary>
public double LiftVibrationVelocity { get; set; }
/// <summary>
/// 运行电流
/// </summary>
public string runCurrent { get; set; }
/// <summary>
/// 升降电流
/// </summary>
public string liftCurrent { get; set; }
/// <summary>
/// 配置参数
/// </summary>
public List<DictDetail> ConfigPars { get; set; }
}
}