|
|
@ -9,14 +9,14 @@
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01013-info.jsp" />
|
|
|
|
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01013-info.jsp" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</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 id="divToast--${pageName}" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
|
|
|
<div id="toastText--${pageName}" class="toast-body bg-black text-white">
|
|
|
|
<div id="toastText--${pageName}" class="toast-body bg-black text-white">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ LoadScript("integrationSearchScript","/resources/js/fims/sprt/integrationSearch.
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
// 공통 코드
|
|
|
|
// 공통 코드
|
|
|
|
var FIM054 = new CommonCodes(${FIM054}, true);
|
|
|
|
var FIM054 = new CommonCodes(${FIM054}, true);
|
|
|
|
|
|
|
|
|
|
|
@ -40,53 +40,53 @@ var FIM005 = new CommonCodes(${FIM005}, true);
|
|
|
|
var FIM006 = new CommonCodes(${FIM006}, true);
|
|
|
|
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}"] = {};
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
$P.integrationSearch = {};
|
|
|
|
$P.integrationSearch = {};
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.integrationSearchControl = new IntegrationSearchControl({
|
|
|
|
$P.integrationSearchControl = new IntegrationSearchControl({
|
|
|
|
dataGetter : obj => Array.isArray(obj) ? obj : [], appendData : false,
|
|
|
|
dataGetter: obj => Array.isArray(obj) ? obj : [],
|
|
|
|
keymapper : data => data ? data.CRDN_ID : "",
|
|
|
|
appendData: false,
|
|
|
|
urls : {
|
|
|
|
keymapper: data => data ? data.CRDN_ID : "",
|
|
|
|
load : wctx.url("/sprt/sprt01/010/list.do") // 검색
|
|
|
|
urls: {
|
|
|
|
|
|
|
|
load: wctx.url("/sprt/sprt01/010/list.do") // 검색
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formats : {
|
|
|
|
formats: {
|
|
|
|
CRDN_YMD_TM : datetimeFormat
|
|
|
|
CRDN_YMD_TM: datetimeFormat
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
, CRDN_STTS_CHG_YMD: dateFormat
|
|
|
|
, MDFCN_DT : datetimeFormat
|
|
|
|
, CVLCPT_RCPT_YMD: dateFormat
|
|
|
|
|
|
|
|
, LEVY_EXCL_YMD: dateFormat
|
|
|
|
, CRDN_STTS_CHG_YMD : dateFormat
|
|
|
|
, ADVNTCE_DUDT_YMD: dateFormat
|
|
|
|
, CVLCPT_RCPT_YMD : dateFormat
|
|
|
|
, LEVY_YMD: dateFormat
|
|
|
|
, LEVY_EXCL_YMD : dateFormat
|
|
|
|
, FRST_DUDT_YMD: dateFormat
|
|
|
|
, ADVNTCE_DUDT_YMD : dateFormat
|
|
|
|
, DUDT_YMD: dateFormat
|
|
|
|
, DUDT_YMD : dateFormat
|
|
|
|
, DUDT_AFTR_YMD: dateFormat
|
|
|
|
, DUDT_AFTR_YMD : dateFormat
|
|
|
|
, RCVMT_YMD: dateFormat
|
|
|
|
, RCVMT_YMD : dateFormat
|
|
|
|
, FFNLG_CRDN_AMT: numberFormat
|
|
|
|
|
|
|
|
, FFNLG_AMT: numberFormat
|
|
|
|
, FFNLG_CRDN_AMT : numberFormat
|
|
|
|
, ADVNTCE_AMT: numberFormat
|
|
|
|
, FFNLG_AMT : numberFormat
|
|
|
|
, LEVY_AMT: numberFormat
|
|
|
|
, MINUS_AMT : numberFormat
|
|
|
|
, LEVY_PCPTAX: numberFormat
|
|
|
|
, ADTN_AMT : numberFormat
|
|
|
|
, LEVY_ADAMT: numberFormat
|
|
|
|
, ADVNTCE_AMT : numberFormat
|
|
|
|
, RCVMT_AMT: numberFormat
|
|
|
|
, LEVY_AMT : numberFormat
|
|
|
|
, RCVMT_PCPTAX: numberFormat
|
|
|
|
, LEVY_PCPTAX : numberFormat
|
|
|
|
, RCVMT_ADAMT: numberFormat
|
|
|
|
, LEVY_ADAMT : numberFormat
|
|
|
|
, SUM_AMT: numberFormat
|
|
|
|
, RCVMT_AMT : numberFormat
|
|
|
|
, MINAP_AMT: numberFormat
|
|
|
|
, RCVMT_PCPTAX : numberFormat
|
|
|
|
, DUDT_AFTR_AMT: numberFormat
|
|
|
|
, RCVMT_ADAMT : numberFormat
|
|
|
|
, REG_DT: datetimeFormat
|
|
|
|
, SUM_AMT : numberFormat
|
|
|
|
, MDFCN_DT: datetimeFormat
|
|
|
|
, DUDT_AFTR_AMT : numberFormat
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -116,30 +116,25 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
$P.integrationSearchControl.upDataset.onSelectionChange = (selectedArr) => {
|
|
|
|
$P.integrationSearchControl.upDataset.onSelectionChange = (selectedArr) => {
|
|
|
|
|
|
|
|
|
|
|
|
var DS = $P.integrationSearchControl.upDataset;
|
|
|
|
var DS = $P.integrationSearchControl.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() {
|
|
|
|
$("#upTbody--${pageName}").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()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.downDataset.onSelectionChange = (selectedArr) => {
|
|
|
|
$P.integrationSearchControl.downDataset.onSelectionChange = (selectedArr) => {
|
|
|
|
|
|
|
|
|
|
|
|
var DS = $P.integrationSearchControl.downDataset;
|
|
|
|
var DS = $P.integrationSearchControl.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() {
|
|
|
|
$("#downTbody--${pageName}").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()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fastSearch = ${fastSearch};
|
|
|
|
$P.fastSearch = ${fastSearch};
|
|
|
|
|
|
|
|
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
@ -148,16 +143,13 @@ $(document).ready(function() {
|
|
|
|
delay: 2000
|
|
|
|
delay: 2000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 초기화
|
|
|
|
// 초기화
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
|
|
|
|
|
|
|
// 항목 초기화
|
|
|
|
// 항목 초기화
|
|
|
|
$("#ischVltnCd--${pageName}").empty();
|
|
|
|
$("#ischVltnCd--${pageName}").empty();
|
|
|
|
|
|
|
|
|
|
|
|
$("#ischVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
$("#ischVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무에 따른 위반 내용
|
|
|
|
// 업무에 따른 위반 내용
|
|
|
|
var vltnIdCode = [];
|
|
|
|
var vltnIdCode = [];
|
|
|
|
if (taskSeCd == "PVS") { // 주정차 위반
|
|
|
|
if (taskSeCd == "PVS") { // 주정차 위반
|
|
|
@ -171,24 +163,21 @@ $(document).ready(function() {
|
|
|
|
} else if (taskSeCd == "PES") { // 밤샘 주차 위반
|
|
|
|
} else if (taskSeCd == "PES") { // 밤샘 주차 위반
|
|
|
|
vltnIdCode = FIM064.list();
|
|
|
|
vltnIdCode = FIM064.list();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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>");
|
|
|
|
$("#ischVltnCd--${pageName}").append("<option value='" + vltnIdCode[index].code +"'>" + vltnIdCode[index].value + "</option>");
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset();
|
|
|
|
$P.fnReset();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.upDataset.clear();
|
|
|
|
$P.integrationSearchControl.upDataset.clear();
|
|
|
|
$P.integrationSearchControl.downDataset.clear();
|
|
|
|
$P.integrationSearchControl.downDataset.clear();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
$P.getParams = () => {
|
|
|
|
$P.getParams = () => {
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
@ -196,9 +185,10 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
return formData;
|
|
|
|
return formData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색
|
|
|
|
// 검색
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
|
|
|
|
|
|
|
|
// 검색조건
|
|
|
|
// 검색조건
|
|
|
|
$P.integrationSearchControl.query = $P.getParams();
|
|
|
|
$P.integrationSearchControl.query = $P.getParams();
|
|
|
|
|
|
|
|
|
|
|
@ -210,89 +200,92 @@ $(document).ready(function() {
|
|
|
|
if(!key.startsWith("isch")){
|
|
|
|
if(!key.startsWith("isch")){
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData")
|
|
|
|
if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData")
|
|
|
|
|| key.endsWith("Similar")){
|
|
|
|
|| key.endsWith("Similar")){
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var value = query[key];
|
|
|
|
var value = query[key];
|
|
|
|
if(value != null && value != ""){
|
|
|
|
if(value != null && value != ""){
|
|
|
|
minKeyword = true;
|
|
|
|
minKeyword = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!minKeyword){
|
|
|
|
if(!minKeyword){
|
|
|
|
dialog.alert("검색조건을 입력하세요.");
|
|
|
|
dialog.alert("검색조건을 입력하세요.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(query.ischRtpyrNo.length == 6){
|
|
|
|
if(query.ischRtpyrNo.length == 6){
|
|
|
|
query.ischRtpyrBrdt = query.ischRtpyrNo;
|
|
|
|
query.ischRtpyrBrdt = query.ischRtpyrNo;
|
|
|
|
query.ischRtpyrNo = "";
|
|
|
|
query.ischRtpyrNo = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#upGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$("#upGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$("#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();
|
|
|
|
$P.integrationSearchControl.upDataset.clear();
|
|
|
|
$P.integrationSearchControl.downDataset.clear();
|
|
|
|
$P.integrationSearchControl.downDataset.clear();
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.load();
|
|
|
|
$P.integrationSearchControl.load();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀
|
|
|
|
// 엑셀
|
|
|
|
$P.fnExcel = (updown) => {
|
|
|
|
$P.fnExcel = (updown) => {
|
|
|
|
|
|
|
|
|
|
|
|
var cellDefs;
|
|
|
|
var cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
if($P.integrationSearchControl.upDataset.empty){
|
|
|
|
if($P.integrationSearchControl.upDataset.empty){
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
$("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.query.gridType = "up";
|
|
|
|
$P.integrationSearchControl.query.gridType = "up";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if($P.integrationSearchControl.downDataset.empty){
|
|
|
|
if($P.integrationSearchControl.downDataset.empty){
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
cellDefs = getCellDefs(
|
|
|
|
$("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
getCellDefsForPrivacyCell
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.query.gridType = "down";
|
|
|
|
$P.integrationSearchControl.query.gridType = "down";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.query.cellDefs = cellDefs;
|
|
|
|
$P.integrationSearchControl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.download();
|
|
|
|
$P.integrationSearchControl.download();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.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 = "";
|
|
|
|
var notFound = [document.getElementById("notFound--${pageName}").innerHTML];
|
|
|
|
var notFound = [document.getElementById("notFound--${pageName}").innerHTML];
|
|
|
|
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 = $P.integrationSearchControl.upDataset;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
DS = $P.integrationSearchControl.downDataset;
|
|
|
|
DS = $P.integrationSearchControl.downDataset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var replacer;
|
|
|
|
var replacer;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
@ -303,8 +296,7 @@ $(document).ready(function() {
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].integrationSearchControl.downDataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].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, "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;
|
|
|
@ -313,137 +305,134 @@ $(document).ready(function() {
|
|
|
|
trs = DS.inStrings(found, replacer);
|
|
|
|
trs = DS.inStrings(found, replacer);
|
|
|
|
$P.setTotalData(updown, DS._items);
|
|
|
|
$P.setTotalData(updown, DS._items);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
var temp = DS._items;
|
|
|
|
var temp = DS._items;
|
|
|
|
|
|
|
|
|
|
|
|
var filtered = [];
|
|
|
|
var filtered = [];
|
|
|
|
|
|
|
|
|
|
|
|
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
|
|
|
|
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
|
|
|
|
|
|
|
|
|
|
|
|
$P.setTotalData(updown, filtered);
|
|
|
|
$P.setTotalData(updown, filtered);
|
|
|
|
|
|
|
|
|
|
|
|
if(filtered.lenth < 1){
|
|
|
|
if(filtered.lenth < 1){
|
|
|
|
trs = notFound;
|
|
|
|
trs = notFound;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
DS._items = filtered;
|
|
|
|
DS._items = filtered;
|
|
|
|
|
|
|
|
|
|
|
|
trs = DS.inStrings(found, replacer);
|
|
|
|
trs = DS.inStrings(found, replacer);
|
|
|
|
|
|
|
|
|
|
|
|
DS._items = temp;
|
|
|
|
DS._items = temp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+tbody).html(trs.join());
|
|
|
|
$("#"+tbody).html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//합계 표시
|
|
|
|
//합계 표시
|
|
|
|
$P.setTotalData = (updown, list) => {
|
|
|
|
$P.setTotalData = (updown, list) => {
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
|
|
|
|
|
|
|
|
$("#minapCnt--${pageName}").set(list.length);
|
|
|
|
$("#minapCnt--${pageName}").set(list.length);
|
|
|
|
var minapAmt = list.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
var minapAmt = list.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
|
|
|
|
$("#minapAmt--${pageName}").set(minapAmt);
|
|
|
|
$("#minapAmt--${pageName}").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);
|
|
|
|
$("#minapCntForSgg--${pageName}").set(listForSgg.length);
|
|
|
|
var minapAmtForSgg = listForSgg.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
var minapAmtForSgg = listForSgg.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
|
|
|
|
$("#minapAmtForSgg--${pageName}").set(minapAmtForSgg);
|
|
|
|
$("#minapAmtForSgg--${pageName}").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);
|
|
|
|
$("#sunapCnt--${pageName}").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);
|
|
|
|
$("#sunapAmt--${pageName}").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);
|
|
|
|
$("#sunapCntForSgg--${pageName}").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);
|
|
|
|
$("#sunapAmtForSgg--${pageName}").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);
|
|
|
|
$("#sonCntForSgg--${pageName}").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);
|
|
|
|
$("#sonAmtForSgg--${pageName}").set(sonAmtForSgg);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//납부자번호 복사
|
|
|
|
//납부자번호 복사
|
|
|
|
$P.fnCopyPyrNo = (updown) => {
|
|
|
|
$P.fnCopyPyrNo = (updown) => {
|
|
|
|
|
|
|
|
|
|
|
|
var cur;
|
|
|
|
var cur;
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
cur = $P.integrationSearchControl.upDataset.getCurrent();
|
|
|
|
cur = $P.integrationSearchControl.upDataset.getCurrent();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cur = $P.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("납부자번호가 복사되었습니다.");
|
|
|
|
$P.toast.show();
|
|
|
|
$P.toast.show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//특기사항관리
|
|
|
|
//특기사항관리
|
|
|
|
$P.fnManageEtcCn = (updown) => {
|
|
|
|
$P.fnManageEtcCn = (updown) => {
|
|
|
|
|
|
|
|
|
|
|
|
var cur;
|
|
|
|
var cur;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
cur = $P.integrationSearchControl.upDataset.getCurrent();
|
|
|
|
cur = $P.integrationSearchControl.upDataset.getCurrent();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cur = $P.integrationSearchControl.downDataset.getCurrent();
|
|
|
|
cur = $P.integrationSearchControl.downDataset.getCurrent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(cur.length <= 0){
|
|
|
|
if(cur.length <= 0){
|
|
|
|
dialog.alert("처리할 자료가 없습니다.");
|
|
|
|
dialog.alert("처리할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//특기사항일괄입력
|
|
|
|
//특기사항일괄입력
|
|
|
|
$P.fnInputEtcCn = (updown) => {
|
|
|
|
$P.fnInputEtcCn = (updown) => {
|
|
|
|
|
|
|
|
|
|
|
|
var cur;
|
|
|
|
var cur;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
cur = $P.integrationSearchControl.upDataset;
|
|
|
|
cur = $P.integrationSearchControl.upDataset;
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cur = $P.integrationSearchControl.downDataset;
|
|
|
|
cur = $P.integrationSearchControl.downDataset;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(cur.length <= 0){
|
|
|
|
if(cur.length <= 0){
|
|
|
|
dialog.alert("처리할 자료가 없습니다.");
|
|
|
|
dialog.alert("처리할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var list = cur.getDataset();
|
|
|
|
var list = cur.getDataset();
|
|
|
|
var grouped = Object.groupBy(list, ({ CRDN_ID }) => CRDN_ID);
|
|
|
|
var grouped = Object.groupBy(list, ({ CRDN_ID }) => CRDN_ID);
|
|
|
|
var crdnIds = Object.keys(grouped);
|
|
|
|
var crdnIds = Object.keys(grouped);
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/sprt/sprt01/100/info.do");
|
|
|
|
var url = wctx.url("/sprt/sprt01/100/info.do");
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "inputEtcCnDialog";
|
|
|
|
var dialogId = "inputEtcCnDialog";
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : url
|
|
|
|
url : url
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, success : (resp) => {
|
|
|
|
, success : (resp) => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : dialogId
|
|
|
|
id : dialogId
|
|
|
|
, title : "특기사항입력-일괄"
|
|
|
|
, title : "특기사항입력-일괄"
|
|
|
|
, size : "xl"
|
|
|
|
, size : "xl"
|
|
|
|
, content : resp
|
|
|
|
, content : resp
|
|
|
|
, init : () => {
|
|
|
|
, init : () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var trs = cur.inStrings(found, null);
|
|
|
|
var trs = cur.inStrings(found, null);
|
|
|
@ -453,9 +442,8 @@ $(document).ready(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//단속내역서,단속확인서
|
|
|
|
//단속내역서,단속확인서
|
|
|
|
$P.fnPrintCrdn = () => {
|
|
|
|
$P.fnPrintCrdn = () => {
|
|
|
@ -467,17 +455,17 @@ $(document).ready(function() {
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
var downArr = downDataset.getDataset();
|
|
|
|
var downArr = downDataset.getDataset();
|
|
|
|
var unionArray = [...upArr, ...downArr];
|
|
|
|
var unionArray = [...upArr, ...downArr];
|
|
|
|
|
|
|
|
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(unionArray, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(unionArray, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/sprt/sprt01/110/info.do");
|
|
|
|
var url = wctx.url("/sprt/sprt01/110/info.do");
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "printCrdnDialog";
|
|
|
|
var dialogId = "printCrdnDialog";
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : url
|
|
|
|
url : url
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
@ -487,8 +475,8 @@ $(document).ready(function() {
|
|
|
|
, title : "종합조회-단속내역"
|
|
|
|
, title : "종합조회-단속내역"
|
|
|
|
, size : "xl"
|
|
|
|
, size : "xl"
|
|
|
|
, content : resp
|
|
|
|
, content : resp
|
|
|
|
, init : () => {
|
|
|
|
, init : () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var trs1 = upDataset.inStrings(found, null);
|
|
|
|
var trs1 = upDataset.inStrings(found, null);
|
|
|
@ -499,9 +487,8 @@ $(document).ready(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//교부청구서,채권신고서
|
|
|
|
//교부청구서,채권신고서
|
|
|
|
$P.fnPrintBill = () => {
|
|
|
|
$P.fnPrintBill = () => {
|
|
|
@ -512,15 +499,15 @@ $(document).ready(function() {
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(upArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(upArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/sprt/sprt01/120/info.do");
|
|
|
|
var url = wctx.url("/sprt/sprt01/120/info.do");
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "printBillDialog";
|
|
|
|
var dialogId = "printBillDialog";
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : url
|
|
|
|
url : url
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
@ -530,17 +517,17 @@ $(document).ready(function() {
|
|
|
|
, title : "종합조회-교부청구서,채권신고서"
|
|
|
|
, title : "종합조회-교부청구서,채권신고서"
|
|
|
|
, size : "xl"
|
|
|
|
, size : "xl"
|
|
|
|
, content : resp
|
|
|
|
, content : resp
|
|
|
|
, init : () => {
|
|
|
|
, init : () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var trs = upDataset.inStrings(found, null);
|
|
|
|
var trs = upDataset.inStrings(found, null);
|
|
|
|
$("#"+dialogId).find("tbody").html(trs.join());
|
|
|
|
$("#"+dialogId).find("tbody").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
var parentRes = new Object();
|
|
|
|
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($P.provide[reqKey]){
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
@ -548,36 +535,36 @@ $(document).ready(function() {
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, onClose : () => { }
|
|
|
|
, onClose : () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//납부확인서
|
|
|
|
//납부확인서
|
|
|
|
$P.fnPrintRcvmtConfirm = () => {
|
|
|
|
$P.fnPrintRcvmtConfirm = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var downDataset = $P.integrationSearchControl.downDataset;
|
|
|
|
var downDataset = $P.integrationSearchControl.downDataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(downDataset.length <= 0){
|
|
|
|
if(downDataset.length <= 0){
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var downArr = downDataset.getDataset();
|
|
|
|
var downArr = downDataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(downArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(downArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/sprt/sprt01/130/makeRcvmtConfirmFileFromHwpFormat.do");
|
|
|
|
var url = wctx.url("/sprt/sprt01/130/makeRcvmtConfirmFileFromHwpFormat.do");
|
|
|
|
var parameter = toQuery({
|
|
|
|
var parameter = toQuery({
|
|
|
|
crdnIds : crdnIds.join(",")
|
|
|
|
crdnIds : crdnIds.join(",")
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
document.location.href = url + "?" + parameter;
|
|
|
|
document.location.href = url + "?" + parameter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//사전통지서
|
|
|
|
//사전통지서
|
|
|
@ -589,15 +576,15 @@ $(document).ready(function() {
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(upArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(upArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/sprt/sprt01/140/info.do");
|
|
|
|
var url = wctx.url("/sprt/sprt01/140/info.do");
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "printAdvntceDialog";
|
|
|
|
var dialogId = "printAdvntceDialog";
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : url
|
|
|
|
url : url
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
@ -607,17 +594,17 @@ $(document).ready(function() {
|
|
|
|
title : "종합조회-사전통지서",
|
|
|
|
title : "종합조회-사전통지서",
|
|
|
|
size : "xl",
|
|
|
|
size : "xl",
|
|
|
|
content : resp,
|
|
|
|
content : resp,
|
|
|
|
init : () => {
|
|
|
|
init : () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var trs = upDataset.inStrings(found, null);
|
|
|
|
var trs = upDataset.inStrings(found, null);
|
|
|
|
$("#"+dialogId).find("tbody").html(trs.join());
|
|
|
|
$("#"+dialogId).find("tbody").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
var parentRes = new Object();
|
|
|
|
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($P.provide[reqKey]){
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
@ -625,14 +612,14 @@ $(document).ready(function() {
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose : () => { }
|
|
|
|
onClose : () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//고지서
|
|
|
|
//고지서
|
|
|
@ -644,35 +631,35 @@ $(document).ready(function() {
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
var upArr = upDataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(upArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
var crdnIds = Object.keys(Object.groupBy(upArr, ({ CRDN_ID }) => CRDN_ID));
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/sprt/sprt01/150/info.do");
|
|
|
|
var url = wctx.url("/sprt/sprt01/150/info.do");
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "printNhtDialog";
|
|
|
|
var dialogId = "printNhtDialog";
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : url
|
|
|
|
url : url
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, data : { crdnIds : crdnIds.join(",") }
|
|
|
|
, success : (resp) => {
|
|
|
|
, success : (resp) => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : dialogId,
|
|
|
|
id : dialogId,
|
|
|
|
title : "종합조회-고지서",
|
|
|
|
title : "종합조회-고지서",
|
|
|
|
size : "xl",
|
|
|
|
size : "xl",
|
|
|
|
content : resp,
|
|
|
|
content : resp,
|
|
|
|
init : () => {
|
|
|
|
init : () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var found = $("#"+dialogId).find("template")[0].innerHTML;
|
|
|
|
var trs = upDataset.inStrings(found, null);
|
|
|
|
var trs = upDataset.inStrings(found, null);
|
|
|
|
$("#"+dialogId).find("tbody").html(trs.join());
|
|
|
|
$("#"+dialogId).find("tbody").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
var parentRes = new Object();
|
|
|
|
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($P.provide[reqKey]){
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
@ -680,14 +667,14 @@ $(document).ready(function() {
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose : () => { }
|
|
|
|
onClose : () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//개별총정보 dialog
|
|
|
|
//개별총정보 dialog
|
|
|
@ -695,31 +682,31 @@ $(document).ready(function() {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.upDataset;
|
|
|
|
var upDataset = $P.integrationSearchControl.upDataset;
|
|
|
|
var downDataset = $P.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);
|
|
|
|
if(info != null){
|
|
|
|
if(info != null){
|
|
|
|
$P.integrationSearchControl.flag = "up";
|
|
|
|
$P.integrationSearchControl.flag = "up";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(downDataset.length > 0){
|
|
|
|
if(downDataset.length > 0){
|
|
|
|
var info = downDataset.getData(crdnId);
|
|
|
|
var info = downDataset.getData(crdnId);
|
|
|
|
if(info != null){
|
|
|
|
if(info != null){
|
|
|
|
$P.integrationSearchControl.flag = "down";
|
|
|
|
$P.integrationSearchControl.flag = "down";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
callControlName : "pageObject['${pageName}'].integrationSearchControl"
|
|
|
|
callControlName : "pageObject['${pageName}'].integrationSearchControl"
|
|
|
|
, crdnId : crdnId
|
|
|
|
, crdnId : crdnId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var url = wctx.url("/"+taskSeCd+"/sprt/sprt02/010/main.do");
|
|
|
|
var url = wctx.url("/sprt/sprt02/010/main.do");
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : url
|
|
|
|
url : url
|
|
|
|
, data : params
|
|
|
|
, data : params
|
|
|
@ -738,32 +725,32 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
$P.provide = {
|
|
|
|
"getInfo" : function(crdnId){
|
|
|
|
"getInfo" : function(crdnId){
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.upDataset;
|
|
|
|
var upDataset = $P.integrationSearchControl.upDataset;
|
|
|
|
var downDataset = $P.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);
|
|
|
|
if(info != null){
|
|
|
|
if(info != null){
|
|
|
|
return info;
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(downDataset.length > 0){
|
|
|
|
if(downDataset.length > 0){
|
|
|
|
var info = downDataset.getData(crdnId);
|
|
|
|
var info = downDataset.getData(crdnId);
|
|
|
|
if(info != null){
|
|
|
|
if(info != null){
|
|
|
|
return info;
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"isAllSameTask" : function(crdnIdArr){
|
|
|
|
"isAllSameTask" : function(crdnIdArr){
|
|
|
|
|
|
|
|
|
|
|
|
var upArr = $P.integrationSearchControl.upDataset.getDataset();
|
|
|
|
var upArr = $P.integrationSearchControl.upDataset.getDataset();
|
|
|
|
var downArr = $P.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));
|
|
|
|
var taskSeCd = filtered[0].TASK_SE_CD;
|
|
|
|
var taskSeCd = filtered[0].TASK_SE_CD;
|
|
|
|
var result = filtered.every(item => item.TASK_SE_CD == taskSeCd);
|
|
|
|
var result = filtered.every(item => item.TASK_SE_CD == taskSeCd);
|
|
|
@ -776,38 +763,38 @@ $(document).ready(function() {
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
//이벤트
|
|
|
|
//이벤트
|
|
|
|
$P.setEvent = () => {
|
|
|
|
$P.setEvent = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnReset--${pageName}").on("click", function(){ $P.fnReset(); });
|
|
|
|
$("#btnReset--${pageName}").on("click", function(){ $P.fnReset(); });
|
|
|
|
$("#btnSearch--${pageName}").on("click", function(){ $P.fnSearchList(); });
|
|
|
|
$("#btnSearch--${pageName}").on("click", function(){ $P.fnSearchList(); });
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
$("#term--${pageName}").onEnterPress($P.fnSearchList);
|
|
|
|
$("#term--${pageName}").onEnterPress($P.fnSearchList);
|
|
|
|
$("#btnPrintCrdn--${pageName}").on("click", function(){ $P.fnPrintCrdn(); });
|
|
|
|
$("#btnPrintCrdn--${pageName}").on("click", function(){ $P.fnPrintCrdn(); });
|
|
|
|
$("#btnPrintBill--${pageName}").on("click", function(){ $P.fnPrintBill(); });
|
|
|
|
$("#btnPrintBill--${pageName}").on("click", function(){ $P.fnPrintBill(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpExcel--${pageName}").on("click", function(){ $P.fnExcel("up"); });
|
|
|
|
$("#btnUpExcel--${pageName}").on("click", function(){ $P.fnExcel("up"); });
|
|
|
|
$("#btnDownExcel--${pageName}").on("click", function(){ $P.fnExcel("down"); });
|
|
|
|
$("#btnDownExcel--${pageName}").on("click", function(){ $P.fnExcel("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("up"); });
|
|
|
|
$("#btnUpCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("up"); });
|
|
|
|
$("#btnDownCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("down"); });
|
|
|
|
$("#btnDownCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("up"); });
|
|
|
|
$("#btnUpManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("up"); });
|
|
|
|
$("#btnDownManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("down"); });
|
|
|
|
$("#btnDownManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("up"); });
|
|
|
|
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("up"); });
|
|
|
|
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("down"); });
|
|
|
|
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
|
|
|
|
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpPrintAdvntce--${pageName}").on("click", function(){ $P.fnPrintAdvntce(); });
|
|
|
|
$("#btnUpPrintAdvntce--${pageName}").on("click", function(){ $P.fnPrintAdvntce(); });
|
|
|
|
$("#btnPrintNht--${pageName}").on("click", function(){ $P.fnPrintNht(); });
|
|
|
|
$("#btnPrintNht--${pageName}").on("click", function(){ $P.fnPrintNht(); });
|
|
|
|
|
|
|
|
|
|
|
|
//$("#btn").on("click", function(){ });
|
|
|
|
//$("#btn").on("click", function(){ });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 달력 초기화
|
|
|
|
// 달력 초기화
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
|
|
|
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
|
|
|
$(this).on("input", function() {
|
|
|
|
$(this).on("input", function() {
|
|
|
@ -820,7 +807,7 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName}").find(".form-time").each(function(){
|
|
|
|
$("#frmSearch--${pageName}").find(".form-time").each(function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
@ -833,18 +820,18 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
fnMakeResizableTable($("#table-responsive-up--${pageName}")[0]);
|
|
|
|
fnMakeResizableTable($("#table-responsive-up--${pageName}")[0]);
|
|
|
|
fnMakeResizableTable($("#table-responsive-down--${pageName}")[0]);
|
|
|
|
fnMakeResizableTable($("#table-responsive-down--${pageName}")[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$("#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();
|
|
|
|
$P.setEvent();
|
|
|
|
|
|
|
|
|
|
|
@ -852,7 +839,7 @@ $(document).ready(function() {
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz("");
|
|
|
|
$P.fnResetAndChangeBiz("");
|
|
|
|
|
|
|
|
|
|
|
|
if($P.fastSearch != null){
|
|
|
|
if($P.fastSearch != null){
|
|
|
|
if($P.fastSearch.fastBy == "vhrno"){
|
|
|
|
if($P.fastSearch.fastBy == "vhrno"){
|
|
|
|
$("#ischVhrno--${pageName}").val($P.fastSearch.fastTerm);
|
|
|
|
$("#ischVhrno--${pageName}").val($P.fastSearch.fastTerm);
|
|
|
@ -865,10 +852,10 @@ $(document).ready(function() {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnSearch--${pageName}").click();
|
|
|
|
$("#btnSearch--${pageName}").click();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|