|
|
|
@ -24,6 +24,10 @@
|
|
|
|
|
id="table--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
|
<thead class="sticky-thead" >
|
|
|
|
|
<tr id="theadTr--${pageName}">
|
|
|
|
|
<th style="width:50px">
|
|
|
|
|
<input type="checkbox" class="form-check-input" checked name="gridAllCheckbox"
|
|
|
|
|
onchange="GRID.checkbox.sync(this, this.checked);" />
|
|
|
|
|
</th>
|
|
|
|
|
<th style="width:120px">시군구명</th>
|
|
|
|
|
<th style="width:180px">과태료명</th>
|
|
|
|
|
<th style="width:120px">차량번호</th>
|
|
|
|
@ -44,6 +48,10 @@
|
|
|
|
|
</tbody>
|
|
|
|
|
<template id="found--${pageName}">
|
|
|
|
|
<tr data-key="{CRDN_ID}" onclick="pageObject['${pageName}'].clickGrid(this);">
|
|
|
|
|
<td>
|
|
|
|
|
<input type="checkbox" class="form-check-input" value="{CRDN_ID}" checked name="gridCheckbox"
|
|
|
|
|
onchange="GRID.checkbox.sync(this, this.checked);" />
|
|
|
|
|
</td>
|
|
|
|
|
<td>{SGG_NM}</td>
|
|
|
|
|
<td>{TASK_SE_NM}</td>
|
|
|
|
|
<td>{VHRNO}</td>
|
|
|
|
@ -109,14 +117,26 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnMakeFile = (fileType, paper) => {
|
|
|
|
|
|
|
|
|
|
var checkboxes = $("#tbody--${pageName}").find("input[type='checkbox']:checked");
|
|
|
|
|
if(checkboxes.length < 1){
|
|
|
|
|
alert("체크된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!customValidate($("#frmEdit--${pageName} input"))) return;
|
|
|
|
|
|
|
|
|
|
if(!$P.provided.isAllSameTask($P.crdnIds)){
|
|
|
|
|
alert("여러 건 출력시 과태료업무가 동일한 자료만 처리 가능합니다.")
|
|
|
|
|
var checkedCrdnIds = [];
|
|
|
|
|
checkboxes.each(function(){
|
|
|
|
|
checkedCrdnIds.push(this.value);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if(!$P.provided.isAllSameTask(checkedCrdnIds)){
|
|
|
|
|
alert("여러 건 출력시 과태료업무가 동일한 자료만 처리 가능합니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var sample = $P.crdnIds[0]; //체크된것중첫번째
|
|
|
|
|
var sample = checkedCrdnIds[0]; //체크된것중첫번째
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $P.provided.getInfo(sample).TASK_SE_CD;
|
|
|
|
|
|
|
|
|
@ -131,7 +151,7 @@ $(document).ready(function(){
|
|
|
|
|
var globalVariable = formFields.get();
|
|
|
|
|
|
|
|
|
|
var submitParam = {
|
|
|
|
|
crdnIds : $P.crdnIds.join(","),
|
|
|
|
|
crdnIds : checkedCrdnIds.join(","),
|
|
|
|
|
taskSeCd : taskSeCd
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -165,10 +185,20 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnOpenOtptStng = () => {
|
|
|
|
|
var checkboxes = $("#tbody--${pageName}").find("input[type='checkbox']:checked");
|
|
|
|
|
if(checkboxes.length < 1){
|
|
|
|
|
alert("체크된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var checkedCrdnIds = [];
|
|
|
|
|
checkboxes.each(function(){
|
|
|
|
|
checkedCrdnIds.push(this.value);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var fix = "";
|
|
|
|
|
if($P.provided.isAllSameTask($P.crdnIds)){
|
|
|
|
|
var sample = $P.crdnIds[0]; //체크된것중첫번째
|
|
|
|
|
if($P.provided.isAllSameTask(checkedCrdnIds)){
|
|
|
|
|
var sample = checkedCrdnIds[0]; //체크된것중첫번째
|
|
|
|
|
fix = $P.provided.getInfo(sample).TASK_SE_CD;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -181,11 +211,11 @@ $(document).ready(function(){
|
|
|
|
|
success : (resp) => {
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : dialogId
|
|
|
|
|
, title : "출력설정"
|
|
|
|
|
, size : "xxl"
|
|
|
|
|
, content : resp
|
|
|
|
|
, init : () => {
|
|
|
|
|
id : dialogId,
|
|
|
|
|
title : "출력설정",
|
|
|
|
|
size : "xxl",
|
|
|
|
|
content : resp,
|
|
|
|
|
init : () => {
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
|
|
|
|
|
|
|
|
|
@ -198,8 +228,8 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sndngSeCd']").val("02");
|
|
|
|
|
}
|
|
|
|
|
, onClose : () => { }
|
|
|
|
|
},
|
|
|
|
|
onClose : () => { }
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|