From 11260184c3c930d0d9ccd6b65e905c7828efd3cf Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 12 九月 2025 09:44:02 +0800
Subject: [PATCH] 1. 优化报警的查询功能 2. 插入设备表数据和单元表数据 3. 修复报警查询失败的问题

---
 SourceCode/Bond/Servo/CReport.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CReport.h b/SourceCode/Bond/Servo/CReport.h
index a2078e1..191d539 100644
--- a/SourceCode/Bond/Servo/CReport.h
+++ b/SourceCode/Bond/Servo/CReport.h
@@ -7,7 +7,7 @@
 	{
 	public:
 		CReport();
-		CReport(unsigned int reportId);
+		CReport(unsigned int reportId, std::vector<unsigned int>& vids);
 		virtual ~CReport();
 
 	public:
@@ -15,9 +15,13 @@
 		BOOL addVariable(CVariable* pVariable);
 		BOOL deleteVarialble(unsigned int nVarialbleId);
 		CVariable* getVariable(unsigned int nVarialbleId);
+		std::vector<CVariable*>& getVariables();
+		std::string getVariablesIdsText();
+		bool getVariableName(unsigned int vid, std::string& strName);
 
 	private:
 		unsigned int m_nReportId;
+		std::vector<unsigned int> m_vids;
 		std::vector<CVariable*> m_variabels;
 	};
 }

--
Gitblit v1.9.3