|
|
@ -1,7 +1,7 @@
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
<c:set var="pageKorName" scope="request">통합조회</c:set>
|
|
|
|
<c:set var="pageKorName" scope="request">통합조회</c:set>
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="content-wrapper" data-doctx="${pageName}">
|
|
|
|
<div class="container-xxl flex-grow-1 px-0">
|
|
|
|
<div class="container-xxl flex-grow-1 px-0">
|
|
|
|
<div class="card wrapper-list">
|
|
|
|
<div class="card wrapper-list">
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01011-info.jsp" />
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01011-info.jsp" />
|
|
|
@ -11,20 +11,18 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="toast-container position-fixed bottom-0 end-0 p-3">
|
|
|
|
<div class="toast-container position-fixed bottom-0 end-0 p-3">
|
|
|
|
<div id="divToast--${pageName}" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
|
|
|
<div name="divToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
|
|
|
<div id="toastText--${pageName}" class="toast-body bg-black text-white">
|
|
|
|
<div name="toastText" class="toast-body bg-black text-white">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01014-info.jsp" />
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01015-info.jsp" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01014-info.jsp" />
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01015-info.jsp" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span id="tempArea--${pageName}" hidden></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
LoadScript("sprt01010Script","/resources/js/fims/sprt/sprt01010.js?ver=${ver}");
|
|
|
|
LoadScript("sprt01010Script","/resources/js/fims/sprt/sprt01010.js?ver=${ver}");
|
|
|
|
|
|
|
|
|
|
|
@ -42,7 +40,7 @@ var FIM061 = new CommonCodes(${FIM061}, true);
|
|
|
|
var FIM064 = new CommonCodes(${FIM064}, true);
|
|
|
|
var FIM064 = new CommonCodes(${FIM064}, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
@ -59,12 +57,12 @@ $(document).ready(function() {
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
$P.ctrl.upDataset.onDatasetChange = (obj, option) => {
|
|
|
|
$P.ctrl.upDataset.onDatasetChange = (obj, option) => {
|
|
|
|
var upActiveTab = $("#upGridTabs--${pageName}").find("button.active").text().trim();
|
|
|
|
var upActiveTab = $P.$find("upGridTabs").find("button.active").text().trim();
|
|
|
|
$P.renderList("up", upActiveTab);
|
|
|
|
$P.renderList("up", upActiveTab);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.ctrl.downDataset.onDatasetChange = (obj, option) => {
|
|
|
|
$P.ctrl.downDataset.onDatasetChange = (obj, option) => {
|
|
|
|
var downActiveTab = $("#downGridTabs--${pageName}").find("button.active").text().trim();
|
|
|
|
var downActiveTab = $P.$find("downGridTabs").find("button.active").text().trim();
|
|
|
|
$P.renderList("down", downActiveTab);
|
|
|
|
$P.renderList("down", downActiveTab);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -72,13 +70,13 @@ $(document).ready(function() {
|
|
|
|
$P.ctrl.upDataset.onCurrentChange = (DI) => {
|
|
|
|
$P.ctrl.upDataset.onCurrentChange = (DI) => {
|
|
|
|
if (!DI) return;
|
|
|
|
if (!DI) return;
|
|
|
|
var key = DI.data.CRDN_ID;
|
|
|
|
var key = DI.data.CRDN_ID;
|
|
|
|
$("#upTbody--${pageName}").setCurrentRow(key);
|
|
|
|
$P.$find("upTbody").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.ctrl.downDataset.onCurrentChange = (DI) => {
|
|
|
|
$P.ctrl.downDataset.onCurrentChange = (DI) => {
|
|
|
|
if (!DI) return;
|
|
|
|
if (!DI) return;
|
|
|
|
var key = DI.data.CRDN_ID;
|
|
|
|
var key = DI.data.CRDN_ID;
|
|
|
|
$("#downTbody--${pageName}").setCurrentRow(key);
|
|
|
|
$P.$find("downTbody").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
@ -86,13 +84,13 @@ $(document).ready(function() {
|
|
|
|
var DS = $P.ctrl.upDataset;
|
|
|
|
var DS = $P.ctrl.upDataset;
|
|
|
|
var keys = selectedArr.map(item => DS.getKey(item));
|
|
|
|
var keys = selectedArr.map(item => DS.getKey(item));
|
|
|
|
|
|
|
|
|
|
|
|
$("#upTbody--${pageName}").find("input[type='checkbox']").each(function() {
|
|
|
|
$P.$find("upTbody").find("input[type='checkbox']").each(function() {
|
|
|
|
var checkbox = $(this);
|
|
|
|
var checkbox = $(this);
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let status = getCheckboxesStatus($("#upTbody--${pageName}").find("input[type='checkbox']"));
|
|
|
|
let status = getCheckboxesStatus($P.$find("upTbody").find("input[type='checkbox']"));
|
|
|
|
let thc = $("#upTheadTr--${pageName}").find("input[type='checkbox']");
|
|
|
|
let thc = $P.$find("upTheadTr").find("input[type='checkbox']");
|
|
|
|
|
|
|
|
|
|
|
|
if(status == 1 && !thc.is(":checked")){
|
|
|
|
if(status == 1 && !thc.is(":checked")){
|
|
|
|
thc.prop("checked", true);
|
|
|
|
thc.prop("checked", true);
|
|
|
@ -106,13 +104,13 @@ $(document).ready(function() {
|
|
|
|
var DS = $P.ctrl.downDataset;
|
|
|
|
var DS = $P.ctrl.downDataset;
|
|
|
|
var keys = selectedArr.map(item => DS.getKey(item));
|
|
|
|
var keys = selectedArr.map(item => DS.getKey(item));
|
|
|
|
|
|
|
|
|
|
|
|
$("#downTbody--${pageName}").find("input[type='checkbox']").each(function() {
|
|
|
|
$P.$find("downTbody").find("input[type='checkbox']").each(function() {
|
|
|
|
var checkbox = $(this);
|
|
|
|
var checkbox = $(this);
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let status = getCheckboxesStatus($("#downTbody--${pageName}").find("input[type='checkbox']"));
|
|
|
|
let status = getCheckboxesStatus($P.$find("downTbody").find("input[type='checkbox']"));
|
|
|
|
let thc = $("#downTheadTr--${pageName}").find("input[type='checkbox']");
|
|
|
|
let thc = $P.$find("downTheadTr").find("input[type='checkbox']");
|
|
|
|
|
|
|
|
|
|
|
|
if(status == 1 && !thc.is(":checked")){
|
|
|
|
if(status == 1 && !thc.is(":checked")){
|
|
|
|
thc.prop("checked", true);
|
|
|
|
thc.prop("checked", true);
|
|
|
@ -141,7 +139,7 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
$P.toast = new bootstrap.Toast($P.find("divToast"), {
|
|
|
|
animation: true,
|
|
|
|
animation: true,
|
|
|
|
autohide: true,
|
|
|
|
autohide: true,
|
|
|
|
delay: 2000
|
|
|
|
delay: 2000
|
|
|
@ -150,9 +148,9 @@ $(document).ready(function() {
|
|
|
|
// 초기화
|
|
|
|
// 초기화
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
// 항목 초기화
|
|
|
|
// 항목 초기화
|
|
|
|
$("#ischVltnCd--${pageName}").empty();
|
|
|
|
$P.$find("ischVltnCd").empty();
|
|
|
|
|
|
|
|
|
|
|
|
$("#ischVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
$P.$find("ischVltnCd").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
|
|
|
|
|
|
|
|
// 업무에 따른 위반 내용
|
|
|
|
// 업무에 따른 위반 내용
|
|
|
|
var vltnIdCode = [];
|
|
|
|
var vltnIdCode = [];
|
|
|
@ -170,7 +168,7 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
if(taskSeCd != ""){
|
|
|
|
if(taskSeCd != ""){
|
|
|
|
$(vltnIdCode).each(function(index, item) {
|
|
|
|
$(vltnIdCode).each(function(index, item) {
|
|
|
|
$("#ischVltnCd--${pageName}").append("<option value='" + vltnIdCode[index].code +"'>" + vltnIdCode[index].value + "</option>");
|
|
|
|
$P.$find("ischVltnCd").append("<option value='" + vltnIdCode[index].code +"'>" + vltnIdCode[index].value + "</option>");
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -184,7 +182,7 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
$P.getParams = () => {
|
|
|
|
$P.getParams = () => {
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
var formFields = new FimsFormFields($P.selector("frmSearch"));
|
|
|
|
var formData = formFields.get();
|
|
|
|
var formData = formFields.get();
|
|
|
|
|
|
|
|
|
|
|
|
return formData;
|
|
|
|
return formData;
|
|
|
@ -226,10 +224,10 @@ $(document).ready(function() {
|
|
|
|
query.ischRtpyrNo = "";
|
|
|
|
query.ischRtpyrNo = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#upGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$P.$find("upGridTabs").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$("#upGridTabs--${pageName}").find("button").eq(0).addClass("active");
|
|
|
|
$P.$find("upGridTabs").find("button").eq(0).addClass("active");
|
|
|
|
$("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$P.$find("downGridTabs").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$("#downGridTabs--${pageName}").find("button").eq(0).addClass("active");
|
|
|
|
$P.$find("downGridTabs").find("button").eq(0).addClass("active");
|
|
|
|
$P.ctrl.upDataset.clear();
|
|
|
|
$P.ctrl.upDataset.clear();
|
|
|
|
$P.ctrl.downDataset.clear();
|
|
|
|
$P.ctrl.downDataset.clear();
|
|
|
|
|
|
|
|
|
|
|
@ -249,8 +247,8 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
$("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$P.$find("upTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
$($P.find("row").content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -262,8 +260,8 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
$("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$P.$find("downTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
$($P.find("row").content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -278,10 +276,10 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderList = (updown, tabGroup) => {
|
|
|
|
$P.renderList = (updown, tabGroup) => {
|
|
|
|
|
|
|
|
|
|
|
|
var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}";
|
|
|
|
var tbodyName = updown == "up" ? "upTbody" : "downTbody";
|
|
|
|
var trs = "";
|
|
|
|
var trs = "";
|
|
|
|
var notFound = [document.getElementById("notFound--${pageName}").innerHTML];
|
|
|
|
var notFound = [$P.find("notFound").innerHTML];
|
|
|
|
var found = document.getElementById("row--${pageName}").innerHTML;
|
|
|
|
var found = $P.find("row").innerHTML;
|
|
|
|
var DS;
|
|
|
|
var DS;
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
@ -327,7 +325,7 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+tbody).html(trs.join());
|
|
|
|
$P.$find(tbodyName).html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
@ -338,31 +336,31 @@ $(document).ready(function() {
|
|
|
|
$P.setTotalData = (updown, list) => {
|
|
|
|
$P.setTotalData = (updown, list) => {
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
$("#minapCnt--${pageName}").set(list.length);
|
|
|
|
$P.$find("minapCnt").set(list.length);
|
|
|
|
var minapAmt = list.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
|
|
|
|
var minapAmt = list.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
|
|
|
|
$("#minapAmt--${pageName}").set(minapAmt);
|
|
|
|
$P.$find("minapAmt").set(minapAmt);
|
|
|
|
|
|
|
|
|
|
|
|
var listForSgg = list.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
var listForSgg = list.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
$("#minapCntForSgg--${pageName}").set(listForSgg.length);
|
|
|
|
$P.$find("minapCntForSgg").set(listForSgg.length);
|
|
|
|
var minapAmtForSgg = listForSgg.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
|
|
|
|
var minapAmtForSgg = listForSgg.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
|
|
|
|
$("#minapAmtForSgg--${pageName}").set(minapAmtForSgg);
|
|
|
|
$P.$find("minapAmtForSgg").set(minapAmtForSgg);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var sunapList = list.filter(item => item.data.TAB_GROUP == '수납');
|
|
|
|
var sunapList = list.filter(item => item.data.TAB_GROUP == '수납');
|
|
|
|
var sonList = list.filter(item => item.data.TAB_GROUP == '결손');
|
|
|
|
var sonList = list.filter(item => item.data.TAB_GROUP == '결손');
|
|
|
|
|
|
|
|
|
|
|
|
$("#sunapCnt--${pageName}").set(sunapList.length);
|
|
|
|
$P.$find("sunapCnt").set(sunapList.length);
|
|
|
|
var sunapAmt = sunapList.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
|
|
|
|
var sunapAmt = sunapList.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
|
|
|
|
$("#sunapAmt--${pageName}").set(sunapAmt);
|
|
|
|
$P.$find("sunapAmt").set(sunapAmt);
|
|
|
|
|
|
|
|
|
|
|
|
var sunapListForSgg = sunapList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
var sunapListForSgg = sunapList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
$("#sunapCntForSgg--${pageName}").set(sunapListForSgg.length);
|
|
|
|
$P.$find("sunapCntForSgg").set(sunapListForSgg.length);
|
|
|
|
var sunapAmtForSgg = sunapListForSgg.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
|
|
|
|
var sunapAmtForSgg = sunapListForSgg.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
|
|
|
|
$("#sunapAmtForSgg--${pageName}").set(sunapAmtForSgg);
|
|
|
|
$P.$find("sunapAmtForSgg").set(sunapAmtForSgg);
|
|
|
|
|
|
|
|
|
|
|
|
var sonListForSgg = sonList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
var sonListForSgg = sonList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
$("#sonCntForSgg--${pageName}").set(sonListForSgg.length);
|
|
|
|
$P.$find("sonCntForSgg").set(sonListForSgg.length);
|
|
|
|
var sonAmtForSgg = sonListForSgg.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
var sonAmtForSgg = sonListForSgg.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
$("#sonAmtForSgg--${pageName}").set(sonAmtForSgg);
|
|
|
|
$P.$find("sonAmtForSgg").set(sonAmtForSgg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -381,7 +379,7 @@ $(document).ready(function() {
|
|
|
|
if(cur != null){
|
|
|
|
if(cur != null){
|
|
|
|
clipboardCopy(cur.RTPYR_NO);
|
|
|
|
clipboardCopy(cur.RTPYR_NO);
|
|
|
|
|
|
|
|
|
|
|
|
$("#toastText--${pageName}").html("납부자번호가 복사되었습니다.");
|
|
|
|
$P.$find("toastText").html("납부자번호가 복사되었습니다.");
|
|
|
|
$P.toast.show();
|
|
|
|
$P.toast.show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -769,51 +767,38 @@ $(document).ready(function() {
|
|
|
|
//이벤트
|
|
|
|
//이벤트
|
|
|
|
$P.setEvent = () => {
|
|
|
|
$P.setEvent = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnReset--${pageName}").on("click", function(){ $P.fnReset(); });
|
|
|
|
$P.$find("btnReset").on("click", function(){ $P.fnReset(); });
|
|
|
|
$("#btnSearch--${pageName}").on("click", function(){ $P.fnSearchList(); });
|
|
|
|
$P.$find("btnSearch").on("click", function(){ $P.fnSearchList(); });
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
$("#term--${pageName}").onEnterPress($P.fnSearchList);
|
|
|
|
$P.$find("term").onEnterPress($P.fnSearchList);
|
|
|
|
$("#btnPrintCrdn--${pageName}").on("click", function(){ $P.fnPrintCrdn(); });
|
|
|
|
$P.$find("btnPrintCrdn").on("click", function(){ $P.fnPrintCrdn(); });
|
|
|
|
$("#btnPrintBill--${pageName}").on("click", function(){ $P.fnPrintBill(); });
|
|
|
|
$P.$find("btnPrintBill").on("click", function(){ $P.fnPrintBill(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpExcel--${pageName}").on("click", function(){ $P.fnExcel("up"); });
|
|
|
|
$P.$find("btnUpExcel").on("click", function(){ $P.fnExcel("up"); });
|
|
|
|
$("#btnDownExcel--${pageName}").on("click", function(){ $P.fnExcel("down"); });
|
|
|
|
$P.$find("btnDownExcel").on("click", function(){ $P.fnExcel("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("up"); });
|
|
|
|
$P.$find("btnUpCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("up"); });
|
|
|
|
$("#btnDownCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("down"); });
|
|
|
|
$P.$find("btnDownCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("up"); });
|
|
|
|
$P.$find("btnUpManageEtcCn").on("click", function(){ $P.fnManageEtcCn("up"); });
|
|
|
|
$("#btnDownManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("down"); });
|
|
|
|
$P.$find("btnDownManageEtcCn").on("click", function(){ $P.fnManageEtcCn("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("up"); });
|
|
|
|
$P.$find("btnUpInputEtcCn").on("click", function(){ $P.fnInputEtcCn("up"); });
|
|
|
|
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("down"); });
|
|
|
|
$P.$find("btnDownInputEtcCn").on("click", function(){ $P.fnInputEtcCn("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
|
|
|
|
$P.$find("btnDownPrintRcvmtConfirm").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpPrintAdvntce--${pageName}").on("click", function(){ $P.fnPrintAdvntce(); });
|
|
|
|
$P.$find("btnUpPrintAdvntce").on("click", function(){ $P.fnPrintAdvntce(); });
|
|
|
|
$("#btnPrintNht--${pageName}").on("click", function(){ $P.fnPrintNht(); });
|
|
|
|
$P.$find("btnPrintNht").on("click", function(){ $P.fnPrintNht(); });
|
|
|
|
|
|
|
|
|
|
|
|
//$("#btn").on("click", function(){ });
|
|
|
|
//$("#btn").on("click", function(){ });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 달력 초기화
|
|
|
|
// 달력 초기화
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
initDatepicker($P.find("frmSearch"));
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
initDetailSearchButton($P.find("frmSearch"));
|
|
|
|
|
|
|
|
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
|
|
|
|
|
|
|
$(this).on("input", function() {
|
|
|
|
|
|
|
|
var value = this.value.replaceAll("-", "");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (value.length > 7) {
|
|
|
|
|
|
|
|
this.value = value.substring(0, 4) + "-" + value.substring(4, 6) + "-" + value.substring(6);
|
|
|
|
|
|
|
|
} else if(value.length > 5) {
|
|
|
|
|
|
|
|
this.value = value.substring(0, 4) + "-" + value.substring(4);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName}").find(".form-time").each(function(){
|
|
|
|
$P.$find("frmSearch").find(".form-time").each(function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
|
|
|
|
|
|
|
@ -827,15 +812,15 @@ $(document).ready(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
fnMakeResizableTable($("#table-responsive-up--${pageName}")[0]);
|
|
|
|
fnMakeResizableTable($P.find("table-responsive-up"));
|
|
|
|
fnMakeResizableTable($("#table-responsive-down--${pageName}")[0]);
|
|
|
|
fnMakeResizableTable($P.find("table-responsive-down"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$("#upTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
|
|
|
|
$P.$find("upTheadTr").html($P.find("cols").innerHTML);
|
|
|
|
$("#downTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
|
|
|
|
$P.$find("downTheadTr").html($P.find("cols").innerHTML);
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
$P.setEvent();
|
|
|
|
$P.setEvent();
|
|
|
@ -850,18 +835,18 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("#fastBy--top").val() == "vhrno"){
|
|
|
|
if($("#fastBy--top").val() == "vhrno"){
|
|
|
|
$("#ischVhrno--${pageName}").val($("#fastTerm--top").val());
|
|
|
|
$P.$find("ischVhrno").val($("#fastTerm--top").val());
|
|
|
|
} else if($("#fastBy--top").val() == "rtpyrNm"){
|
|
|
|
} else if($("#fastBy--top").val() == "rtpyrNm"){
|
|
|
|
$("#ischRtpyrNm--${pageName}").val($("#fastTerm--top").val());
|
|
|
|
$P.$find("ischRtpyrNm").val($("#fastTerm--top").val());
|
|
|
|
} else if($("#fastBy--top").val() == "rtpyrNo"){
|
|
|
|
} else if($("#fastBy--top").val() == "rtpyrNo"){
|
|
|
|
$("#ischRtpyrNo--${pageName}").val($("#fastTerm--top").val());
|
|
|
|
$P.$find("ischRtpyrNo").val($("#fastTerm--top").val());
|
|
|
|
} else if($("#fastBy--top").val() == "cvlcptAplcntNm"){
|
|
|
|
} else if($("#fastBy--top").val() == "cvlcptAplcntNm"){
|
|
|
|
$("#ischCvlcptAplcntNm--${pageName}").val($("#fastTerm--top").val());
|
|
|
|
$P.$find("ischCvlcptAplcntNm").val($("#fastTerm--top").val());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnSearch--${pageName}").click();
|
|
|
|
$P.$find("btnSearch").click();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|