From 48d848201d91187c21d015ed54c0e5e81ceb2c66 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 15 五月 2025 08:45:35 +0800
Subject: [PATCH] Merge branch 'liuyang' into clh
---
SourceCode/Bond/Servo/Servo.cpp | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/SourceCode/Bond/Servo/Servo.cpp b/SourceCode/Bond/Servo/Servo.cpp
index 5866c64..e6eb33a 100644
--- a/SourceCode/Bond/Servo/Servo.cpp
+++ b/SourceCode/Bond/Servo/Servo.cpp
@@ -130,35 +130,35 @@
// 初始化生产履历管理器
- try {
- if (!ProductionLogManager::getInstance().initProductionTable()) {
- AfxMessageBox("初始化生产履历管理器失败!");
- return FALSE;
- }
- }
- catch (const std::exception& ex) {
- CString errorMsg;
- errorMsg.Format(_T("初始化生产履历管理器失败:%s"), CString(ex.what()));
- AfxMessageBox(errorMsg, MB_ICONERROR);
- return FALSE;
- }
-
-
- // 初始化SECS运行设置管理库
//try {
- // if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) {
- // AfxMessageBox("初始化SECS运行设置失败!");
+ // if (!ProductionLogManager::getInstance().initProductionTable()) {
+ // AfxMessageBox("初始化生产履历管理器失败!");
// return FALSE;
// }
//}
//catch (const std::exception& ex) {
// CString errorMsg;
- // errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what()));
+ // errorMsg.Format(_T("初始化生产履历管理器失败:%s"), CString(ex.what()));
// AfxMessageBox(errorMsg, MB_ICONERROR);
// return FALSE;
//}
+ // 初始化SECS运行设置管理库
+ try {
+ if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) {
+ AfxMessageBox("初始化SECS运行设置失败!");
+ return FALSE;
+ }
+ }
+ catch (const std::exception& ex) {
+ CString errorMsg;
+ errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what()));
+ AfxMessageBox(errorMsg, MB_ICONERROR);
+ return FALSE;
+ }
+
+
CServoDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
--
Gitblit v1.9.3