193 lines
5.7 KiB
Plaintext
193 lines
5.7 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 type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
|
|
|
reasonAreaDraw();
|
|
|
|
|
|
$("#btnModify").click(function(){
|
|
fn_goEdit();
|
|
});
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<script>
|
|
|
|
function fn_goEdit(){
|
|
//if(confirm("Edit Mode로 이동하시겠습니까?")){
|
|
document.form1.action = "/project/gate/issueFormPopup.do";
|
|
document.form1.submit();
|
|
//}
|
|
}
|
|
|
|
function reasonAreaDraw(){
|
|
fn_fileCallback("issue","${ISSUE_ATTACH_CODE}");
|
|
}
|
|
|
|
function fn_fileCallback(){
|
|
|
|
var height = "";
|
|
var width = "";
|
|
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${info.OBJID}", "docType":"${ISSUE_ATTACH_CODE}"},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
|
|
if(0 < data.length){
|
|
//파일드롭다운 영역 hide
|
|
$("#issueDropZone").hide();
|
|
//첨부파일 목록 영역 show
|
|
$("#issueFileArea").empty();
|
|
|
|
var appendText = "";
|
|
|
|
$.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+= " <td><div class='delete_btn' onclick='javascript:fnc_deleteFile(\""+data[i].OBJID+"\", \"fn_fileCallback\")'></div></td>";
|
|
appendText+= "</tr>";
|
|
|
|
$("#uploadedFileArea").append(appendText);
|
|
});
|
|
}else{
|
|
$("#issueDropZone").show();
|
|
//첨부파일 목록 영역 show
|
|
$("#issueFileArea").empty();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}//파일 첨부 END
|
|
//첨부파일 미리보기
|
|
function openImagePopUp(url){
|
|
var img=new Image();
|
|
img.src=url;
|
|
var img_width=img.width;
|
|
var img_height=img.height;
|
|
var win_width=img.width+25;
|
|
var height=img.height+30;
|
|
|
|
window.open(url,"partListShapeImgPopUp","width="+img_width+",height="+height+", menubars=no, scrollbars=yes'");
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body class="backcolor_light_blue">
|
|
<form name="form1" id="form1" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${info.OBJID}">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>이슈등록</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="80px;">
|
|
<col width="*">
|
|
<col width="80px;">
|
|
<col width="*">
|
|
<col width="80px;">
|
|
<col width="*">
|
|
<col width="80px;">
|
|
<col width="*">
|
|
<col width="80px;">
|
|
<col width="*">
|
|
</colgroup>
|
|
<tr>
|
|
<td class=input_title><label for="" class="">지역</label></td>
|
|
<td class="tr_data_border_bottom">
|
|
<c:choose>
|
|
<c:when test="${info.REGION eq 'D'}">
|
|
국내
|
|
</c:when>
|
|
<c:when test="${info.REGION eq 'F'}">
|
|
해외
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.REGION}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
<td class=input_title><label for="" class="">고객사</label></td>
|
|
<td class="tr_data_border_bottom">${info.OEM_NAME}</td>
|
|
<td class=input_title><label for="" class="">차종</label></td>
|
|
<td class="tr_data_border_bottom">${info.CAR_CODE} (${info.CAR_NAME})</td>
|
|
<td class="input_title"><label for="">제품군</label></td>
|
|
<td class="tr_data_border_bottom">${info.PROD_GROUP_NAME}</td>
|
|
<td class=input_title><label for="" class="">제품</label></td>
|
|
<td class="tr_data_border_bottom">${info.PROD_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class=input_title><label for="" class="">이슈 명</label></td>
|
|
<td class="tr_data_border_bottom" colspan="9">${info.SUBJECT}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">이슈상세</label></td>
|
|
<td class="tr_data_border_bottom" colspan="4" style="height:300px !important;">
|
|
<textarea class="" style="width:100%;" rows="20" name="issueContents" id="issueContents" placeholder="내용을 입력하세요." maxlength="1800" readonly>${info.ISSUE_CONTENTS}</textarea>
|
|
</td>
|
|
<td class="input_title"><label for="">이슈해결방안<br> (협의결과)</label></td>
|
|
<td class="tr_data_border_bottom" colspan="4" style="height:300px !important;">
|
|
<textarea class="" style="width:100%;" rows="20" name="issueResultContents" id="issueResultContents" placeholder="내용을 입력하세요." maxlength="1800">${info.ISSUE_RESULT_CONTENTS}</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class=input_title><label for="" class="">수행팀</label></td>
|
|
<td class="tr_data_border_bottom">${info.PIC_DEPT}</td>
|
|
<td class=input_title><label for="" class="">완료예정일</label></td>
|
|
<td class="tr_data_border_bottom">${info.COMPLETE_PLAN_DATE}</td>
|
|
<td class=input_title><label for="" class="">완료일</label></td>
|
|
<td class="tr_data_border_bottom">${info.COMPLETE_DATE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" rowspan="2">
|
|
<label for="">첨부파일</label>
|
|
</td>
|
|
<td colspan="9" class="tr_data_border_bottom">
|
|
<div id="issueAttachFileList" style="height:50px; overflow-y:scroll;">
|
|
<table id="uploadedFileAreaTable" class="spec_data_in_table">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="3%">
|
|
</colgroup>
|
|
<tbody id="uploadedFileArea">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btnCenterWrap">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" id="btnModify" value="Edit" class="plm_btns">
|
|
<input type="button" id="btnClose" value="닫기" class="plm_btns">
|
|
</center>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |