|
|
@ -70,8 +70,7 @@
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div name="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div name="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-500">
|
|
|
|
<div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-500">
|
|
|
|
<table name="deptTable"
|
|
|
|
<table name="deptTable" class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr name="deptThead">
|
|
|
|
<tr name="deptThead">
|
|
|
|
<th style="width: 80px;" class="cmn">No.</th>
|
|
|
|
<th style="width: 80px;" class="cmn">No.</th>
|
|
|
@ -92,11 +91,11 @@
|
|
|
|
<tbody name="deptTbody">
|
|
|
|
<tbody name="deptTbody">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template is="curly-brackets" name="deptRow">
|
|
|
|
<template is="curly-brackets" name="deptRow">
|
|
|
|
<tr data-key="DEPT_CD">
|
|
|
|
<tr data-index="DATA-INDEX">
|
|
|
|
<td onclick ondblclick class="text-end">ROW_NUM</td>
|
|
|
|
<td onclick ondblclick class="text-end">ROW_NUM</td>
|
|
|
|
<td class="text-center">
|
|
|
|
<td class="text-center">
|
|
|
|
<input type="checkbox" class="form-check-input" name="gridCheckbox" value="DEPT_CD"
|
|
|
|
<input type="checkbox" class="form-check-input" name="gridCheckbox" value="DATA-INDEX"
|
|
|
|
onchange="pageObject['${pageName}'].ctrl.dataset.select('{DEPT_CD}', this.checked);">
|
|
|
|
onchange="pageObject['${pageName}'].ctrl.dataset.select('{DATA-INDEX}', this.checked);">
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td onclick ondblclick class="text-start">SGG_NM</td>
|
|
|
|
<td onclick ondblclick class="text-start">SGG_NM</td>
|
|
|
|
<td onclick ondblclick class="text-center">SGG_CD</td>
|
|
|
|
<td onclick ondblclick class="text-center">SGG_CD</td>
|
|
|
@ -175,7 +174,6 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
ctrl.dataset.onSelectionChange = (selectedArr) => {
|
|
|
|
ctrl.dataset.onSelectionChange = (selectedArr) => {
|
|
|
|
Apply.fromDataset.gridCheckbox(ctrl.dataset, $P.findn("deptTbody"), 1, selectedArr);
|
|
|
|
Apply.fromDataset.gridCheckbox(ctrl.dataset, $P.findn("deptTbody"), 1, selectedArr);
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.pagingSupport = new FimsPagingSupport({
|
|
|
|
$P.pagingSupport = new FimsPagingSupport({
|
|
|
@ -227,8 +225,8 @@ $(document).ready(function(){
|
|
|
|
var notFound = [$P.findn("deptNotFound").innerHTML];
|
|
|
|
var notFound = [$P.findn("deptNotFound").innerHTML];
|
|
|
|
var found = $P.findn("deptRow").innerHTML;
|
|
|
|
var found = $P.findn("deptRow").innerHTML;
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('" + dataItem.getValue("DEPT_CD") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('{DATA-INDEX}');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('" + dataItem.getValue("DEPT_CD") + "');");
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('{DEPT_CD}');");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
found : found,
|
|
|
|
found : found,
|
|
|
@ -251,14 +249,14 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.clickDeptList = (dataKey) => {
|
|
|
|
$P.clickDeptList = (dataIndex) => {
|
|
|
|
if(dataKey == ""){
|
|
|
|
if(dataIndex == ""){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.$findn("deptTbody").setCurrentRow(dataKey);
|
|
|
|
$P.$findn("deptTbody").setCurrentRow(dataIndex);
|
|
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current(ctrl.dataset, dataKey);
|
|
|
|
Apply.toDataset.current(ctrl.dataset, dataIndex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.dblclickDeptList = (dataKey) => {
|
|
|
|
$P.dblclickDeptList = (dataKey) => {
|
|
|
|