202 lines
6.2 KiB
Plaintext
202 lines
6.2 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>
|
|
//닫기
|
|
$(function(){
|
|
finalAreaDraw();
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
$("#btnModify").click(function(){
|
|
fn_testResultModify();
|
|
});
|
|
|
|
$("#result").attr("disabled",true);
|
|
$("#score").attr("disabled",true);
|
|
|
|
});
|
|
</script>
|
|
<script>
|
|
|
|
//형상 영역을 display 한다.
|
|
function finalAreaDraw(){
|
|
fn_fileCallback("final","${finalCode}");
|
|
}
|
|
|
|
//첨부파일 목록을 가져온다.
|
|
function fn_fileCallback(areaId,fileType){
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${resultMap.OBJID}", "docType":fileType},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
|
|
if(0 < data.length){
|
|
|
|
//첨부파일 목록 영역 show
|
|
$("#"+areaId+"FileArea").empty();
|
|
|
|
if(0 < $("#"+areaId+"DefaultRow").length){
|
|
$("#"+areaId+"DefaultRow").hide();
|
|
}
|
|
|
|
$.each(data, function(i){
|
|
|
|
var appendText = "";
|
|
if("final" == areaId){
|
|
var path = data[i].FILE_PATH;
|
|
var fileName = data[i].SAVED_FILE_NAME;
|
|
var fileExt = data[i].UPPER_FILE_EXT;
|
|
appendText +=" <colgroup>";
|
|
appendText +=" <col width='10%''>";
|
|
appendText +=" <col width='*'>";
|
|
appendText +=" <col width='15%'>";
|
|
appendText +=" <col width='15%'>";
|
|
appendText +=" <col width='18%''>";
|
|
appendText +=" </colgroup>";
|
|
appendText+= "<tr>";
|
|
appendText+= " <td>"+[i+1]+"</td>";
|
|
appendText+= " <td title='"+data[i].REAL_FILE_NAME+"' class='align_l'><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\")'> "+data[i].REAL_FILE_NAME+"</a></td>";
|
|
appendText+= " <td title='"+data[i].DEPT_NAME+"'>"+data[i].DEPT_NAME+"</td>"
|
|
appendText+= " <td title='"+data[i].USER_NAME+"'>"+data[i].USER_NAME+"</td>"
|
|
appendText+= " <td title='"+data[i].REGDATE+"'>"+data[i].REGDATE+"</td>"
|
|
appendText+= "</tr>";
|
|
}
|
|
//Swal.fire(appendText);
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
});
|
|
}else{
|
|
$("#"+areaId+"DropZone").show();
|
|
$("#"+areaId+"AttachFileList").hide();
|
|
$("#"+areaId+"FileArea").empty();
|
|
var appendText = "";
|
|
appendText += "<tr>";
|
|
appendText += "<td>첨부 파일이 없습니다.</td>";
|
|
appendText +="</tr>";
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}//파일 첨부 END
|
|
|
|
function fn_changeInputArea(type){
|
|
$("#result").attr("disabled",true);
|
|
$("#score").attr("disabled",true);
|
|
|
|
if("weld" == type){
|
|
$("#result").attr("disabled",false);
|
|
}else if("frame" == type){
|
|
$("#score").attr("disabled",false);
|
|
}
|
|
}
|
|
|
|
//검사 결과를 등록한다.
|
|
function fn_testResultModify(){
|
|
//if(confirm("Edit Mode로 이동하시겠습니까?")){
|
|
var form = document.form1;
|
|
form.action = "/protoDevMng/protoTestResultFormPopUp.do";
|
|
form.target = "_self";
|
|
form.submit();
|
|
//}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${resultMap.OBJID}">
|
|
<div>
|
|
<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="100px"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="100px"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">구분</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" colspan="2" title="${'weld' eq resultMap.RESULT_TYPE?'용접검사':'골격검사'}">
|
|
${'weld' eq resultMap.RESULT_TYPE?'용접검사':'골격검사'}
|
|
</td>
|
|
<td class="input_title" >
|
|
<label for="">차수</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" colspan="2" title="${resultMap.TEST_ROUND}">
|
|
${resultMap.TEST_ROUND}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">결과</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" colspan="2" title="${resultMap.TEST_RESULT_TITLE}">${resultMap.TEST_RESULT_TITLE}</td>
|
|
<td class="input_title" >
|
|
<label for="">점수</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" colspan="2" title="${resultMap.SCORE}">${resultMap.SCORE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" class="input_title align_c">파일첨부</td>
|
|
<td colspan="5">
|
|
<div id="finalAreaTable" class="spec_data_in_table">
|
|
<div style="overflow-y:scroll;">
|
|
<table id="" class="fileListscrollThead" style="width:100% !important;">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="15%">
|
|
<col width="15%">
|
|
<col width="18%">
|
|
</colgroup>
|
|
<tr>
|
|
<td>No</td>
|
|
<td>파일명</td>
|
|
<td>팀명</td>
|
|
<td>등록자</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style="height: 90px; overflow-y: scroll; border-bottom: 2px solid #cacaca;">
|
|
<table id="finalFileArea" class="fileListscrollTbody">
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="Edit" id="btnModify" class="plm_btns" >
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |