|
|
@ -142,7 +142,9 @@
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
<th class="cmn" style="width: 72px;">NO.</th>
|
|
|
|
<th class="cmn" style="width: 72px;">NO.</th>
|
|
|
|
<th class="cmn" style="width: 240px;" onclick="searchFromGridTitle('RELETCDATA', this.innerText, 'match', 'part');">발송자료키</th>
|
|
|
|
<th class="cmn" style="width: 240px;" onclick="searchFromGridTitle('RELETCDATA', this.innerText, 'match', 'part');">발송자료키</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('JOB_CD', this.innerText, 'codeValue', 'FIM082');">우편물종류</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('JOB_CD', this.innerText, 'match', 'part');">우편물코드</th>
|
|
|
|
|
|
|
|
<!-- <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('JOB_CD', this.innerText, 'codeValue', 'FIM082');">우편물종류</th> -->
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">우편물종류</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('EXTRI_REGYMD', this.innerText, 'ymd', '');">발송일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('EXTRI_REGYMD', this.innerText, 'ymd', '');">발송일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_YMD', this.innerText, 'ymd', '');">접수일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_YMD', this.innerText, 'ymd', '');">접수일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DIV_KB', this.innerText, 'codeValue', 'EGP002');">취급구분</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DIV_KB', this.innerText, 'codeValue', 'EGP002');">취급구분</th>
|
|
|
@ -161,6 +163,7 @@
|
|
|
|
<tr data-key="{RCPT_RSLT_ID}">
|
|
|
|
<tr data-key="{RCPT_RSLT_ID}">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RELETCDATA}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RELETCDATA}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD3_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD3_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{EXTRI_REGYMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{EXTRI_REGYMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_YMD}</td>
|
|
|
@ -176,7 +179,47 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- / DataTables(그리드) -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}${pageDataName3}">
|
|
|
|
|
|
|
|
<div class="table-responsive" id="table-responsive--${pageName}${pageDataName3}" style="overflow-x:scroll; height:160px; overflow-y:scroll;">
|
|
|
|
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName3}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
|
|
|
<tr id="theadTr--${pageName}${pageDataName3}">
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">취급구분</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">발송건수</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;">결제금액</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;">제작수수료</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;">우편요금</th>
|
|
|
|
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="tbody--${pageName}${pageDataName3}">
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
<template id="${infoPrefix}Row--${pageName}${pageDataName3}">
|
|
|
|
|
|
|
|
<tr data-key="{DIV_KB}">
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DIV_KB_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_CNT}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_AMT}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{USEFEE_AMT}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{TOTPOST_PRC}</td>
|
|
|
|
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}${pageDataName3}">
|
|
|
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
|
|
|
<td valign="top" colspan="6" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -228,8 +271,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 부서 Dataset
|
|
|
|
// 부서 정보 Dataset
|
|
|
|
var ${pageName}DeptInfoDataset = new Dataset({
|
|
|
|
var ${pageName}${pageDataName2}Dataset = new Dataset({
|
|
|
|
prefix : "dept"
|
|
|
|
prefix : "dept"
|
|
|
|
, prefixName : "부서"
|
|
|
|
, prefixName : "부서"
|
|
|
|
, keymapper : info => info ? info.DEPT_CD : ""
|
|
|
|
, keymapper : info => info ? info.DEPT_CD : ""
|
|
|
@ -242,6 +285,30 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 합계 금액 정보 Dataset
|
|
|
|
|
|
|
|
var ${pageName}${pageDataName3}Dataset = new Dataset({
|
|
|
|
|
|
|
|
prefix : "sumAmt"
|
|
|
|
|
|
|
|
, prefixName : "합계 금액"
|
|
|
|
|
|
|
|
, keymapper : info => info ? info.DIV_KB : ""
|
|
|
|
|
|
|
|
, dataGetter : obj => obj.sumAmtList
|
|
|
|
|
|
|
|
, formats : {
|
|
|
|
|
|
|
|
RCEPT_CNT : numberFormat
|
|
|
|
|
|
|
|
, RCEPT_AMT : numberFormat
|
|
|
|
|
|
|
|
, USEFEE_AMT : numberFormat
|
|
|
|
|
|
|
|
, TOTPOST_PRC : numberFormat
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onDatasetChange : obj => {
|
|
|
|
|
|
|
|
renderList${pageName}${pageDataName3}();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onCurrentChange : item => {
|
|
|
|
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.DIV_KB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}${pageDataName3}").setCurrentRow(key);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -284,7 +351,6 @@
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
(str, dataItem) => str
|
|
|
|
(str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("RCPT_RSLT_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("RCPT_RSLT_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "getTotalInfo${pageName}('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
let noMore = (totalSize == ${infoPrefix}List.length);
|
|
|
|
let noMore = (totalSize == ${infoPrefix}List.length);
|
|
|
@ -312,9 +378,36 @@
|
|
|
|
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
|
|
|
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
renderList${pageName}${pageDataName3} = () => {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}${pageDataName3}Dataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}${pageDataName3}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}${pageDataName3}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "${pageName}${pageDataName3}Dataset.setCurrent('" + dataItem.getValue("DIV_KB") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}${pageDataName3}").html(trs.join());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 사용자 함수(function)
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 합계 금액 조회
|
|
|
|
|
|
|
|
getSumAmtInfo${pageName} = (query) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url(query.taskSeCd + ${pageName}PrefixUrl + "/050/sumAmt.do")
|
|
|
|
|
|
|
|
, data : query
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
${pageName}${pageDataName3}Dataset.setData(resp.sumAmt);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 자료 재조회
|
|
|
|
// 검색 자료 재조회
|
|
|
|
refreshList${pageName} = () => {
|
|
|
|
refreshList${pageName} = () => {
|
|
|
|
${pageName}Control.untilPageNum = ${pageName}Control.query.pageNum;
|
|
|
|
${pageName}Control.untilPageNum = ${pageName}Control.query.pageNum;
|
|
|
@ -349,10 +442,13 @@
|
|
|
|
${pageName}Control.query = ${pageName}Fields.get();
|
|
|
|
${pageName}Control.query = ${pageName}Fields.get();
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.query.fetchSize = ${pageName}Control.defaultFetchSize; // 한번에 조회되는 자료 건수 FETCH_XS = 30
|
|
|
|
${pageName}Control.query.fetchSize = ${pageName}Control.defaultFetchSize; // 한번에 조회되는 자료 건수 FETCH_XS = 30
|
|
|
|
${pageName}Control.query.conOrg = ${pageName}DeptInfoDataset.getValue("EGP_CON_ORG"); // 외부기관구분코드
|
|
|
|
${pageName}Control.query.conOrg = ${pageName}${pageDataName2}Dataset.getValue("EGP_CON_ORG"); // 외부기관구분코드
|
|
|
|
${pageName}Control.query.relorsectCd = ${pageName}DeptInfoDataset.getValue("DEPT_CD"); // 결제부서코드(부서코드)
|
|
|
|
${pageName}Control.query.relorsectCd = ${pageName}${pageDataName2}Dataset.getValue("DEPT_CD"); // 결제부서코드(부서코드)
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(1);
|
|
|
|
${pageName}Control.load(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 합계 금액 조회
|
|
|
|
|
|
|
|
getSumAmtInfo${pageName}(${pageName}Control.query);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
@ -393,6 +489,8 @@
|
|
|
|
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
|
|
|
|
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName}${pageDataName3}").find("th").resizable( {handles : "e"} );
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], scrollDataList${pageName});
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], scrollDataList${pageName});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -444,7 +542,7 @@
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
// 부서 정보
|
|
|
|
// 부서 정보
|
|
|
|
${pageName}DeptInfoDataset.setData([${deptInfo}]);
|
|
|
|
${pageName}${pageDataName2}Dataset.setData([${deptInfo}]);
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
// 보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|