account read update 관련

This commit is contained in:
Suh
2024-01-12 12:37:56 +09:00
parent 9249fb4b50
commit 96b9dbcd8a
14 changed files with 522 additions and 56 deletions

View File

@@ -1,7 +1,8 @@
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script>
function onSearchAuth(){
function onSearch(){
//
//
}
@@ -25,7 +26,7 @@
<option value="30">30</option>
</select>
<input id="search_auth_input" type="text" class="w-30 d-inline form-control" placeholder="검색">
<button id="search_auth_btn" type="button" class="btn btn-primary" onclick="onSearchAuth()">검색</button>
<button id="search_auth_btn" type="button" class="btn btn-primary" onclick="onSearch()">검색</button>
</div>
</div>
<div class="col-12">
@@ -34,14 +35,12 @@
<tr><th>권한명</th><th></th></tr>
</thead>
<tbody>
<c:forEach items="${list }" var="dto" varStatus="status">
<tr>
<td>관리자</td>
<td><button data-tid="1234" data-tname="관리자" class="btn btn-primary" onclick="onSelectAuth(this)">선택</button></td>
</tr>
<tr>
<td>사원</td>
<td><button data-tid="5678"data-tname="사원" class="btn btn-primary" onclick="onSelectAuth(this)">선택</button></td>
<td>${dto.name}</td>
<td><button data-tid="${dto.id}" data-tname="${dto.name}" class="btn btn-primary" onclick="onSelectAuth(this)">선택</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>

View File

@@ -0,0 +1,48 @@
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script>
function onSearch(){
//
//
}
function onSelectDept(tag){
const $tag = $(tag);
const tid = $tag.data('tid');
const name = $tag.data('tname');
$("#account_dept_name").val(name);
$("#departmentId").val(tid);
hideSearchModal();
}
</script>
<div class="container">
<div class="row">
<div class="col-12">
<div id="div_auth_search" class="text-end">
<select name="search_select" class="form-select d-inline w-10">
<option selected value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
</select>
<input id="search_auth_input" type="text" class="w-30 d-inline form-control" placeholder="검색">
<button id="search_auth_btn" type="button" class="btn btn-primary" onclick="onSearch()">검색</button>
</div>
</div>
<div class="col-12">
<table class="table">
<thead class="table-dark">
<tr><th>부서 명</th><th></th></tr>
</thead>
<tbody>
<c:forEach items="${list }" var="dto" varStatus="status">
<tr>
<td>${dto.name}</td>
<td><button data-tid="${dto.id}" data-tname="${dto.name}" class="btn btn-primary" onclick="onSelectDept(this)">선택</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>

View File

@@ -0,0 +1,47 @@
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script>
function onSearchAuth(){
//
}
function onSelectPos(tag){
const $tag = $(tag);
const tid = $tag.data('tid');
const name = $tag.data('tname');
$("#account_pos_name").val(name);
$("#positionId").val(tid);
hideSearchModal();
}
</script>
<div class="container">
<div class="row">
<div class="col-12">
<div id="div_auth_search" class="text-end">
<select name="search_select" class="form-select d-inline w-10">
<option selected value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
</select>
<input id="search_auth_input" type="text" class="w-30 d-inline form-control" placeholder="검색">
<button id="search_auth_btn" type="button" class="btn btn-primary" onclick="onSearchAuth()">검색</button>
</div>
</div>
<div class="col-12">
<table class="table">
<thead class="table-dark">
<tr><th>권한명</th><th></th></tr>
</thead>
<tbody>
<c:forEach items="${list }" var="dto" varStatus="status">
<tr>
<td>${dto.name}</td>
<td><button data-tid="${dto.id}" data-tname="${dto.name}" class="btn btn-primary" onclick="onSelectPos(this)">선택</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>