| | |
| | | CString strRecipeName, strPath, strMessage, strTemp; |
| | | CCellID cellID = m_ctrlGridRecipeList.GetFocusCell(); |
| | | |
| | | if(cellID.row > 0 && cellID.col > 0) |
| | | if (cellID.row > 0 && cellID.col > 0) |
| | | { |
| | | strRecipeName = m_ctrlGridRecipeList.GetItemText(cellID.row, 1); |
| | | |
| | | if(m_bReviewSystemPC) |
| | | if (m_bReviewSystemPC) |
| | | { |
| | | strPath.Format(_T("%s\\%s.rcp"), _REVIEW_RECIPE_PATH_, strRecipeName); |
| | | } |
| | |
| | | strTemp.Format(_T("%s\\%s.rcp"), _REVIEW_RECIPE_PATH_, strRecipeName); |
| | | nIdx = strTemp.Find(_T("\\")); |
| | | |
| | | if(nIdx != -1) |
| | | if (nIdx != -1) |
| | | { |
| | | strTemp = strTemp.Mid(nIdx + 1); |
| | | strPath.Format(_T("\\\\%s\\C\\%s"), NETIP_A2E_REVIEW_SYSTEM, strTemp); |
| | |
| | | { |
| | | CString strMessage; |
| | | |
| | | if(RecipeName.IsEmpty()) |
| | | if (RecipeName.IsEmpty()) |
| | | { |
| | | AfxMessageBox(_T("Seleted recipe is not exist.")); |
| | | } |
| | |
| | | |
| | | bRet = SaveRecipeFile(RecipeName); |
| | | |
| | | if(bRet) |
| | | if (bRet) |
| | | { |
| | | // [2017:4:17]-[WEZASW] : CIM(Recipe) 보고 항목 추가. |
| | | COPYDATA_RECIPE2REV copyData; |
| | |
| | | // strBackupFile = strBackupPath + m_strCurrentRecipeName + strBackupFile; |
| | | CString strSource, strDest; |
| | | strSource.Format(_T("%s\\%s.rcp"), _REVIEW_RECIPE_PATH_, RecipeName); |
| | | strDest.Format(_T("%s\\%s_%s.rcp"),strBackupPath, RecipeName, strBackupFile ); |
| | | strDest.Format(_T("%s\\%s_%s.rcp"), strBackupPath, RecipeName, strBackupFile); |
| | | CopyFile(strSource, strDest, TRUE); |
| | | |
| | | //LYW_#3344_CF AOI Review Config File 백업 기능 개선 ADD START |
| | |
| | | // TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다. |
| | | CString strMessage; |
| | | |
| | | if(m_strCurrentRecipeName.IsEmpty()) |
| | | if (m_strCurrentRecipeName.IsEmpty()) |
| | | { |
| | | AfxMessageBox(_T("Seleted recipe is not exist.")); |
| | | } |
| | |
| | | |
| | | bRet = SaveRecipeFile(m_strCurrentRecipeName); |
| | | |
| | | if(bRet) |
| | | if (bRet) |
| | | { |
| | | // [2017:4:17]-[WEZASW] : CIM(Recipe) 보고 항목 추가. |
| | | COPYDATA_RECIPE2REV copyData; |
| | |
| | | // strBackupFile = strBackupPath + m_strCurrentRecipeName + strBackupFile; |
| | | CString strSource, strDest; |
| | | strSource.Format(_T("%s\\%s.rcp"), _REVIEW_RECIPE_PATH_, m_strCurrentRecipeName); |
| | | strDest.Format(_T("%s\\%s_%s.rcp"),strBackupPath, m_strCurrentRecipeName, strBackupFile ); |
| | | strDest.Format(_T("%s\\%s_%s.rcp"), strBackupPath, m_strCurrentRecipeName, strBackupFile); |
| | | CopyFile(strSource, strDest, TRUE); |
| | | |
| | | //LYW_#3344_CF AOI Review Config File 백업 기능 개선 ADD START |
| | |
| | | RefreshRecipeList(); |
| | | } |
| | | |
| | | |
| | | |
| | | CRMMInfoWriter rmmInfoWriter; |
| | | int nMachineType = m_pDlgReviewFilter->GetMachineType(); |
| | | if (rmmInfoWriter.WriteRmm(nMachineType) == FALSE) |
| | |
| | | strMessage.Format(_T("Fail to save RMM INFO!")); |
| | | AfxMessageBox(strMessage); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | void CReviewRecipeEditorDlg::OnBnClickedButtonReviewrcpEditorExit() |