|
|
|
@ -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>
|
|
|
|
|