510 lines
26 KiB
Plaintext
510 lines
26 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
|
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<title>기일조서 수정</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<script src="/kccadrPb/usr/script/popup.js"></script>
|
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.css">
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js"></script>
|
|
<script type="text/javaScript" language="javascript">
|
|
$(document).ready(function() {
|
|
fncShow();
|
|
fncNextApp();
|
|
|
|
//시간 선택시 실행
|
|
$('input[name=appDeTime]').timepicker({
|
|
'timeFormat': 'HH:mm',
|
|
});
|
|
|
|
$('input[name=nextAppDeTime]').timepicker({
|
|
'timeFormat': 'HH:mm',
|
|
});
|
|
});
|
|
|
|
function fncCheckNextYn() {
|
|
|
|
var value = $('input[name="nextAppDeYn"]:checked').val();
|
|
|
|
if (value == 'Y') {
|
|
$('#nextAppDeRow').show();
|
|
} else {
|
|
$('#nextAppDeRow').hide();
|
|
$('#nextAppDeDay').val('');
|
|
$('#nextAppDeTime').val('');
|
|
}
|
|
|
|
}
|
|
function fncNextApp(){
|
|
if ($('#appResultTy').val() == "50") {
|
|
$('#nextApp').show();
|
|
$("input:radio[id='nextAppDeY']").prop("checked", true);
|
|
} else {
|
|
$('#nextApp').hide();
|
|
$("input:radio[id='nextAppDeN']").prop("checked", true);
|
|
}
|
|
fncCheckNextYn();
|
|
}
|
|
|
|
function fncGoList(target) {
|
|
var f = document.getElementById("listForm");
|
|
|
|
if ('list' == target) {
|
|
f.action = "<c:url value='/kccadr/adjPgrMgr/apm/apmList.do'/>";
|
|
} else {
|
|
f.action = "<c:url value='/kccadr/adjPgrMgr/apm/apmDetail.do'/>";
|
|
}
|
|
f.submit();
|
|
}
|
|
|
|
function fncShow() {
|
|
|
|
if ($('#appPlaceTy').val() == "99") {
|
|
$('#appPlaceTyDiv').show();
|
|
} else {
|
|
$('#appPlaceTyDiv').hide();
|
|
$('#appPlaceTx').val('');
|
|
$('#appPlaceDetailTx').val('');
|
|
|
|
}
|
|
|
|
if ($('#appPlaceAddrTy').val() == "99") {
|
|
$('#appPlaceAddrTyDiv').show();
|
|
} else {
|
|
$('#appPlaceAddrTyDiv').hide();
|
|
$('#appPlaceAddrTx').val('');
|
|
$('#appPlaceAddrDetailTx').val('');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function isValid() {
|
|
|
|
var isValidDate = Date.parse($('#appDeDay').val());
|
|
|
|
if (isNaN(isValidDate)) {
|
|
alert("조정기일을 입력해 주세요");
|
|
return false;
|
|
}
|
|
|
|
if (!isDatetime($('#appDeTime').val())) {
|
|
alert("유효한 조정기일 시간을 'hh:mm'형식으로 입력해 주세요"); //
|
|
return false;
|
|
}
|
|
|
|
if ($('#appPlaceTy').val() == "99") {
|
|
if (isEmptyObj('appPlaceTx')) {
|
|
alert('장소를 입력해 주세요.');
|
|
return false;
|
|
}
|
|
}
|
|
if ($('#appPlaceAddrTy').val() == "99") {
|
|
if (isEmptyObj('appPlaceAddrTx')) {
|
|
alert('주소를 입력해 주세요.');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if ($('input[name="nextAppDeYn"]:checked').val() == "Y") {
|
|
isValidDate = Date.parse($('#nextAppDeDay').val());
|
|
|
|
if (isNaN(isValidDate)) {
|
|
alert("유효한 다음 조정기일을 입력해 주세요");
|
|
return false;
|
|
}
|
|
|
|
if (!isDatetime($('#nextAppDeTime').val())) {
|
|
alert("유효한 다음 조정기일 시간을 'hh:mm'형식으로 입력해 주세요"); // nextAppDeTime
|
|
return false;
|
|
}
|
|
|
|
}
|
|
if (isEmptyObj('prtclCn')) {
|
|
alert('조서내용을 입력해 주세요');
|
|
return false;
|
|
}
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
function fncPrint() {
|
|
|
|
var form = document.listForm;
|
|
window.open('',"drtReport");
|
|
|
|
form.action="/kccadr/adjPgrMgr/drt/drtReportAjax.do";
|
|
form.method="post";
|
|
form.target="drtReport";
|
|
form.submit();
|
|
|
|
}
|
|
|
|
function fncDlv() {
|
|
alert('송달조회');
|
|
|
|
}
|
|
|
|
//결재 처리 1단계
|
|
function fnc_aprvl_step_1(p_param){
|
|
|
|
//adr_seq, adr_sn + 하기 sbmtTy, sbmtTyCd 값 4개 필수입니다.
|
|
var data = new FormData(document.getElementById("approval"));
|
|
data.append("sbmtTy" ,p_param);
|
|
data.append("sbmtTyCd" ,p_param);
|
|
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/kccadr/aprvlMgr/aprvl/checkNInsertAprvlStep1Ajax.do",
|
|
data: data,
|
|
dataType:'json',
|
|
async: false,
|
|
processData: false,
|
|
contentType: false,
|
|
cache: false,
|
|
success: function (returnData, status) {
|
|
console.log(returnData.result);
|
|
//alert(returnData.result);
|
|
if(returnData.result == 'SUCCESS'){
|
|
alert('성공적으로 승인요청하였습니다.');
|
|
fncGoList(); //상세
|
|
}else{
|
|
alert(returnData.message);
|
|
}
|
|
},
|
|
error: function (e) { alert("요청에 실패하였습니다."); console.log("ERROR : ", e); }
|
|
});
|
|
}
|
|
|
|
function sendDlvInfoPop() {
|
|
commonPopWindowopenForm("/kccadr/adjPgrMgr/dlvinfo/popup/dlvInfoPop.do", '580', '350', "dlvInfoPop", $('#dlvpop'));
|
|
}
|
|
|
|
function sendDlvInfo() {
|
|
var frm = document.dlvpop;
|
|
frm.action = "<c:url value='/kccadr/adjPgrMgr/dlvinfo/dlvinfoReg.do'/>";
|
|
frm.submit();
|
|
}
|
|
function listDlvInfo() {
|
|
var frm = document.dlvpop;
|
|
frm.pageIndex.value = 1;
|
|
frm.action = "<c:url value='/kccadr/adjPgrMgr/dlvinfo/dlvinfoList.do'/>";
|
|
frm.submit();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function goToAdjCloseMangeDetail(){
|
|
var listForm = document.listForm ;
|
|
listForm.action = "<c:url value='/kccadr/adjclsmgr/adjCloseMangeDetail.do'/>";
|
|
listForm.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="dlvpop" name="dlvpop" method="post">
|
|
<input type="hidden" id="adrNo" name="adrNo" value="<c:out value="${info.adrNo}" />" />
|
|
<input type="hidden" id="regNm" name="regNm" />
|
|
<input type="hidden" id="srcCon" name="srcCon" value="10" />
|
|
<input type="hidden" id="srcTxt" name="srcTxt" value="<c:out value="${info.adrNo}" />" />
|
|
<input type="hidden" id="pageIndex" name="pageIndex" value="1" />
|
|
</form>
|
|
<form id="approval" name="approval" method="post">
|
|
<input type="hidden" id="adrSeq" name="adrSeq" value="<c:out value="${info.adrSeq }"></c:out>" />
|
|
<input type="hidden" id="adrSn" name="adrSn" value="<c:out value="${info.adrSn }"></c:out>" />
|
|
</form>
|
|
<form:form id="listForm" name="listForm" onsubmit="return false;" method="post">
|
|
<input type="hidden" id="adrSeq" name="adrSeq" value="<c:out value="${info.adrSeq }"></c:out>" />
|
|
<input type="hidden" id="adrSn" name="adrSn" value="<c:out value="${info.adrSn }"></c:out>" />
|
|
<input type="hidden" id="prtclSeq" name="prtclSeq" value="<c:out value="${info.prtclSeq }"></c:out>" />
|
|
|
|
<div class="cont_wrap">
|
|
<div class="box">
|
|
<!-- cont_tit -->
|
|
<div class="cont_tit">
|
|
<h2>기일조서 상세</h2>
|
|
<ul class="cont_nav">
|
|
<li class="home">
|
|
<a href="/"> <i></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<span class="cur_nav">기일조서 상세</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<!-- //cont_tit -->
|
|
<div class="cont">
|
|
<!-- list_상세 -->
|
|
<div class="tbType02">
|
|
<table>
|
|
<colgroup>
|
|
<col style="width: 20%;">
|
|
<col style="width: 35%;">
|
|
<col style="width: 15%;">
|
|
<col style="width: 30%;">
|
|
</colgroup>
|
|
<tbody class="border_0">
|
|
<tr>
|
|
<th>조 정 부</th>
|
|
<td colspan="3">
|
|
<c:out value="${info.memDeptNm }"></c:out>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>차 수</th>
|
|
<td colspan="3">
|
|
<c:out value="${info.adrSn}"></c:out>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>사 건</th>
|
|
<td>
|
|
<c:out value="${info.adrNo }"></c:out>
|
|
</td>
|
|
<th>사건내용</th>
|
|
<td>
|
|
<c:out value="${info.ccTyTx }"></c:out>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2">신청인</th>
|
|
<td rowspan="2">
|
|
<c:forEach var="ass" items="${assList}">
|
|
<c:if test="${ass.assUsrTy=='10'}">
|
|
<p>
|
|
<c:out value="${ass.addUsrNm }"></c:out>
|
|
</p>
|
|
<select name="addUsrIdList" id="addUsrIdList" class="wid_120">
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|Y|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='Y' }">selected="selected"</c:if>>출석</option>
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|N|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='N' }">selected="selected"</c:if>>불출석</option>
|
|
</select>
|
|
<br>
|
|
</c:if>
|
|
</c:forEach>
|
|
</td>
|
|
<th>대리인</th>
|
|
<td>
|
|
<c:forEach var="ass" items="${assList}">
|
|
<c:if test="${ass.assUsrTy=='30'}">
|
|
<p>
|
|
<c:out value="${ass.addUsrNm }"></c:out>
|
|
</p>
|
|
<select name="addUsrIdList" id="addUsrIdList" class="wid_120">
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|Y|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='Y' }">selected="selected"</c:if>>출석</option>
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|N|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='N' }">selected="selected"</c:if>>불출석</option>
|
|
</select>
|
|
<br>
|
|
</c:if>
|
|
</c:forEach>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>참관대리인</th>
|
|
<td>
|
|
<c:forEach var="ass" items="${assList}">
|
|
<c:choose>
|
|
<c:when test="${ass.assUsrTy=='35' && ass.isAgnt eq 'Y'}">
|
|
<p>
|
|
<c:out value="${ass.agntNm }"></c:out>
|
|
</p>
|
|
<select name="addAgntList" id="addAgntList" class="wid_120">
|
|
<option value="<c:out value="${ass.agntSeq }|35|Y|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='Y' }">selected="selected"</c:if>>출석</option>
|
|
<option value="<c:out value="${ass.agntSeq }|35|N|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='N' }">selected="selected"</c:if>>불출석</option>
|
|
</select>
|
|
<br>
|
|
</c:when>
|
|
<c:when test="${ass.assUsrTy=='30' && ass.isAgnt eq 'N'}">
|
|
<button type="button" class="btnType01 btn_change" onclick="fncAddAgnt('${ass.addUsrId}')">참관대리인등록</button>
|
|
</c:when>
|
|
</c:choose>
|
|
</c:forEach>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2">피신청인</th>
|
|
<td rowspan="2">
|
|
<c:forEach var="ass" items="${assList}">
|
|
<c:if test="${ass.assUsrTy=='20'}">
|
|
<p>
|
|
<c:out value="${ass.addUsrNm }"></c:out>
|
|
</p>
|
|
<select name="addUsrIdList" id="addUsrIdList" class="wid_120">
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|Y|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='Y' }">selected="selected"</c:if>>출석</option>
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|N|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='N' }">selected="selected"</c:if>>불출석</option>
|
|
</select>
|
|
<br>
|
|
</c:if>
|
|
</c:forEach>
|
|
</td>
|
|
<th>대리인</th>
|
|
<td>
|
|
<c:forEach var="ass" items="${assList}">
|
|
<c:if test="${ass.assUsrTy=='40'}">
|
|
<p>
|
|
<c:out value="${ass.addUsrNm }"></c:out>
|
|
</p>
|
|
<select name="addUsrIdList" id="addUsrIdList" class="wid_120">
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|Y|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='Y' }">selected="selected"</c:if>>출석</option>
|
|
<option value="<c:out value="${ass.addUsrId }|${ass.assUsrTy }|N|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='N' }">selected="selected"</c:if>>불출석</option>
|
|
</select>
|
|
<br>
|
|
</c:if>
|
|
</c:forEach>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>참관대리인</th>
|
|
<td>
|
|
<c:forEach var="ass" items="${assList}">
|
|
<c:choose>
|
|
<c:when test="${ass.assUsrTy=='45' && ass.isAgnt eq 'Y'}">
|
|
<p>
|
|
<c:out value="${ass.agntNm }"></c:out>
|
|
</p>
|
|
<select name="addAgntList" id="addAgntList" class="wid_120">
|
|
<option value="<c:out value="${ass.agntSeq }|45|Y|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='Y' }">selected="selected"</c:if>>출석</option>
|
|
<option value="<c:out value="${ass.agntSeq }|45|N|${ass.assSeq}"></c:out>" <c:if test="${ass.addYn=='N' }">selected="selected"</c:if>>불출석</option>
|
|
</select>
|
|
<br>
|
|
</c:when>
|
|
<c:when test="${ass.assUsrTy=='40' && ass.isAgnt eq 'N'}">
|
|
<button type="button" class="btnType01 btn_change" onclick="fncAddAgnt('${ass.addUsrId}')">참관대리인등록</button>
|
|
</c:when>
|
|
</c:choose>
|
|
</c:forEach>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>조정기일</th>
|
|
<td>
|
|
<div class="sel_date">
|
|
<input type="text" class="appDeDay inp" title="검색시작일" id="appDeDay" name="appDeDay" value="<c:out value="${info.apmAppDeDay }"></c:out>" data-datecontrol="true" onkeyup="setFormat('day',this)" maxlength="10">
|
|
<div class="calendar_in" id="calendarName_startDate" style="z-index: 9;">
|
|
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('appDeDay-lry','',this)" class="btn_cal"></button>
|
|
<div id="appDeDay-lry" class="calendarPop" style="display: none;">
|
|
<iframe id="appDeDay-ifrm" name="appDeDay-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="text" class="time_input" placeholder="11:00" id="appDeTime" name="appDeTime" value="<c:out value="${info.apmAppDeTime }"></c:out>" onkeyup="setFormat('time',this)" maxlength="8">
|
|
</td>
|
|
<th>공개여부</th>
|
|
<td>
|
|
<select name="openYn" id="openYn" class="wid_120">
|
|
<option value="N" <c:if test="${info.openYn=='N' }">selected="selected"</c:if> >비공개</option>
|
|
<option value="Y" <c:if test="${info.openYn=='Y' }">selected="selected"</c:if> >공개</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>장소</th>
|
|
<td colspan="3">
|
|
<input type="hidden" id="appPlaceTy" name="appPlaceTy" value="<kc:code codeId="CC020" code="${info.apmAppPlaceTy }"/>">
|
|
<kc:code codeId="CC020" code="${info.apmAppPlaceTy }"/>
|
|
|
|
<div id="appPlaceTyDiv" style="display: none;">
|
|
<c:out value="${info.apmAppPlaceTx }"/>
|
|
|
|
<c:out value="${info.apmAppPlaceDetailTx }"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>기일결과</th>
|
|
<td colspan="3">
|
|
<c:choose>
|
|
<c:when test="${info.appResultTy eq '10'}">성립</c:when>
|
|
<c:when test="${info.appResultTy eq '20'}">불성립</c:when>
|
|
<c:when test="${info.appResultTy eq '30'}">직권조정</c:when>
|
|
<c:when test="${info.appResultTy eq '40'}">조정취하</c:when>
|
|
<c:when test="${info.appResultTy eq '50'}">다음기일</c:when>
|
|
<%-- <c:otherwise>성립</c:otherwise> --%>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
<tr id="nextApp">
|
|
<th>다음 기일 지정 여부</th>
|
|
<td>
|
|
<div class="radio_wrap">
|
|
<span>
|
|
<input type="radio" id="nextAppDeY" name="nextAppDeYn" value="Y" <c:if test="${info.nextAppDeYn=='Y' }">checked="checked"</c:if> onclick="fncCheckNextYn()">
|
|
<label for="nextAppDeY">필요</label>
|
|
</span>
|
|
<span>
|
|
<input type="radio" id="nextAppDeN" name="nextAppDeYn" value="N" <c:if test="${info.nextAppDeYn=='N' }">checked="checked"</c:if> onclick="fncCheckNextYn()">
|
|
<label for="nextAppDeN">필요없음</label>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="nextAppDeRow">
|
|
<th>고지된 다음기일</th>
|
|
<td colspan="3">
|
|
<div class="sel_date">
|
|
<input type="text" class="nextAppDeDay inp" title="검색시작일" id="nextAppDeDay" name="nextAppDeDay" data-datecontrol="true" value="<c:out value="${info.nextAppDeDay }" />" onkeyup="setFormat('day',this)" maxlength="10">
|
|
<div class="calendar_in" id="calendarName_startDate" style="z-index: 9;">
|
|
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('nextAppDeDay-lry','',this)" class="btn_cal"></button>
|
|
<div id="nextAppDeDay-lry" class="calendarPop" style="display: none;">
|
|
<iframe id="nextAppDeDay-ifrm" name="nextAppDeDay-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="text" class="time_input" placeholder="11:00:00" id="nextAppDeTime" name="nextAppDeTime" value="<c:out value="${info.nextAppDeTime }" />" onkeyup="setFormat('time',this)" maxlength="8">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>조서내용</th>
|
|
<td colspan="3">
|
|
<textarea name="prtclCn" id="prtclCn" cols="30" rows="2"><c:out value="${info.prtclCn }" /></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>조정부장</th>
|
|
<td colspan="3">
|
|
<c:out value="${info.memName }" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>조정위원</th>
|
|
<td colspan="3">
|
|
<c:out value="${info.memNames }" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>조정조사관</th>
|
|
<td colspan="3">
|
|
<c:out value="${info.adrAdmNm }" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- //list_상세 -->
|
|
<div class="btn_wrap btn_layout01">
|
|
<div class="area_left"></div>
|
|
<div class="area_right">
|
|
<button type="button" class="btnType06" onclick="fncPrint()">출력</button>
|
|
<button type="button" class="btnType04" onclick="goToAdjCloseMangeDetail()">목록</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
</body>
|
|
</html>
|