From 166fa1cb727d6fe6962bbd2b5c4a0c9da6088048 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 30 七月 2025 14:50:03 +0800
Subject: [PATCH] 1.获取配方后自动刷新列表; 2.HsmsAction序列化和反序列化,将来用于缓存上报的数据;
---
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