mrDarker
2025-05-13 444ad650bc8d00e38a85a6e671278adf658fe08b
SourceCode/Bond/Servo/Servo.cpp
@@ -130,18 +130,18 @@
   // 初始化生产履历管理器
   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;
   }
   //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运行设置管理库
@@ -201,6 +201,9 @@
   // 销毁报警表
   AlarmManager::getInstance().termAlarmTable();
   // 销毁生产表
   ProductionLogManager::getInstance().termProductionTable();
   // 销毁SECS运行设置管理库
   SECSRuntimeManager::getInstance().termRuntimeSetting();