first commit

This commit is contained in:
revlis44
2025-12-03 10:41:27 +09:00
commit a6b37aa445
2430 changed files with 175919 additions and 0 deletions

View File

@@ -0,0 +1,265 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"
%><%@ include file="/common/taglib.jsp"
%><%@ page import="egovframework.main.MainGlobals"
%><%
/**
* @Class Name : DmsHdbDetail.jsp
* @Description : DmsHdb Detail 화면
* @Modification Information
*
* @author 한돈희
* @since 2017-06-16
* @version 1.0
* @see
*
* Copyright (C) All right reserved.
*/
%><script type="text/javascript" src="/js/dms/dmsHdb.js"></script>
<script type="text/javascript" src="/js/common/calendar/jquery-ui.js"></script>
<script type="text/javascript" src="/js/common/calendar/jquery.ui.datepicker-ko.js"></script>
<link type="text/css" href="/css/common/calendar/smoothness/jquery-ui.css" rel="stylesheet" />
<form:form commandName="searchVO" id="detailForm" action="${searchVO.parentUrl}">
<form:hidden path="bmode" />
<form:hidden path="pageIndex" />
<form:hidden path="hdbSeq" />
<form:hidden path="searchCondition" />
<form:hidden path="searchKeyword" />
</form:form>
<div class="location_box">
<div class="loc_h3"><h3>${prjNm} <%=MainGlobals.MENU_HDB%></h3><span></span></div>
<span class="loccation"><img src="/images/admin/loccation_home.png" alt="홈" /> > <strong><%=MainGlobals.MENU_HDB%></strong></span>
</div>
<div class="contents">
<table class="tbl_basic_view">
<caption>상세</caption>
<colgroup>
<col style="width:15%">
<col style="width:35%">
<col style="width:15%">
<col style="width:*">
</colgroup>
<tbody>
<tr>
<th scope="row">제목</th>
<td class="left">${dmsHdbVO.title}</td>
<th scope="row">등록일</th>
<td class="left">${dmsHdbVO.createDate}</td>
</tr>
<tr>
<th scope="row">작성자</th>
<td class="left">${dmsHdbVO.userNm}</td>
<th scope="row">진행상태</th>
<td class="left">
<c:if test="${dmsHdbVO.hdbSts == 'A'}">
접수
</c:if>
<c:if test="${dmsHdbVO.hdbSts == 'B'}">
처리중(완료예정일 : ${dmsHdbVO.compScdDate })
</c:if>
<c:if test="${dmsHdbVO.hdbSts == 'C'}">
완료(완료일 : ${dmsHdbVO.compDate })
</c:if>
</td>
</tr>
<tr>
<th scope="row">연락처</th>
<td class="left">${dmsHdbVO.tel}</td>
<th scope="row">이메일</th>
<td class="left">${dmsHdbVO.email}</td>
</tr>
<tr>
<th scope="row">첨부파일</th>
<td colspan="3" class="left">
<c:import url="/common/fms/selectFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${dmsHdbVO.atchFileId}" />
</c:import>
</td>
</tr>
<tr>
<th scope="row">내용</th>
<td colspan="3" class="left"><edosiFmt:formatHtml value="${dmsHdbVO.contents}"/></td>
</tr>
</tbody>
</table>
<div class="mt10 tR">
<%-- <c:if test="${ROLE_EMP }"> --%>
<span class="btn_type_blue"><a href="#modify" onclick="return fn_egov_replyView();">답변</a></span>
<%-- </c:if> --%>
<c:if test="${checkWriteAuth && empty dmsHdbReplyList}">
<span class="btn_type_blue"><a href="#modify" onclick="return fn_egov_updateView();">수정</a></span>
<span class="btn_type_blue"><a href="#delete" onclick="return fn_egov_delete('${searchVO.parentUrl}');">삭제</a></span>
</c:if>
<span class="btn_type_gray"><a href="#list" onclick="return fn_egov_selectList();">목록</a></span>
</div>
<h1>답변</h1>
<c:if test="${ROLE_EMP }">
<form:form commandName="statusVO" id="statusForm" action="${searchVO.parentUrl}" class="form-horizontal">
<form:hidden path="bmode" />
<form:hidden path="pageIndex" />
<form:hidden path="hdbSeq" value="${dmsHdbVO.hdbSeq }"/>
<form:hidden path="searchCondition" />
<form:hidden path="searchKeyword" />
<div>
진행상태 :
<script>
$(function (){
var radioChk = "${dmsHdbVO.hdbSts}";
if(radioChk == ''){
$("input:radio[id='statusA']").attr("checked", true);
}else{
$("#status"+radioChk).attr("checked", true);
}
if($(".hdbSts:checked").val() == 'B'){
$("#statusBdate").show();
}
$(".hdbSts").change(function(){
if($(".hdbSts:checked").val() == 'B'){
$("#statusBdate").show();
}else{
$("#statusBdate").hide();
}
});
});
</script>
<form:radiobutton path="hdbSts" class="hdbSts" id="statusA" value="A" label="접수"/>
<form:radiobutton path="hdbSts" class="hdbSts" id="statusB" value="B" label="처리중"/>
<form:radiobutton path="hdbSts" class="hdbSts" id="statusC" value="C" label="완료"/>
<span id="statusBdate" style="display: none;">
완료예정일 :
<form:input type="text" path="compScdDate" id="compScdDate" style="width:100px;" title="완료예정일" value="${dmsHdbVO.compScdDate }" />
</span>
<span class="btn_type_blue"><a href="#modify" onclick="return fn_hdb_status_update('${searchVO.parentUrl}');">상태변경</a></span>
</div>
</form:form>
</c:if>
<c:if test="${empty dmsHdbReplyList }">
<div>
답변 없음.
</div>
</c:if>
<c:if test="${!empty dmsHdbReplyList }">
<c:forEach items="${dmsHdbReplyList }" var="list">
<table class="tbl_basic_view">
<caption>상세</caption>
<colgroup>
<col style="width:15%">
<col style="width:35%">
<col style="width:15%">
<col style="width:*">
</colgroup>
<tbody>
<tr>
<th scope="row">제목</th>
<td colspan="3" class="left">${list.title}</td>
</tr>
<tr>
<th scope="row">작성자</th>
<td class="left">${list.userNm}</td>
<th scope="row">연락처</th>
<td class="left">${list.tel}</td>
</tr>
<tr>
<th scope="row">내용</th>
<td colspan="3" class="left"><edosiFmt:formatHtml value="${list.contents}"/></td>
</tr>
<tr>
<th scope="row">첨부파일</th>
<td colspan="3" class="left">
<c:import url="/common/fms/selectFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${list.atchFileId}" />
</c:import>
</td>
</tr>
</tbody>
</table>
<div class="mt10 tR">
<c:if test="${loginVO.id == list.userId}">
<span class="btn_type_blue"><a href="#modify" onclick="return fn_egov_delete_reply('${searchVO.parentUrl}', '${list.hdbReplySeq }');">삭제</a></span>
</c:if>
</div>
</c:forEach>
</c:if>
<div id="replyView" style="display: none;">
<form:form commandName="dmsHdbReplyVO" id="replyForm" action="${searchVO.parentUrl}" enctype="multipart/form-data" class="form-horizontal">
<form:hidden path="bmode" />
<form:hidden path="pageIndex" />
<form:hidden path="hdbReplySeq" />
<form:hidden path="hdbSeq" value="${dmsHdbVO.hdbSeq }"/>
<form:hidden path="searchCondition" />
<form:hidden path="searchKeyword" />
<table class="tbl_basic_view">
<caption>답변작성</caption>
<colgroup>
<col style="width:15%">
<col style="width:35%">
<col style="width:15%">
<col style="width:*">
</colgroup>
<tbody>
<tr>
<th scope="row"><span class="fCred">*</span> <label for="title">제목</label></th>
<td colspan="3" class="left"><form:input path="title" cssStyle="width:99%;"/></td>
</tr>
<tr>
<th scope="row"><label for="userNm">내용</label></th>
<td colspan="3" class="left">
<form:textarea path="contents" cssStyle="width:99%" rows="10" />
</td>
</tr>
<tr>
<th scope="row"><span class="fCred">*</span> <label for="userNm">첨부파일</label></th>
<td colspan="3" class="left">
<c:import url="/common/fms/selectFileInfsForUpdate.do" charEncoding="utf-8">
<c:param name="param_atchFileId"/>
</c:import>
<div><input name="file_" id="egovComFileUploaderReply" type="file" /></div>
<div id="egovComFileListReply"></div>
</td>
</tr>
</tbody>
</table>
<div class="mt10 tR">
<span class="btn_type_blue"><a href="#modify" onclick="return fn_egov_add_reply('${searchVO.parentUrl}');">등록</a></span>
</div>
</form:form>
</div>
</div>
<script type="text/javascript">
function fn_egov_replyView(){
if($("#replyView").css("display") == 'none'){
$("#replyView").show();
}else{
$("#replyView").hide();
}
}
//팝업달력
$("#compScdDate").datepicker({
showOn: "button",
buttonImage: "/images/dms/btn_calendar.gif",
buttonImageOnly: true,
changeMonth: true,
changeYear: true,
showOtherMonths: true,
pageDirectLink: true,
selectOtherMonths: true
});
var defaultEndDate = $.datepicker.formatDate('yy-mm-dd', new Date());
if($('#compScdDate').val() == ''){
$('#compScdDate').val(defaultEndDate);
}
</script>