From 90ae1c3db92833354814484e65f8cd2eef1f5f3e Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 30 七月 2025 15:14:20 +0800
Subject: [PATCH] 1.配方列表获取完善;

---
 SourceCode/Bond/Servo/ServoDlg.cpp |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoDlg.cpp b/SourceCode/Bond/Servo/ServoDlg.cpp
index 1b04b6b..457a1fe 100644
--- a/SourceCode/Bond/Servo/ServoDlg.cpp
+++ b/SourceCode/Bond/Servo/ServoDlg.cpp
@@ -25,6 +25,7 @@
 #include "CHMPropertyDlg.h"
 #include "CPageVarialbles.h"
 #include "CPageReport.h"
+#include "CPageCollectionEvent.h"
 
 
 #ifdef _DEBUG
@@ -246,6 +247,15 @@
 					}
 				}
 			}
+			else if (RX_CODE_LOADPORT_STATUS_CHANGED == code) {
+				SERVO::CLoadPort* pLoadPort = nullptr;
+				if (pAny->getPtrValue("ptr", (void*&)pLoadPort)) {
+					//CPortConfigurationDlg dlg;
+					//dlg.setCurSelPort(pLoadPort->getIndex());
+					//dlg.DoModal();
+				}
+			}
+
 			if (RX_CODE_PASSIVE_STATUS_CHANGED == code) {
 				int state = 0;
 				pAny->getIntValue("exCode", state);
@@ -559,15 +569,19 @@
 
 void CServoDlg::OnMenuProjectVarialbleList()
 {
-	CHMPropertyDlg dlg(_T("Variable|Rreport|Collection Event"), 658, 788);
+	CHMPropertyDlg dlg(_T("Variable | Rreport | Collection Event"), 658, 788);
 
-	CPageReport* pPage1 = new CPageReport();
-	pPage1->Create(IDD_PAGE_REPORT);
-	dlg.addPage(pPage1, "Report");
+	CPageCollectionEvent* pPage1 = new CPageCollectionEvent();
+	pPage1->Create(IDD_PAGE_COLLECTION_EVENT);
+	dlg.addPage(pPage1, "Event");
 
-	CPageVarialbles* pPage2 = new CPageVarialbles();
-	pPage2->Create(IDD_PAGE_VARIABLE);
-	dlg.addPage(pPage2, "Variable");
+	CPageReport* pPage2 = new CPageReport();
+	pPage2->Create(IDD_PAGE_REPORT);
+	dlg.addPage(pPage2, "Report");
+
+	CPageVarialbles* pPage3 = new CPageVarialbles();
+	pPage3->Create(IDD_PAGE_VARIABLE);
+	dlg.addPage(pPage3, "Variable");
 
 	dlg.DoModal();
 }

--
Gitblit v1.9.3