321 lines
13 KiB
Plaintext
321 lines
13 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 problemGroupInfo = (HashMap)request.getAttribute("problemGroupInfo");
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<!-- //jQuery script -->
|
|
<script>
|
|
$(function(){
|
|
//첨부파일
|
|
problemAreaDraw();
|
|
responseAreaDraw();
|
|
reasonAreaDraw();
|
|
|
|
$(document).ready(function(){
|
|
//닫기
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
//수정
|
|
$("#btnModify").click(function(){
|
|
//if(confirm("Edit Mode로 이동하시겠습니까?")){
|
|
document.form1.action = "/problem/problemFormPopup.do";
|
|
document.form1.submit();
|
|
//}
|
|
});
|
|
|
|
$(".btnDetailPart").click(function(){
|
|
var partNo = $(this).attr("data-PART_NO");
|
|
fnc_openPartDetailPopup("${connectUserId}", partNo);
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
//첨부파일 목록을 가져온다.
|
|
function problemAreaDraw(){
|
|
fn_fileCallback("problem","${problem}");
|
|
}
|
|
|
|
function responseAreaDraw(){
|
|
fn_fileCallback("response","${response}");
|
|
}
|
|
|
|
function reasonAreaDraw(){
|
|
fn_fileCallback("reason","${reason}");
|
|
}
|
|
|
|
function fn_fileCallback(areaId,fileType){
|
|
|
|
var height = "";
|
|
var width = "";
|
|
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${info.OBJID}", "docType":fileType},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if("problem" == areaId){
|
|
callBackFn = "problemAreaDraw";
|
|
targetArea = "problemFileArea";
|
|
height = "130";
|
|
width = "auto";
|
|
|
|
}else if("response" == areaId){
|
|
callBackFn = "responseAreaDraw";
|
|
targetArea = "responseFileArea";
|
|
height = "330";
|
|
width = "auto";
|
|
}else{
|
|
callBackFn = "reasonAreaDraw";
|
|
targetArea = "reasonFileArea";
|
|
height = "130";
|
|
width = "auto";
|
|
}
|
|
|
|
if(0 < data.length){
|
|
//파일드롭다운 영역 hide
|
|
$("#"+areaId+"DropZone").hide();
|
|
//첨부파일 목록 영역 show
|
|
$("#"+areaId+"FileArea").empty();
|
|
|
|
var appendText = "";
|
|
|
|
$.each(data, function(i){
|
|
|
|
var path = data[i].FILE_PATH;
|
|
var fileName = data[i].SAVED_FILE_NAME;
|
|
var fileExt = data[i].UPPER_FILE_EXT;
|
|
|
|
if(fileExt == "JPEG" || fileExt == "JPG"){
|
|
var srcLocation = encodeURI("/common/viewImage.do?realFileName="+data[i].REAL_FILE_NAME+"&savedFileName="+data[i].SAVED_FILE_NAME+"&attDir="+data[i].FILE_PATH);
|
|
appendText+= "<div id='"+targetArea+"'>";
|
|
appendText+= " <img src='"+srcLocation+"' height='"+height+"'width='"+width+"'onclick='openImagePopUp(this.src)' style='cursor:pointer;'/>";
|
|
appendText+= "</div>";
|
|
}else{
|
|
Swal.fire("형상에 업로드 가능한 확장자(jpeg,jpg)가 아닙니다.");
|
|
fileDelete(data[i].OBJID,"refeshAttachFileArea",false);
|
|
}
|
|
|
|
$("#"+areaId+"AttachFileList").append(appendText);
|
|
});
|
|
}else{
|
|
$("#"+areaId+"DropZone").show();
|
|
//첨부파일 목록 영역 show
|
|
$("#"+areaId+"FileArea").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>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="targetObjId" id="targetObjId" value="${empty param.targetObjId?info.TARGET_OBJID:param.targetObjId}" />
|
|
<input type="hidden" name="objId" id="objId" value="${info.OBJID}" />
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>문제점 상세</span>
|
|
</h2>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<div id="plmSearchZon" class="td_padding_short" style=" width:97%; clear:both; border:1px solid #d4d4d4; margin-top:15px;">
|
|
<table style="width:100%; margin:0 auto;">
|
|
<colgroup>
|
|
<col width="50px;">
|
|
<col width="150px">
|
|
<col width="80px;">
|
|
<col width="150px;">
|
|
<col width="120px;">
|
|
<col width="150px;">
|
|
<col width="80px;">
|
|
<col width="150px;">
|
|
<col width="100px;">
|
|
<col width="150px;">
|
|
</colgroup>
|
|
<tr>
|
|
<td><label for="">유형</label></td>
|
|
<td>
|
|
<span class="tr_data_border_bottom">
|
|
<c:choose>
|
|
<c:when test="${info.TYPE1 eq 'design'}">
|
|
설계
|
|
</c:when>
|
|
<c:when test="${info.TYPE1 eq 'mold'}">
|
|
금형/단품
|
|
</c:when>
|
|
<c:when test="${info.TYPE1 eq 'facilities'}">
|
|
조립/설비
|
|
</c:when>
|
|
<c:when test="${info.TYPE1 eq 'etc'}">
|
|
부자재/기타
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.TYPE1}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
${info.TYPE2}
|
|
</span>
|
|
</td>
|
|
<td><label for="">발생처</label></td>
|
|
<td>
|
|
<span class="tr_data_border_bottom">
|
|
<c:choose>
|
|
<c:when test="${info.IMPUTATION eq 'self'}">
|
|
사내
|
|
</c:when>
|
|
<c:when test="${info.IMPUTATION eq 'oem'}">
|
|
고객사
|
|
</c:when>
|
|
<c:when test="${info.IMPUTATION eq 'subcontractor'}">
|
|
협력업체
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.IMPUTATION}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</span>
|
|
</td>
|
|
<td><label for="">과거차 대상여부</label></td>
|
|
<td>
|
|
<span class="tr_data_border_bottom">
|
|
<c:choose>
|
|
<c:when test="${info.CONTINUAL_MNG_TYPE eq 'Y'}">
|
|
대상
|
|
</c:when>
|
|
<c:when test="${info.CONTINUAL_MNG_TYPE eq 'N'}">
|
|
비대상
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.CONTINUAL_MNG_TYPE}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</span>
|
|
</td>
|
|
<td><label for="">제기일</label></td>
|
|
<td><span class="tr_data_border_bottom" title="${info.REQ_DATE}">${info.REQ_DATE}</span></td>
|
|
<td><label for="">조치요청일</label></td>
|
|
<td><span class="tr_data_border_bottom" title="${info.RES_PLAN_DATE}">${info.RES_PLAN_DATE}</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="">품번</label></td>
|
|
<td><span class="tr_data_border_bottom" title="${info.PART_NO}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NO}</a></span></td>
|
|
<td><label for="">품명</label></td>
|
|
<td colspan="3"><span class="tr_data_border_bottom" style="width:100%;" title="${info.PART_NAME}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NAME}</a></span></td>
|
|
<td><label for="">제목</label></td>
|
|
<td colspan="3"><span class="tr_data_border_bottom" style="width:100%;'" title="${info.SUBJECT}">${info.SUBJECT}</span></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table id="problemManageMentPopupPpt">
|
|
<tr>
|
|
<td class="ppt_thead" style="width: 50%;">문제점</td>
|
|
<td colspan="8" class="ppt_thead">개선대책</td>
|
|
</tr>
|
|
<tr class="ppt_tbody_contents1">
|
|
<td class="textarea_detail"rowspan="2"><span style="display:block; width:100%; height:102px; overflow-y:scroll;" title="${info.PROBLEM_CONTENTS}">${fn:replace(info.PROBLEM_CONTENTS, newLineChar, '<br>')}</span></td>
|
|
<td class="textarea_detail" colspan="8"><span style="display:block; width:100%; height:102px; overflow-y:scroll;"title="${info.RESPONSE_CONTENTS}">${fn:replace(info.RESPONSE_CONTENTS, newLineChar, '<br>')}</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" class="ppt_thead">조치내용</td>
|
|
</tr>
|
|
<tr class="ppt_tbody_contents1">
|
|
<td class="img_insert" id="problemAttachFileList"></td>
|
|
<td colspan="8" rowspan="5" class="img_insert" id="responseAttachFileList"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ppt_thead">원인</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="" class="">
|
|
<div class="ridio_zone" style="cursor:help;" title="이 체크박스가 체크될 경우 문제점으로 등록은 되나 현황관리는 하지않습니다." id="unManageTypeLebel">
|
|
<font color="red"><b>※ 미조치 대상여부</b></font>
|
|
<input type="checkbox" name="unManageType" id="unManageType" value="Y" style="cursor:help;" ${!empty info.UNMANAGE_TYPE?'checked':''} disabled>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="textarea_detail"><span style="display:block; width:100%; height:102px; overflow-y:scroll;" title="${info.PROBLEM_REASON_CONTENTS}">
|
|
${fn:replace(info.PROBLEM_REASON_CONTENTS, newLineChar, '<br>')}
|
|
</span></td>
|
|
</tr>
|
|
<tr style="height:70px;">
|
|
<td rowspan="5" class="img_insert" id="reasonAttachFileList"></td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="4" class="ppt_thead">제기</td>
|
|
<td colspan="2" class="" title="${problemGroupInfo.WRITER_USER_TYPE_NAME}">${problemGroupInfo.WRITER_USER_TYPE_NAME}</td>
|
|
<td rowspan="4" class="ppt_thead">조치</td>
|
|
<td class="" title="${problemGroupInfo.RES_PIC_USER_TYPE_NAME}">${problemGroupInfo.RES_PIC_USER_TYPE_NAME}</td>
|
|
<td class="">수정일</td>
|
|
<td class="ppt_thead" rowspan="4">적용</td>
|
|
<td class="">반영예정</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" title=">${problemGroupInfo.WRITER_DEPT_NAME} ${problemGroupInfo.WRITER_USER_NAME}">${problemGroupInfo.WRITER_DEPT_NAME} ${problemGroupInfo.WRITER_USER_NAME}</td>
|
|
<td title="${problemGroupInfo.CAR_CODE} TFT">${problemGroupInfo.CAR_CODE} TFT</td>
|
|
<td rowspan="3" title="${info.RES_MODIFY_DATE}">${info.RES_MODIFY_DATE}</td>
|
|
<td title="${empty info.REFLECT_PLAN_DATE?'미입력':info.REFLECT_PLAN_DATE}">${empty info.REFLECT_PLAN_DATE?'미입력':info.REFLECT_PLAN_DATE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td title="${problemGroupInfo.STEP2}">${problemGroupInfo.STEP2}</td>
|
|
<td title="${info.REQ_DATE}">${info.REQ_DATE}</td>
|
|
<td title="${problemGroupInfo.RES_PIC_DEPT_NAME}">${problemGroupInfo.RES_PIC_DEPT_NAME}</td>
|
|
<td title="반영여부">반영여부</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"></td>
|
|
<td title="${problemGroupInfo.RES_PIC_USER_NAME}">${problemGroupInfo.RES_PIC_USER_NAME}</td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${info.REFLECT_RESULT eq 'Y'}">
|
|
반영완료
|
|
</c:when>
|
|
<c:when test="${info.REFLECT_RESULT eq 'N'}">
|
|
미반영
|
|
</c:when>
|
|
<c:otherwise>
|
|
미입력
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap" style="margin-top:5px;">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:if test="${problemGroupInfo.STATUS eq 'create'}">
|
|
<c:if test="${info.STATUS eq 'create'}">
|
|
<input type="button" value="Edit" class="plm_btns" id="btnModify">
|
|
</c:if>
|
|
</c:if>
|
|
<input type="button" value="닫기" class="plm_btns" id="btnClose">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |