|
|
@@ -57,7 +57,7 @@
|
|
|
|
|
|
<ul class="panelBar">
|
|
|
<li>
|
|
|
- <h4>품목카테고리매핑 목록<span id="itemkindCd" class="cBlue"></span></h4>
|
|
|
+ <h4><span id="itemkindCd" class="cBlue"></span><span id="itemkindNm" class="cBlue"></span> 품목의 자동전시카테고리매핑 목록</h4>
|
|
|
</li>
|
|
|
<li class="right">
|
|
|
<button type="button" class="btn btn-danger btn-lg" id="btnDelete">삭제</button>
|
|
|
@@ -84,11 +84,14 @@
|
|
|
];
|
|
|
|
|
|
let columnDefs2 = [
|
|
|
- {headerName: "카데고리명", field: "cateNm", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "카테고리구분", field: "cateGb"},
|
|
|
- {headerName: "FULL카테고리번호", field: "fullCateNo"},
|
|
|
- {headerName: "FULL카테고리명", field: "fullCateNm"},
|
|
|
- {headerName: "분류레벨", field: "clsLvl", hide: true}
|
|
|
+ {headerName: "FULL카테고리번호", field: "fullCateNo", width: 200, hide: true},
|
|
|
+ {
|
|
|
+ headerName: "카테고리구분", field: "cateGb", width: 120, cellClass: 'text-center',
|
|
|
+ cellRenderer: function (params) { return gagaAgGrid.lookupValue(cateGbList, params.value); }
|
|
|
+ },
|
|
|
+ {headerName: "FULL카테고리명", field: "fullCateNm", width: 400},
|
|
|
+ {headerName: "카데고리명", field: "cateNm", width: 150, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "분류레벨", field: "clsLvl", width: 100, hide: true}
|
|
|
];
|
|
|
|
|
|
let columnDefs3 = [
|
|
|
@@ -96,7 +99,7 @@
|
|
|
{headerName: "CRUD", field: "crud", width: 75, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "품목코드", field: "itemkindCd", cellClass: 'text-center', hide: true},
|
|
|
{
|
|
|
- headerName: "카테고리구분", field: "cateGb", width: 150, cellClass: 'text-center',
|
|
|
+ headerName: "카테고리구분", field: "cateGb", width: 120, cellClass: 'text-center',
|
|
|
cellRenderer: function (params) { return gagaAgGrid.lookupValue(cateGbList, params.value); }
|
|
|
},
|
|
|
{headerName: "카테고리번호", field: "cateNo", width: 150, cellClass: 'text-center'},
|
|
|
@@ -137,7 +140,7 @@
|
|
|
}
|
|
|
|
|
|
// 품목카테고리매핑 조회
|
|
|
- fnSearchItemkindCategoryMapping(event.data.itemkindCd);
|
|
|
+ fnSearchItemkindCategoryMapping(event.data.itemkindCd, event.data.itemkindNm);
|
|
|
}
|
|
|
|
|
|
// 검색 버튼 클릭 시
|
|
|
@@ -159,7 +162,7 @@
|
|
|
|
|
|
// 적용 버튼 클릭 시
|
|
|
$('#btnApply').on('click', function() {
|
|
|
- if (gagajf.isNull($('#itemkindCd').val())) {
|
|
|
+ if (gagajf.isNull($('#itemkindCd').html())) {
|
|
|
mcxDialog.alert("선택된 품목이 없습니다. 먼저 품목 목록을 조회하고 [품목코드]를 선택 후 진행해 주세요.");
|
|
|
return false;
|
|
|
}
|
|
|
@@ -201,7 +204,7 @@
|
|
|
cateNo : item.cateNo,
|
|
|
fullCateNo : item.fullCateNo,
|
|
|
fullCateNm : item.fullCateNm,
|
|
|
- itemkindCd : $('#itemkindCd').val()
|
|
|
+ itemkindCd : $('#itemkindCd').html()
|
|
|
};
|
|
|
|
|
|
gagaAgGrid.addRowData(gridOptions3, data, "cateNo");
|
|
|
@@ -210,8 +213,9 @@
|
|
|
}
|
|
|
|
|
|
// 품목카테고리매핑 조회
|
|
|
- var fnSearchItemkindCategoryMapping = function(itemkindCd) {
|
|
|
- $('#itemkindCd').val(itemkindCd);
|
|
|
+ var fnSearchItemkindCategoryMapping = function(itemkindCd, itemkindNm) {
|
|
|
+ $('#itemkindCd').html(itemkindCd);
|
|
|
+ if (typeof(itemkindNm) != 'undefined') $('#itemkindNm').html(':' + itemkindNm);
|
|
|
|
|
|
let actionUrl = "/display/itemkind/category/mapping/list/" + itemkindCd;
|
|
|
gagaAgGrid.fetch(actionUrl, gridOptions3);
|
|
|
@@ -247,7 +251,7 @@
|
|
|
var jsonData = JSON.stringify(removedData);
|
|
|
gagajf.ajaxJsonSubmit('/display/itemkind/category/mapping/delete', jsonData, function() {
|
|
|
// 품목카테고리매핑 조회
|
|
|
- fnSearchItemkindCategoryMapping($('#itemkindCd').val());
|
|
|
+ fnSearchItemkindCategoryMapping($('#itemkindCd').html());
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -270,7 +274,7 @@
|
|
|
var jsonData = JSON.stringify(changedData);
|
|
|
gagajf.ajaxJsonSubmit('/display/itemkind/category/mapping/save', jsonData, function() {
|
|
|
// 품목카테고리매핑 조회
|
|
|
- fnSearchItemkindCategoryMapping($('#itemkindCd').val());
|
|
|
+ fnSearchItemkindCategoryMapping($('#itemkindCd').html());
|
|
|
});
|
|
|
}
|
|
|
});
|