SDC C-Project CF Review 프로그램
LYW
2021-09-23 c08b701c90c8998b241c82638d5c488e03238214
ReviewSystem/ReviewSystem/DlgSelfDiagnosis_Setting.cpp
@@ -56,6 +56,12 @@
   DDX_Control(pDX, IDC_EDIT_WSI_PANEL_POS_Y, m_editPanelPosY);
   DDX_Control(pDX, IDC_EDIT_WSI_PANEL_POS_X2, m_editPanelPosX2);
   DDX_Control(pDX, IDC_EDIT_WSI_PANEL_POS_Y2, m_editPanelPosY2);
   /*< LYW 20210719 : #3517 ADD Start >*/
   DDX_Control(pDX, IDC_CHECK_SELF_DIAGNOSIS_FLATNESS_SKIP, m_CheckFlatnessSkip);
   DDX_Control(pDX, IDC_EDIT_SQUARENESS_STANDARD, m_editSquarenessStandard);
   DDX_Control(pDX, IDC_EDIT_SQUARENESS_STANDARD2, m_editSquarenessStandard2);
   DDX_Control(pDX, IDC_EDIT_WSI_STANDARD, m_editWSIStandard);
   /*< LYW 20210719 : #3517 ADD End >*/
   DDX_Text(pDX, IDC_EDIT_REVIEW_PANEL_POS_X, m_dEditReviewPanelPosX);
   DDX_Text(pDX, IDC_EDIT_REVIEW_PANEL_POS_Y, m_dEditReviewPanelPosY);
   DDX_Text(pDX, IDC_EDIT_REVIEW_PANEL_POS_X2, m_dEditReviewPanelPosX2);
@@ -111,16 +117,19 @@
BOOL CDlgSelfDiagnosis_Setting::ReadAutoDiagnosisConfigFile()
{
   /*< LYW 20210719 : #3517 ADD Start >*/
   CString strConfigFilePath = _T("");
   strConfigFilePath.Format(_T("%s\\%s"), REVIEW_AUTO_DIAGNOSIS_SETTING_FILE_PATH, REVIEW_AUTO_DIAGNOSIS_SETTING_FILE_NAME);
   m_pDiagnosisManager->LoadSettingConfigFile(strConfigFilePath);
   /*< LYW 20210719 : #3517 ADD End >*/
   CDiagnosisInfo* pSettingInfo = m_pDiagnosisManager->GetDiagnosisInfo();
   if (pSettingInfo == NULL)
      return FALSE;
   CString strTemp = _T("");
   CString strFilePath = REVIEW_AUTO_DIAGNOSIS_SETTING_FILE_PATH;
   CString strFileName = _T("AutoDiagnosisSetting.cfg");
   m_editFilePath.SetWindowTextA(strFilePath +_T('\\') + strFileName);
   m_editFilePath.SetWindowTextA(strConfigFilePath);
   strTemp.Format("%d", pSettingInfo->GetModuleCount());
   m_editModuleCount.SetWindowTextA(strTemp);
@@ -133,6 +142,14 @@
   strTemp.Format("%f", pSettingInfo->GetJudgeData_Degree());
   m_editJudgeData_Degree.SetWindowTextA(strTemp);
   /*< LYW 20210719 : #3517 ADD Start >*/
   strTemp.Format("%f", pSettingInfo->GetSquarenessStandard());
   m_editSquarenessStandard.SetWindowTextA(strTemp);
   strTemp.Format("%f", pSettingInfo->GetSquarenessStandard2());
   m_editSquarenessStandard2.SetWindowTextA(strTemp);
   /*< LYW 20210719 : #3517 ADD End >*/
   strTemp.Format("%d", pSettingInfo->GetCameraFrameWidth());
   m_editFrameWidth.SetWindowTextA(strTemp);
@@ -166,12 +183,20 @@
   strTemp.Format("%d", pSettingInfo->GetGlassSizeY_Flatness());
   m_editGlassSizeY.SetWindowTextA(strTemp);
   /*< LYW 20210719 : #3517 ADD Start >*/
   m_CheckFlatnessSkip.SetCheck(pSettingInfo->GetFlastnessSkipMode());
    /*< LYW 20210719 : #3517 ADD End >*/
   strTemp.Format("%d", pSettingInfo->GetPanelCount_Wsi());
   m_editPanelCount_Wsi.SetWindowTextA(strTemp);
   strTemp.Format("%f", pSettingInfo->GetJudgeData_3Sigma());
   m_editJudgeData_3Sigma.SetWindowTextA(strTemp);
   /*< LYW 20210719 : #3517 ADD Start >*/
   strTemp.Format("%f", pSettingInfo->GetWSIStandard());
   m_editWSIStandard.SetWindowTextA(strTemp);
   /*< LYW 20210719 : #3517 ADD End >*/
   strTemp.Format("%f", pSettingInfo->GetPanelPosX_Wsi());
   m_editPanelPosX.SetWindowTextA(strTemp);
@@ -278,6 +303,28 @@
   nTemp = atoi(strTemp);
   macroFile.SetItem(strItem, nTemp);
   /*< LYW 20210719 : #3517 ADD Start >*/
   strItem.Format(_T("FLATNESS_SKIPMODE"));
   nTemp = m_CheckFlatnessSkip.GetCheck();
   macroFile.SetItem(strItem, nTemp);
   strItem.Format(_T("SQUARENESS_STANDARD"));
   m_editSquarenessStandard.GetWindowTextA(strTemp);
   dTemp = atof(strTemp);
   macroFile.SetItem(strItem, dTemp);
   strItem.Format(_T("SQUARENESS_STANDARD2"));
   m_editSquarenessStandard2.GetWindowTextA(strTemp);
   dTemp = atof(strTemp);
   macroFile.SetItem(strItem, dTemp);
   strItem.Format(_T("WSI_STANDARD"));
   m_editWSIStandard.GetWindowTextA(strTemp);
   dTemp = atof(strTemp);
   macroFile.SetItem(strItem, dTemp);
   /*< LYW 20210719 : #3517 ADD End >*/
   strItem.Format(_T("WSI_PANEL_COUNT"));
   m_editPanelCount_Wsi.GetWindowTextA(strTemp);
   nTemp = atoi(strTemp);