158 lines
4.6 KiB
Plaintext
158 lines
4.6 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);
|
|
});
|
|
|
|
$("input[type=text]").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fn_searchTaskDept();
|
|
}
|
|
});
|
|
|
|
//부서조회
|
|
$("#btnSearch").click(function(){
|
|
fn_searchTaskDept();
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<script>
|
|
function fn_searchTaskDept(){
|
|
var locationName = $("#search_locationName").val();
|
|
var deptName = $("#search_deptName").val();
|
|
|
|
$.ajax({
|
|
url:"/common/getDeptList.do",
|
|
type:"POST",
|
|
data:{"search_locationName":locationName, "search_deptName":deptName, "isJson":true},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<tr>";
|
|
appendCode += "<input type='hidden' name='"+data[i].DEPT_CODE+"_deptName' value='"+data[i].DEPT_NAME+"'>";
|
|
appendCode += "<td><input type='radio' name='deptRadio' value='"+data[i].DEPT_CODE+"' data-DEPT_NAME='"+data[i].DEPT_NAME+"'></td>";
|
|
appendCode += "<td>"+data[i].LOCATION_NAME+"</td>";
|
|
appendCode += "<td>"+data[i].DEPT_NAME+"</td>";
|
|
appendCode += "</tr>";
|
|
});
|
|
|
|
//기존 row 삭제
|
|
$("#dataList").children().remove();
|
|
|
|
$("#dataList").append(appendCode);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//조회된 부서를 저장/지정한다.
|
|
function fn_save(){
|
|
var deptObj = $("input:radio[name=deptRadio]:checked");
|
|
|
|
var deptId = deptObj.val();
|
|
var deptName = deptObj.attr("data-DEPT_NAME");
|
|
|
|
console.log("deptId:"+deptId);
|
|
console.log("deptName:"+deptName);
|
|
|
|
if(confirm("지정된 부서로 지정하시겠습니까?")){
|
|
top.opener.fn_searchDeptCallback(fnc_checkNull(deptName),fnc_checkNull(deptId));
|
|
self.close();
|
|
}
|
|
}
|
|
|
|
</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"> ${param.title}</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="13%"/>
|
|
<col width="*"/>
|
|
<col width="13%"/>
|
|
<col width="*"/>
|
|
<col width="40px;"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">소속</label>
|
|
</td>
|
|
<td colspan="">
|
|
<input type="text" style="width:100%;" name="search_locationName" id="search_locationName" class="textbox"/>
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">팀명</label>
|
|
</td>
|
|
<td colspan="">
|
|
<input type="text" style="width:100%;" 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">
|
|
<table class="project_form_in_table">
|
|
<colgroup>
|
|
<col width="6%"/>
|
|
<col width="47%"/>
|
|
<col width="47%"/>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td></td>
|
|
<td>소속</td>
|
|
<td>팀명</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div class="in_table_scroll_wrap">
|
|
<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" onclick="fn_save();">
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |