Board1VM.cs
8.93 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
namespace DataAcquisition.ViewModels.Board
{
/// <summary>
/// 看板1
/// </summary>
public class Board1VM
{
#region Head
/// <summary>
/// 当日汇总
/// </summary>
public NowDayCountLeft NowDayCountLeft { get; set; } = null!;
/// <summary>
/// 设备状态
/// </summary>
public EquipmentStatusVM EqCenter { get; set; } = null!;
/// <summary>
/// 当月汇总
/// </summary>
public MonthCountRight MonthCountRight { get; set; } = null!;
#endregion
#region Center
/// <summary>
/// 设备实况
/// </summary>
public EquipmentInfoLeftVM EqInfoLeft { get; set; } = null!;
/// <summary>
/// 工件实况
/// </summary>
public EquipmentInfoRight EqInfoRight { get; set; } = null!;
#endregion
#region Footer
/// <summary>
/// 当前电流
/// </summary>
public List<double> CurrentList { get; set; } = new List<double>();
/// <summary>
/// 效率统计
/// </summary>
public EquipmentEfficiency EqEfficiencyCenter { get; set; } = null!;
/// <summary>
/// 当前电压
/// </summary>
public List<double> VoltagetList { get; set; } = new List<double>();
#endregion
}
public class NowDayCountLeft
{
/// <summary>
/// 开机时长(H)
/// </summary>
public double PowerTime { get; set; }
/// <summary>
/// 工作时长(H)
/// </summary>
public double WorkTime { get; set; }
/// <summary>
/// 燃弧时长(H)
/// </summary>
public double ArcingTime { get; set; }
/// <summary>
/// 已完工(件)
/// </summary>
public int FinishCount { get; set; }
}
/// <summary>
/// 设备状态
/// </summary>
public class EquipmentStatusVM
{
/// <summary>
/// 设备编码
/// </summary>
public string EqCode { get; set; } = null!;
/// <summary>
/// 设备名称
/// </summary>
[Obsolete]
public string EqName { get; set; } = null!;
/// <summary>
/// 当前焊接工位
/// </summary>
public string Station { get; set; } = null!;
/// <summary>
/// 焊接方式
/// </summary>
public string WeldType { get; set; } = null!;
/// <summary>
/// 弧压跟踪
/// </summary>
public string ArcVoltageTracking { get; set; } = null!;
/// <summary>
/// 设备状态
/// </summary>
public string EqState { get; set; } = null!;
/// <summary>
/// 设备模式
/// </summary>
public string Eqmode { get; set; } = null!;
/// <summary>
/// 本月焊丝消耗
/// </summary>
public double MonthWeld { get; set; }
/// <summary>
/// 本月 导电嘴
/// </summary>
/// <remarks>无导电嘴数据,改成本月加工数量</remarks>
public int MonthDaoDian { get; set; }
/// <summary>
/// 气体/m³
/// </summary>
public string MonthGas { get; set; } = null!;
/// <summary>
/// 当天燃弧电量
/// </summary>
public double TodayWeldVoltage { get; set; }
/// <summary>
/// 当月燃弧电量
/// </summary>
public double MonthWeldVoltage { get; set; }
}
public class MonthCountRight
{
/// <summary>
/// 开机时长(H)
/// </summary>
public double PowerTime { get; set; }
/// <summary>
/// 工作时长(H)
/// </summary>
public double WorkTime { get; set; }
/// <summary>
/// 燃弧时长(H)
/// </summary>
public double ArcingTime { get; set; }
/// <summary>
/// 报警时长(H)
/// </summary>
public double AlarmTime { get; set; }
}
/// <summary>
/// 设备实况
/// </summary>
public class EquipmentInfoLeftVM
{
/// <summary>
/// 当前程序
/// </summary>
[Obsolete]
public string NowProject { get; set; } = null!;
/// <summary>
/// 程序号
/// </summary>
[Obsolete]
public int ProjectRow { get; set; }
/// <summary>
/// 电压
/// </summary>
public double Voltage { get; set; }
/// <summary>
/// 电流
/// </summary>
public double Current { get; set; }
/// <summary>
/// 送丝速度
/// </summary>
public double SsSpeed { get; set; }
/// <summary>
/// 起弧状态
/// </summary>
public bool ArcingState { get; set; }
///// <summary>
///// 清枪状态
///// </summary>
//public bool ClearSpearState { get; set; }
/// <summary>
/// 送丝机选择
/// </summary>
public string ClearSpearState { get; set; } = null!;
/// <summary>
/// X轴
/// </summary>
public double X { get; set; }
/// <summary>
/// Y轴
/// </summary>
public double Y { get; set; }
/// <summary>
/// Z轴
/// </summary>
public double Z { get; set; }
/// <summary>
/// A轴
/// </summary>
public double A { get; set; }
/// <summary>
/// B轴
/// </summary>
public double B { get; set; }
/// <summary>
/// C轴
/// </summary>
public double C { get; set; }
public double E1 { get; set; }
public double E2 { get; set; }
public double E3 { get; set; }
public double E4 { get; set; }
}
/// <summary>
/// 工件实况
/// </summary>
public class EquipmentInfoRight
{
/// <summary>
/// 工件型号
/// </summary>
public string ProductInfo { get; set; } = null!;
/// <summary>
/// 耗时(min)
/// </summary>
public double TimeSum { get; set; }
/// <summary>
/// 完工状态
/// </summary>
public string ProductState { get; set; } = null!;
/// <summary>
/// 近期效率
/// </summary>
public Efficiency EfficiencyList { get; set; } = null!;
/// <summary>
/// 近期产能
/// </summary>
public YieldListVM YieldList { get; set; } = null!;
/// <summary>
/// 燃弧率
/// </summary>
/// <remarks>燃弧时间/运行时间</remarks>
public List<BoardChart> WeldFlagData { get; set; } = new List<BoardChart>();
}
/// <summary>
/// 设备效率
/// </summary>
public class EquipmentEfficiency
{
/// <summary>
/// 在线率
/// </summary>
public double OnLineRate { get; set; }
/// <summary>
/// 利用率
/// </summary>
public double UtilizeRate { get; set; }
/// <summary>
/// 自动化率/燃弧率
/// </summary>
public double AutoRate { get; set; }
/// <summary>
/// 报警率
/// </summary>
public double AlarmRate { get; set; }
}
/// <summary>
/// 近期效率
/// </summary>
public class Efficiency
{
/// <summary>
/// X轴日期(Min)
/// </summary>
public List<string> XAxisData { get; set; } = new List<string>();
/// <summary>
/// 开机时间(Min)
/// </summary>
public List<int> PowerOn { get; set; } = new List<int>();
/// <summary>
/// 工作时间(Min)
/// </summary>
public List<int> Work { get; set; } = new List<int>();
/// <summary>
/// 燃弧时间(Min)
/// </summary>
public List<int> Arcing { get; set; } = new List<int>();
}
/// <summary>
/// 近期产量
/// </summary>
public class YieldListVM
{
/// <summary>
/// X轴时间
/// </summary>
public List<string> XAxisData { get; set; } = new List<string>();
/// <summary>
/// 产量
/// </summary>
public List<int> Yield { get; set; } = new List<int>();
}
public class BoardChart
{
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 值
/// </summary>
public int Value { get; set; }
/// <summary>
/// 工作时长
/// </summary>
public double WorkTime { get; set; }
/// <summary>
/// 燃弧时长
/// </summary>
public double ArcingTime { get; set; }
}
}