From 43c7dc211f10851480352b12bd01f3443079bb01 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期二, 26 八月 2025 09:09:21 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang

---
 SourceCode/Bond/Servo/ServoDlg.cpp |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoDlg.cpp b/SourceCode/Bond/Servo/ServoDlg.cpp
index 746549b..400712c 100644
--- a/SourceCode/Bond/Servo/ServoDlg.cpp
+++ b/SourceCode/Bond/Servo/ServoDlg.cpp
@@ -26,6 +26,7 @@
 #include "CPageVarialbles.h"
 #include "CPageReport.h"
 #include "CPageCollectionEvent.h"
+#include "CControlJobDlg.h"
 
 
 #ifdef _DEBUG
@@ -39,6 +40,8 @@
 /* 运行时间定时器 */
 #define TIMER_ID_UPDATE_RUMTIME			2
 
+/* Test */
+#define TIMER_ID_TEST					3
 
 
 // 用于应用程序“关于”菜单项的 CAboutDlg 对话框
@@ -332,7 +335,7 @@
 
 	// model init
 	theApp.m_model.init();
-
+	SetTimer(TIMER_ID_TEST, 1000, nullptr);
 
 	// 菜单
 	CMenu menu;
@@ -349,7 +352,8 @@
 	HMENU hMenu = m_pTopToolbar->GetOperatorMenu();
 	ASSERT(hMenu);
 	::EnableMenuItem(hMenu, ID_OPEATOR_SWITCH, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
-	
+	m_pTopToolbar->GetBtn(IDC_BUTTON_JOBS)->EnableWindow(TRUE);
+
 
 	// Tab
 	m_pPageGraph1 = new CPageGraph1();
@@ -875,6 +879,13 @@
 		m_pMyStatusbar->setRunTimeText((LPTSTR)(LPCTSTR)strText);
 	}
 
+	else if(TIMER_ID_TEST == nIDEvent){
+		static __int64 tttt = 0;
+		tttt++;
+		theApp.m_model.m_hsmsPassive.setVariableValue("CJobSpace", tttt % 10);
+		theApp.m_model.m_hsmsPassive.setVariableValue("PJobSpace", tttt % 5);
+	}
+
 
 	CDialogEx::OnTimer(nIDEvent);
 }
@@ -968,6 +979,11 @@
 			m_pTopToolbar->GetBtn(IDC_BUTTON_STOP)->EnableWindow(FALSE);
 		}
 	}
+	else if (id == IDC_BUTTON_JOBS) {
+		CControlJobDlg dlg;
+		dlg.SetControlJob(theApp.m_model.m_master.getControlJob());
+		dlg.DoModal();
+	}
 	else if (id == IDC_BUTTON_PORT_CONFIG) {
 		CPortConfigurationDlg dlg;
 		dlg.DoModal();

--
Gitblit v1.9.3