225 lines
6.3 KiB
Plaintext
225 lines
6.3 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>
|
|
var authFlag = false;
|
|
var acceptor = "${masterInfo.ACCEPTOR}";
|
|
|
|
$(window).on("beforeunload", function(){
|
|
opener.$("input[type=radio]:checked").trigger("click");
|
|
});
|
|
$(document).ready(function(){
|
|
|
|
if(acceptor == "${connectUserId}"){
|
|
authFlag = true;
|
|
}
|
|
|
|
$("#btnClose").click(function(){
|
|
opener.$("input[type=radio]:checked").trigger("click");
|
|
self.close(0);
|
|
});
|
|
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
var lastResult = "${LAST_RESULT}";
|
|
if(lastResult == "apply" || lastResult == "acceptApply"){
|
|
$("#btnSave").hide();
|
|
$("#result").attr("disabled", true);
|
|
$("#reason").attr("disabled", true);
|
|
$("#description").attr("disabled", true);
|
|
}
|
|
|
|
if(!authFlag){
|
|
$("#btnSave").hide();
|
|
$("#result").attr("disabled", true);
|
|
$("#reason").attr("disabled", true);
|
|
$("#description").attr("disabled", true);
|
|
}
|
|
});
|
|
</script>
|
|
<script>
|
|
function fn_save(){
|
|
if(fn_validation()){
|
|
if(confirm("저장하시겠습니까?")){
|
|
document.opinionForm.action = "/transfer/saveFacilitiesOpinionInfo.do";
|
|
document.opinionForm.submit();
|
|
}
|
|
}
|
|
}
|
|
|
|
function fn_validation(){
|
|
if($("#result").val() == ""){
|
|
Swal.fire("인수결정을 선택해 주시기 바랍니다.");
|
|
$("#result").focus();
|
|
return false;
|
|
}
|
|
/*
|
|
if($("#reason").val() == ""){
|
|
Swal.fire("사유를 입력해 주시기 바랍니다.");
|
|
$("#reason").focus();
|
|
return false;
|
|
}
|
|
|
|
if($("#description").val() == ""){
|
|
Swal.fire("인수자의견을 입력해 주시기 바랍니다.");
|
|
$("#description").focus();
|
|
return false;
|
|
}
|
|
*/
|
|
return true;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="opinionForm" id="opinionForm" action="" method="post">
|
|
<input type="hidden" name="writer" id="writer" value="${connectUserId}" />
|
|
<input type="hidden" name="targetObjId" id="targetObjId" value="${param.targetObjId}" />
|
|
<input type="hidden" name="partNo" id="partNo" value="${param.partNo}" />
|
|
|
|
<section class="">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>설비이관</span>
|
|
</h2>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<div>
|
|
<table class="pmsPopupForm" style="width:100%;">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="13%"/>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
<col width="50px;"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">인수결정</label>
|
|
</td>
|
|
<td class="">
|
|
<select name="result" id="result" style="width:98%;">
|
|
<option value="">선택</option>
|
|
<option value="apply">승인</option>
|
|
<option value="acceptApply">수용승인</option>
|
|
<option value="review">검토</option>
|
|
<option value="reject">거부</option>
|
|
</select>
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">사유</label>
|
|
</td>
|
|
<td class="">
|
|
<input type="text" name="reason" id="reason" value="" style="width:98%;">
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">인수자의견</label>
|
|
</td>
|
|
<td class="">
|
|
<input type="text" name="description" id="description" value="" style="width:98%;">
|
|
</td>
|
|
<td>
|
|
<input type="button" value="등록" id="btnSave" class="plm_btns" style="float:right;">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="plm_table_wrap" style="margin-top:10px;">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="plm_table" style="width:100%;">
|
|
<colgroup>
|
|
<col width="40px;">
|
|
<col width="8%">
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="*">
|
|
<col width="10%">
|
|
<col width="150px;">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>확인일자</td>
|
|
<td>인수결정</td>
|
|
<td>사유</td>
|
|
<td>인수자 의견</td>
|
|
<td>인수결정자</td>
|
|
<td>관련문제/문제제기</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="plm_scroll_table" style="width:100%; height:285px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="40px;">
|
|
<col width="8%">
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="*">
|
|
<col width="10%">
|
|
<col width="150px;">
|
|
</colgroup>
|
|
<tbody id="">
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td>${info.RNUM}</td>
|
|
<td>${info.REGDATE}</td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${info.RESULT eq 'apply'}">
|
|
승인
|
|
</c:when>
|
|
<c:when test="${info.RESULT eq 'acceptApply'}">
|
|
수용승인
|
|
</c:when>
|
|
<c:when test="${info.RESULT eq 'review'}">
|
|
검토
|
|
</c:when>
|
|
<c:when test="${info.RESULT eq 'reject'}">
|
|
거부
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.RESULT}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
<td>${info.REASON}</td>
|
|
<td>${info.DESCRIPTION}</td>
|
|
<td>${info.WRITER_DEPT_NAME} ${info.WRITER_USER_NAME}</td>
|
|
<td><img src="/images/document${info.REFLECT_CNT eq '0'?'_empty':''}.png" style="width:15px;height:15px;cursor:pointer;" class="" data-OBJID="${info.OBJID}" data-DATA_TYPE="${info.DATA_TYPE}" /></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="7" align="center">조회된 정보가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |