鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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