SDC C-Project CF Review 프로그램
kojingeun
2023-06-07 b4a18bfef6cb9f5d48a12b455dfa78f9ef67e348
ReviewSystem/ReviewSystem/MainFrm.cpp
@@ -78,7 +78,10 @@
   //SetTimer(ID_TIMER_RESET_COMM, 2000, NULL);
   SetTimer(ID_TIMER_ALIVE, 1813, NULL); //->> 기존 SetTimer(ID_TIMER_ALIVE, 1000, NULL);
   /*< SWK 20221221 - #4403 MOD Start >*/
//   SetTimer(ID_TIMER_ALIVE, 1813, NULL); //->> 기존 SetTimer(ID_TIMER_ALIVE, 1000, NULL);
   SetTimer(ID_TIMER_ALIVE, 2000, NULL);
   /*< SWK 20221221 - #4403 MOD End >*/
   //SetTimer(ID_TIMER_AFM_ALIVE, 5000, NULL);
@@ -88,11 +91,14 @@
   SetTimer(ID_TIMER_SEND_SIGNAL_ALIVE, 100, NULL);
   system("net use Y: \\\\126.100.100.1\\d\\DIT_ResultData pw:dit/user:Server/persistent:yes");
   //LYW Align Reconnect
   //업데이트시
   system("netsh interface set interface name = \"Align #1\" admin = disable&& netsh interface set interface name = \"Align #1\" admin = enable&& netsh interface set interface name = \"Align #2\" admin = disable&& netsh interface set interface name = \"Align #2\" admin = enable");
   system("netsh interface set interface name = \"Align #1\" admin = disable"
      "&& netsh interface set interface name = \"Align #1\" admin = enable"
      "&& netsh interface set interface name = \"Align #2\" admin = disable"
      "&& netsh interface set interface name = \"Align #2\" admin = enable"
      "&& net use Y : \\\\126.100.100.1\\d\\DIT_ResultData pw : dit / user : Server / persistent : yes");
   Sleep(2000);
//   SetTimer(ID_TIMER_WSI_LONGRUN_TEST_TIME, 10000, NULL);
@@ -618,12 +624,10 @@
void CMainFrame::OnClose()
{
   // TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다.
   if (IDNO == AfxMessageBox(_T("Exit Review System?"), MB_YESNO | MB_ICONQUESTION))
   if (IDNO == AfxMessageBox(_T("프로그램 종료시 \nCIM OFFLINE \n설비 매뉴얼 모드\n상태를 먼저 확인해 주십시오.\n정말 종료 하시겠습니까?"), MB_YESNO | MB_ICONQUESTION))
   {
      return;
   }
   g_pLog->DisplayMessage(_T("Program exit by User!"));
   DeinitReviewInterface();
@@ -858,6 +862,24 @@
   switch(pCopyDataStruct->dwData)
   {
   case COPYDATA_RAW_DOWNLOAD_ACK:
   case COPYDATA_RAW_UPLOAD_ACK:
   case COPYDATA_LOT_UPLOAD_ACK:
   case COPYDATA_IMAGE_UPLOAD_ACK:
   {
      CFTPCopyDataParam ftpCopyDataParam;
      ftpCopyDataParam = *(static_cast<CFTPCopyDataParam*>(pCopyDataStruct->lpData));
      if (ftpCopyDataParam.m_nSendResultCode == FALSE)
      {
         CMainFrame* pMain = static_cast<CMainFrame*>(AfxGetMainWnd());
         CSequenceProcessor* pSequenceProcessor = pMain->IRP2P_GetSequenceProcessor();
         if (pSequenceProcessor == NULL)   return FALSE;
         pSequenceProcessor->sendUploadResult2SequenceProcessor(ftpCopyDataParam.m_nSendResultCode);
      }
   }
   break;
   case COPYDATA_SYSTEMSETTING2REVIEWSYSTEM:
      {
         COPYDATA_SYSTEM2REV* pCopyData = (COPYDATA_SYSTEM2REV*)pCopyDataStruct->lpData;