181 lines
5.7 KiB
Plaintext
181 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>
|
|
</head>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#btn_close").click(function(){
|
|
opener.fn_search();
|
|
self.close(0);
|
|
});
|
|
//첨부 파일 기능
|
|
fnc_setFileDropZone("fileDropZone", "${param.targetObjId}", "${ISSUE_ATTACH_CODE}", "${ISSUE_ATTACH_NAME}", "fn_fileCallback",false,null,null);
|
|
fn_fileCallback("${ISSUE_ATTACH_CODE}");
|
|
|
|
$("#btnUpload").click(function(){
|
|
var files = $("#file1")[0].files;
|
|
if(files.length > 0){
|
|
fnc_fileMultiUpload(files, null, "${param.targetObjId}", "${ISSUE_ATTACH_CODE}", "${ISSUE_ATTACH_NAME}", null, "fn_fileCallback");
|
|
//file객체 초기화
|
|
$("#file1").val("");
|
|
}else{
|
|
Swal.fire("선택된 File이 없습니다.");
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
//첨부파일 목록을 가져온다.
|
|
function fn_fileCallback(fileType){
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${param.targetObjId}", "docType":fileType},
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(0 <data.length){
|
|
|
|
$("#fileArea").empty();
|
|
|
|
$.each(data, function(i){
|
|
var appendText ="";
|
|
|
|
appendText +="<colgroup>";
|
|
appendText +=" <col width='10%''>";
|
|
appendText +=" <col width='*'>";
|
|
appendText +=" <col width='15%'>";
|
|
appendText +=" <col width='15%'>";
|
|
appendText +=" <col width='15%''>";
|
|
appendText +="</colgroup>";
|
|
appendText+= "<tr>";
|
|
appendText+= " <td>"+[i+1]+"</td>";
|
|
appendText+= " <td class='align_l'><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\")'> "+data[i].REAL_FILE_NAME+"</a></td>";
|
|
appendText+= " <td>"+data[i].DEPT_NAME+"</td>"
|
|
appendText+= " <td>"+data[i].USER_NAME+"</td>"
|
|
appendText+= " <td>"+data[i].REGDATE+"</td>"
|
|
appendText+= "</tr>";
|
|
|
|
$("#fileArea").append(appendText);
|
|
});
|
|
}else{
|
|
$("#fileArea").empty();
|
|
var appendText = "";
|
|
appendText += "<tr>";
|
|
appendText += "<td colspan='5'>첨부 파일이 없습니다.</td>";
|
|
appendText +="</tr>";
|
|
$("#fileArea").append(appendText);
|
|
}
|
|
},
|
|
error: function(jqxhr,status,error){
|
|
}
|
|
});
|
|
}//파일 첨부 END
|
|
/*첨부 파일 삭제 */
|
|
function fileDelete(fileObjId, callbackFnc, confirmFlag){
|
|
if(confirmFlag){
|
|
fnc_deleteFile(fileObjId, callbackFnc);
|
|
}else{
|
|
$.ajax({
|
|
url:"/common/deleteFileInfo.do",
|
|
type:"POST",
|
|
data:{"objId":fileObjId},
|
|
dataType:"json",
|
|
async:true,
|
|
success:function(data){
|
|
eval(callbackFnc+"();");
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="form1" action="" method="post">
|
|
<section class="">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>도면 등록</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="10%">
|
|
<col width="*">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">출도구분</label>
|
|
</td>
|
|
<td>
|
|
<select name="" type="select" style="width:100%;">
|
|
<option value="">선택</option>
|
|
<option value="">초도</option>
|
|
<option value="">변경</option>
|
|
</select>
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">유형</label>
|
|
</td>
|
|
<td>
|
|
<select name="" type="select" style="width:47%;">
|
|
<option value="">선택</option>
|
|
<option value="">이슈</option>
|
|
<option value="">요구사항</option>
|
|
</select>
|
|
<select name="" type="select" style="width:52%;">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="" class="input_title align_c">첨부 도면</td>
|
|
<td colspan="3">
|
|
<div id="fileDropZone" class="dropzone">Drag & Drop Files Here</div>
|
|
<div id="issueAreaTable" 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="15%">
|
|
</colgroup>
|
|
<tr>
|
|
<td>No</td>
|
|
<td>파일명</td>
|
|
<td>팀명</td>
|
|
<td>등록자</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style="width:100%; height: 90px; overflow-y: scroll; border-bottom: 2px solid #cacaca;">
|
|
<table id="fileArea" class="fileListscrollTbody">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="저장" id="" class="plm_btns">
|
|
<input type="button" value="닫기" id="btn_close" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |