|
|
@@ -669,6 +669,7 @@
|
|
|
let gridListValue = gagaAgGrid.getAllRowData(gridListOption); // 기존 리스트
|
|
|
let addCnt = 0; // 적용 성공 수량
|
|
|
let failCnt = 0; // 실패 수량
|
|
|
+ let dealCntString = "";
|
|
|
// 기존 리스트 데이터 for
|
|
|
for(let i = 0 ; i < result.length ; i++) {
|
|
|
let addChk = true; // 받아온 모든 데이터
|
|
|
@@ -679,6 +680,13 @@
|
|
|
if(eval("gridListValue[j]." + key) == eval("result[i]." + key)) { addChk = false; } // 중복체크
|
|
|
}
|
|
|
|
|
|
+ if(key == "goodsCd" && result[i].goodsType == "G056_D") {
|
|
|
+ if(dealCntString == "") {
|
|
|
+ dealCntString = "<br/>딜 상품은 추가 될 수 없습니다. 구성상품으로 등록해주세요.";
|
|
|
+ }
|
|
|
+ addChk = false;
|
|
|
+ }
|
|
|
+
|
|
|
// 추가된 데이터 중 중복되지 않은 데이터 리스트에 추가
|
|
|
if(addChk) { resultList.push(result[i]); addCnt++; }
|
|
|
}
|
|
|
@@ -692,11 +700,11 @@
|
|
|
}
|
|
|
|
|
|
failCnt = result.length - addCnt;
|
|
|
- mcxDialog.alert("데이터가 적용되었습니다.<br/>" + addCnt + "건 성공, " + failCnt + "건 실패");
|
|
|
+ mcxDialog.alert("데이터가 적용되었습니다.<br/>" + addCnt + "건 성공, " + failCnt + "건 실패" + dealCntString);
|
|
|
} else if (key == "goodsCd") {
|
|
|
uifnPopupClose('popupGoods');
|
|
|
failCnt = result.length - addCnt;
|
|
|
- mcxDialog.alert("데이터가 적용되었습니다.<br/>" + addCnt + "건 성공, " + failCnt + "건 실패");
|
|
|
+ mcxDialog.alert("데이터가 적용되었습니다.<br/>" + addCnt + "건 성공, " + failCnt + "건 실패" + dealCntString);
|
|
|
}
|
|
|
|
|
|
// 추가된 정보 그리드에 추가
|