통합조회 pageObject 복구

main
이범준 9 months ago
parent 69e189f834
commit f3a2ec5da4

@ -114,6 +114,7 @@ public class Sprt01Controller extends ApplicationController {
public ModelAndView integrationSearchMain(HttpServletRequest req) { public ModelAndView integrationSearchMain(HttpServletRequest req) {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01010-main"); ModelAndView mav = new ModelAndView("fims/sprt/sprt01010-main");
mav.addObject("pageName", "sprt01010");
String institute = currentUser().getInstitute(); String institute = currentUser().getInstitute();
String account = currentUser().getAccount(); String account = currentUser().getAccount();
@ -140,8 +141,6 @@ public class Sprt01Controller extends ApplicationController {
addCodes(commonCodes, mav, "FIM003", "FIM010", "FIM026", "FIM054" addCodes(commonCodes, mav, "FIM003", "FIM010", "FIM026", "FIM054"
,"FIM004","FIM005","FIM006","FIM061","FIM064"); ,"FIM004","FIM005","FIM006","FIM061","FIM064");
mav.addObject("pageName", "sprt01010");// View(jsp)에서 사용할 id 뒤에 붙일 suffix
String fastBy = req.getParameter("fastBy"); String fastBy = req.getParameter("fastBy");
String fastTerm = req.getParameter("fastTerm"); String fastTerm = req.getParameter("fastTerm");

@ -43,10 +43,17 @@ var FIM006 = new CommonCodes(${FIM006}, true);
var FIM061 = new CommonCodes(${FIM061}, true); var FIM061 = new CommonCodes(${FIM061}, true);
var FIM064 = new CommonCodes(${FIM064}, true); var FIM064 = new CommonCodes(${FIM064}, true);
/**************************************************************************
pageObject["${pageName}"] = {};
$(document).ready(function() {
var $P = pageObject["${pageName}"];
$P.integrationSearch = {};
/**************************************************************************
* DatasetControl * DatasetControl
**************************************************************************/ **************************************************************************/
var integrationSearchControl = new IntegrationSearchControl({ $P.integrationSearchControl = new IntegrationSearchControl({
prefix : "integrationSearch", prefixName : "통합조회" prefix : "integrationSearch", prefixName : "통합조회"
, infoSize : "lg" , infoSize : "lg"
, appendData : false , appendData : false
@ -82,39 +89,40 @@ var integrationSearchControl = new IntegrationSearchControl({
, SUM_AMT : numberFormat , SUM_AMT : numberFormat
, DUDT_AFTR_AMT : numberFormat , DUDT_AFTR_AMT : numberFormat
} }
}); });
/**************************************************************************
/**************************************************************************
* DatasetControl 이벤트 * DatasetControl 이벤트
**************************************************************************/ **************************************************************************/
// Dataset 변경 이벤트 // Dataset 변경 이벤트
integrationSearchControl.updataset.onDatasetChange = (obj) => { $P.integrationSearchControl.updataset.onDatasetChange = (obj) => {
var upActiveTab = $("#upGridTabs--${pageName}").find("button.active").text().trim(); var upActiveTab = $("#upGridTabs--${pageName}").find("button.active").text().trim();
integrationSearch.renderList("up", upActiveTab); $P.renderList("up", upActiveTab);
}; };
integrationSearchControl.downdataset.onDatasetChange = (obj) => { $P.integrationSearchControl.downdataset.onDatasetChange = (obj) => {
var downActiveTab = $("#downGridTabs--${pageName}").find("button.active").text().trim(); var downActiveTab = $("#downGridTabs--${pageName}").find("button.active").text().trim();
integrationSearch.renderList("down", downActiveTab); $P.renderList("down", downActiveTab);
}; };
// 현재 선택 자료 변경 이벤트 // 현재 선택 자료 변경 이벤트
integrationSearchControl.updataset.onCurrentChange = (item) => { $P.integrationSearchControl.updataset.onCurrentChange = (item) => {
if (!item) return; if (!item) return;
var key = item.data.CRDN_ID; var key = item.data.CRDN_ID;
$("#upTbody--${pageName}").setCurrentRow(key); $("#upTbody--${pageName}").setCurrentRow(key);
}; };
integrationSearchControl.downdataset.onCurrentChange = (item) => { $P.integrationSearchControl.downdataset.onCurrentChange = (item) => {
if (!item) return; if (!item) return;
var key = item.data.CRDN_ID; var key = item.data.CRDN_ID;
$("#downTbody--${pageName}").setCurrentRow(key); $("#downTbody--${pageName}").setCurrentRow(key);
}; };
// 선택(체크) 변경 이벤트 // 선택(체크) 변경 이벤트
integrationSearchControl.updataset.onSelectionChange = (selected) => { $P.integrationSearchControl.updataset.onSelectionChange = (selected) => {
var ds = integrationSearchControl.updataset; var ds = $P.integrationSearchControl.updataset;
var keys = selected.map(e => ds.getKey(e)); var keys = selected.map(e => ds.getKey(e));
$("#upTbody--${pageName}").find("input[type='checkbox']").each(function() { $("#upTbody--${pageName}").find("input[type='checkbox']").each(function() {
@ -122,11 +130,11 @@ integrationSearchControl.updataset.onSelectionChange = (selected) => {
checkbox.prop("checked", keys.includes(checkbox.val())); checkbox.prop("checked", keys.includes(checkbox.val()));
}); });
}; };
integrationSearchControl.downdataset.onSelectionChange = (selected) => { $P.integrationSearchControl.downdataset.onSelectionChange = (selected) => {
var ds = integrationSearchControl.downdataset; var ds = $P.integrationSearchControl.downdataset;
var keys = selected.map(e => ds.getKey(e)); var keys = selected.map(e => ds.getKey(e));
$("#downTbody--${pageName}").find("input[type='checkbox']").each(function() { $("#downTbody--${pageName}").find("input[type='checkbox']").each(function() {
@ -134,33 +142,28 @@ integrationSearchControl.downdataset.onSelectionChange = (selected) => {
checkbox.prop("checked", keys.includes(checkbox.val())); checkbox.prop("checked", keys.includes(checkbox.val()));
}); });
}; };
/************************************************************************** $P.fastSearch = ${fastSearch};
*
**************************************************************************/
var integrationSearch = {};
integrationSearch.fastSearch = ${fastSearch};
integrationSearch.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), { $P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
}); });
// 검색 조건 파라미터 가져오기 // 검색 조건 파라미터 가져오기
integrationSearch.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formData = formFields.get(); var formData = formFields.get();
return formData; return formData;
} }
// 초기화 // 초기화
integrationSearch.fnResetAndChangeBiz = (taskSeCd) => { $P.fnResetAndChangeBiz = (taskSeCd) => {
// 항목 초기화 // 항목 초기화
$("#ischVltnCd--${pageName}").empty(); $("#ischVltnCd--${pageName}").empty();
@ -188,23 +191,23 @@ integrationSearch.fnResetAndChangeBiz = (taskSeCd) => {
}) })
} }
integrationSearch.fnReset(); $P.fnReset();
} }
integrationSearch.fnReset = () => { $P.fnReset = () => {
integrationSearchControl.updataset.clear(); $P.integrationSearchControl.updataset.clear();
integrationSearchControl.downdataset.clear(); $P.integrationSearchControl.downdataset.clear();
} }
// 검색 // 검색
integrationSearch.fnSearchList = () => { $P.fnSearchList = () => {
// 검색조건 // 검색조건
integrationSearchControl.query = integrationSearch.getParams(); $P.integrationSearchControl.query = $P.getParams();
var query = integrationSearchControl.query; var query = $P.integrationSearchControl.query;
var minKeyword = false; var minKeyword = false;
var keys = Object.keys(query); var keys = Object.keys(query);
for(var i=0; i < keys.length; i++){ for(var i=0; i < keys.length; i++){
@ -233,13 +236,13 @@ integrationSearch.fnSearchList = () => {
$("#upGridTabs--${pageName}").find("button").eq(0).addClass("active"); $("#upGridTabs--${pageName}").find("button").eq(0).addClass("active");
$("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active"); $("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
$("#downGridTabs--${pageName}").find("button").eq(0).addClass("active"); $("#downGridTabs--${pageName}").find("button").eq(0).addClass("active");
integrationSearchControl.updataset.clear(); $P.integrationSearchControl.updataset.clear();
integrationSearchControl.downdataset.clear(); $P.integrationSearchControl.downdataset.clear();
integrationSearchControl.load(); $P.integrationSearchControl.load();
} }
integrationSearch.renderList = (updown, tabGroup) => { $P.renderList = (updown, tabGroup) => {
var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}"; var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}";
var trs = ""; var trs = "";
@ -247,29 +250,29 @@ integrationSearch.renderList = (updown, tabGroup) => {
var found = document.getElementById("row--${pageName}").innerHTML; var found = document.getElementById("row--${pageName}").innerHTML;
var ds; var ds;
if(updown == "up"){ if(updown == "up"){
ds = integrationSearchControl.updataset; ds = $P.integrationSearchControl.updataset;
} else { } else {
ds = integrationSearchControl.downdataset; ds = $P.integrationSearchControl.downdataset;
} }
var replacer; var replacer;
if(updown == "up"){ if(updown == "up"){
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "integrationSearchControl.updataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].integrationSearchControl.updataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "integrationSearch.getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');") .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
} else { } else {
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "integrationSearchControl.downdataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].integrationSearchControl.downdataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "integrationSearch.getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');") .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
} }
var empty = ds.empty; var empty = ds.empty;
if(empty){ if(empty){
trs = notFound; trs = notFound;
integrationSearch.setTotalData(updown, []); $P.setTotalData(updown, []);
} else if(tabGroup == "전체"){ } else if(tabGroup == "전체"){
trs = ds.inStrings(found, replacer); trs = ds.inStrings(found, replacer);
integrationSearch.setTotalData(updown, ds._items); $P.setTotalData(updown, ds._items);
} else { } else {
var temp = ds._items; var temp = ds._items;
@ -278,7 +281,7 @@ integrationSearch.renderList = (updown, tabGroup) => {
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup); filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
integrationSearch.setTotalData(updown, filtered); $P.setTotalData(updown, filtered);
if(filtered.lenth < 1){ if(filtered.lenth < 1){
trs = notFound; trs = notFound;
@ -295,12 +298,12 @@ integrationSearch.renderList = (updown, tabGroup) => {
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
} }
//합계 표시 //합계 표시
integrationSearch.setTotalData = (updown, list) => { $P.setTotalData = (updown, list) => {
if(updown == "up"){ if(updown == "up"){
@ -334,16 +337,16 @@ integrationSearch.setTotalData = (updown, list) => {
} }
}; };
// 엑셀 // 엑셀
integrationSearch.fnExcel = (updown) => { $P.fnExcel = (updown) => {
var cellDefs; var cellDefs;
if(updown == "up"){ if(updown == "up"){
if(integrationSearchControl.updataset.empty){ if($P.integrationSearchControl.updataset.empty){
alert("조회된 자료가 없습니다."); alert("조회된 자료가 없습니다.");
return; return;
} }
@ -351,9 +354,9 @@ integrationSearch.fnExcel = (updown) => {
cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"), cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask")); $($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
integrationSearchControl.query.gridType = "up"; $P.integrationSearchControl.query.gridType = "up";
} else { } else {
if(integrationSearchControl.downdataset.empty){ if($P.integrationSearchControl.downdataset.empty){
alert("조회된 자료가 없습니다."); alert("조회된 자료가 없습니다.");
return; return;
} }
@ -361,54 +364,54 @@ integrationSearch.fnExcel = (updown) => {
cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"), cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask")); $($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
integrationSearchControl.query.gridType = "down"; $P.integrationSearchControl.query.gridType = "down";
} }
integrationSearchControl.query.cellDefs = cellDefs; $P.integrationSearchControl.query.cellDefs = cellDefs;
integrationSearchControl.download(); $P.integrationSearchControl.download();
} }
//납부자번호 복사 //납부자번호 복사
integrationSearch.fnCopyPyrNo = (updown) => { $P.fnCopyPyrNo = (updown) => {
var cur; var cur;
if(updown == "up"){ if(updown == "up"){
cur = integrationSearchControl.updataset.getCurrent(); cur = $P.integrationSearchControl.updataset.getCurrent();
} else { } else {
cur = integrationSearchControl.downdataset.getCurrent(); cur = $P.integrationSearchControl.downdataset.getCurrent();
} }
if(cur != null){ if(cur != null){
navigator.clipboard.writeText(cur.RTPYR_NO); navigator.clipboard.writeText(cur.RTPYR_NO);
$("#toastText--${pageName}").html("납부자번호가 복사되었습니다."); $("#toastText--${pageName}").html("납부자번호가 복사되었습니다.");
integrationSearch.toast.show(); $P.toast.show();
}
} }
}
//특기사항관리 //특기사항관리
integrationSearch.fnManageEtcCn = (updown) => { $P.fnManageEtcCn = (updown) => {
var cur; var cur;
if(updown == "up"){ if(updown == "up"){
cur = integrationSearchControl.updataset.getCurrent(); cur = $P.integrationSearchControl.updataset.getCurrent();
} else { } else {
cur = integrationSearchControl.downdataset.getCurrent(); cur = $P.integrationSearchControl.downdataset.getCurrent();
} }
if(cur.length <= 0){ if(cur.length <= 0){
dialog.alert("처리할 자료가 없습니다."); dialog.alert("처리할 자료가 없습니다.");
return; return;
} }
} }
//특기사항일괄입력 //특기사항일괄입력
integrationSearch.fnInputEtcCn = (updown) => { $P.fnInputEtcCn = (updown) => {
var cur; var cur;
if(updown == "up"){ if(updown == "up"){
cur = integrationSearchControl.updataset; cur = $P.integrationSearchControl.updataset;
} else { } else {
cur = integrationSearchControl.downdataset; cur = $P.integrationSearchControl.downdataset;
} }
@ -445,14 +448,14 @@ integrationSearch.fnInputEtcCn = (updown) => {
} }
}); });
} }
//단속내역서,단속확인서 //단속내역서,단속확인서
integrationSearch.fnPrintCrdn = () => { $P.fnPrintCrdn = () => {
var upDataset = integrationSearchControl.updataset; var upDataset = $P.integrationSearchControl.updataset;
var downDataset = integrationSearchControl.downdataset; var downDataset = $P.integrationSearchControl.downdataset;
if((upDataset.length <= 0) && (downDataset.length <= 0)){ if((upDataset.length <= 0) && (downDataset.length <= 0)){
dialog.alert("출력할 자료가 없습니다."); dialog.alert("출력할 자료가 없습니다.");
@ -491,13 +494,13 @@ integrationSearch.fnPrintCrdn = () => {
} }
}); });
} }
//교부청구서,채권신고서 //교부청구서,채권신고서
integrationSearch.fnPrintBill = () => { $P.fnPrintBill = () => {
var upDataset = integrationSearchControl.updataset; var upDataset = $P.integrationSearchControl.updataset;
if(upDataset.length <= 0){ if(upDataset.length <= 0){
dialog.alert("출력할 자료가 없습니다."); dialog.alert("출력할 자료가 없습니다.");
@ -533,8 +536,8 @@ integrationSearch.fnPrintBill = () => {
var childReq = pageObject.childReq.pop(); var childReq = pageObject.childReq.pop();
for(var reqKey in childReq) { for(var reqKey in childReq) {
if(integrationSearch.provide[reqKey]){ if($P.provide[reqKey]){
parentRes[reqKey] = integrationSearch.provide[reqKey]; parentRes[reqKey] = $P.provide[reqKey];
} else { } else {
parentRes[reqKey] = function(){}; parentRes[reqKey] = function(){};
} }
@ -547,12 +550,12 @@ integrationSearch.fnPrintBill = () => {
} }
}); });
} }
//납부확인서 //납부확인서
integrationSearch.fnPrintRcvmtConfirm = () => { $P.fnPrintRcvmtConfirm = () => {
var downDataset = integrationSearchControl.downdataset; var downDataset = $P.integrationSearchControl.downdataset;
if(downDataset.length <= 0){ if(downDataset.length <= 0){
dialog.alert("출력할 자료가 없습니다."); dialog.alert("출력할 자료가 없습니다.");
@ -583,12 +586,12 @@ integrationSearch.fnPrintRcvmtConfirm = () => {
} }
}); });
} }
//사전통지서 //사전통지서
integrationSearch.fnPrintAdvntce = () => { $P.fnPrintAdvntce = () => {
var upDataset = integrationSearchControl.updataset; var upDataset = $P.integrationSearchControl.updataset;
if(upDataset.length <= 0){ if(upDataset.length <= 0){
dialog.alert("출력할 자료가 없습니다."); dialog.alert("출력할 자료가 없습니다.");
@ -624,8 +627,8 @@ integrationSearch.fnPrintAdvntce = () => {
var childReq = pageObject.childReq.pop(); var childReq = pageObject.childReq.pop();
for(var reqKey in childReq) { for(var reqKey in childReq) {
if(integrationSearch.provide[reqKey]){ if($P.provide[reqKey]){
parentRes[reqKey] = integrationSearch.provide[reqKey]; parentRes[reqKey] = $P.provide[reqKey];
} else { } else {
parentRes[reqKey] = function(){}; parentRes[reqKey] = function(){};
} }
@ -638,12 +641,12 @@ integrationSearch.fnPrintAdvntce = () => {
} }
}); });
} }
//고지서 //고지서
integrationSearch.fnPrintNht = () => { $P.fnPrintNht = () => {
var upDataset = integrationSearchControl.updataset; var upDataset = $P.integrationSearchControl.updataset;
if(upDataset.length <= 0){ if(upDataset.length <= 0){
dialog.alert("출력할 자료가 없습니다."); dialog.alert("출력할 자료가 없습니다.");
@ -679,8 +682,8 @@ integrationSearch.fnPrintNht = () => {
var childReq = pageObject.childReq.pop(); var childReq = pageObject.childReq.pop();
for(var reqKey in childReq) { for(var reqKey in childReq) {
if(integrationSearch.provide[reqKey]){ if($P.provide[reqKey]){
parentRes[reqKey] = integrationSearch.provide[reqKey]; parentRes[reqKey] = $P.provide[reqKey];
} else { } else {
parentRes[reqKey] = function(){}; parentRes[reqKey] = function(){};
} }
@ -693,16 +696,16 @@ integrationSearch.fnPrintNht = () => {
} }
}); });
} }
//개별총정보 dialog //개별총정보 dialog
integrationSearch.getInfo = (taskSeCd, crdnId) => { $P.getInfo = (taskSeCd, crdnId) => {
if (crdnId == undefined || crdnId == null || crdnId == "") { if (crdnId == undefined || crdnId == null || crdnId == "") {
return; return;
} }
var params = { var params = {
callControlName : "integrationSearchControl" callControlName : "pageObject['${pageName}'].integrationSearchControl"
, crdnId : crdnId , crdnId : crdnId
} }
@ -722,13 +725,13 @@ integrationSearch.getInfo = (taskSeCd, crdnId) => {
}); });
} }
}); });
} }
integrationSearch.provide = { $P.provide = {
"getInfo" : function(crdnId){ "getInfo" : function(crdnId){
var upDataset = integrationSearchControl.updataset; var upDataset = $P.integrationSearchControl.updataset;
var downDataset = integrationSearchControl.downdataset; var downDataset = $P.integrationSearchControl.downdataset;
if(upDataset.length > 0){ if(upDataset.length > 0){
var info = upDataset.getData(crdnId); var info = upDataset.getData(crdnId);
@ -748,8 +751,8 @@ integrationSearch.provide = {
}, },
"isAllSameTask" : function(crdnIdArr){ "isAllSameTask" : function(crdnIdArr){
var upArr = integrationSearchControl.updataset.getDataset(); var upArr = $P.integrationSearchControl.updataset.getDataset();
var downArr = integrationSearchControl.downdataset.getDataset(); var downArr = $P.integrationSearchControl.downdataset.getDataset();
var unionArr = [...upArr, ...downArr]; var unionArr = [...upArr, ...downArr];
var filtered = unionArr.filter(item => crdnIdArr.includes(item.CRDN_ID)); var filtered = unionArr.filter(item => crdnIdArr.includes(item.CRDN_ID));
@ -758,35 +761,35 @@ integrationSearch.provide = {
return result; return result;
} }
}; };
/************************************************************************** /**************************************************************************
* Event * Event
**************************************************************************/ **************************************************************************/
//이벤트 //이벤트
integrationSearch.setEvent = () => { $P.setEvent = () => {
$("#btnReset--${pageName}").on("click", function(){ integrationSearch.fnReset(); }); $("#btnReset--${pageName}").on("click", function(){ $P.fnReset(); });
$("#btnSearch--${pageName}").on("click", function(){ integrationSearch.fnSearchList(); }); $("#btnSearch--${pageName}").on("click", function(){ $P.fnSearchList(); });
$("#btnPrintCrdn--${pageName}").on("click", function(){ integrationSearch.fnPrintCrdn(); }); $("#btnPrintCrdn--${pageName}").on("click", function(){ $P.fnPrintCrdn(); });
$("#btnPrintBill--${pageName}").on("click", function(){ integrationSearch.fnPrintBill(); }); $("#btnPrintBill--${pageName}").on("click", function(){ $P.fnPrintBill(); });
$("#btnUpExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("up"); }); $("#btnUpExcel--${pageName}").on("click", function(){ $P.fnExcel("up"); });
$("#btnDownExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("down"); }); $("#btnDownExcel--${pageName}").on("click", function(){ $P.fnExcel("down"); });
$("#btnUpCopyPyrNo--${pageName}").on("click", function(){ integrationSearch.fnCopyPyrNo("up"); }); $("#btnUpCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("up"); });
$("#btnDownCopyPyrNo--${pageName}").on("click", function(){ integrationSearch.fnCopyPyrNo("down"); }); $("#btnDownCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("down"); });
$("#btnUpManageEtcCn--${pageName}").on("click", function(){ integrationSearch.fnManageEtcCn("up"); }); $("#btnUpManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("up"); });
$("#btnDownManageEtcCn--${pageName}").on("click", function(){ integrationSearch.fnManageEtcCn("down"); }); $("#btnDownManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("down"); });
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ integrationSearch.fnInputEtcCn("up"); }); $("#btnUpInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("up"); });
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ integrationSearch.fnInputEtcCn("down"); }); $("#btnDownInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("down"); });
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ integrationSearch.fnPrintRcvmtConfirm(); }); $("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
$("#btnUpPrintAdvntce--${pageName}").on("click", function(){ integrationSearch.fnPrintAdvntce(); }); $("#btnUpPrintAdvntce--${pageName}").on("click", function(){ $P.fnPrintAdvntce(); });
$("#btnPrintNht--${pageName}").on("click", function(){ integrationSearch.fnPrintNht(); }); $("#btnPrintNht--${pageName}").on("click", function(){ $P.fnPrintNht(); });
//$("#btn").on("click", function(){ }); //$("#btn").on("click", function(){ });
@ -824,36 +827,31 @@ integrationSearch.setEvent = () => {
// DataTables width 변경 조정 // DataTables width 변경 조정
$("#upTable--${pageName}").find("th").resizable( {handles : "e"} ); $("#upTable--${pageName}").find("th").resizable( {handles : "e"} );
$("#downTable--${pageName}").find("th").resizable( {handles : "e"} ); $("#downTable--${pageName}").find("th").resizable( {handles : "e"} );
} }
window.integrationSearchControl = integrationSearchControl;
window.integrationSearch = integrationSearch;
/************************************************************************** /**************************************************************************
* script 진입 * script 진입
**************************************************************************/ **************************************************************************/
$(document).ready(function() {
$("#upTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML); $("#upTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
$("#downTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML); $("#downTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
// 이벤트 설정 // 이벤트 설정
integrationSearch.setEvent(); $P.setEvent();
// 보안모드 // 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
integrationSearch.fnResetAndChangeBiz(""); $P.fnResetAndChangeBiz("");
if(integrationSearch.fastSearch != null){ if($P.fastSearch != null){
if(integrationSearch.fastSearch.fastBy == "vhrno"){ if($P.fastSearch.fastBy == "vhrno"){
$("#ischVhrno--${pageName}").val(integrationSearch.fastSearch.fastTerm); $("#ischVhrno--${pageName}").val($P.fastSearch.fastTerm);
} else if(integrationSearch.fastSearch.fastBy == "rtpyrNm"){ } else if($P.fastSearch.fastBy == "rtpyrNm"){
$("#ischRtpyrNm--${pageName}").val(integrationSearch.fastSearch.fastTerm); $("#ischRtpyrNm--${pageName}").val($P.fastSearch.fastTerm);
} else if(integrationSearch.fastSearch.fastBy == "rtpyrNo"){ } else if($P.fastSearch.fastBy == "rtpyrNo"){
$("#ischRtpyrNo--${pageName}").val(integrationSearch.fastSearch.fastTerm); $("#ischRtpyrNo--${pageName}").val($P.fastSearch.fastTerm);
} else if(integrationSearch.fastSearch.fastBy == "cvlcptAplcntNm"){ } else if($P.fastSearch.fastBy == "cvlcptAplcntNm"){
$("#ischCvlcptAplcntNm--${pageName}").val(integrationSearch.fastSearch.fastTerm); $("#ischCvlcptAplcntNm--${pageName}").val($P.fastSearch.fastTerm);
} else { } else {
return; return;
} }

@ -57,13 +57,13 @@
<span class="form-search-linebox"> <span class="form-search-linebox">
<label> <label>
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분" <input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
value="" onchange="integrationSearch.fnResetAndChangeBiz('');" checked="checked"> value="" onchange="pageObject['${pageName}'].fnResetAndChangeBiz('');" checked="checked">
전체 전체
</label> </label>
<c:forEach items="${TaskListForSgg}" var="item"> <c:forEach items="${TaskListForSgg}" var="item">
<label> <label>
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분" <input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
value="${item.code}" onchange="integrationSearch.fnResetAndChangeBiz(this.value);"> value="${item.code}" onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
${item.value} ${item.value}
</label> </label>
</c:forEach> </c:forEach>

@ -71,49 +71,49 @@
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
<li class="nav-item"> <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', '전체');"> onclick="pageObject['${pageName}'].renderList('up', '전체');">
전체 전체
</button> </button>
</li> </li>
<li class="nav-item"> <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', '단속');"> onclick="pageObject['${pageName}'].renderList('up', '단속');">
단속 단속
</button> </button>
</li> </li>
<li class="nav-item"> <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', '의견진술접수');"> onclick="pageObject['${pageName}'].renderList('up', '의견진술접수');">
의견진술접수 의견진술접수
</button> </button>
</li> </li>
<li class="nav-item"> <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', '자납부과');"> onclick="pageObject['${pageName}'].renderList('up', '자납부과');">
자납부과 자납부과
</button> </button>
</li> </li>
<li class="nav-item"> <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', '부과');"> onclick="pageObject['${pageName}'].renderList('up', '부과');">
부과 부과
</button> </button>
</li> </li>
<li class="nav-item"> <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', '독촉');"> onclick="pageObject['${pageName}'].renderList('up', '독촉');">
독촉 독촉
</button> </button>
</li> </li>
<li class="nav-item"> <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', '압류예정');"> onclick="pageObject['${pageName}'].renderList('up', '압류예정');">
압류예정 압류예정
</button> </button>
</li> </li>
<li class="nav-item"> <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', '압류');"> onclick="pageObject['${pageName}'].renderList('up', '압류');">
압류 압류
</button> </button>
</li> </li>

@ -84,31 +84,31 @@
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
<li class="nav-item"> <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', '전체');"> onclick="pageObject['${pageName}'].renderList('down', '전체');">
전체 전체
</button> </button>
</li> </li>
<li class="nav-item"> <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', '수납');"> onclick="pageObject['${pageName}'].renderList('down', '수납');">
수납 수납
</button> </button>
</li> </li>
<li class="nav-item"> <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', '결손');"> onclick="pageObject['${pageName}'].renderList('down', '결손');">
결손 결손
</button> </button>
</li> </li>
<li class="nav-item"> <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', '법원이송');"> onclick="pageObject['${pageName}'].renderList('down', '법원이송');">
법원이송 법원이송
</button> </button>
</li> </li>
<li class="nav-item"> <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', '기타');"> onclick="pageObject['${pageName}'].renderList('down', '기타');">
기타 기타
</button> </button>
</li> </li>

Loading…
Cancel
Save