From 0b05e3525e2767bc9eb314ce5d0d59a8e4073f6e Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 23 七月 2025 10:52:57 +0800
Subject: [PATCH] 1.Port状态 map图对话框,增加全选和全不选。增加 Process Start和Process Cancel按钮,并下发相关指定到Cassette

---
 SourceCode/Bond/Servo/ServoDlg.cpp |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoDlg.cpp b/SourceCode/Bond/Servo/ServoDlg.cpp
index dde6456..bde44da 100644
--- a/SourceCode/Bond/Servo/ServoDlg.cpp
+++ b/SourceCode/Bond/Servo/ServoDlg.cpp
@@ -241,6 +241,14 @@
 					}
 				}
 			}
+			else if (RX_CODE_LOADPORT_INUSE == code) {
+				SERVO::CLoadPort* pLoadPort = nullptr;
+				if (pAny->getPtrValue("ptr", (void*&)pLoadPort)) {
+					CPortConfigurationDlg dlg;
+					dlg.setCurSelPort(pLoadPort->getIndex());
+					dlg.DoModal();
+				}
+			}
 
 			pAny->release();
 		}, [&]() -> void {
@@ -283,6 +291,10 @@
 	//  执行此操作
 	SetIcon(m_hIcon, TRUE);			// 设置大图标
 	SetIcon(m_hIcon, FALSE);		// 设置小图标
+
+
+	// model init
+	theApp.m_model.init();
 
 
 	// 菜单
@@ -353,9 +365,6 @@
 	int height = GetSystemMetrics(SM_CYSCREEN);
 	MoveWindow((width - rcWnd.Width()) / 2, 0, rcWnd.Width(), rcWnd.Height(), TRUE);
 
-
-	// model init
-	theApp.m_model.init();
 
 
 	SetTimer(TIMER_ID_CREATE_TERMINAL, 3000, nullptr);
@@ -899,11 +908,13 @@
 	}
 	else if (id == IDC_BUTTON_SETTINGS) {
 		SERVO::CEquipment* pEq = theApp.m_model.m_master.getEquipment(EQ_ID_EFEM);
+		((SERVO::CEFEM*)pEq)->printDebugRobotState();
 		pEq->printDebugString001();
 		pEq = theApp.m_model.m_master.getEquipment(EQ_ID_Bonder1);
 		pEq->printDebugString001();
 		pEq = theApp.m_model.m_master.getEquipment(EQ_ID_Bonder2);
 		pEq->printDebugString001();
+
 	}
 	else if (id == IDC_BUTTON_OPERATOR) {
 		int menuId = (int)wParam;

--
Gitblit v1.9.3