|
|
@ -123,7 +123,13 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
|
|
|
|
<label id="${infoPrefix}Paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
|
|
|
|
<ul id="${infoPrefix}Paging--${pageName}" class="pagination pagination-primary" style="display: none;">
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- / DataTables(그리드) -->
|
|
|
|
<!-- / DataTables(그리드) -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
@ -146,7 +152,7 @@
|
|
|
|
<tbody id="tbody--${pageName}Detail">
|
|
|
|
<tbody id="tbody--${pageName}Detail">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}Detail">
|
|
|
|
<template id="${infoPrefix}Row--${pageName}Detail">
|
|
|
|
<tr data-key="DSCDMNG_SN">
|
|
|
|
<tr data-key="{DSCDMNG_SN}">
|
|
|
|
<td class="row-num text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="row-num text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_NM}</td>
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_CD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_CD}</td>
|
|
|
@ -168,11 +174,7 @@
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
|
|
|
|
<label id="userPagingInfo" class="dataTables_info" role="status" aria-live="polite">1 ~ 2 / 2</label>
|
|
|
|
|
|
|
|
<ul id="userPaging" class="pagination pagination-primary" style="display: none;">
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -243,9 +245,9 @@
|
|
|
|
$P.control.onDatasetChange = (obj) => {
|
|
|
|
$P.control.onDatasetChange = (obj) => {
|
|
|
|
$P.renderList(obj.${infoPrefix}Total);
|
|
|
|
$P.renderList(obj.${infoPrefix}Total);
|
|
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPaging({
|
|
|
|
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
|
|
|
|
list: $P.control.dataset
|
|
|
|
list: $P.control.dataset
|
|
|
|
, prefix: "paging--${pageName}"
|
|
|
|
, prefix: "${infoPrefix}Paging--${pageName}"
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
, totalSize: obj.${infoPrefix}Total
|
|
|
|
, totalSize: obj.${infoPrefix}Total
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
@ -319,8 +321,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("DSCDMNG_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("DSCDMNG_ID") + "');");
|
|
|
|
.replace(/{ondblclick}/gi, "");
|
|
|
|
|
|
|
|
// .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("DSCDMNG_ID") + "');");
|
|
|
|
// .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("DSCDMNG_ID") + "');");
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
@ -522,12 +523,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
|
|
|
|
|
|
|
|
// 하단 테이블 행 번호 표시
|
|
|
|
// 하단 테이블 행 번호 표시
|
|
|
|
fnMakeRowNumberingTable(document.getElementById('tbody--${pageName}Detail')
|
|
|
|
fnMakeRowNumberingTable(document.getElementById('tbody--${pageName}Detail')
|
|
|
|
, (tr)=>{ return $(tr).find("td.row-num")[0]; }
|
|
|
|
, (tr)=>{ return $(tr).find("td.row-num")[0]; }
|
|
|
|
, (marker, value)=>{ if(marker != null){ marker.innerHTML = value; } }
|
|
|
|
, (marker, value)=>{ if(marker != null){ marker.innerHTML = value; } }
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
// 초기 화면 설정
|
|
|
|