사용자관리 메인화면 접속구분(행정망,인터넷망) 검색조건 추가

main
이범준 4 months ago
parent 6907774c34
commit b1ec36b9f5

@ -47,6 +47,8 @@ public class UserController extends cokr.xit.base.user.web.UserController<FimsUs
@Override @Override
public ModelAndView main() { public ModelAndView main() {
ModelAndView mav = super.main(); ModelAndView mav = super.main();
Map<String, List<CommonCode>> commonCodes = codeService.getCodesOf("CMN009");
mav.addObject("CMN009List", commonCodes.get("CMN009"));
return mav; return mav;
} }

@ -90,8 +90,15 @@ SELECT A.USER_ID
</otherwise> </otherwise>
</choose> </choose>
</if> </if>
<if test="userIDs != null">USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if> <if test="userIDs != null">
<if test="@org.egovframe.rte.fdl.string.EgovStringUtil@null2void(status) != ''">AND STTS = #{status}</if> USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
</if>
<if test="@org.egovframe.rte.fdl.string.EgovStringUtil@null2void(status) != ''">
AND STTS = #{status}
</if>
<if test="@org.egovframe.rte.fdl.string.EgovStringUtil@null2void(type) != ''">
AND CNTN_SE_CD = #{type}
</if>
</where> </where>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
<include refid="utility.paging-suffix" /> <include refid="utility.paging-suffix" />

@ -73,7 +73,9 @@
</ul> </ul>
<div class="tab-content" style="padding:.6em 0;" id="${infoPrefix}RightInclude"> <div class="tab-content" style="padding:.6em 0;" id="${infoPrefix}RightInclude">
<div class="tab-pane fade show active" id="navs-top-users" role="tabpanel"> <div class="tab-pane fade show active" id="navs-top-users" role="tabpanel">
<jsp:include page="user-list.jsp" /> <div class="ox-scroll">
<jsp:include page="user-list.jsp" />
</div>
</div> </div>
<div class="tab-pane fade" id="navs-top-actions" role="tabpanel"> <div class="tab-pane fade" id="navs-top-actions" role="tabpanel">
<jsp:include page="actionGroup-list.jsp" /> <jsp:include page="actionGroup-list.jsp" />

