272 lines
9.4 KiB
Plaintext
272 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"%>
|
|
<%
|
|
Map info = (HashMap)(request.getAttribute("info"));
|
|
boolean isModify = true;
|
|
if(info!=null &&
|
|
( CommonUtils.checkNull(info.get("APPR_STATUS_NAME")).equals( "결재중" )
|
|
||CommonUtils.checkNull(info.get("APPR_STATUS_NAME")).equals( "결재완료" )
|
|
)
|
|
){
|
|
isModify = false;
|
|
}
|
|
%>
|
|
<c:set var="isModify" value="<%= isModify %>"/>
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
|
fn_reqFileCallback();
|
|
fn_resFileCallback();
|
|
});
|
|
|
|
function save(){
|
|
if(confirm("저장하시겠습니까?")){
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/notice/saveNotice.do",
|
|
data:$("#form1").serialize(),
|
|
dataType:"JSON",
|
|
async:false,
|
|
error: function(jqxhr, status, error){
|
|
},
|
|
success: function(result){
|
|
Swal.fire(result.message);
|
|
opener.fn_search();
|
|
self.close();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function fn_reqFileCallback(){
|
|
fn_fileCallback('req',"${REQUEST_ATTACH_CODE}");
|
|
}
|
|
|
|
function fn_resFileCallback(){
|
|
fn_fileCallback('res',"${RESPONSE_ATTACH_CODE}");
|
|
}
|
|
|
|
function fn_fileCallback(type,docType){
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${boardInfo.OBJID}", "docType":docType},
|
|
dataType:"json",
|
|
async:true,
|
|
success:function(data){
|
|
|
|
if(0 < data.length){
|
|
//파일드롭다운 영역 hide
|
|
//첨부파일 목록 영역 show
|
|
$("#"+type+"UploadedFileAreaDefault").hide();
|
|
$("#"+type+"AttachFileList").show();
|
|
$("#"+type+"UploadedFileArea").empty();
|
|
|
|
$.each(data, function(i){
|
|
|
|
var appendText = "";
|
|
appendText+= "<tr>";
|
|
appendText+= " <td><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\")'>"+data[i].REAL_FILE_NAME+"</a></td>";
|
|
appendText+= "</tr>";
|
|
|
|
$("#"+type+"UploadedFileArea").append(appendText);
|
|
});
|
|
}else{
|
|
$("#"+type+"UploadedFileAreaDefault").show();
|
|
$("#"+type+"UploadedFileArea").empty();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body class="backcolor_light_blue">
|
|
<form name="form1" id="form1" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${boardInfo.OBJID}">
|
|
<input type="hidden" name="systemType" id="systemType" value="${empty boardInfo.SYSTEM_TYPE? systemType:boardInfo.SYSTEM_TYPE}">
|
|
<input type="hidden" name="boardType" id="boardType" value="notice">
|
|
<input type="hidden" name="actionType" id="actionType" value="${param.actionType}">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>Q&A</span>
|
|
<span style="padding-left:668px">조치내역</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap" >
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="30%">
|
|
<col width="10%">
|
|
<col width="30%">
|
|
<col width="10%">
|
|
<col width="20%">
|
|
<col width="10%">
|
|
<col width="20%">
|
|
<col width="10%">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<tr>
|
|
<tr>
|
|
<td class="input_title"><label for="" class="">작성자</label></td>
|
|
<td>
|
|
<p>${boardInfo.QNA_NO}.${boardInfo.COMPANYNAME_NAME} - ${boardInfo.USERDEPTNAME} ${boardInfo.USERNAME}</p>
|
|
<input type="hidden" name="qnaNo" id="qnaNo" value="${boardInfo.QNA_NO}">
|
|
<input type="hidden" name="companyName" id="companyName" value="${boardInfo.COMPANYNAME_NAME}">
|
|
<input type="hidden" name="userDeptName" id="userDeptName" value="${boardInfo.USERDEPTNAME}">
|
|
<input type="hidden" name="userName" id="userName" value="${boardInfo.USERNAME}">
|
|
</td>
|
|
<td class="input_title"><label for="" class="">문의사항</label></td>
|
|
<td>
|
|
<p>${boardInfo.REQ_CATEGORY}</p>
|
|
<input type="hidden" name="reqCategory" id="reqCategory" style="width:100%" value="${boardInfo.REQ_CATEGORY}">
|
|
</td>
|
|
<td class="input_title" ><label for="" class="">조치종류</label></td>
|
|
<td colspan="">
|
|
<p>${boardInfo.RES_CATEGORY}</p>
|
|
<input type="hidden" name="systemType" id="systemType" style="width:100%" value="${boardInfo.RES_CATEGORY}">
|
|
</td>
|
|
<td class="input_title" ><label for="">조치예정일</label></td>
|
|
<td colspan="">
|
|
<input type="text" name="PLAN_DATE" id="PLAN_DATE" class="date_icon" placeholder="" value="${boardInfo.PLAN_DATE}">
|
|
</td>
|
|
<td class="input_title" ><label for="">조치완료일</label></td>
|
|
<td colspan="">
|
|
<input type="text" name="ACT_DATE" id="ACT_DATE" class="date_icon" placeholder="" value="${boardInfo.ACT_DATE}">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="" class="">제목</label></td>
|
|
<td colspan="3">
|
|
<p>${boardInfo.TITLE}</p>
|
|
<input type="hidden" name="title" id="title" style="width:100%" value="${boardInfo.TITLE}">
|
|
</td>
|
|
<td class="input_title" ><label for="" class="">상태</label></td>
|
|
<td colspan="">
|
|
<p>${boardInfo.RES_STATE}</p>
|
|
<input type="hidden" name="title" id="title" style="width:100%" value="${boardInfo.RES_STATE}">
|
|
</td>
|
|
<td class="input_title" ><label for="" class="">공수(h)</label></td>
|
|
<td colspan="1">
|
|
<input type="text" name="work_time" id="work_time" reqTitle="영업조력자" value="${boardInfo.WORK_TIME}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">내용</label></td>
|
|
<td colspan="3">
|
|
<textarea class="big_text_area" rows="10" style="width:100%;" readonly placeholder="내용을 입력하세요.">${boardInfo.REQ_CONTENTS}</textarea>
|
|
<input type="hidden" name="reqContents" id="reqContents" value="${boardInfo.REQ_CONTENTS}">
|
|
</td>
|
|
<td class="input_title" ><label for="">내용</label></td>
|
|
<td colspan="5">
|
|
<textarea class="big_text_area" rows="10" style="width:100%;" name="resContents" id="resContents" placeholder="" readonly>${boardInfo.RES_CONTENTS}</textarea>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">첨부파일</label>
|
|
</td>
|
|
<td colspan="3">
|
|
<div id="reqAttachFileList" style="height: 95px;">
|
|
<table id="reqUploadedFileAreaTable" class="spec_data_in_table">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="3%">
|
|
</colgroup>
|
|
<tbody id="reqUploadedFileAreaDefault">
|
|
<tr>
|
|
<td>첨부된 파일이 없습니다.</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="reqUploadedFileArea">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">첨부파일</label>
|
|
</td>
|
|
<td colspan="5">
|
|
<div id="resAttachFileList">
|
|
<table id="resUploadedFileAreaTable" class="spec_data_in_table">
|
|
<tbody id="resUploadedFileAreaDefault">
|
|
<tr>
|
|
<td>첨부된 파일이 없습니다.</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="resUploadedFileArea">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="6" class="input_title"><label for="">이미지</label></td>
|
|
<td colspan="3" rowspan="6" >
|
|
<jsp:include page="/WEB-INF/view/common/fileWidget_include.jsp">
|
|
<jsp:param name="fileType" value="REQUEST_ATTACH" />
|
|
<jsp:param name="fileTypeTxt" value="Request Attach File" />
|
|
<jsp:param name="viewType" value="IMG1" />
|
|
<jsp:param name="imgStyle" value="width:96% !important; height:132px; margin:0;padding:0;" />
|
|
<jsp:param name="isModify" value="false" />
|
|
<jsp:param name="targetObjid" value="${boardInfo.OBJID}" />
|
|
<jsp:param name="actionType" value="${param.actionType}" />
|
|
<jsp:param name="writer" value="${boardInfo.REQ_WRITER}" />
|
|
<jsp:param name="connectUserId" value="${connectUserId}" />
|
|
</jsp:include>
|
|
</td>
|
|
<td rowspan="6" class="input_title"><label for="">이미지</label></td>
|
|
<td colspan="5" rowspan="6">
|
|
<jsp:include page="/WEB-INF/view/common/fileWidget_include.jsp">
|
|
<jsp:param name="fileType" value="RESPONSE_ATTACH" />
|
|
<jsp:param name="fileTypeTxt" value="Response Attach File" />
|
|
<jsp:param name="viewType" value="IMG1" />
|
|
<jsp:param name="imgStyle" value="width:96% !important; height:132px; margin:0;padding:0;" />
|
|
<jsp:param name="isModify" value="false" />
|
|
<jsp:param name="targetObjid" value="${boardInfo.OBJID}" />
|
|
<jsp:param name="actionType" value="${param.actionType}" />
|
|
<jsp:param name="writer" value="${boardInfo.REQ_WRITER}" />
|
|
<jsp:param name="connectUserId" value="${connectUserId}" />
|
|
</jsp:include>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
</tr>
|
|
<tr>
|
|
</tr>
|
|
<tr>
|
|
</tr>
|
|
<tr>
|
|
</tr>
|
|
<tr>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="btnCenterWrap" style="right: 2.7%;">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" id="closeBtn" value="닫기" class="plm_btns" onclick="javascript:self.close();">
|
|
</center>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |