Files
wace_plm/WebContent/WEB-INF/view/admin/auth/authAddPopUpRight.jsp
chpark da06c4684c Initial commit: WACE PLM with database initialization features
- Add Docker Compose configurations for dev, prod, and standalone environments
- Add database initialization scripts (init-db.sh, init-db-docker.sh)
- Add enhanced start-docker-linux.sh with DB init support
- Add comprehensive database initialization guide
- Support for automatic dbexport.pgsql import on first run
- Include safety checks for production environment
2025-08-29 15:46:08 +09:00

143 lines
4.2 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.pms.common.utils.*"%>
<%@ page import="java.util.*" %>
<%@include file= "/init.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=Constants.SYSTEM_NAME%></title>
<script>
$(function(){
$("input[type=text]").keyup(function(e){
if(e.keyCode == 13){
searchUser();
}
});
//체크박스 전체선택/전체해제
$("#allCheck").click(function(){
if($("#allCheck").prop("checked")) {
$("input[type=checkbox]").prop("checked",true);
} else {
$("input[type=checkbox]").prop("checked",false);
}
});
// 부분체크해제
$("input[name=checkUser]").click(function(){
if($("#allCheck").is(":checked")){
$("#allCheck").prop("checked",false);
}
});
});
</script>
<script type="text/javascript">
function searchUser(){
var userName = $("#userName").val();
var deptName = $("#deptName").val();
var userTypeName = $("#userTypeName").val();
var targetObjId = $("#groupObjid").val();
/* if(userTypeName == "" && userName == "" && deptName == ""){
Swal.fire("입력된 내용이 없습니다.");
return false;
}else{ */
$.ajax({
url:"/admin/getAuthNotInUserList.do",
type:"POST",
data:{"userTypeName":userTypeName, "userName":userName,"deptName":deptName,"isJson":true,"targetObjId":targetObjId},
dataType:"json",
async:false,
success:function(data){
$("#searchUserList").empty();
if(data != null && data.length > 0){
$("#searchUserDefaultRow").hide();
for(var i=0;i<data.length;i++){
var appendText = "<tr>";
appendText+= " <td>";
appendText+= " <input type='checkbox' name='checkUser' value='"+data[i].USER_ID+"'>";
appendText+= " </td>";
appendText+= " <td>"+fnc_checkNull(data[i].USER_TYPE_NAME)+"</td>";
appendText+= " <td>"+fnc_checkNull(data[i].DEPT_NAME)+"</td>";
appendText+= " <td>"+fnc_checkNull(data[i].USER_NAME)+"</td>";
appendText+= "</tr>";
$("#searchUserList").append(appendText);
}
}else{
$("#searchUserDefaultRow").show();
$("#searchUserList").empty();
}
},
error: function(jqxhr, status, error){
}
});
}
//}
//권한에 추가할 인원 조회
/* function searchUserInfo(){
var searchUserForm = document.searchUserForm;
var leftForm = parent.authAddPopUpLeft.authAddLeftForm;
searchUserForm.searchKey.value="true";
searchUserForm.groupObjid.value=leftForm.authGroupObjid.value;
searchUserForm.action="/admin/authAddPopUpRight.do";
searchUserForm.submit();
} */
</script>
</head>
<body>
<form name="searchUserForm" id="searchUserForm" action="" method="post">
<input type="hidden" name="searchKey" value="">
<input type="hidden" name="groupName" value="">
<input type="hidden" name="groupObjid" id="groupObjid" value="${param.authGroupObjid}">
<input type="hidden" name="groupCode" value="">
<section id="commonSection">
<div id="autho2TableWrap">
<div class="searchIdName">
<label for="" class="label">소속</label>
<input type="text" name="userTypeName" id="userTypeName" style="width:15%;">
<label for="" class="label">팀명</label>
<input type="text" name="deptName" id="deptName" style="width:15%;">
<label for="" class="label">이름</label>
<input type="text" name="userName" id="userName" style="width:15%;">
</div>
<input type="button" value="조회" class="btns autoBtn" onclick="searchUser();">
<table id="autho1Table">
<colgroup>
<col width="6%" />
<col width="31%" />
<col width="31%" />
<col width="32%" />
</colgroup>
<tr id="thead">
<td><input type="checkbox" id="allCheck" class="checkBox"></td>
<td>소속</td>
<td>팀명</td>
<td>이름</td>
</tr>
</table>
<div class="fs_table">
<table class="auto_management_data_table">
<colgroup>
<col width="6%" />
<col width="31%" />
<col width="31%" />
<col width="32%" />
</colgroup>
<tr id="searchUserDefaultRow">
<td align="center" colspan="4">조회된 정보가 없습니다.</td>
</tr>
<tbody id="searchUserList"></tbody>
</table>
</div>
</div>
</section>
</form>
</body>
</html>