|
|
@ -1,97 +1,81 @@
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Content wrapper -->
|
|
|
|
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
|
|
|
<!-- Content -->
|
|
|
|
|
|
|
|
<div class="container-xxl flex-grow-1 container-p-y">
|
|
|
|
|
|
|
|
<%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%>
|
|
|
|
|
|
|
|
<c:set var="prefixName" scope="request">기능 그룹</c:set>
|
|
|
|
<c:set var="prefixName" scope="request">기능 그룹</c:set>
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="d-flex flex-column flex-grow-1">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
|
|
|
<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<div class="w-50 mx-3">
|
|
|
|
<div style="width:49%;">
|
|
|
|
<h5 class="mt-3">기능 그룹</h5>
|
|
|
|
<h5 class="mt-3">기능 그룹</h5>
|
|
|
|
<div class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="input-group" id="DataTables_Table_0_length">
|
|
|
|
<div class="input-group" id="DataTables_Table_0_length">
|
|
|
|
<select id="by" onchange="document.getElementById('term').focus();" aria-controls="DataTables_Table_0" class="form-select">
|
|
|
|
<select id="by" onchange="document.getElementById('term').focus();" aria-controls="DataTables_Table_0" class="form-select">
|
|
|
|
<option value="${infoPrefix}Name">기능그룹 이름</option>
|
|
|
|
<option value="${infoPrefix}Name">이름</option>
|
|
|
|
<option value="${infoPrefix}ID">기능그룹 아이디</option>
|
|
|
|
<option value="${infoPrefix}ID">아이디</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<input id="term" autofocus type="text" placeholder="조회 조건을 입력하십시오." class="form-control">
|
|
|
|
<input id="term" autofocus type="text" placeholder="조회 조건을 입력하십시오." class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<button onclick="search${infoPrefix}s();" class="btn btn-primary">찾기</button>
|
|
|
|
<button onclick="searchaction${infoPrefix}s();" class="btn btn-primary">찾기</button>
|
|
|
|
<button onclick="${infoPrefix}Control.groups.newInfo();" class="btn btn-primary">+ 추가</button>
|
|
|
|
<button onclick="action${infoPrefix}Control.groups.newInfo();" class="btn btn-primary">+ 추가</button>
|
|
|
|
<button id="btnRemove${infoPrefix}s" onclick="remove${infoPrefix}s();" class="btn btn-primary">- 제거</button>
|
|
|
|
<button id="btnRemoveaction${infoPrefix}s" onclick="removeaction${infoPrefix}s();" class="btn btn-primary">- 제거</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr><th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="text-align:center;"><input onchange="action${infoPrefix}Control.groups.select(this.checked);" type="checkbox" class="form-check-input"></th>
|
|
|
|
<th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" class="text-center">
|
|
|
|
<th class="sorting sorting_asc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Full name: activate to sort column descending" style="">아이디</th>
|
|
|
|
<input onchange="${infoPrefix}Control.groups.select(this.checked);" type="checkbox" class="form-check-input">
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending" style="">이름</th>
|
|
|
|
</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending" style="">등록일자</th>
|
|
|
|
<th class="sorting sorting_asc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Full name: activate to sort column descending">기능그룹 아이디</th>
|
|
|
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending">기능그룹 이름</th>
|
|
|
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending">등록일자</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="${infoPrefix}List">
|
|
|
|
<tbody id="action${infoPrefix}List">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row">
|
|
|
|
<template id="action${infoPrefix}Row">
|
|
|
|
<tr data-key="{GRP_ID}">
|
|
|
|
<tr data-key="{GRP_ID}">
|
|
|
|
<td class="text-center">
|
|
|
|
<td style="text-align:center;"><input value="{GRP_ID}" onchange="action${infoPrefix}Control.groups.select('{GRP_ID}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<input value="{GRP_ID}" onchange="${infoPrefix}Control.groups.select('{GRP_ID}', this.checked);" type="checkbox" class="form-check-input">
|
|
|
|
<td onclick="action${infoPrefix}Control.groups.setCurrent('{GRP_ID}')" ondblclick="action${infoPrefix}Control.groups.getInfo({})">{GRP_ID}</td>
|
|
|
|
</td>
|
|
|
|
<td onclick="action${infoPrefix}Control.groups.setCurrent('{GRP_ID}')" ondblclick="action${infoPrefix}Control.groups.getInfo({})">{GRP_NM}</td>
|
|
|
|
<td onclick="${infoPrefix}Control.groups.setCurrent('{GRP_ID}')" ondblclick="${infoPrefix}Control.groups.getInfo({})">{GRP_ID}</td>
|
|
|
|
<td onclick="action${infoPrefix}Control.groups.setCurrent('{GRP_ID}')" ondblclick="action${infoPrefix}Control.groups.getInfo({})">{REG_DT}</td>
|
|
|
|
<td onclick="${infoPrefix}Control.groups.setCurrent('{GRP_ID}')" ondblclick="${infoPrefix}Control.groups.getInfo({})">{GRP_NM}</td>
|
|
|
|
|
|
|
|
<td onclick="${infoPrefix}Control.groups.setCurrent('{GRP_ID}')" ondblclick="${infoPrefix}Control.groups.getInfo({})">{REG_DT}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound">
|
|
|
|
<template id="action${infoPrefix}NotFound">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="4" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="4" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<span id="${infoPrefix}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></span>
|
|
|
|
<label id="action${infoPrefix}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<ul id="${infoPrefix}Paging" class="pagination pagination-primary">
|
|
|
|
<ul id="action${infoPrefix}Paging" class="pagination pagination-primary">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="w-50 mx-3">
|
|
|
|
<div style="width:49%;">
|
|
|
|
<h5 class="mt-3">기능 URL</h5>
|
|
|
|
<h5 class="mt-3">기능 URL</h5>
|
|
|
|
<div class="d-flex flex-row justify-content-end p-3">
|
|
|
|
<div class="d-flex flex-row justify-content-end p-3">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<button id="btnAddActions" onclick="${infoPrefix}Control.addActions();" class="btn btn-primary">+ 추가</button>
|
|
|
|
<button id="btnAddActions" onclick="action${infoPrefix}Control.addActions();" class="btn btn-primary">+ 추가</button>
|
|
|
|
<button id="btnRemoveActions" onclick="removeActions();" class="btn btn-primary">- 제거</button>
|
|
|
|
<button id="btnRemoveActions" onclick="removeActions();" class="btn btn-primary">- 제거</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr><th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="text-align:center;"><input id="actionToggler" onchange="action${infoPrefix}Control.actions.select(this.checked);" type="checkbox" class="form-check-input"></th>
|
|
|
|
<th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" class="text-center">
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending" style="">기능 URL</th>
|
|
|
|
<input id="actionToggler" onchange="${infoPrefix}Control.actions.select(this.checked);" type="checkbox" class="form-check-input"></th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending" style="">등록일자</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending">기능 URL</th>
|
|
|
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending">등록일자</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="actionList">
|
|
|
|
<tbody id="actionList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="actionRow">
|
|
|
|
<template id="actionRow">
|
|
|
|
<tr data-key="{GRP_ID}-{ACTION}">
|
|
|
|
<tr data-key="{GRP_ID}-{ACTION}">
|
|
|
|
<td class="text-center">
|
|
|
|
<td style="text-align:center;"><input value="{GRP_ID}-{ACTION}" onchange="action${infoPrefix}Control.actions.select('{GRP_ID}-{ACTION}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<input value="{GRP_ID}-{ACTION}" onchange="${infoPrefix}Control.actions.select('{GRP_ID}-{ACTION}', this.checked);" type="checkbox" class="form-check-input">
|
|
|
|
<td onclick="action${infoPrefix}Control.actions.setCurrent('{GRP_ID}-{ACTION}')">{ACTION}</td>
|
|
|
|
</td>
|
|
|
|
<td onclick="action${infoPrefix}Control.actions.setCurrent('{GRP_ID}-{ACTION}">{REG_DT}</td>
|
|
|
|
<td onclick="${infoPrefix}Control.actions.setCurrent('{GRP_ID}-{ACTION}')">{ACTION}</td>
|
|
|
|
|
|
|
|
<td onclick="${infoPrefix}Control.actions.setCurrent('{GRP_ID}-{ACTION}">{REG_DT}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="actionNotFound">
|
|
|
|
<template id="actionNotFound">
|
|
|
@ -101,7 +85,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<span id="actionPagingInfo" class="dataTables_info" role="status" aria-live="polite"></span>
|
|
|
|
<label id="actionPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<ul id="actionPaging" class="pagination pagination-primary">
|
|
|
|
<ul id="actionPaging" class="pagination pagination-primary">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -109,37 +93,23 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--/ Page Body -->
|
|
|
|
<!--/ Page Body -->
|
|
|
|
|
|
|
|
|
|
|
|
<hr class="my-5" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- / Content -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Content wrapper -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script >
|
|
|
|
<script >
|
|
|
|
var ${infoPrefix}Control = new ActionGroupControl();
|
|
|
|
var action${infoPrefix}Control = new ActionGroupControl();
|
|
|
|
|
|
|
|
|
|
|
|
function search${infoPrefix}s() {
|
|
|
|
function searchaction${infoPrefix}s() {
|
|
|
|
${infoPrefix}Control.groups.query = {
|
|
|
|
action${infoPrefix}Control.groups.query = {
|
|
|
|
by:$("#by").val(),
|
|
|
|
by:$("#by").val(),
|
|
|
|
term:$("#term").val()
|
|
|
|
term:$("#term").val()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
${infoPrefix}Control.groups.load(1);
|
|
|
|
action${infoPrefix}Control.groups.load(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function remove${infoPrefix}s() {
|
|
|
|
function removeaction${infoPrefix}s() {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content:"선택한 ${prefixName} 정보를 제거하시겠습니까?",
|
|
|
|
content:"선택한 ${prefixName} 정보를 제거하시겠습니까?",
|
|
|
|
onOK:() => {
|
|
|
|
onOK:() => {
|
|
|
|
${infoPrefix}Control.groups.remove();
|
|
|
|
action${infoPrefix}Control.groups.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -148,57 +118,57 @@ function removeActions() {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content:"선택한 기능 URL을 삭제하시겠습니까?",
|
|
|
|
content:"선택한 기능 URL을 삭제하시겠습니까?",
|
|
|
|
onOK:() => {
|
|
|
|
onOK:() => {
|
|
|
|
${infoPrefix}Control.removeActions();
|
|
|
|
action${infoPrefix}Control.removeActions();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function render${infoPrefix}List() {
|
|
|
|
function renderaction${infoPrefix}List() {
|
|
|
|
let ${infoPrefix}List = ${infoPrefix}Control.groups.dataset;
|
|
|
|
let ${infoPrefix}List = action${infoPrefix}Control.groups.dataset;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
let empty = action${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ?
|
|
|
|
[document.getElementById("${infoPrefix}NotFound").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
[document.getElementById("action${infoPrefix}NotFound").innerHTML] : <%-- from template#action${infoPrefix}NotFound --%>
|
|
|
|
${infoPrefix}List.inStrings(document.getElementById("${infoPrefix}Row").innerHTML); <%-- from template#${infoPrefix}Row --%>
|
|
|
|
${infoPrefix}List.inStrings(document.getElementById("action${infoPrefix}Row").innerHTML); <%-- from template#action${infoPrefix}Row --%>
|
|
|
|
$("#${infoPrefix}List").html(trs.join());
|
|
|
|
$("#action${infoPrefix}List").html(trs.join());
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onGroupListChange = obj => {
|
|
|
|
action${infoPrefix}Control.onGroupListChange = obj => {
|
|
|
|
render${infoPrefix}List();
|
|
|
|
renderaction${infoPrefix}List();
|
|
|
|
|
|
|
|
|
|
|
|
$("#${infoPrefix}Paging").setPaging({
|
|
|
|
$("#action${infoPrefix}Paging").setPaging({
|
|
|
|
list:${infoPrefix}Control.groups.dataset,
|
|
|
|
list:action${infoPrefix}Control.groups.dataset,
|
|
|
|
prefix:${infoPrefix}Control.groups.prefix,
|
|
|
|
prefix:action${infoPrefix}Control.groups.prefix,
|
|
|
|
start:obj.${infoPrefix}Start,
|
|
|
|
start:obj.${infoPrefix}Start,
|
|
|
|
totalSize:obj.${infoPrefix}Total,
|
|
|
|
totalSize:obj.${infoPrefix}Total,
|
|
|
|
fetchSize:obj.${infoPrefix}Fetch,
|
|
|
|
fetchSize:obj.${infoPrefix}Fetch,
|
|
|
|
func:"${infoPrefix}Control.groups.load({index})"
|
|
|
|
func:"action${infoPrefix}Control.groups.load({index})"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onCurrentGroupChange = item => {
|
|
|
|
action${infoPrefix}Control.onCurrentGroupChange = item => {
|
|
|
|
$("#btnAddActions").prop("disabled", !item);
|
|
|
|
$("#btnAddActions").prop("disabled", !item);
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.GRP_ID;
|
|
|
|
let key = item.data.GRP_ID;
|
|
|
|
$("#${infoPrefix}List").setCurrentRow(key);
|
|
|
|
$("#action${infoPrefix}List").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onGroupSelect = selected => {
|
|
|
|
action${infoPrefix}Control.onGroupSelect = selected => {
|
|
|
|
let ${infoPrefix}List = ${infoPrefix}Control.groups.dataset;
|
|
|
|
let ${infoPrefix}List = action${infoPrefix}Control.groups.dataset;
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
$("#${infoPrefix}List input[type='checkbox']").each(function() {
|
|
|
|
$("#action${infoPrefix}List input[type='checkbox']").each(function() {
|
|
|
|
let checkbox = $(this);
|
|
|
|
let checkbox = $(this);
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnRemove${infoPrefix}s").prop("disabled", keys.length < 1);
|
|
|
|
$("#btnRemoveaction${infoPrefix}s").prop("disabled", keys.length < 1);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onActionListChange = obj => {
|
|
|
|
action${infoPrefix}Control.onActionListChange = obj => {
|
|
|
|
let ${infoPrefix}List = ${infoPrefix}Control.actions.dataset;
|
|
|
|
let ${infoPrefix}List = action${infoPrefix}Control.actions.dataset;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ?
|
|
|
@ -208,16 +178,16 @@ ${infoPrefix}Control.onActionListChange = obj => {
|
|
|
|
$("#actionToggler").prop("checked", false);
|
|
|
|
$("#actionToggler").prop("checked", false);
|
|
|
|
|
|
|
|
|
|
|
|
$("#actionPaging").setPaging({
|
|
|
|
$("#actionPaging").setPaging({
|
|
|
|
list:${infoPrefix}Control.actions.dataset,
|
|
|
|
list:action${infoPrefix}Control.actions.dataset,
|
|
|
|
prefix:${infoPrefix}Control.actions.prefix,
|
|
|
|
prefix:action${infoPrefix}Control.actions.prefix,
|
|
|
|
start:obj.actionStart,
|
|
|
|
start:obj.actionStart,
|
|
|
|
totalSize:obj.actionTotal,
|
|
|
|
totalSize:obj.actionTotal,
|
|
|
|
fetchSize:obj.actionFetch,
|
|
|
|
fetchSize:obj.actionFetch,
|
|
|
|
func:"${infoPrefix}Control.actions.load({index})"
|
|
|
|
func:"action${infoPrefix}Control.actions.load({index})"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onCurrentActionChange = item => {
|
|
|
|
action${infoPrefix}Control.onCurrentActionChange = item => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
let data = item.data;
|
|
|
|
let data = item.data;
|
|
|
@ -225,8 +195,8 @@ ${infoPrefix}Control.onCurrentActionChange = item => {
|
|
|
|
$("#actionList").setCurrentRow(key);
|
|
|
|
$("#actionList").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onActionSelect = selected => {
|
|
|
|
action${infoPrefix}Control.onActionSelect = selected => {
|
|
|
|
let ${infoPrefix}List = ${infoPrefix}Control.actions.dataset;
|
|
|
|
let ${infoPrefix}List = action${infoPrefix}Control.actions.dataset;
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
$("#actionList input[type='checkbox']").each(function() {
|
|
|
|
$("#actionList input[type='checkbox']").each(function() {
|
|
|
|
let checkbox = $(this);
|
|
|
|
let checkbox = $(this);
|
|
|
@ -236,15 +206,16 @@ ${infoPrefix}Control.onActionSelect = selected => {
|
|
|
|
$("#btnRemoveActions").prop("disabled", keys.length < 1);
|
|
|
|
$("#btnRemoveActions").prop("disabled", keys.length < 1);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$("#term").onEnterPress(search${infoPrefix}s);
|
|
|
|
$("#term").onEnterPress(searchaction${infoPrefix}s);
|
|
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
$(function(){
|
|
|
|
${onload}
|
|
|
|
${onload}
|
|
|
|
${infoPrefix}Control.groups.setData({
|
|
|
|
action${infoPrefix}Control.groups.setData({
|
|
|
|
${infoPrefix}List:${groupList},
|
|
|
|
${infoPrefix}List:${groupList},
|
|
|
|
${infoPrefix}Start:${groupStart},
|
|
|
|
${infoPrefix}Start:${groupStart},
|
|
|
|
${infoPrefix}Fetch:${groupFetch},
|
|
|
|
${infoPrefix}Fetch:${groupFetch},
|
|
|
|
${infoPrefix}Total:${groupTotal}
|
|
|
|
${infoPrefix}Total:${groupTotal}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//# sourceURL=actionGroup-main.jsp
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|