2023-09-19 16:55 화면 수정
This commit is contained in:
parent
7649047af4
commit
d30c7add54
@ -188,6 +188,31 @@ public class EduAplctTngrController {
|
||||
return "/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg";
|
||||
}
|
||||
|
||||
/**
|
||||
* 교육신청 등록 화면
|
||||
*/
|
||||
@RequestMapping("eduAplctRegSample.do")
|
||||
public String eduAplctRegSAmple( @ModelAttribute("modelVO") VEPrcsDetailVO vEPrcsDetailVO , ModelMap model , HttpServletRequest request ) throws Exception {
|
||||
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||
SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
|
||||
|
||||
if (loginVO == null || ssoLoginVO == null) {
|
||||
//이전 url 처리(beforeSiteUrl)_이준호_220228추가
|
||||
return checkLoginUtil.getUserLoginPage(model, request); //로그인 정보가 없으면 로그인 페이지로 이동한다.
|
||||
// return checkLoginUtil.getUserLoginPage(model); //로그인 정보가 없으면 로그인 페이지로 이동한다.
|
||||
}
|
||||
vEPrcsDetailVO.setMode(VeConstants.MODE_CRT);
|
||||
//온라인차시 리스트
|
||||
vEPrcsDetailVO.setUseYn("Y");
|
||||
vEPrcsDetailVO.setLctrDivCd(VeConstants.LCTR_DIV_CD_10);
|
||||
List<VEPrcsDetailVO> vEPrcsDetailVOList = vEPrcsService.selectTngrPrcsList(vEPrcsDetailVO);
|
||||
//대상 리스트, 페이징 정보 전달
|
||||
model.addAttribute("list", vEPrcsDetailVOList);
|
||||
model.addAttribute("uniqId", loginVO.getUniqId());
|
||||
|
||||
return "/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctRegSAmple";
|
||||
}
|
||||
|
||||
/**
|
||||
* 교육 신청서 등록
|
||||
*/
|
||||
|
||||
@ -136,9 +136,6 @@ function fnCheckAll(){
|
||||
<input type="hidden" name="pageType" value="" />
|
||||
<input type="hidden" name="admotId" value="" />
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<!-- cont_tit -->
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -140,7 +140,7 @@
|
||||
<c:set var = "fee" value="정산중" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var = "fee" value="${list.instrFee + list.specialWorkAllow + list.distanceAllow + list.trafficFee + list.acmdtFee}" />
|
||||
<%-- <c:set var = "fee" value="${list.instrFee + list.specialWorkAllow + list.distanceAllow + list.trafficFee + list.acmdtFee}" /> --%>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<td><p><c:out value="${fee}" /></p></td>
|
||||
@ -219,7 +219,7 @@
|
||||
<c:set var = "fee" value="정산중" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var = "fee" value="${list.instrFee + list.specialWorkAllow + list.distanceAllow + list.trafficFee + list.acmdtFee}" />
|
||||
<%-- <c:set var = "fee" value="${list.instrFee + list.specialWorkAllow + list.distanceAllow + list.trafficFee + list.acmdtFee}" /> --%>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
|
||||
@ -0,0 +1,253 @@
|
||||
<%@ 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="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$( document ).ready(function(){
|
||||
//청소년강사인지 체크
|
||||
tngrInstrCheck();
|
||||
|
||||
});
|
||||
|
||||
function fncGoDetail(eduAplctOrd,eduChasiOrd){
|
||||
$("#eduAplctOrd").val(eduAplctOrd);
|
||||
$("#eduChasiOrd").val(eduChasiOrd);
|
||||
$("#listForm").attr("action","${pageContext.request.contextPath}/web/ve/instr/tngrVisitEdu/asgnmInfo/instrAsgnmDetail.do").submit();
|
||||
}
|
||||
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.action = "<c:url value='/web/ve/instr/tngrVisitEdu/asgnmInfo/instrAsgnmList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function goReqStatus(){
|
||||
$("#listForm").attr("action","${pageContext.request.contextPath}/web/ve/instr/tngrVisitEdu/instrInfo/instrPrflReg.do").submit();
|
||||
}
|
||||
|
||||
function fncReset(thisObj){
|
||||
var targetObj = $(thisObj).closest('.list_top').find('select,input');
|
||||
$.each(targetObj, function(){
|
||||
$(this).val('');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap" id="sub">
|
||||
<form:form id="listForm" name="listForm" commandName="vEInstrAsgnmVO">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${vEInstrAsgnmVO.pageIndex}' default='1' />"/>
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${vEInstrAsgnmVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${vEInstrAsgnmVO.searchSortOrd}" />" />
|
||||
<input type="hidden" name="searchStatus" value="<c:out value="${vEInstrAsgnmVO.searchStatus}" />" />
|
||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="" />
|
||||
<input type="hidden" name="eduChasiOrd" id="eduChasiOrd" value="" />
|
||||
|
||||
<div class="cont_tit">
|
||||
<h2>청소년 강의내역 목록</h2>
|
||||
<div class="sns_go">
|
||||
<button type="button" title="새창열림"><img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/facebook_icon.png" alt="페이스북 바로가기"></button>
|
||||
<button type="button" title="새창열림"><img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/twitter_icon.png" alt="트위터 바로가기"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list_top">
|
||||
<div class="list_top_left">
|
||||
</div>
|
||||
<div class="btn_wrap">
|
||||
<div class="calendar_wrap">
|
||||
<%-- <input type="text" name="searchEduHopeStartDt" value="${vEInstrAsgnmVO.searchEduHopeStartDt}" class="calendar" title="시작일 선택"> --%>
|
||||
<duet-date-picker identifier="date" name="searchEduHopeStartDt" class="startDate" value="${vEInstrAsgnmVO.searchEduHopeStartDt}"></duet-date-picker>
|
||||
</div>
|
||||
~
|
||||
<div class="calendar_wrap">
|
||||
<%-- <input type="text" name="searchEduHopeEndDt" value="${vEInstrAsgnmVO.searchEduHopeEndDt}" class="calendar" title="종료일 선택"> --%>
|
||||
<duet-date-picker identifier="date" name="searchEduHopeEndDt" class="endDate" value="${vEInstrAsgnmVO.searchEduHopeEndDt}"></duet-date-picker>
|
||||
</div>
|
||||
<script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/duetdatepicker.js"></script>
|
||||
<button type="button" class="btnType01" onclick="linkPage(1); return false;">검색</button>
|
||||
<button type="button" class="btnType02" onclick="fncReset(this);">초기화</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tb_list01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 5%;">
|
||||
<col style="width: 10%;">
|
||||
<col style="width: 4%;">
|
||||
<col style="width: auto">
|
||||
<col style="width: 10%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 12%;">
|
||||
<col style="width: 12%;">
|
||||
<col style="width: 12%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">번호</th>
|
||||
<th scope="col">교육일자</th>
|
||||
<th scope="col">요일</th>
|
||||
<th scope="col">차시</th>
|
||||
<th scope="col">지역</th>
|
||||
<th scope="col">기관명</th>
|
||||
<th scope="col">교육대상</th>
|
||||
<th scope="col">총 지급액</th>
|
||||
<th scope="col">숙박여부</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${vEInstrAsgnmVOList}" varStatus="status">
|
||||
<fmt:parseDate value="${list.eduHopeDt}" var="eduHopeDt" pattern="yyyyMMdd"/> <!-- 요일 구하기 -->
|
||||
<c:choose>
|
||||
<c:when test="${list.notiCnt == 0}">
|
||||
<tr class="new_cont">
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<td>
|
||||
<p>
|
||||
<c:if test="${vEInstrAsgnmVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((vEInstrAsgnmVO.pageIndex -1)*vEInstrAsgnmVO.pageUnit) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${vEInstrAsgnmVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(vEInstrAsgnmVO.pageIndex - 1) * vEInstrAsgnmVO.pageUnit + status.count}"/>
|
||||
</c:if>
|
||||
</p>
|
||||
</td>
|
||||
<td><a href="javascript:fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');">${fn:substring(list.eduHopeDt,0,4)}-${fn:substring(list.eduHopeDt,4,6)}-${fn:substring(list.eduHopeDt,6,8)}</a></td>
|
||||
<td><a href="javascript:fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');"><fmt:formatDate value="${eduHopeDt}" pattern="E"/></a></td>
|
||||
<td><a href="javascript:fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');">
|
||||
<fmt:parseDate value="${list.strtTm}" var="strtTm" pattern="kkmm"/><fmt:formatDate value="${strtTm}" pattern="kk:mm"/>
|
||||
~<fmt:parseDate value="${list.endTm}" var="endTm" pattern="kkmm"/><fmt:formatDate value="${endTm}" pattern="kk:mm"/>
|
||||
(<c:out value='${list.lrnTm}'/>분)
|
||||
</a></td>
|
||||
<td><a href="javascript:fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');"><c:if test="${list.eduSlctCd eq '10'}">(온)</c:if><ve:code codeId="VE0008" code="${list.eduSlctAreaCd}"/></a></td>
|
||||
<td><a href="javascript:fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');"><c:out value='${list.scholInsttNm}'/></a></td>
|
||||
<td><a href="javascript:fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');"><c:out value='${list.trgt}'/></a></td>
|
||||
<c:set var = "fee" value="" />
|
||||
<c:choose>
|
||||
<c:when test="${list.instrFeeSbmtYn ne 'Y'}">
|
||||
<c:set var = "fee" value="정산중" />
|
||||
</c:when>
|
||||
<c:when test="${list.acmdtSbmtYn eq 'Y' and empty list.acmdtAprvlCd}">
|
||||
<c:set var = "fee" value="정산중" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var = "fee" value="${list.instrFee + list.specialWorkAllow + list.distanceAllow + list.trafficFee + list.acmdtFee}" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<td><p><c:out value="${fee}" /></p></td>
|
||||
<c:set var="acmdtYn" value="" />
|
||||
<c:if test="${empty list.acmdtSbmtYn}">
|
||||
<c:set var="acmdtYn" value="미신청" />
|
||||
</c:if>
|
||||
<c:if test="${list.acmdtSbmtYn eq 'Y' and list.acmdtAprvlCd eq '10'}">
|
||||
<c:set var="acmdtYn" value="신청(승인)" />
|
||||
</c:if>
|
||||
<c:if test="${list.acmdtSbmtYn eq 'Y' and list.acmdtAprvlCd ne '10'}">
|
||||
<c:set var="acmdtYn" value="신청(미승인)" />
|
||||
</c:if>
|
||||
<td><p>${acmdtYn}</p></td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty vEInstrAsgnmVOList}">
|
||||
<tr><td colspan="9"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tb_list01_m">
|
||||
<c:forEach var="list" items="${vEInstrAsgnmVOList}" varStatus="status">
|
||||
<fmt:parseDate value="${list.eduHopeDt}" var="eduHopeDt" pattern="yyyyMMdd"/> <!-- 요일 구하기 -->
|
||||
<ul onclick="fncGoDetail('<c:out value="${list.eduAplctOrd}"/>', '<c:out value="${list.eduChasiOrd}"/>');">
|
||||
<li>
|
||||
<span>번호</span>
|
||||
<span>
|
||||
<c:if test="${vEInstrAsgnmVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((vEInstrAsgnmVO.pageIndex -1)*vEInstrAsgnmVO.pageUnit) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${vEInstrAsgnmVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(vEInstrAsgnmVO.pageIndex - 1) * vEInstrAsgnmVO.pageUnit + status.count}"/>
|
||||
</c:if>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>교육일자</span>
|
||||
<span>${fn:substring(list.eduHopeDt,0,4)}-${fn:substring(list.eduHopeDt,4,6)}-${fn:substring(list.eduHopeDt,6,8)}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>요일</span>
|
||||
<span><fmt:formatDate value="${eduHopeDt}" pattern="E"/></span>
|
||||
</li>
|
||||
<li>
|
||||
<span>차시</span>
|
||||
<span>
|
||||
<fmt:parseDate value="${list.strtTm}" var="strtTm" pattern="kkmm"/><fmt:formatDate value="${strtTm}" pattern="kk:mm"/>
|
||||
~<fmt:parseDate value="${list.endTm}" var="endTm" pattern="kkmm"/><fmt:formatDate value="${endTm}" pattern="kk:mm"/>
|
||||
(<c:out value='${list.lrnTm}'/>분)
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>지역</span>
|
||||
<span><c:if test="${list.eduSlctCd eq '10'}">(온)</c:if><ve:code codeId="VE0008" code="${list.eduSlctAreaCd}"/></span>
|
||||
</li>
|
||||
<li>
|
||||
<span>기관명</span>
|
||||
<span><c:out value='${list.scholInsttNm}'/></span>
|
||||
</li>
|
||||
<li>
|
||||
<span>교육대상</span>
|
||||
<span><c:out value='${list.trgt}'/></span>
|
||||
</li>
|
||||
<li>
|
||||
<span>총 지급액</span>
|
||||
|
||||
<c:set var = "fee" value="" />
|
||||
<c:choose>
|
||||
<c:when test="${list.instrFeeSbmtYn ne 'Y'}">
|
||||
<c:set var = "fee" value="정산중" />
|
||||
</c:when>
|
||||
<c:when test="${list.acmdtSbmtYn eq 'Y' and empty list.acmdtAprvlCd}">
|
||||
<c:set var = "fee" value="정산중" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:set var = "fee" value="${list.instrFee + list.specialWorkAllow + list.distanceAllow + list.trafficFee + list.acmdtFee}" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<span><span><c:out value='${fee}'/></span></span>
|
||||
</li>
|
||||
<li>
|
||||
<span>숙박여부</span>
|
||||
<c:set var="acmdtYn" value="" />
|
||||
<c:if test="${empty list.acmdtSbmtYn}">
|
||||
<c:set var="acmdtYn" value="미신청" />
|
||||
</c:if>
|
||||
<c:if test="${list.acmdtSbmtYn eq 'Y' and list.acmdtAprvlCd eq '10'}">
|
||||
<c:set var="acmdtYn" value="신청(승인)" />
|
||||
</c:if>
|
||||
<c:if test="${list.acmdtSbmtYn eq 'Y' and list.acmdtAprvlCd ne '10'}">
|
||||
<c:set var="acmdtYn" value="신청(미승인)" />
|
||||
</c:if>
|
||||
<span><span><c:out value='${acmdtYn}'/></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
</c:forEach>
|
||||
<c:if test="${empty vEInstrAsgnmVOList}">
|
||||
<ul><li colspan="8"><spring:message code="common.nodata.msg" /></li></ul>
|
||||
</c:if>
|
||||
</div>
|
||||
|
||||
<div class="page">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||
</div>
|
||||
</form:form>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user