From 2af991c1c72211b3b6b7fda703846bc017bc1908 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 10 三月 2025 11:25:33 +0800
Subject: [PATCH] 1.修复上一次合并代码遗留问题;

---
 SourceCode/Bond/Servo/AlarmDlg.h |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/AlarmDlg.h b/SourceCode/Bond/Servo/AlarmDlg.h
index 9ce2938..3fbf26d 100644
--- a/SourceCode/Bond/Servo/AlarmDlg.h
+++ b/SourceCode/Bond/Servo/AlarmDlg.h
@@ -1,7 +1,9 @@
 锘�#pragma once
 #include "afxdialogex.h"
-#include <vector>
-#include <string>
+#include "AlarmManager.h"
+
+
+#define ID_MSG_ALARMDLG_HIDE		WM_USER + 1024
 
 // CAlarmDlg 瀵硅瘽妗�
 
@@ -19,16 +21,19 @@
 	void LoadAlarms();
 	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;
 
 	// 椤电爜
@@ -52,9 +57,9 @@
 protected:
 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 鏀寔
 	virtual BOOL OnInitDialog();
-	virtual BOOL DestroyWindow();
 	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
 	afx_msg void OnDestroy();
+	afx_msg void OnClose();
 	afx_msg void OnSize(UINT nType, int cx, int cy);
 	afx_msg void OnCbnSelchangeComboDatetime();
 	afx_msg void OnBnClickedButtonSearch();

--
Gitblit v1.9.3