|
|
|
@ -132,17 +132,24 @@
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div class="container-page-btn">
|
|
|
|
|
<div id="gridbuttonArea--${pageName}" class="container-page-btn">
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
<label id="crdnPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
|
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<span slot="button">
|
|
|
|
|
<template class="pvs bpv">
|
|
|
|
|
<slot>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120"
|
|
|
|
|
id="btnSendCrdn--${pageName}" title="세외수입 전송">
|
|
|
|
|
☑ 세외수입 전송
|
|
|
|
|
</button>
|
|
|
|
|
</slot>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -380,6 +387,11 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
//업무별 조회조건
|
|
|
|
|
renderForTask("frmSearch--${pageName}", clsForTask);
|
|
|
|
|
//업무별 버튼
|
|
|
|
|
renderForTask("gridbuttonArea--${pageName}", clsForTask);
|
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
|
|
$("#btnSendCrdn--${pageName}").off("click");
|
|
|
|
|
$("#btnSendCrdn--${pageName}").on("click", () => $P.fnSendCrdn());
|
|
|
|
|
|
|
|
|
|
//업무별 그리드
|
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" );
|
|
|
|
@ -393,6 +405,12 @@ $(document).ready(function(){
|
|
|
|
|
$("#crdnThead--${pageName}").html(colsStr);
|
|
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
|
|
|
|
|
|
|
|
|
|
if(SYS_LINK_INFO.NXRP_LINK_YN != 'Y'){
|
|
|
|
|
$("#btnSendCrdn--${pageName}").attr("hidden","hidden");
|
|
|
|
|
} else {
|
|
|
|
|
$("#btnSendCrdn--${pageName}").prop("disabled", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
|
@ -487,26 +505,7 @@ $(document).ready(function(){
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
$('#btnExcel--${pageName}').on('click', function(){
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.dataset.empty){
|
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
|
|
|
|
|
$P.crdnControl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.download();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#btnSendCrdn--${pageName}').on('click', function(){
|
|
|
|
|
$P.fnSendCrdn = () => {
|
|
|
|
|
var datas = $P.crdnControl.dataset.getDataset("selected");
|
|
|
|
|
var taskSeCd = datas[0].TASK_SE_CD;
|
|
|
|
|
|
|
|
|
@ -532,6 +531,25 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
$('#btnExcel--${pageName}').on('click', function(){
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.dataset.empty){
|
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
|
|
|
|
|
$P.crdnControl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.download();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);
|
|
|
|
|