| | |
| | | #include "afxdialogex.h" |
| | | #include "Common.h" |
| | | #include "CBonder.h" |
| | | #include "ToolUnits.h" |
| | | #include "SettingsDlg.h" |
| | | #include "InputDialog.h" |
| | | #include "LoginDlg.h" |
| | |
| | | // 初始化运行日志表 |
| | | try { |
| | | if (!logManager.initializeLogTable()) { |
| | | AfxMessageBox("初始化系统日志表失败!"); |
| | | AfxMessageBox("初始化系统日志模块失败!"); |
| | | return FALSE; |
| | | } |
| | | } |
| | | catch (const std::exception& ex) { |
| | | CString errorMsg; |
| | | errorMsg.Format(_T("初始化系统日志表失败:%s"), CString(ex.what())); |
| | | errorMsg.Format(_T("初始化系统日志模块失败:%s"), CString(ex.what())); |
| | | AfxMessageBox(errorMsg, MB_ICONERROR); |
| | | return FALSE; |
| | | } |
| | | |
| | | // 设置配方文件夹路径 |
| | | RecipeManager& recipeManager = RecipeManager::getInstance(); |
| | | std::string strRecipePath = CToolUnits::getCurrentExePath() + _T("\\Recipe"); |
| | | CToolUnits::createDir(strRecipePath.c_str()); |
| | | recipeManager.setRecipeFolder(strRecipePath); |
| | | |
| | | |
| | | // 菜单 |
| | |
| | | { |
| | | CAxisSettingsDlg axisDlg; |
| | | axisDlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)")); |
| | | axisDlg.SetRecipeName(_T("Default")); |
| | | axisDlg.DoModal(); |
| | | |
| | | /* |