Files
wace_plm/WebContent/WEB-INF/view/projectConcept/searchDeptPopup.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

187 lines
5.1 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>
</head>
<script>
$(document).ready(function(){
$("#btnClose").click(function(){
self.close(0);
});
$(".btnRegist").click(function(){
window.open("/projectConcept/projectConceptSecondFormPopup.do", "", "width=660, height=610");
});
$("#conceptItemRegist").click(function(){
window.open("/projectConcept/projectConceptItemFormPopup.do", "", "width=705, height=785");
});
$("input[type=text]").keyup(function(e){
if(e.keyCode == 13){
fn_search();
}
});
//부서조회
$("#btnSearch").click(function(){
fn_search();
});
//저장
$("#btnSave").click(function(){
if(confirm("저장하시겠습니까?")){
fn_save();
}
});
//전체선택
$("#allChk").click(function(){
if($(this).prop("checked")){
$("input[name=chk]").prop("checked", true);
}else{
$("input[name=chk]").prop("checked", false);
}
});
});
</script>
<script>
//부서등록
function fn_save(){
$.ajax({
url:"/projectConcept/saveProjectConceptProductDeptInfo.do",
type:"POST",
data:$("#searchDeptForm").serialize(),
dataType:"json",
success:function(data){
var cnt = data.cnt;
Swal.fire(cnt+"건이 추가되었습니다.");
opener.fn_refreshDeptList();
self.close(0);
},
error: function(jqxhr, status, error){
}
});
};
function fn_search(){
var locationName = $("#search_locationName").val();
var deptName = $("#search_deptName").val();
$.ajax({
url:"/projectConcept/searchDeptList.do",
type:"POST",
data:{"search_locationName":locationName, "search_deptName":deptName},
dataType:"json",
success:function(data){
var appendCode = "";
$.each(data, function(i){
appendCode += "<tr>";
appendCode += "<td><input type='checkbox' name='chk' value='"+data[i].dept_code+"'></td>";
appendCode += "<td>"+data[i].location_name+"</td>";
appendCode += "<td>"+data[i].dept_name+"</td>";
appendCode += "</tr>";
});
//checkall disable
$("#allChk").prop("checked", false);
//기존 row 삭제
$("#dataList").children().remove();
$("#dataList").append(appendCode);
},
error: function(jqxhr, status, error){
}
});
}
</script>
<body>
<form name="searchDeptForm" id="searchDeptForm" action="" method="post">
<input type="hidden" name="targetObjId" id="targetObjId" value="${param.targetObjId}" />
<section class="business_staff_popup_min_width">
<div class="plm_menu_name">
<h2>
<span>팀 조회</span>
</h2>
</div>
<div id="businessPopupFormWrap">
<!-- <div class="form_popup_title">&nbsp;&nbsp;&nbsp;팀 조회</div> -->
<table class="pmsPopupForm">
<colgroup>
<col width="13%"/>
<col width="*"/>
<col width="15%"/>
<col width="*"/>
<col width="13%"/>
</colgroup>
<tr>
<td class="input_title">
<label for="">소속</label>
</td>
<td colspan="">
<input type="text" name="search_locationName" id="search_locationName" class="textbox" />
</td>
<td class="input_title">
<label for="">팀명</label>
</td>
<td colspan="">
<input type="text" name="search_deptName" id="search_deptName" class="textbox" />
</td>
<td>
<input type="button" value="조회" class="blue_btn" id="btnSearch">
</td>
</tr>
<tr>
<td colspan="5">
<div style="overflow-y:scroll;">
<table class="project_form_in_table" style="width:100%;">
<colgroup>
<col width="6%"/>
<col width="47%"/>
<col width="47%"/>
</colgroup>
<thead>
<tr>
<td>
<input type="checkbox" name="allChk" id="allChk"/>
</td>
<td>소속</td>
<td>팀명</td>
</tr>
</thead>
</table>
</div>
<div class="in_table_scroll_wrap"style="width:100%;">
<table class="plm_table">
<colgroup>
<col width="6%"/>
<col width="47%"/>
<col width="47%"/>
</colgroup>
<tbody id="dataList">
<tr>
<td colspan="3" align="center">소속 혹은 부서명을 통해 조회해 주시기 바랍니다.</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
<div class="btn_wrap">
<div class="plm_btn_wrap_center">
<input type="button" value="저장" id="btnSave" class="plm_btns">
<input type="button" value="닫기" id="btnClose" class="plm_btns">
</div>
</div>
</div>
</section>
</form>
</body>
</html>