|
@@ -0,0 +1,346 @@
|
|
1
|
+# 综述和报警流程
|
|
2
|
+
|
|
3
|
+报警版管理后台用来处理报警。
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+报警流程大致如下:
|
|
7
|
+
|
|
8
|
+- 设备报警:当智能照明模块发生报警,会自动向数据库表插入一条记录。
|
|
9
|
+
|
|
10
|
+![](img/bj02.png)
|
|
11
|
+- 收到报警:手机端收到报警
|
|
12
|
+
|
|
13
|
+- 确认维修:用户在手机上点击"确认维修"
|
|
14
|
+
|
|
15
|
+![](img/bj01.png)
|
|
16
|
+- 客服派单:当用户确认维修之后,客服在管理后台把报警单派发给电工
|
|
17
|
+
|
|
18
|
+![](img/bj03.png)
|
|
19
|
+- 电工接单:电工在管理后台确认接单
|
|
20
|
+
|
|
21
|
+![](img/bj04.png)
|
|
22
|
+- 确认维修完成:电工确认接单后,会去现场维修,维修完毕,电工在管理后台点击`确认维修完成`
|
|
23
|
+
|
|
24
|
+![](img/bj05.png)
|
|
25
|
+- 系统确认报警解除:系统会自动确认报警是否解除
|
|
26
|
+
|
|
27
|
+![](img/bj06.png)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+# 创建人员
|
|
32
|
+
|
|
33
|
+- 管理员
|
|
34
|
+- 客服
|
|
35
|
+- 电工
|
|
36
|
+
|
|
37
|
+> 首先创建名称为"客服"的岗位,创建名称为"电工"的岗位,创建名称为"报警版管理员"的岗位。然后分别在这几个岗位下添加人员。
|
|
38
|
+
|
|
39
|
+# 客服
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+- 未派单报警:即查看WarningStatus='ApplyConfirmed '的报警
|
|
43
|
+```
|
|
44
|
+客服可以点击派单按钮,让报警状态变成已派单,即WarningStatus='Dispatched',并且,DispatchedTime=当前时间
|
|
45
|
+```
|
|
46
|
+- 电工未接单报警:即查看WarningStatus='Dispatched'的报警
|
|
47
|
+- 电工已接单报警:即查看WarningStatus='Accepted'的报警
|
|
48
|
+- 电工已处理报警:即查看WarningStatus='Repaired'的报警
|
|
49
|
+
|
|
50
|
+# 电工
|
|
51
|
+
|
|
52
|
+- 未接单报警:即查看WarningStatus='Dispatched'的报警
|
|
53
|
+```
|
|
54
|
+电工可以点击接单按钮,让报警状态变成已接单,即WarningStatus='Accepted',并且,AcceptedTime=当前时间
|
|
55
|
+```
|
|
56
|
+- 已接单报警: 即查看WarningStatus='Accepted'的报警
|
|
57
|
+```
|
|
58
|
+电工可以点击已处理按钮,让报警状态变成已处理,即WarningStatus='Repaired',并且,RepairTime=当前时间
|
|
59
|
+```
|
|
60
|
+- 已处理报警:即查看WarningStatus='Repaired'的报警
|
|
61
|
+
|
|
62
|
+# 管理员
|
|
63
|
+
|
|
64
|
+- 客户未确认报警:即查看WarningStatus='Created'的报警
|
|
65
|
+```
|
|
66
|
+管理员可以点击确认维修按钮,让报警状态变成已确认维修,即WarningStatus='ApplyConfirmed',并且,ApplyConfirmedTime=当前时间
|
|
67
|
+```
|
|
68
|
+- 客户已确认报警:即查看WarningStatus='ApplyConfirmed'之后的报警
|
|
69
|
+
|
|
70
|
+# 附录
|
|
71
|
+
|
|
72
|
+报警状态
|
|
73
|
+```
|
|
74
|
+/// <summary>
|
|
75
|
+ /// 被创建
|
|
76
|
+ /// </summary>
|
|
77
|
+ Created
|
|
78
|
+ /// <summary>
|
|
79
|
+ /// 用户申请被确认
|
|
80
|
+ /// </summary>
|
|
81
|
+ ApplyConfirmed
|
|
82
|
+ /// <summary>
|
|
83
|
+ /// 客服派单已完成
|
|
84
|
+ /// </summary>
|
|
85
|
+ Dispatched
|
|
86
|
+ /// <summary>
|
|
87
|
+ /// 电工已接单
|
|
88
|
+ /// </summary>
|
|
89
|
+ Accepted
|
|
90
|
+ /// <summary>
|
|
91
|
+ /// 电工已维修
|
|
92
|
+ /// </summary>
|
|
93
|
+ Repaired
|
|
94
|
+ /// <summary>
|
|
95
|
+ /// 报警已闭环
|
|
96
|
+ /// </summary>
|
|
97
|
+ Finished
|
|
98
|
+```
|
|
99
|
+
|
|
100
|
+报警级别
|
|
101
|
+```
|
|
102
|
+ public enum WarningLevel
|
|
103
|
+ {
|
|
104
|
+ /// <summary>
|
|
105
|
+ /// 蓝色预警
|
|
106
|
+ /// </summary>
|
|
107
|
+ Blue = 0,
|
|
108
|
+ /// <summary>
|
|
109
|
+ /// 黄色预警
|
|
110
|
+ /// </summary>
|
|
111
|
+ Yellow = 1,
|
|
112
|
+ /// <summary>
|
|
113
|
+ /// 橙色预警
|
|
114
|
+ /// </summary>
|
|
115
|
+ Orange = 2,
|
|
116
|
+ /// <summary>
|
|
117
|
+ /// 红色报警
|
|
118
|
+ /// </summary>
|
|
119
|
+ Red = 3,
|
|
120
|
+ /// <summary>
|
|
121
|
+ /// 绿色正常
|
|
122
|
+ /// </summary>
|
|
123
|
+ Green = 4
|
|
124
|
+ }
|
|
125
|
+```
|
|
126
|
+
|
|
127
|
+报警类型
|
|
128
|
+```
|
|
129
|
+/// <summary>
|
|
130
|
+ /// 报警类型
|
|
131
|
+ /// </summary>
|
|
132
|
+ public enum WarningType
|
|
133
|
+ {
|
|
134
|
+ /// <summary>
|
|
135
|
+ /// 过压报警
|
|
136
|
+ /// </summary>
|
|
137
|
+ GuoYa = 0,
|
|
138
|
+ /// <summary>
|
|
139
|
+ /// 过压预警
|
|
140
|
+ /// </summary>
|
|
141
|
+ GuoYaYuJing = 24,
|
|
142
|
+ /// <summary>
|
|
143
|
+ /// 欠压报警
|
|
144
|
+ /// </summary>
|
|
145
|
+ QianYa = 1,
|
|
146
|
+ /// <summary>
|
|
147
|
+ /// 欠压预警
|
|
148
|
+ /// </summary>
|
|
149
|
+ QianYaYuJing = 25,
|
|
150
|
+ /// <summary>
|
|
151
|
+ /// 线温报警
|
|
152
|
+ /// </summary>
|
|
153
|
+ GuoWen = 2,
|
|
154
|
+ /// <summary>
|
|
155
|
+ /// 线温预警
|
|
156
|
+ /// </summary>
|
|
157
|
+ GuoWenYuJing = 30,
|
|
158
|
+ /// <summary>
|
|
159
|
+ /// 低温报警
|
|
160
|
+ /// </summary>
|
|
161
|
+ DiWen = 3,
|
|
162
|
+ /// <summary>
|
|
163
|
+ /// 低温预警
|
|
164
|
+ /// </summary>
|
|
165
|
+ DiWenYuJing = 32,
|
|
166
|
+ /// <summary>
|
|
167
|
+ /// 漏电报警
|
|
168
|
+ /// </summary>
|
|
169
|
+ LouDian = 4,
|
|
170
|
+ /// <summary>
|
|
171
|
+ /// 漏电预警
|
|
172
|
+ /// </summary>
|
|
173
|
+ LouDianYuJing = 22,
|
|
174
|
+ /// <summary>
|
|
175
|
+ /// 漏电未关
|
|
176
|
+ /// </summary>
|
|
177
|
+ LouDianNoClose = 28,
|
|
178
|
+ /// <summary>
|
|
179
|
+ /// 过流报警
|
|
180
|
+ /// </summary>
|
|
181
|
+ GuoLiu = 5,
|
|
182
|
+ /// <summary>
|
|
183
|
+ /// 过流预警
|
|
184
|
+ /// </summary>
|
|
185
|
+ GuoLiuYuJing = 23,
|
|
186
|
+ /// <summary>
|
|
187
|
+ /// 过流未关报警
|
|
188
|
+ /// </summary>
|
|
189
|
+ GuoLiuNoClose = 20,
|
|
190
|
+ /// <summary>
|
|
191
|
+ /// 过载报警
|
|
192
|
+ /// </summary>
|
|
193
|
+ GuoGong = 6,
|
|
194
|
+ /// <summary>
|
|
195
|
+ /// 过载预警
|
|
196
|
+ /// </summary>
|
|
197
|
+ GuoGongYuJing = 31,
|
|
198
|
+ /// <summary>
|
|
199
|
+ /// 过载未关报警
|
|
200
|
+ /// </summary>
|
|
201
|
+ GuoZaiNoClose = 21,
|
|
202
|
+ /// <summary>
|
|
203
|
+ /// 离线报警
|
|
204
|
+ /// </summary>
|
|
205
|
+ LiXian = 7,
|
|
206
|
+ /// <summary>
|
|
207
|
+ /// 电流限定报警
|
|
208
|
+ /// </summary>
|
|
209
|
+ DianLiuXianDing = 8,
|
|
210
|
+ /// <summary>
|
|
211
|
+ /// 打火报警
|
|
212
|
+ /// </summary>
|
|
213
|
+ DaHuo = 9,
|
|
214
|
+ /// <summary>
|
|
215
|
+ /// 短路报警
|
|
216
|
+ /// </summary>
|
|
217
|
+ DuanLu = 10,
|
|
218
|
+ /// <summary>
|
|
219
|
+ /// 漏电自检30
|
|
220
|
+ /// </summary>
|
|
221
|
+ LouDianZiJian = 11,
|
|
222
|
+ /// <summary>
|
|
223
|
+ /// 漏电保护功能
|
|
224
|
+ /// </summary>
|
|
225
|
+ LouDianBaoHuGongNeng = 12,
|
|
226
|
+ /// <summary>
|
|
227
|
+ /// 浪涌报警
|
|
228
|
+ /// </summary>
|
|
229
|
+ LangYong = 13,
|
|
230
|
+ /// <summary>
|
|
231
|
+ /// 功率限定报警
|
|
232
|
+ /// </summary>
|
|
233
|
+ GongLvXianDing = 14,
|
|
234
|
+ /// <summary>
|
|
235
|
+ /// 空载报警
|
|
236
|
+ /// </summary>
|
|
237
|
+ KongZai = 15,
|
|
238
|
+ /// <summary>
|
|
239
|
+ /// 三相不平衡报警
|
|
240
|
+ /// </summary>
|
|
241
|
+ SanXiangPingHeng = 16,
|
|
242
|
+ /// <summary>
|
|
243
|
+ /// 缺相报警
|
|
244
|
+ /// </summary>
|
|
245
|
+ QueXiang = 17,
|
|
246
|
+ /// <summary>
|
|
247
|
+ /// 三相相序报警
|
|
248
|
+ /// </summary>
|
|
249
|
+ SanXiangXiangXu = 18,
|
|
250
|
+ /// <summary>
|
|
251
|
+ /// 手动分断报警
|
|
252
|
+ /// </summary>
|
|
253
|
+ ShouDongCaoZuo = 19,
|
|
254
|
+ /// <summary>
|
|
255
|
+ /// 零线报警
|
|
256
|
+ /// </summary>
|
|
257
|
+ LingXianBaoJing = 26,
|
|
258
|
+ /// <summary>
|
|
259
|
+ /// 零线预警
|
|
260
|
+ /// </summary>
|
|
261
|
+ LingXianYuJing = 27,
|
|
262
|
+
|
|
263
|
+ /// <summary>
|
|
264
|
+ /// 打火未关
|
|
265
|
+ /// </summary>
|
|
266
|
+ DaHuoNoClose = 29,
|
|
267
|
+
|
|
268
|
+ //以上最大32
|
|
269
|
+ /// <summary>
|
|
270
|
+ /// 防雷报警
|
|
271
|
+ /// </summary>
|
|
272
|
+ FangLei =35,
|
|
273
|
+
|
|
274
|
+ /// <summary>
|
|
275
|
+ /// 漏电测试成功
|
|
276
|
+ /// </summary>
|
|
277
|
+ LouDianCeShiSuccess=36,
|
|
278
|
+ /// <summary>
|
|
279
|
+ /// 模块与某个线路通信失败
|
|
280
|
+ /// </summary>
|
|
281
|
+ TongXun=37,
|
|
282
|
+ /// <summary>
|
|
283
|
+ /// 漏电测试失败
|
|
284
|
+ /// </summary>
|
|
285
|
+ LouDianCeShiFail=38,
|
|
286
|
+ /// <summary>
|
|
287
|
+ /// 输入缺相
|
|
288
|
+ /// </summary>
|
|
289
|
+ ShuRuQueXiang=39,
|
|
290
|
+
|
|
291
|
+ /// <summary>
|
|
292
|
+ /// A相短路
|
|
293
|
+ /// </summary>
|
|
294
|
+ AXiangDuanLu=40,
|
|
295
|
+ /// <summary>
|
|
296
|
+ /// A相过功
|
|
297
|
+ /// </summary>
|
|
298
|
+ AXiangGuoGong=41,
|
|
299
|
+ /// <summary>
|
|
300
|
+ /// A相过流
|
|
301
|
+ /// </summary>
|
|
302
|
+ AXiangGuoLiu=42,
|
|
303
|
+ /// <summary>
|
|
304
|
+ /// A相过压
|
|
305
|
+ /// </summary>
|
|
306
|
+ AXiangGuoYa=43,
|
|
307
|
+ /// <summary>
|
|
308
|
+ /// A相欠压
|
|
309
|
+ /// </summary>
|
|
310
|
+ AXiangQianYa=44,
|
|
311
|
+ /// <summary>
|
|
312
|
+ /// A相温度
|
|
313
|
+ /// </summary>
|
|
314
|
+ AXiangWenDu =45,
|
|
315
|
+ AXiangDaHuo=46,
|
|
316
|
+ AXiangDianLiuYuJing=47,
|
|
317
|
+ AXiangGuoYaYuJing=48,
|
|
318
|
+ AXiangQianYaYuJing=49,
|
|
319
|
+ AXiangShuRuQueXiang=50,
|
|
320
|
+
|
|
321
|
+ BXiangDuanLu=51,
|
|
322
|
+ BXiangGuoGong=52,
|
|
323
|
+ BXiangGuoLiu=53,
|
|
324
|
+ BXiangGuoYa=54,
|
|
325
|
+ BXiangQianYa=55,
|
|
326
|
+ BXiangWenDu=56,
|
|
327
|
+ BXiangDaHuo=57,
|
|
328
|
+ BXiangDianLiuYuJing=58,
|
|
329
|
+ BXiangGuoYaYuJing=59,
|
|
330
|
+ BXiangQianYaYuJing=60,
|
|
331
|
+ BXiangShuRuQianXiang=61,
|
|
332
|
+
|
|
333
|
+ CXiangDuanLu=62,
|
|
334
|
+ CXiangGuoGong=63,
|
|
335
|
+ CXiangGuoLiu=64,
|
|
336
|
+ CXiangGuoYa=65,
|
|
337
|
+ CXiangQianYa=66,
|
|
338
|
+ CXiangWenDu=67,
|
|
339
|
+ CXiangDaHuo=68,
|
|
340
|
+ CXiangDianLiuYuJing=69,
|
|
341
|
+ CXiangGuoYaYuJing=70,
|
|
342
|
+ CXiangQianYaYuJing=71,
|
|
343
|
+ CXiangShuRuQueXiang=72,
|
|
344
|
+ None=73
|
|
345
|
+ }
|
|
346
|
+```
|