@ -1,51 +1,52 @@
<%@ 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"%>
<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="btnAddAuthUsers" onclick="${infoPrefix}Control.addUsers();" class="btn btn-primary">+ 추가</button> <button id="btnAddAuthUsers" onclick="${infoPrefix}Control.addUsers();" class="btn btn-primary">+ 추가</button>
<button id="btnRemoveAuthUsers" onclick="removeAuthUsers();" class="btn btn-primary">- 제거</button> <button id="btnRemoveAuthUsers" onclick="removeAuthUsers();" 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><th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="text-align:center;"><input id="authUserToggler" onchange="${infoPrefix}Control.users.select(this.checked);" type="checkbox" class="form-check-input"></th> <tr>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending">시군구명</th> <th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="text-align:center;"><input id="authUserToggler" onchange="${infoPrefix}Control.users.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="Email: activate to sort column ascending" >기관명</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="Email: activate to sort column ascending" >부서명</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="Email: activate to sort column ascending" >사용자 계정</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="Email: activate to sort column ascending" >사용자 이름</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> <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending" >사용자 이름</th>
</tr> <th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending" >등록일자</th>
</thead> </tr>
<tbody id="authUserList"> </thead>
</tbody> <tbody id="authUserList">
<template id="authUserRow"> </tbody>
<tr data-key="{AUTH_ID}-{USER_ID}"> <template id="authUserRow">
<td style="text-align:center;"><input value="{AUTH_ID}-{USER_ID}" onchange="${infoPrefix}Control.users.select('{AUTH_ID}-{USER_ID}', this.checked);" type="checkbox" class="form-check-input"></td> <tr data-key="{AUTH_ID}-{USER_ID}">
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{SGG_NM}</td> <td style="text-align:center;"><input value="{AUTH_ID}-{USER_ID}" onchange="${infoPrefix}Control.users.select('{AUTH_ID}-{USER_ID}', this.checked);" type="checkbox" class="form-check-input"></td>
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{INST_NM}</td> <td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{SGG_NM}</td>
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{DEPT_NM}</td> <td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{INST_NM}</td>
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{USER_ACNT}</td> <td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{DEPT_NM}</td>
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{USER_NM}</td> <td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{USER_ACNT}</td>
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}">{REG_DT}</td> <td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{USER_NM}</td>
</tr> <td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}">{REG_DT}</td>
</template> </tr>
<template id="authUserNotFound"> </template>
<tr class="odd"> <template id="authUserNotFound">
<td valign="top" colspan="7" class="dataTables_empty text-center">사용자 정보를 찾지 못했습니다.</td> <tr class="odd">
</tr> <td valign="top" colspan="7" class="dataTables_empty text-center">사용자 정보를 찾지 못했습니다.</td>
</template> </tr>
<template id="implicitActions"> </template>
<tr class="odd"> <template id="implicitActions">
<td valign="top" colspan="7" class="dataTables_empty text-center">{authority}는 사용자를 지정하지 않습니다.</td> <tr class="odd">
</tr> <td valign="top" colspan="7" class="dataTables_empty text-center">{authority}는 사용자를 지정하지 않습니다.</td>
</template> </tr>
</table> </template>
<div class="d-flex flex-row p-3 justify-content-between"> </table>
<label id="authUserPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label> <div class="d-flex flex-row p-3 justify-content-between">
<ul id="authUserPaging" class="pagination pagination-primary"> <label id="authUserPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
</ul> <ul id="authUserPaging" class="pagination pagination-primary">
</div> </ul>
</div>
<c:set var="userFunc" scope="request"> <c:set var="userFunc" scope="request">
function removeAuthUsers() { function removeAuthUsers() {
dialog.alert({ dialog.alert({

@ -6,8 +6,8 @@
<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-between p-3"> <div class="d-flex flex-row justify-content-between p-3">
<div class="d-flex" id="${infoPrefix}-query"> <div class="d-flex flex-grow-1 me-5" id="${infoPrefix}-query">
<div class="input-group me-3"> <div class="input-group me-3 w-px-400">
<select id="${infoPrefix}by" name="by" onchange="document.getElementById('${infoPrefix}term').focus();" aria-controls="DataTables_Table_0" class="form-select"> <select id="${infoPrefix}by" name="by" onchange="document.getElementById('${infoPrefix}term').focus();" aria-controls="DataTables_Table_0" class="form-select">
<option value="${infoPrefix}Name">이름</option> <option value="${infoPrefix}Name">이름</option>
<option value="${infoPrefix}Account">계정</option> <option value="${infoPrefix}Account">계정</option>
@ -15,13 +15,20 @@
<input id="${infoPrefix}term" name="term" autofocus type="text" placeholder="조회 조건을 입력하십시오." class="form-control"> <input id="${infoPrefix}term" name="term" autofocus type="text" placeholder="조회 조건을 입력하십시오." class="form-control">
</div> </div>
<label for="${infoPrefix}status" class="form-label fw-bold w-px-120 d-flex flex-wrap align-content-center justify-content-center">상태</label> <label for="${infoPrefix}status" class="form-label fw-bold px-3 d-flex flex-wrap align-content-center justify-content-center">상태</label>
<select id="${infoPrefix}status" name="status" class="form-select"> <select id="${infoPrefix}status" name="status" class="form-select">
<option value="">전체</option> <option value="">전체</option>
<option value="A">신청</option> <option value="A">신청</option>
<option value="P">승인</option> <option value="P">승인</option>
<option value="D">삭제</option> <option value="D">삭제</option>
</select> </select>
<label for="${infoPrefix}type" class="form-label fw-bold px-3 d-flex flex-wrap align-content-center justify-content-center">접속구분</label>
<select id="${infoPrefix}type" name="type" class="form-select">
<option value="">전체</option>
<c:forEach items="${CMN009List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div> </div>
<div> <div>
<button onclick="search${infoPrefix}s();" class="btn btn-primary">찾기</button> <button onclick="search${infoPrefix}s();" class="btn btn-primary">찾기</button>
@ -83,7 +90,8 @@ function search${infoPrefix}s() {
${infoPrefix}Control.query = { ${infoPrefix}Control.query = {
by: $("#${infoPrefix}-query [name='by']").val(), by: $("#${infoPrefix}-query [name='by']").val(),
term: $("#${infoPrefix}-query [name='term']").val(), term: $("#${infoPrefix}-query [name='term']").val(),
status: $("#${infoPrefix}-query [name='status']").val() status: $("#${infoPrefix}-query [name='status']").val(),
type: $("#${infoPrefix}-query [name='type']").val(),
}; };
if(${infoPrefix}Control.query.by == "userAccount"){ if(${infoPrefix}Control.query.by == "userAccount"){

Loading…
Cancel
Save