|
|
@ -56,10 +56,18 @@
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색">
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색">
|
|
|
|
검색
|
|
|
|
검색
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="mt-3">
|
|
|
|
|
|
|
|
<div class="float-end">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장">
|
|
|
|
|
|
|
|
엑셀
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<div class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -74,9 +82,9 @@
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll" style="height: 580px !important;" id="table-responsive--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll" style="height: 580px !important;" id="table-responsive--${pageName}">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr>
|
|
|
|
<tr id="theadTr0--${pageName}">
|
|
|
|
<th class="cmn text-center" style="width: 60px;" rowspan="2">NO.</th>
|
|
|
|
<th class="cmn text-center align-content-center p-1" style="width: 60px;" rowspan="2">NO.</th>
|
|
|
|
<th class="cmn" style="width: 170px;" rowspan="2">관할관청</th>
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 170px;" rowspan="2">관할관청</th>
|
|
|
|
<th class="cmn" colspan="7">마약 / 향정 구분</th>
|
|
|
|
<th class="cmn" colspan="7">마약 / 향정 구분</th>
|
|
|
|
<th class="cmn" colspan="4">중점 / 일반 구분</th>
|
|
|
|
<th class="cmn" colspan="4">중점 / 일반 구분</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -90,17 +98,17 @@
|
|
|
|
<th class="cmn" style="width: 90px;">향정</th>
|
|
|
|
<th class="cmn" style="width: 90px;">향정</th>
|
|
|
|
<th class="cmn" style="width: 90px;">향정제외</th>
|
|
|
|
<th class="cmn" style="width: 90px;">향정제외</th>
|
|
|
|
<th class="cmn" style="width: 90px;">기타</th>
|
|
|
|
<th class="cmn" style="width: 90px;">기타</th>
|
|
|
|
<th class="cmn" style="width: 90px;">계</th>
|
|
|
|
<th class="cmn text-blue" style="width: 90px;">계</th>
|
|
|
|
<th class="cmn" style="width: 90px;">비마약류</th>
|
|
|
|
<th class="cmn" style="width: 90px;">비마약류</th>
|
|
|
|
<th class="cmn" style="width: 120px;">일반관리대상</th>
|
|
|
|
<th class="cmn" style="width: 120px;">일반관리대상</th>
|
|
|
|
<th class="cmn" style="width: 120px;">중점관리대상</th>
|
|
|
|
<th class="cmn" style="width: 120px;">중점관리대상</th>
|
|
|
|
<th class="cmn" style="width: 90px;">계</th>
|
|
|
|
<th class="cmn text-blue" style="width: 90px;">계</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<tr data-key="{dept_cd}">
|
|
|
|
<tr data-key="{dept_cd}" class="{fw-bold-if-total}">
|
|
|
|
<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}">{dept_nm}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dept_nm}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{대마}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{대마}</td>
|
|
|
@ -109,11 +117,11 @@
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정제외}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정제외}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{기타}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{기타}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{마약향정계}</td>
|
|
|
|
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{마약향정계}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{비마약류}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{비마약류}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{일반관리대상}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{일반관리대상}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{중점관리대상}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{중점관리대상}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{중점일반계}</td>
|
|
|
|
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{중점일반계}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
@ -207,8 +215,16 @@
|
|
|
|
foundTr.appendChild(this.cloneNode(true));
|
|
|
|
foundTr.appendChild(this.cloneNode(true));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
let replacer = (str, dataItem) => {
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("dept_cd") + "');");
|
|
|
|
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("dept_cd") + "');")
|
|
|
|
|
|
|
|
if(dataItem.getValue("dept_cd") == "TOTAL"){
|
|
|
|
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return str;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
@ -289,8 +305,11 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드)
|
|
|
|
// DataTables(그리드)
|
|
|
|
let cellDefs = getCellDefs($("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)")
|
|
|
|
let cellDefs = getCellDefs(
|
|
|
|
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
|
|
|
|
$("#theadTr0--${pageName} th, #theadTr--${pageName} th")
|
|
|
|
|
|
|
|
.not(".dummy-th").not(":eq(0)").not("[colspan]"),
|
|
|
|
|
|
|
|
$($("#${infoPrefix}Row--${pageName}")[0].content).find("td")
|
|
|
|
|
|
|
|
.not(".dummy-td").not(":eq(0)").not("[colspan]"));
|
|
|
|
$P.control.query.cellDefs = cellDefs;
|
|
|
|
$P.control.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.download();
|
|
|
|
$P.control.download();
|
|
|
|