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