|
|
|
@ -139,8 +139,11 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120"
|
|
|
|
|
id="btnSendCrdn--${pageName}" title="세외수입 전송">
|
|
|
|
|
☑ 세외수입 전송
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -161,6 +164,10 @@
|
|
|
|
|
|
|
|
|
|
<template id="crdnCols--${pageName}">
|
|
|
|
|
<th style="width: 80px;" class="cmn">No.</th>
|
|
|
|
|
<th class="cmn" style="width: 56px;">
|
|
|
|
|
<input type="checkbox" class="form-check-input"
|
|
|
|
|
onchange="pageObject['${pageName}'].crdnControl.select(this.checked);" />
|
|
|
|
|
</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText,'codeValue','FIM003');"
|
|
|
|
|
style="width: 160px;" class="pvs bpv dpv eca">자료출처</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');"
|
|
|
|
@ -190,6 +197,10 @@
|
|
|
|
|
<template id="crdnRow--${pageName}">
|
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end cmn">{ROW_NUM}</td>
|
|
|
|
|
<td class="cmn text-center">
|
|
|
|
|
<input type="checkbox" class="form-check-input" value="{CRDN_ID}"
|
|
|
|
|
onchange="pageObject['${pageName}'].crdnControl.select('{CRDN_ID}', this.checked);">
|
|
|
|
|
</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{CRDN_INPT_SE_CD}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{VHRNO}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{CRDN_YMD_TM}</td>
|
|
|
|
@ -207,27 +218,27 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template id="crdnNotFound--${pageName}">
|
|
|
|
|
<tr class="dpv">
|
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">
|
|
|
|
|
<td valign="top" colspan="15" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="eca">
|
|
|
|
|
<td valign="top" colspan="13" class="dataTables_empty text-center">
|
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="pvs">
|
|
|
|
|
<td valign="top" colspan="13" class="dataTables_empty text-center">
|
|
|
|
|
<td valign="top" colspan="12" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="bpv">
|
|
|
|
|
<td valign="top" colspan="12" class="dataTables_empty text-center">
|
|
|
|
|
<td valign="top" colspan="11" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="tpv">
|
|
|
|
|
<td valign="top" colspan="11" class="dataTables_empty text-center">
|
|
|
|
|
<td valign="top" colspan="10" class="dataTables_empty text-center">
|
|
|
|
|
단속 정보를 찾지 못했습니다.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -330,7 +341,19 @@ $(document).ready(function(){
|
|
|
|
|
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onSelectionChange = (selected) => {
|
|
|
|
|
var crdnDS = $P.crdnControl.dataset;
|
|
|
|
|
var keys = selected.map(e => crdnDS.getKey(e));
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName} input[type='checkbox']").each(function() {
|
|
|
|
|
var checkbox = $(this);
|
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#btnSendCrdn--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
@ -483,6 +506,32 @@ $(document).ready(function(){
|
|
|
|
|
$P.crdnControl.download();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#btnSendCrdn--${pageName}').on('click', function(){
|
|
|
|
|
var datas = $P.crdnControl.dataset.getDataset("selected");
|
|
|
|
|
var taskSeCd = datas[0].TASK_SE_CD;
|
|
|
|
|
|
|
|
|
|
var keys = $P.crdnControl.dataset.getKeys("selected");
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
url : wctx.url("/"+taskSeCd+"/crdn/crdn06/010/sendCrdn.do"),
|
|
|
|
|
data : { "crdnIDs" : keys.join(",") },
|
|
|
|
|
success : resp => {
|
|
|
|
|
if(resp.saved){
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "처리되었습니다.",
|
|
|
|
|
init : function() {
|
|
|
|
|
setDialogZindex();
|
|
|
|
|
focusClose();
|
|
|
|
|
},
|
|
|
|
|
onClose : function(){
|
|
|
|
|
$P.refreshCrdnList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|