363 lines
9.4 KiB
Plaintext
363 lines
9.4 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>
|
|
var parentType = fnc_checkNull("${param.parentType}");
|
|
var targetObjId = fnc_checkNull("${param.objId}");
|
|
|
|
$(document).ready(function(){
|
|
//targetobjid setting
|
|
$("#targetObjId").val(targetObjId);
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#btnSearch").trigger("click");
|
|
}
|
|
});
|
|
|
|
$("#allChk").click(function(){
|
|
var chked = $(this).prop("checked");
|
|
if(chked){
|
|
$("input[name=chk]").prop("checked", true);
|
|
}else{
|
|
$("input[name=chk]").prop("checked", false);
|
|
}
|
|
});
|
|
|
|
$("#btnSearch").click(function(){
|
|
var deptName = $("#search_deptName").val();
|
|
var userName = $("#search_userName").val();
|
|
var userTypeName = $("#search_userTypeName").val();
|
|
|
|
$.ajax({
|
|
url:"/common/searchUserList.do",
|
|
type:"POST",
|
|
data:{"isJson":true, "search_deptName":deptName, "search_userName":userName, "search_userTypeName":userTypeName},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<tr>";
|
|
appendCode += " <td><input type='checkbox' name='chk' value='"+data[i].USER_ID+":"+data[i].EMAIL+"'></td>";
|
|
appendCode += " <td>"+data[i].USER_TYPE_NAME+"</td>";
|
|
appendCode += " <td>"+data[i].DEPT_NAME+"</td>";
|
|
appendCode += " <td>"+data[i].USER_NAME+"</td>";
|
|
appendCode += "</tr>";
|
|
});
|
|
|
|
$("#dataList").children().remove();
|
|
$("#dataList").append(appendCode);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#btnSendMail").click(function(){
|
|
var chk = $("input[type=checkbox]:checked");
|
|
if(chk.length == 0){
|
|
Swal.fire("선택된 대상이 없습니다.");
|
|
}else{
|
|
if(confirm("메일을 발송하시겠습니까?")){
|
|
fn_sendMail();
|
|
}
|
|
}
|
|
});
|
|
|
|
$("#search_userName").focus();
|
|
});
|
|
</script>
|
|
<script>
|
|
//메일발송
|
|
function fn_sendMail(){
|
|
if(parentType == "projectConcept"){
|
|
projectConcept();
|
|
}else if(parentType == "projectConceptQNA"){
|
|
projectConceptQNA();
|
|
}else if(parentType == "structureReviewReportSuggestComplete"){
|
|
structureReviewReport_suggestComplete();
|
|
}else if(parentType == "problemRequest"){
|
|
problem_requestComplete();
|
|
}else if(parentType == "problemResponse"){
|
|
problem_responseComplete();
|
|
|
|
/* 개발마스터 저장,수정 시 메일 발송 */
|
|
}else if(parentType == "devMaster"){
|
|
devMaster_changeInfo();
|
|
|
|
/* 개발마스터 EO 적용 수정/등록 메일 발송 */
|
|
}else if(parentType == "devMasterApplyEO"){
|
|
devMasterApplyEO_changeInfo();
|
|
|
|
/* 프로젝트 WBS 수정/저장 */
|
|
}else if(parentType == "project"){
|
|
projectChangeInfo();
|
|
}
|
|
}
|
|
|
|
//수주활동
|
|
function projectConcept(){
|
|
$.ajax({
|
|
url:"/projectConcept/sendMailProjectConceptInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"text",
|
|
success:function(data){
|
|
Swal.fire("메일전송 완료");
|
|
opener.fn_search();
|
|
self.close(0);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//수주활동
|
|
function projectConceptQNA(){
|
|
$.ajax({
|
|
url:"/projectConcept/sendMailProjectConceptQNAInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"text",
|
|
success:function(data){
|
|
Swal.fire("메일전송 완료");
|
|
opener.fn_search();
|
|
self.close(0);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//구조검토제안서 제안완료메일
|
|
function structureReviewReport_suggestComplete(){
|
|
$.ajax({
|
|
url:"/structureReviewReport/sendSuggestCompleteMail.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
opener.fn_search();
|
|
self.close(0);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//통합문제점 제기완료메일
|
|
function problem_requestComplete(){
|
|
var distributeDate = "${param.distributeDate}";
|
|
$.ajax({
|
|
url:"/problem/sendProblemRequestCompleteMail.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true"){
|
|
if(distributeDate == ""){
|
|
opener.fn_distribute(targetObjId);
|
|
}else{
|
|
opener.fn_search();
|
|
}
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//통합문제점 조치완료메일
|
|
function problem_responseComplete(){
|
|
var resDistributeDate = "${param.resDistributeDate}";
|
|
$.ajax({
|
|
url:"/problem/sendProblemResponseCompleteMail.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true"){
|
|
if(resDistributeDate == ""){
|
|
opener.fn_distribute(targetObjId);
|
|
}else{
|
|
opener.fn_search();
|
|
}
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//개발마스터 저장,수정 메일
|
|
function devMaster_changeInfo(){
|
|
$.ajax({
|
|
url:"/devInfoMng/devMaster/sendDevMasterInfoSaveMail.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true"){
|
|
opener.location.reload();
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//개발마스터 저장,수정 메일
|
|
function devMasterApplyEO_changeInfo(){
|
|
$.ajax({
|
|
url:"/devInfoMng/devMaster/sendDevMasterApplyEOInfoSaveMail.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true"){
|
|
opener.location.reload();
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
/* 프로젝트의 WBS 수정/저장 시 메일 배포 */
|
|
function projectChangeInfo(){
|
|
$.ajax({
|
|
url:"",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true"){
|
|
opener.location.reload();
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="targetObjId" id="targetObjId" value="" />
|
|
<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"> 메일 수신자 조회</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="11%"/>
|
|
<col width="20%"/>
|
|
<col width="11%"/>
|
|
<col width="20%"/>
|
|
<col width="11%"/>
|
|
<col width="20%"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">사업장</label>
|
|
</td>
|
|
<td colspan="">
|
|
<select name="search_userTypeName" id="search_userTypeName">
|
|
<option value="">선택</option>
|
|
<c:forEach var="i" items="${LOCATION_LIST}" varStatus="status">
|
|
<option value="${i.USER_TYPE_NAME}">${i.USER_TYPE_NAME}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">팀명</label>
|
|
</td>
|
|
<td colspan="">
|
|
<input type="text" name="search_deptName" id="search_deptName" class="textbox" />
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">이름</label>
|
|
</td>
|
|
<td colspan="">
|
|
<input type="text" name="search_userName" id="search_userName" class="textbox" />
|
|
</td>
|
|
<td>
|
|
<input type="button" value="조회" id="btnSearch" class="blue_btn">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="7">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="project_form_in_table" style="width:100%;">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="30%"/>
|
|
<col width="*"/>
|
|
<col width="20%"/>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td><input type="checkbox" name="allChk" id="allChk"></td>
|
|
<td>사업장</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="10%"/>
|
|
<col width="30%"/>
|
|
<col width="*"/>
|
|
<col width="20%"/>
|
|
</colgroup>
|
|
<tbody id="dataList">
|
|
<tr>
|
|
<td colspan="4" 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="btnSendMail" class="plm_btns">
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |