From 047c7cbd047e11fba8d7872e69a11a13e463aec4 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 13 十月 2025 17:40:39 +0800
Subject: [PATCH] 1.保存单条记录。

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

diff --git a/SourceCode/Bond/Servo/ServoDlg.cpp b/SourceCode/Bond/Servo/ServoDlg.cpp
index 74f8607..69ff046 100644
--- a/SourceCode/Bond/Servo/ServoDlg.cpp
+++ b/SourceCode/Bond/Servo/ServoDlg.cpp
@@ -28,6 +28,7 @@
 #include "CPageCollectionEvent.h"
 #include "CControlJobDlg.h"
 #include "InputDialog.h"
+#include "CControlJobManagerDlg.h"
 
 
 #ifdef _DEBUG
@@ -989,20 +990,6 @@
 {
 	int id = (int)lParam;
 	if (id == IDC_BUTTON_RUN || id == IDC_BUTTON_STOP) {
-		//CInputDialog inputDialog(_T("验证用户"), _T("请输入用户密码:"));
-		//if (inputDialog.DoModal() != IDOK) {
-		//	AfxMessageBox(_T("取消验证!"));
-		//	return 0;
-		//}
-	
-		//CString inputText = inputDialog.GetInputText();
-		//std::string strPass = UserManager::getInstance().getCurrentPass();
-		//if (inputText.Compare(strPass.c_str()) != 0) {
-		//	AfxMessageBox(_T("密码错误!"));
-		//	SystemLogManager::getInstance().log(SystemLogManager::LogType::Info, _T("验证时,密码错误!"));
-		//	return 0;
-		//}
-		
 		UserRole emRole = UserManager::getInstance().getCurrentUserRole();
 		if (emRole != UserRole::SuperAdmin) {
 			AfxMessageBox(_T("当前用户并非管理员!!!")); 
@@ -1053,13 +1040,16 @@
 	}
 	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();
 	}
+	else if (id == IDC_BUTTON_CASSETTE) {
+		CControlJobManagerDlg dlg;
+		dlg.DoModal();
+	}
 	else if (id == IDC_BUTTON_ROBOT) {
 		theApp.m_model.getMaster().clearError();
 		SERVO::CEFEM* pEFEM = (SERVO::CEFEM*)theApp.m_model.getMaster().getEquipment(EQ_ID_EFEM);

--
Gitblit v1.9.3