From b67e16869a5bfbbde3896a4e5a13f1301f1b978d Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 13 十二月 2024 14:55:55 +0800
Subject: [PATCH] 1.调整保存警告到数据库的位置; 2.CAlarmMonitor组件不再保存已完成的警告的数据;

---
 SourceCode/Bond/BondEq/CPanelProject.cpp |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/BondEq/CPanelProject.cpp b/SourceCode/Bond/BondEq/CPanelProject.cpp
index 2501e28..0aa4518 100644
--- a/SourceCode/Bond/BondEq/CPanelProject.cpp
+++ b/SourceCode/Bond/BondEq/CPanelProject.cpp
@@ -2,7 +2,7 @@
 //
 
 #include "stdafx.h"
-#include "BondServo.h"
+#include "BondEq.h"
 #include "CPanelProject.h"
 #include "afxdialogex.h"
 
@@ -19,6 +19,7 @@
 	m_nPanelWidth = int((double)GetSystemMetrics(SM_CXSCREEN) * 0.25);
 	m_pAccordionWnd = nullptr;
 	m_pPageRemoteEqs = nullptr;
+	m_pPageComponents = nullptr;
 }
 
 CPanelProject::~CPanelProject()
@@ -75,6 +76,10 @@
 	m_pPageRemoteEqs->ShowWindow(SW_SHOW);
 	m_pAccordionWnd->AddItem("杩滅▼璁惧", m_pPageRemoteEqs, 0, TRUE, TRUE);
 	
+	m_pPageComponents = new CProjectPageComponents();
+	m_pPageComponents->Create(IDD_PROJECT_PAGE_COMPONENTS, GetDlgItem(IDC_ACCORDION_WND1));
+	m_pPageComponents->ShowWindow(SW_SHOW);
+	m_pAccordionWnd->AddItem("缁勪欢鍒楄〃", m_pPageComponents, -1, TRUE, TRUE);
 
 	return TRUE;  // return TRUE unless you set the focus to a control
 				  // 寮傚父: OCX 灞炴�ч〉搴旇繑鍥� FALSE
@@ -110,6 +115,12 @@
 		::DeleteObject(m_hbrBkgnd);
 	}
 
+	if (m_pPageComponents != nullptr) {
+		m_pPageComponents->DestroyWindow();
+		delete m_pPageComponents;
+		m_pPageComponents = nullptr;
+	}
+
 	if (m_pPageRemoteEqs != nullptr) {
 		m_pPageRemoteEqs->DestroyWindow();
 		delete m_pPageRemoteEqs;

--
Gitblit v1.9.3