From b3bcb467a943ff5440d9953eeab9d3dd018ba0ca Mon Sep 17 00:00:00 2001
From: LYW <leeyeanwoo@diteam.co.kr>
Date: 수, 16 6월 2021 17:26:40 +0900
Subject: [PATCH] Ongoing80 #3428 CF AOI Review Recipe Editor 리뷰 우선순위 조건 타입 변경기능 적용 및 검증 - 우선 순위 조건 Defect Type -> Defecct Code 변경 - Defect Code 고정 -> 텍스트로 설정 - 텍스트를 비워두거나 ALL, all을 입력시 모든 Defect코드에 대하여 우선순위 정렬

---
 ReviewSystem/CHReviewPrioritySorter/PrioritySorter_CPJT.cpp |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ReviewSystem/CHReviewPrioritySorter/PrioritySorter_CPJT.cpp b/ReviewSystem/CHReviewPrioritySorter/PrioritySorter_CPJT.cpp
index 162c96c..a30e289 100644
--- a/ReviewSystem/CHReviewPrioritySorter/PrioritySorter_CPJT.cpp
+++ b/ReviewSystem/CHReviewPrioritySorter/PrioritySorter_CPJT.cpp
@@ -627,9 +627,14 @@
 	//	//if (pDefectResult->nDefectCode != pPriorityInfo->GetPriorityOpticData()) return FALSE;
 	//}
 	//210608 Defect Code 占쏙옙 채占승쇽옙 占쏙옙占쏙옙 占쏙옙청 
-	if (pPriorityInfo->GetPriorityDefectCode() != RCP_PRIORITY_DEFECT_CODE_ALL)
+	//if (pPriorityInfo->GetPriorityDefectCode() != RCP_PRIORITY_DEFECT_CODE_ALL)
+	//{
+	//	if (pDefectResult->nDefectJudgeCode != pPriorityInfo->GetPriorityDefectCode()) return FALSE;
+	//}
+
+	if (pPriorityInfo->GetPriorityDefectCode() != "" && pPriorityInfo->GetPriorityDefectCode() != "ALL" && pPriorityInfo->GetPriorityDefectCode() != "all")
 	{
-		if (pDefectResult->nDefectJudgeCode != pPriorityInfo->GetPriorityDefectCode()) return FALSE;
+		if (pDefectResult->strDefectJudgeCode != pPriorityInfo->GetPriorityDefectCode()) return FALSE;
 	}
 
 	if (pPriorityInfo->GetPriorityGradeData() != RCP_PRIORITY_Judge_ALL)

--
Gitblit v1.9.3