报警版管理后台用来处理报警。
报警流程大致如下:
收到报警:手机端收到报警
确认维修:用户在手机上点击”确认维修”
确认维修完成
首先创建名称为”客服”的岗位,创建名称为”电工”的岗位,创建名称为”报警版管理员”的岗位。然后分别在这几个岗位下添加人员。
客服可以点击派单按钮,让报警状态变成已派单,即WarningStatus='Dispatched',并且,DispatchedTime=当前时间
电工可以点击接单按钮,让报警状态变成已接单,即WarningStatus='Accepted',并且,AcceptedTime=当前时间
电工可以点击已处理按钮,让报警状态变成已处理,即WarningStatus='Repaired',并且,RepairTime=当前时间
某某电箱某某开关名称,开关名称在breakers表中的Name获取,
报警状态
/// <summary>
/// 被创建
/// </summary>
Created
/// <summary>
/// 用户申请被确认
/// </summary>
ApplyConfirmed
/// <summary>
/// 客服派单已完成
/// </summary>
Dispatched
/// <summary>
/// 电工已接单
/// </summary>
Accepted
/// <summary>
/// 电工已维修
/// </summary>
Repaired
/// <summary>
/// 报警已解除
/// </summary>
Finished
报警级别
public enum WarningLevel
{
/// <summary>
/// 蓝色预警
/// </summary>
Blue = 0,
/// <summary>
/// 黄色预警
/// </summary>
Yellow = 1,
/// <summary>
/// 橙色预警
/// </summary>
Orange = 2,
/// <summary>
/// 红色报警
/// </summary>
Red = 3,
/// <summary>
/// 绿色正常
/// </summary>
Green = 4
}
报警类型
/// <summary>
/// 报警类型
/// </summary>
public enum WarningType
{
/// <summary>
/// 过压报警
/// </summary>
GuoYa = 0,
/// <summary>
/// 过压预警
/// </summary>
GuoYaYuJing = 24,
/// <summary>
/// 欠压报警
/// </summary>
QianYa = 1,
/// <summary>
/// 欠压预警
/// </summary>
QianYaYuJing = 25,
/// <summary>
/// 线温报警
/// </summary>
GuoWen = 2,
/// <summary>
/// 线温预警
/// </summary>
GuoWenYuJing = 30,
/// <summary>
/// 低温报警
/// </summary>
DiWen = 3,
/// <summary>
/// 低温预警
/// </summary>
DiWenYuJing = 32,
/// <summary>
/// 漏电报警
/// </summary>
LouDian = 4,
/// <summary>
/// 漏电预警
/// </summary>
LouDianYuJing = 22,
/// <summary>
/// 漏电未关
/// </summary>
LouDianNoClose = 28,
/// <summary>
/// 过流报警
/// </summary>
GuoLiu = 5,
/// <summary>
/// 过流预警
/// </summary>
GuoLiuYuJing = 23,
/// <summary>
/// 过流未关报警
/// </summary>
GuoLiuNoClose = 20,
/// <summary>
/// 过载报警
/// </summary>
GuoGong = 6,
/// <summary>
/// 过载预警
/// </summary>
GuoGongYuJing = 31,
/// <summary>
/// 过载未关报警
/// </summary>
GuoZaiNoClose = 21,
/// <summary>
/// 离线报警
/// </summary>
LiXian = 7,
/// <summary>
/// 电流限定报警
/// </summary>
DianLiuXianDing = 8,
/// <summary>
/// 打火报警
/// </summary>
DaHuo = 9,
/// <summary>
/// 短路报警
/// </summary>
DuanLu = 10,
/// <summary>
/// 漏电自检30
/// </summary>
LouDianZiJian = 11,
/// <summary>
/// 漏电保护功能
/// </summary>
LouDianBaoHuGongNeng = 12,
/// <summary>
/// 浪涌报警
/// </summary>
LangYong = 13,
/// <summary>
/// 功率限定报警
/// </summary>
GongLvXianDing = 14,
/// <summary>
/// 空载报警
/// </summary>
KongZai = 15,
/// <summary>
/// 三相不平衡报警
/// </summary>
SanXiangPingHeng = 16,
/// <summary>
/// 缺相报警
/// </summary>
QueXiang = 17,
/// <summary>
/// 三相相序报警
/// </summary>
SanXiangXiangXu = 18,
/// <summary>
/// 手动分断报警
/// </summary>
ShouDongCaoZuo = 19,
/// <summary>
/// 零线报警
/// </summary>
LingXianBaoJing = 26,
/// <summary>
/// 零线预警
/// </summary>
LingXianYuJing = 27,
/// <summary>
/// 打火未关
/// </summary>
DaHuoNoClose = 29,
//以上最大32
/// <summary>
/// 防雷报警
/// </summary>
FangLei =35,
/// <summary>
/// 漏电测试成功
/// </summary>
LouDianCeShiSuccess=36,
/// <summary>
/// 模块与某个线路通信失败
/// </summary>
TongXun=37,
/// <summary>
/// 漏电测试失败
/// </summary>
LouDianCeShiFail=38,
/// <summary>
/// 输入缺相
/// </summary>
ShuRuQueXiang=39,
/// <summary>
/// A相短路
/// </summary>
AXiangDuanLu=40,
/// <summary>
/// A相过功
/// </summary>
AXiangGuoGong=41,
/// <summary>
/// A相过流
/// </summary>
AXiangGuoLiu=42,
/// <summary>
/// A相过压
/// </summary>
AXiangGuoYa=43,
/// <summary>
/// A相欠压
/// </summary>
AXiangQianYa=44,
/// <summary>
/// A相温度
/// </summary>
AXiangWenDu =45,
AXiangDaHuo=46,
AXiangDianLiuYuJing=47,
AXiangGuoYaYuJing=48,
AXiangQianYaYuJing=49,
AXiangShuRuQueXiang=50,
BXiangDuanLu=51,
BXiangGuoGong=52,
BXiangGuoLiu=53,
BXiangGuoYa=54,
BXiangQianYa=55,
BXiangWenDu=56,
BXiangDaHuo=57,
BXiangDianLiuYuJing=58,
BXiangGuoYaYuJing=59,
BXiangQianYaYuJing=60,
BXiangShuRuQianXiang=61,
CXiangDuanLu=62,
CXiangGuoGong=63,
CXiangGuoLiu=64,
CXiangGuoYa=65,
CXiangQianYa=66,
CXiangWenDu=67,
CXiangDaHuo=68,
CXiangDianLiuYuJing=69,
CXiangGuoYaYuJing=70,
CXiangQianYaYuJing=71,
CXiangShuRuQueXiang=72,
None=73
}