| | |
| | | #pragma once |
| | | #include "afxdialogex.h" |
| | | #include <vector> |
| | | #include <string> |
| | | #include "AlarmManager.h" |
| | | |
| | | // CAlarmDlg 对话框 |
| | | |
| | |
| | | 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; |
| | | |
| | | // 页码 |