| | |
| | | #include "ServoGraph.h" |
| | | #include "AlarmManager.h" |
| | | #include "SECSRuntimeManager.h" |
| | | #include "ProductionLogManager.h" |
| | | #include "VerticalLine.h" |
| | | #include "EqsGraphWnd.h" |
| | | #include "MapPosWnd.h" |
| | |
| | | AlarmManager::getInstance().insertMockData(); |
| | | |
| | | |
| | | // 初始化生产履历管理器 |
| | | 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; |
| | | } |
| | | ProductionLogManager::getInstance().insertMockData(); |
| | | |
| | | |
| | | // 初始化SECS运行设置管理库 |
| | | try { |
| | | if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) { |