From 2633facbfec13267389edde5c29d6e66645c2356 Mon Sep 17 00:00:00 2001 From: Darker <mr.darker@163.com> Date: 星期四, 27 二月 2025 18:29:13 +0800 Subject: [PATCH] 1. 报警管理类添加两个表,并且修改了字段,完善修改后的函数 --- SourceCode/Bond/Servo/AlarmDlg.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SourceCode/Bond/Servo/AlarmDlg.h b/SourceCode/Bond/Servo/AlarmDlg.h index 67aefe0..4fbfc43 100644 --- a/SourceCode/Bond/Servo/AlarmDlg.h +++ b/SourceCode/Bond/Servo/AlarmDlg.h @@ -1,7 +1,6 @@ 锘�#pragma once #include "afxdialogex.h" -#include <vector> -#include <string> +#include "AlarmManager.h" // CAlarmDlg 瀵硅瘽妗� @@ -17,20 +16,21 @@ void InitRxWindow(); void Resize(); void LoadAlarms(); - //void AddAlarm(CAlarmMonitor* pMonitor, CAlarm* pAlarm); - //void UpdateAlarm(CAlarmMonitor* pMonitor, CAlarm* pAlarm); void UpdatePageData(); void UpdatePageControls(); - void FillDataToListCtrl(CListCtrl* pListCtrl, const std::vector<std::vector<std::string>>& vecData); - void InsertAlarmData(CListCtrl* pListCtrl, const CString& alarmId, const CString& deviceName, const CString& description, const CString& startTime, const CString& endTime); + void FillDataToListCtrl(CListCtrl* pListCtrl, const std::vector<AlarmData>& vecData); + void InsertAlarmData(CListCtrl* pListCtrl, const AlarmData& alarmData); + std::string getCurrentTimeString(); private: COLORREF m_crBkgnd; HBRUSH m_hbrBkgnd; IObserver* m_pObserver; - // 鍏抽敭瀛� - std::string m_strEqName; + // 鎼滅储鍏抽敭瀛� + int m_nSeverityLevel; + std::string m_strDeviceName; + std::string m_strUnitName; std::string m_strKeyword; // 椤电爜 -- Gitblit v1.9.3