통합조회 필터(탭)기능 추가

main
이범준 1 year ago
parent 22d9f93925
commit 32aac904ea

@ -122,7 +122,38 @@
WHEN R.RCVMT_ID IS NOT NULL AND R.RCVMT_ID != ''
THEN 'Y'
ELSE 'N'
END) AS RCVMT_YN
END) AS RCVMT_YN /* 수납 여부 */
, (CASE
WHEN R.RCVMT_ID IS NOT NULL AND R.RCVMT_ID != ''
THEN
CASE
WHEN '상태' = '압류'
THEN '압류'
WHEN '상태' = '압류예정'
THEN '압류예정'
WHEN '상태' = '독촉'
THEN '독촉'
WHEN '상태' = '부과'
THEN '부과'
WHEN '상태' = '자납부과'
THEN '자납부과'
WHEN '상태' = '의견진술접수'
THEN '의견진술접수'
ELSE '단속'
END
ELSE
CASE
WHEN '상태' = '대납'
THEN '대납'
WHEN '상태' = '수납'
THEN '수납'
WHEN '상태' = '결손'
THEN '결손'
WHEN '상태' = '법원이송'
THEN '법원이송'
ELSE '기타'
END
END) AS TAB_GROUP /* 탭 그룹 */
, C.DEL_YN /* 삭제 여부 */
, C.REG_DT /* 등록 일시 */
, C.RGTR /* 등록자 */

@ -54,22 +54,13 @@ var integrationSearchControl = new DatasetControl({
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
integrationSearchControl.onDatasetChange = obj => {
integrationSearchControl.onDatasetChange = (obj) => {
integrationSearch.renderList("up");
integrationSearch.renderList("down");
var upActiveTab = $("#upGridTabs--${pageName}").find("button.active").text().trim();
integrationSearch.renderList("up", upActiveTab);
var downActiveTab = $("#downGridTabs--${pageName}").find("button.active").text().trim();
integrationSearch.renderList("down", downActiveTab);
//$("#paging--${pageName}").setPagingInfo({
// list : integrationSearchControl.dataset
// , prefix : "paging--${pageName}"
// , start : obj.Start
// , totalSize : obj.Total
// , fetchSize : obj.Fetch
// , func : "integrationSearchControl.load({index})"
//});
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
};
// 현재 선택 자료 변경 이벤트
@ -157,7 +148,7 @@ integrationSearchControl.remove = (params) => {
*
**************************************************************************/
var integrationSearch = {};
integrationSearch.renderList = (updown) => {
integrationSearch.renderList = (updown, tabGroup) => {
var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}";
var trs = "";
@ -176,12 +167,16 @@ var integrationSearch = {};
var temp = ds._items;
var filtered = [];
if(tabGroup == null || tabGroup == "" || tabGroup == "전체"){
if(updown == "up"){
filtered = temp.filter(item => item.data.RCVMT_YN == "N");
} else {
filtered = temp.filter(item => item.data.RCVMT_YN == "Y");
}
} else {
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
}
if(filtered.lenth < 1){
trs = notFound;
@ -195,6 +190,9 @@ var integrationSearch = {};
}
$("#"+tbody).html(trs.join());
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
@ -265,8 +263,6 @@ integrationSearch.fnReset = () => {
integrationSearch.fnSearchList = () => {
// 검색조건
integrationSearchControl.query = integrationSearch.getParams();
integrationSearchControl.query.delYn = "N"; // 삭제 여부
integrationSearchControl.query.crdnDelYn = "N"; // 단속 대장 삭제 여부
var query = integrationSearchControl.query;
var minKeyword = false;
@ -293,6 +289,12 @@ integrationSearch.fnSearchList = () => {
return;
}
$("#upGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
$("#upGridTabs--${pageName}").find("button").eq(0).addClass("active");
$("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
$("#downGridTabs--${pageName}").find("button").eq(0).addClass("active");
integrationSearchControl.dataset.clear();
integrationSearchControl.load();
}
@ -341,9 +343,10 @@ $(document).ready(function() {
} else {
return;
}
}
$("#btnSearch--${pageName}").click();
}
});
</script>

@ -79,45 +79,53 @@
<!-- / 업무 버튼 및 건수 표시 -->
<!-- 탭 -->
<div class="nav-align-top mb-1">
<div id="upGridTabs--${pageName}" class="nav-align-top mb-1">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<button type="button" class="nav-link active w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link active w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '전체');">
전체
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '단속');">
단속
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '의견진술접수');">
의견진술접수
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '자납부과');">
자납부과
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '부과');">
부과
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '독촉');">
독촉
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '압류예정');">
압류예정
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('up', '압류');">
압류
</button>
</li>

@ -82,35 +82,41 @@
</div>
<!-- 탭 -->
<div class="nav-align-top mb-1">
<div id="downGridTabs--${pageName}" class="nav-align-top mb-1">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<button type="button" class="nav-link active w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link active w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('down', '전체');">
전체
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('down', '대납');">
대납
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('down', '수납');">
수납
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('down', '결손');">
결손
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('down', '법원이송');">
법원이송
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab">
<button type="button" class="nav-link w-px-120" role="tab" data-bs-toggle="tab"
onclick="integrationSearch.renderList('down', '기타');">
기타
</button>
</li>

Loading…
Cancel
Save