/// <summary> /// 更新报警信息表数据 /// </summary> private static void UpdateAlarmInfo() { reportInfo.Report_Time = wellCurrentStateInfo.Report_Time; reportInfo.Terminal_ID = wellInfo.Terminal_ID; reportInfo.Well_State_ID_Pending = wellCurrentStateInfo.Well_State_ID; wellInfoService.UpdateReportInfo_Pending(reportInfo); }
/// <summary> /// 处理信息 /// </summary> private void DisposeMsg(CSPNType type) { switch (type) { case CSPNType.AlarmInfo: switch (well_State_ID) { case 2: SenAlarmMsg("报警信息", time, realName); break; case 3: SenAlarmMsg("状态信息(低电量报警)", time, realName); break; case 4: SenAlarmMsg("状态信息(烟感报警)", time, realName); break; case 5: SenAlarmMsg("状态信息(烟感低电量报警)", time, realName); break; } wellStateService.UpdateWellCurrentStateInfo(7, terminal_ID); wellInfoService.UpdateReportInfo_Pending(1, terminal_ID); wellInfoService.UpdateReportInfo_Send(7, terminal_ID); GetSMS.UpdateMap(terminal_ID); if (refreshMessageDelegate != null) { refreshMessageDelegate(); } break; case CSPNType.DisposeInfo: switch (well_State_ID) { //case 2: // UpdateDisposeMsg("报警信息", time, realName); // break; //case 3: // UpdateDisposeMsg("状态信息(低电量报警)", time, realName); // break; //case 4: // UpdateDisposeMsg("状态信息(烟感报警)", time, realName); // break; //case 5: // UpdateDisposeMsg("状态信息(烟感低电量报警)", time, realName); // break; case 7: UpdateDisposeMsg("报警信息", time, realName); break; } wellStateService.UpdateWellCurrentStateInfo(1, terminal_ID); wellInfoService.UpdateReportInfo_Send(1, terminal_ID); GetSMS.UpdateMap(terminal_ID); break; case CSPNType.NotReportInfo: CDMASMS.SendCHNSms(string.Format("位于:{0}的{1}已经{2}天或超过{2}天未发送信息。", place, terminal_Name, ReadWriteXml.ReadXml("NotReportTimes")), phone); wellInfoService.Empty_NotReportNumInfo(terminal_ID); userLogHelper.InsertUserLog(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"), "处理未上报信息。", CommonClass.UserName, null, null); break; } }