鼎鼎知识库
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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