|
@@ -398,7 +398,7 @@
|
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
{headerName: "브랜드ID" , field: "brandCd" , width: 110, cellClass: 'text-center'},
|
|
{headerName: "브랜드ID" , field: "brandCd" , width: 110, cellClass: 'text-center'},
|
|
|
{headerName: "브랜드명" , field: "brandEnm" , width: 120, cellClass: 'text-center'},
|
|
{headerName: "브랜드명" , field: "brandEnm" , width: 120, cellClass: 'text-center'},
|
|
|
- {headerName: "공급업체명" , field: "supplyCompNm" , width: 150, cellClass: 'text-center'},
|
|
|
|
|
|
|
+ {headerName: "공급업체명" , field: "supplyCompNm" , width: 150, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "적용대상" , field: "targetGb" , width: 150, cellClass: 'text-center', hide: true},
|
|
{headerName: "적용대상" , field: "targetGb" , width: 150, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "시퀀스" , field: "tmtbGoodsSq" , width: 150, cellClass: 'text-center', hide: true},
|
|
{headerName: "시퀀스" , field: "tmtbGoodsSq" , width: 150, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "삭제여부" , field: "delYn" , width: 150, cellClass: 'text-center', hide: true}
|
|
{headerName: "삭제여부" , field: "delYn" , width: 150, cellClass: 'text-center', hide: true}
|
|
@@ -832,11 +832,14 @@
|
|
|
var multiApplyGoods = [];
|
|
var multiApplyGoods = [];
|
|
|
$.each(allApplyGoodsData, function(agIdx, agItem) {
|
|
$.each(allApplyGoodsData, function(agIdx, agItem) {
|
|
|
var dupCnt = 0;
|
|
var dupCnt = 0;
|
|
|
|
|
+ // 2022.01.05 기본상품 중복체크 미적용
|
|
|
|
|
+ /*
|
|
|
$.each(allDefaultGoodsData, function(idx, item) {
|
|
$.each(allDefaultGoodsData, function(idx, item) {
|
|
|
if(agItem.goodsCd == item.goodsCd){
|
|
if(agItem.goodsCd == item.goodsCd){
|
|
|
dupCnt++;
|
|
dupCnt++;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ */
|
|
|
if(dupCnt==0){
|
|
if(dupCnt==0){
|
|
|
multiApplyGoods.push(agItem.goodsCd);
|
|
multiApplyGoods.push(agItem.goodsCd);
|
|
|
}
|
|
}
|
|
@@ -936,28 +939,23 @@
|
|
|
xhr.setRequestHeader('Accept' , 'application/json');
|
|
xhr.setRequestHeader('Accept' , 'application/json');
|
|
|
xhr.setRequestHeader('Content-Type' , 'application/json');
|
|
xhr.setRequestHeader('Content-Type' , 'application/json');
|
|
|
},
|
|
},
|
|
|
- success : function(result) {
|
|
|
|
|
- var data = result.returnList;
|
|
|
|
|
- let modifyList = [];
|
|
|
|
|
- $.each(data, function(idx, item) {
|
|
|
|
|
- let brandEnm = item.brandEnm;
|
|
|
|
|
- item.brandEnm = brandEnm.replaceXSS();
|
|
|
|
|
-
|
|
|
|
|
- modifyList.push(item);
|
|
|
|
|
- });
|
|
|
|
|
- gridOptionsFGBrandList.api.setRowData(modifyList);
|
|
|
|
|
|
|
+ success : function(result) {
|
|
|
if (result != null) {
|
|
if (result != null) {
|
|
|
- for(let i = 0 ; i < result.returnList.length ; i++) {
|
|
|
|
|
|
|
+ for (let i = 0 ; i < result.returnList.length ; i++) {
|
|
|
let addChk = true, gridListValue = gagaAgGrid.getAllRowData(gridOptionsFGBrandList); // 받아온 모든 데이터
|
|
let addChk = true, gridListValue = gagaAgGrid.getAllRowData(gridOptionsFGBrandList); // 받아온 모든 데이터
|
|
|
|
|
|
|
|
// 받아온 data for
|
|
// 받아온 data for
|
|
|
- for(let j = 0 ; j < gridListValue.length ; j++) {
|
|
|
|
|
- if(gridListValue[j].brandCd == result.returnList[i].brandCd) { addChk = false; } // 중복체크
|
|
|
|
|
|
|
+ for (let j = 0 ; j < gridListValue.length ; j++) {
|
|
|
|
|
+ if(gridListValue[j].brandCd == result.returnList[i].brandCd) { addChk = false; } // 중복체크
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 중복되지 않은 데이터 리스트에 추가
|
|
// 중복되지 않은 데이터 리스트에 추가
|
|
|
- if(addChk) {
|
|
|
|
|
- gagaAgGrid.addRowData(gridOptionsFGBrandList, {"brandCd" : result.returnList[i].brandCd, "brandEnm" : result.returnList[i].brandEnm, "supplyCompNm" : result.returnList[i].supplyCompNm, "targetGb" : "G260_12"});
|
|
|
|
|
|
|
+ if (addChk) {
|
|
|
|
|
+ // 2022.01.05 replaceXSS 적용
|
|
|
|
|
+ let brandEnm = result.returnList[i].brandEnm;
|
|
|
|
|
+ brandEnm = brandEnm.replaceXSS();
|
|
|
|
|
+
|
|
|
|
|
+ gagaAgGrid.addRowData(gridOptionsFGBrandList, {"brandCd" : result.returnList[i].brandCd, "brandEnm" : brandEnm, "supplyCompNm" : result.returnList[i].supplyCompNm, "targetGb" : "G260_12"});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1445,11 +1443,14 @@
|
|
|
var multiApplyGoods = [];
|
|
var multiApplyGoods = [];
|
|
|
$.each(allApplyGoodsData, function(agIdx, agItem) {
|
|
$.each(allApplyGoodsData, function(agIdx, agItem) {
|
|
|
var dupCnt = 0;
|
|
var dupCnt = 0;
|
|
|
|
|
+ // 2022.01.05 기본상품 중복체크 미적용
|
|
|
|
|
+ /*
|
|
|
$.each(allDefaultGoodsData, function(idx, item) {
|
|
$.each(allDefaultGoodsData, function(idx, item) {
|
|
|
if(agItem.goodsCd == item.goodsCd){
|
|
if(agItem.goodsCd == item.goodsCd){
|
|
|
dupCnt++;
|
|
dupCnt++;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ */
|
|
|
if(dupCnt==0){
|
|
if(dupCnt==0){
|
|
|
multiApplyGoods.push(agItem.goodsCd);
|
|
multiApplyGoods.push(agItem.goodsCd);
|
|
|
}
|
|
}
|