최초커밋
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
<%@ 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>
|
||||
$(document).ready(function(){
|
||||
$("#btnSave").click(function(){
|
||||
if(confirm("저장하시겠습니까?")){
|
||||
fn_saveTakeOverInfo();
|
||||
}
|
||||
});
|
||||
|
||||
$("#btnClose").click(function(){
|
||||
self.close();
|
||||
});
|
||||
|
||||
fn_fileCallback();
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function fn_fileCallback(){
|
||||
//첨부파일 영역을 초기화
|
||||
$("#takingOverFileArea").empty();
|
||||
|
||||
var appendText = "";
|
||||
|
||||
$.ajax({
|
||||
url:"/common/getFileList.do",
|
||||
type:"POST",
|
||||
data:{"targetObjId":"${info.OBJID}", "docType":"${docType}"},
|
||||
dataType:"json",
|
||||
async:false,
|
||||
success:function(data){
|
||||
if(0 < data.length){
|
||||
$.each(data, function(i){
|
||||
appendText+= "<tr>";
|
||||
appendText+= " <td><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\");'>"+fnc_checkNull(data[i].REAL_FILE_NAME)+"</a></td>";
|
||||
appendText+= " <td>"+fnc_checkNull(data[i].DEPT_NAME)+" "+fnc_checkNull(data[i].USER_NAME)+"</td>";
|
||||
appendText+= " <td>"+fnc_checkNull(data[i].REGDATE)+"</td>";
|
||||
appendText+= "</tr>";
|
||||
});
|
||||
}else{
|
||||
appendText+= "<tr>";
|
||||
appendText+= " <td colspan='3'>첨부된 파일이 없습니다.</td>";
|
||||
appendText+= "</tr>";
|
||||
}
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
$("#takingOverFileArea").append(appendText);
|
||||
}
|
||||
|
||||
//인수내용을 저장한다.
|
||||
function fn_saveTakeOverInfo(){
|
||||
$.ajax({
|
||||
url:"/transfer/saveDocTransferTakeOverInfo.do",
|
||||
type:"POST",
|
||||
data:$("#form1").serialize(),
|
||||
dataType:"json",
|
||||
async:false,
|
||||
success:function(data){
|
||||
if(fnc_checkTrue(data.result)){
|
||||
Swal.fire("저장되었습니다.");
|
||||
fn_moveDetail();
|
||||
}else{
|
||||
Swal.fire("오류가 발생하였습니다.");
|
||||
}
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function fn_moveDetail(){
|
||||
document.form1.action = "/transfer/openDocTransferTakeOverDetailPopUp.do";
|
||||
document.form1.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="form1" id="form1" action="" method="post">
|
||||
<input type="hidden" name="objId" value="${info.HISTORY_OBJID}">
|
||||
<input type="hidden" name="targetObjId" value="${info.HISTORY_TARGET_OBJID}">
|
||||
<input type="hidden" name="docTargetObjId" value="${param.docTargetObjId}">
|
||||
<input type="hidden" name="productObjId" value="${param.productObjId}">
|
||||
<input type="hidden" name="entryType" value="${param.entryType}">
|
||||
<input type="hidden" name="takeOverUserId" value="${info.TAKE_OVER_USER_ID}">
|
||||
<section class="">
|
||||
<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="15%">
|
||||
<col width="*">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td class="input_title" colspan="">
|
||||
<label for="">문서유형</label>
|
||||
</td>
|
||||
<td class="tr_data_border_bottom" title="${info.DOC_TYPE_TITLE}">${info.DOC_TYPE_TITLE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title">
|
||||
<label for="">파일첨부</label>
|
||||
</td>
|
||||
<td colspan="">
|
||||
<div style="overflow-y:scroll;">
|
||||
<table class="project_form_in_table" style="width:100%;">
|
||||
<colgroup>
|
||||
<col width="*">
|
||||
<col width="25%">
|
||||
<col width="20%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>첨부파일명</td>
|
||||
<td>등록자</td>
|
||||
<td>등록일</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div class="in_table_scroll_wrap" style="width:100%;height:130px;">
|
||||
<table class="plm_table">
|
||||
<colgroup>
|
||||
<col width="*">
|
||||
<col width="25%">
|
||||
<col width="20%">
|
||||
</colgroup>
|
||||
<tbody id="takingOverFileArea"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title" colspan="">
|
||||
<label for="">인계상태</label>
|
||||
</td>
|
||||
<td class="tr_data_border_bottom" title="">${info.HAND_OVER_STATUS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title" colspan="">
|
||||
<label for="">인계자</label>
|
||||
</td>
|
||||
<td class="tr_data_border_bottom" title="">${info.HANDOVER_DEPT_NAME} ${info.HANDOVER_USER_NAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title" colspan="">
|
||||
<label for="">Comment</label>
|
||||
</td>
|
||||
<td class="" title="">
|
||||
<textarea style="width:100%; border-radius:2px; border: 1px solid #ccc;" readonly>${info.HAND_OVER_COMMENT}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<hr style="border:1px dashed #ccc;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_sub_title" colspan="">
|
||||
<label for="">Comment</label>
|
||||
</td>
|
||||
<td class="" title="">
|
||||
<textarea name="takeOverComment" style="width:100%; height:100px; border-radius:2px; border: 1px solid #ccc;">${info.TAKE_OVER_COMMENT}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title" colspan="">
|
||||
<label for="">승인여부</label>
|
||||
</td>
|
||||
<td class="" title="">
|
||||
<select name="takeOverStatus" id="takeOverStatus">
|
||||
<option value="">선택</option>
|
||||
<option value="ok" ${info.TAKE_OVER_STATUS eq 'ok'?'selected':''}>승인</option>
|
||||
<option value="acceptOk" ${info.TAKE_OVER_STATUS eq 'acceptOk'?'selected':''}>수용승인</option>
|
||||
<option value="ng" ${info.TAKE_OVER_STATUS eq 'ng'?'selected':''}>승인거부</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="input_title" colspan="">
|
||||
<label for="">인수자</label>
|
||||
</td>
|
||||
<td class="" title="">${info.TAKE_OVER_DEPT_NAME} ${info.TAKE_OVER_USER_NAME}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn_wrap">
|
||||
<div class="plm_btn_wrap_center">
|
||||
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
||||
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user