main
jjh 10 months ago
parent 40cd668b4a
commit 050a446cbb

@ -76,11 +76,6 @@ public class Dept extends AbstractEntity {
*/ */
private String egpApvlNb; private String egpApvlNb;
/**
* E ESB
*/
private String egpEsbPath;
/** /**
* E ID * E ID
*/ */

@ -114,7 +114,6 @@ 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();
@ -141,6 +140,8 @@ 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");

@ -21,7 +21,6 @@
<result property="egpConOrg" column="EGP_CON_ORG" /> <!-- E그린 외부기관구분코드 --> <result property="egpConOrg" column="EGP_CON_ORG" /> <!-- E그린 외부기관구분코드 -->
<result property="egpRceptId" column="EGP_RCEPT_ID" /> <!-- E그린 접수우체국국기호 --> <result property="egpRceptId" column="EGP_RCEPT_ID" /> <!-- E그린 접수우체국국기호 -->
<result property="egpApvlNb" column="EGP_APVL_NB" /> <!-- E그린 후납계약승인번호 --> <result property="egpApvlNb" column="EGP_APVL_NB" /> <!-- E그린 후납계약승인번호 -->
<result property="egpEsbPath" column="EGP_ESB_PATH" /> <!-- E그린 ESB경로 -->
<result property="egpPostInstId" column="EGP_POST_INST_ID" /> <!-- E그린 우정정보센터 기관ID --> <result property="egpPostInstId" column="EGP_POST_INST_ID" /> <!-- E그린 우정정보센터 기관ID -->
<result property="ensInterfaceId" column="ENS_INTERFACE_ID" /> <!-- 세외수입 인터페이스ID --> <result property="ensInterfaceId" column="ENS_INTERFACE_ID" /> <!-- 세외수입 인터페이스ID -->
<result property="ensSourceCd" column="ENS_SOURCE_CD" /> <!-- 세외수입 소스코드 --> <result property="ensSourceCd" column="ENS_SOURCE_CD" /> <!-- 세외수입 소스코드 -->
@ -52,7 +51,6 @@
, D.EGP_CON_ORG <!-- E그린 외부기관구분코드 --> , D.EGP_CON_ORG <!-- E그린 외부기관구분코드 -->
, D.EGP_RCEPT_ID <!-- E그린 접수우체국국기호 --> , D.EGP_RCEPT_ID <!-- E그린 접수우체국국기호 -->
, D.EGP_APVL_NB <!-- E그린 후납계약승인번호 --> , D.EGP_APVL_NB <!-- E그린 후납계약승인번호 -->
, D.EGP_ESB_PATH <!-- E그린 ESB경로 -->
, D.EGP_POST_INST_ID <!-- E그린 우정정보센터 기관ID --> , D.EGP_POST_INST_ID <!-- E그린 우정정보센터 기관ID -->
, D.ENS_INTERFACE_ID <!-- 세외수입 인터페이스ID --> , D.ENS_INTERFACE_ID <!-- 세외수입 인터페이스ID -->
, D.ENS_SOURCE_CD <!-- 세외수입 소스코드 --> , D.ENS_SOURCE_CD <!-- 세외수입 소스코드 -->
@ -122,7 +120,6 @@
, EGP_CON_ORG <!-- E그린 외부기관구분코드 --> , EGP_CON_ORG <!-- E그린 외부기관구분코드 -->
, EGP_RCEPT_ID <!-- E그린 접수우체국국기호 --> , EGP_RCEPT_ID <!-- E그린 접수우체국국기호 -->
, EGP_APVL_NB <!-- E그린 후납계약승인번호 --> , EGP_APVL_NB <!-- E그린 후납계약승인번호 -->
, EGP_ESB_PATH <!-- E그린 ESB경로 -->
, EGP_POST_INST_ID <!-- E그린 우정정보센터 기관ID --> , EGP_POST_INST_ID <!-- E그린 우정정보센터 기관ID -->
, ENS_INTERFACE_ID <!-- 세외수입 인터페이스ID --> , ENS_INTERFACE_ID <!-- 세외수입 인터페이스ID -->
, ENS_SOURCE_CD <!-- 세외수입 소스코드 --> , ENS_SOURCE_CD <!-- 세외수입 소스코드 -->
@ -151,7 +148,6 @@
, #{dept.egpConOrg} <!-- E그린 외부기관구분코드 --> , #{dept.egpConOrg} <!-- E그린 외부기관구분코드 -->
, #{dept.egpRceptId} <!-- E그린 접수우체국국기호 --> , #{dept.egpRceptId} <!-- E그린 접수우체국국기호 -->
, #{dept.egpApvlNb} <!-- E그린 후납계약승인번호 --> , #{dept.egpApvlNb} <!-- E그린 후납계약승인번호 -->
, #{dept.egpEsbPath} <!-- E그린 ESB경로 -->
, #{dept.egpPostInstId} <!-- E그린 우정정보센터 기관ID --> , #{dept.egpPostInstId} <!-- E그린 우정정보센터 기관ID -->
, #{dept.ensInterfaceId} <!-- 세외수입 인터페이스ID --> , #{dept.ensInterfaceId} <!-- 세외수입 인터페이스ID -->
, #{dept.ensSourceCd} <!-- 세외수입 소스코드 --> , #{dept.ensSourceCd} <!-- 세외수입 소스코드 -->
@ -183,7 +179,6 @@
, EGP_CON_ORG = #{dept.egpConOrg} <!-- E그린 외부기관구분코드 --> , EGP_CON_ORG = #{dept.egpConOrg} <!-- E그린 외부기관구분코드 -->
, EGP_RCEPT_ID = #{dept.egpRceptId} <!-- E그린 접수우체국국기호 --> , EGP_RCEPT_ID = #{dept.egpRceptId} <!-- E그린 접수우체국국기호 -->
, EGP_APVL_NB = #{dept.egpApvlNb} <!-- E그린 후납계약승인번호 --> , EGP_APVL_NB = #{dept.egpApvlNb} <!-- E그린 후납계약승인번호 -->
, EGP_ESB_PATH = #{dept.egpEsbPath} <!-- E그린 ESB경로 -->
, EGP_POST_INST_ID = #{dept.egpPostInstId} <!-- E그린 우정정보센터 기관ID --> , EGP_POST_INST_ID = #{dept.egpPostInstId} <!-- E그린 우정정보센터 기관ID -->
, ENS_INTERFACE_ID = #{dept.ensInterfaceId} <!-- 세외수입 인터페이스ID --> , ENS_INTERFACE_ID = #{dept.ensInterfaceId} <!-- 세외수입 인터페이스ID -->
, ENS_SOURCE_CD = #{dept.ensSourceCd} <!-- 세외수입 소스코드 --> , ENS_SOURCE_CD = #{dept.ensSourceCd} <!-- 세외수입 소스코드 -->

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

Loading…
Cancel
Save