2023-10-25 15:42 청소년 강의 설정 작업

This commit is contained in:
myname 2023-10-25 15:43:06 +09:00
parent 1f1de00ccd
commit 5629a815d1
16 changed files with 414 additions and 40 deletions

View File

@ -65,6 +65,8 @@ public class VEAStngVO extends ComDefaultVO implements Serializable {
private String rgstrDateState; //일자기준접수상태 0,1,2 -기간전, 기간중, 기간후
private String searchWord; //검색어
//4 update
private String tableNm;
private String setQuery;
@ -377,5 +379,11 @@ public class VEAStngVO extends ComDefaultVO implements Serializable {
public void setEduSlctCd(String eduSlctCd) {
this.eduSlctCd = eduSlctCd;
}
public String getSearchWord() {
return searchWord;
}
public void setSearchWord(String searchWord) {
this.searchWord = searchWord;
}
}

View File

@ -29,5 +29,7 @@ public interface EduAplctTngrService {
//boolean eduAplctDateChkProcess(VEEduAplctVO vEEduAplctVO , HttpServletRequest request, ModelAndView modelAndView) throws Exception;
String eduAplctDateChkProcess(VEEduAplctVO vEEduAplctVO , HttpServletRequest request, ModelAndView modelAndView) throws Exception;
String eduAplctChkDayChasiProcessToStr(HttpServletRequest request, ModelAndView modelAndView) throws Exception;
}

View File

@ -597,6 +597,7 @@ public class EduAplctTngrServiceImpl implements EduAplctTngrService {
return flag;
}
@Override
public String eduAplctChkProcessToStr(HttpServletRequest request, ModelAndView modelAndView) throws Exception {
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
@ -769,6 +770,7 @@ public class EduAplctTngrServiceImpl implements EduAplctTngrService {
vELctrDetailVO.setAreaCd(vEEduAplctVO.getEduSlctAreaCd());
vELctrDetailVO.setInstrDiv(VeConstants.LCTR_DIV_CD_10); //청소년 코드
String[] s_eduHopeDt = request.getParameterValues("eduHopeDt");
String rndsOrd = request.getParameter("rndsOrd");
boolean waitYn = false; //대기상태 판별 변수
//차시별로 지역별 시간이 초과되는지 확인
@ -781,7 +783,16 @@ public class EduAplctTngrServiceImpl implements EduAplctTngrService {
//청소년 요청이 신청한 지역의 신청 제한에 맞게 재대로 신청한 것인지 확인 한다.
// 1.해당 지역의 허용가능차시
VEAStngVO vEAStngVO = new VEAStngVO();
VEAStngVO vEAStngVO = new VEAStngVO();
vEAStngVO.setRndsOrd(rndsOrd);
if ("10".equals(vEEduAplctVO.getEduSlctCd())) { //온라인인 경우
vEAStngVO.setAreaCd("400");
}else {
vEAStngVO.setAreaCd(vEEduAplctVO.getEduSlctAreaCd());
}
VEAStngVO result = vELctrAreaMngDAO.selectList202310(vEAStngVO);
int rgstrPsblTm = 0;
try {
@ -789,14 +800,31 @@ public class EduAplctTngrServiceImpl implements EduAplctTngrService {
}catch(Exception ex) {
ex.printStackTrace();
}
System.out.println("1");
//2. 현재 신청한 지역의 토탈시간을 가져옴 (승인상태가 취소(40) 아닌 건들에 대한 토탈 시간)
vEAStngVO.setEduSlctCd(vEEduAplctVO.getEduSlctCd()); //10-온라인, 20-오프라인
vEAStngVO.setRndsOrd(vEEduAplctVO.getRndsOrd());
vEAStngVO.setAreaCd(vEEduAplctVO.getEduSlctAreaCd());
System.out.println("12");
System.out.println(vEAStngVO.toString());
System.out.println(vEAStngVO.getEduSlctCd());
System.out.println(vEAStngVO.getRndsOrd());
System.out.println(vEAStngVO.getAreaCd());
//신청한 전체 차시
int aplctTotalChasi = vEEduAplctDAO.selectTotalChasi202310(vEAStngVO);
int aplctTotalChasi = 0;
try {
aplctTotalChasi = vEEduAplctDAO.selectTotalChasi202310(vEAStngVO);
}catch(Exception ex) {
ex.printStackTrace();
}
System.out.println("13");
//3. 총수강시간 < 신청한 지역의 토탈시간인 경우 대기(VE0003 : 230) 상태로 세팅
if(rgstrPsblTm < aplctTotalChasi) {
@ -874,6 +902,59 @@ public class EduAplctTngrServiceImpl implements EduAplctTngrService {
return vEEduAplctVO;
}
@Override
public String eduAplctChkDayChasiProcessToStr(HttpServletRequest request, ModelAndView modelAndView) throws Exception {
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
//SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
//로그인 처리====================================
boolean flag = true;
String v_ret = "";
//차시 저장
String[] s_eduHopeDt = request.getParameterValues("eduHopeDt");
String rndsOrd = request.getParameter("rndsOrd");
VEAStngVO vEAStngVO = new VEAStngVO();
vEAStngVO.setRndsOrd(rndsOrd);
//VELctrDetailVO vELctrDetailVO = new VELctrDetailVO();
for (int i=0; i<s_eduHopeDt.length; i++) {
if(flag == false) break;
vEAStngVO.setTrgtDt(s_eduHopeDt[i]);
//해당일의 신청가능한 차시
int i_psblChasi = 0;
try {
i_psblChasi = vELctrAreaMngDAO.selectList20231025(vEAStngVO);
}catch(Exception ex) {
ex.printStackTrace();
}
//해당일의 신청한 차시
int i_aplctChasi = 0;
try {
i_psblChasi = vELctrAreaMngDAO.selectList20231026(vEAStngVO);
}catch(Exception ex) {
ex.printStackTrace();
}
//신청한 차시가 신청가능한 차시보다 크면 신청 불가
if (i_psblChasi<=i_aplctChasi) {
flag = false;
v_ret = s_eduHopeDt[i];
}
}
return v_ret;
}
private VEEduAplctVO chkOnChasiWait202310(VEEduAplctVO vEEduAplctVO, HttpServletRequest request) throws Exception {
//1. 지역별강의관리의 해당 지역코드의 총수강시간을 가져옴

View File

@ -234,6 +234,7 @@ public class EduAplctTngrController {
modelAndView.addObject("result", "loginFail");
return modelAndView;
}
boolean flag = eduAplctTngrService.eduAplctRegProcess202310(vEEduAplctVO, request, multiRequest, modelAndView);
if(!flag){
@ -285,6 +286,16 @@ public class EduAplctTngrController {
// return checkLoginUtil.getUserLoginPage(model); //로그인 정보가 없으면 로그인 페이지로 이동한다.
}
/*
* 2.교육신청시 교육희망일 비교하여 가능한 정보를 가져온다.
2-1.신청 가능한 일자인지(구현)
(해당 강의 회차의 교육 가능일자만 신청 가능하도록)
==>vea_lctr_rnds_stng
2-2.신청 가능한 시간인지(구현)
2-3.해당일 신청가능한 차시가 남았는지(미구현)
2-4.동일한 날짜에 신청된 건이 있는지(구현)
* */
try {
//1.교육희망일이 신청 가능한 일자인지 fail3
VEAStngVO vEAStngVO = new VEAStngVO();
@ -328,6 +339,17 @@ public class EduAplctTngrController {
modelAndView.addObject("msg", s_flag);
return modelAndView;
}
//2-3.해당일 신청가능한 차시가 남았는지(미구현)
String s_flag4 = eduAplctTngrService.eduAplctChkDayChasiProcessToStr(request, modelAndView);
if(!"".equals(s_flag4)){
modelAndView.addObject("result", "fail4");
modelAndView.addObject("msg", s_flag4);
return modelAndView;
}
//동일한 신청건이 있는지 확인(신청자아이디, 교육희망일, 교육대상 동일 비교)
boolean flag2 = eduAplctTngrService.eduAplctDuplChkProcess(vEEduAplctVO, request, modelAndView);

View File

@ -75,6 +75,16 @@ public class VELctrAreaMngDAO extends EgovAbstractDAO {
return tlist;
}
//해당 라운드가 속한 년도의 해당 일자의 신청 가능 차시수
public int selectList20231025(VEAStngVO paramVO) throws Exception {
return (int) select("VELctrAreaMngDAO.selectList20231025", paramVO);
}
//해당 라운드가 속한 년도의 해당 일자의 신청한 차시수
public int selectList20231026(VEAStngVO paramVO) throws Exception {
return (int) select("VELctrAreaMngDAO.selectList20231026", paramVO);
}
//L
public List<VELctrDetailVO> selectOnList(VELctrDetailVO paramVO) throws Exception {
List<VELctrDetailVO> tlist = (List<VELctrDetailVO>) list("VELctrAreaMngDAO.selectOnList", paramVO);

View File

@ -17,6 +17,8 @@ import kcc.com.cmm.LoginVO;
import kcc.com.utl.user.service.CheckLoginUtil;
import kcc.let.uss.umt.service.EgovUserManageService;
import kcc.let.uss.umt.service.UserManageVO;
import kcc.ve.adv.tngr.stngInfo.service.VEAStngService;
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ScholInfoMIXService;
import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ScholInfoService;
import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ScholInfoVO;
@ -60,6 +62,12 @@ public class CommonManageWebController {
@Resource(name = "userManageService")
private EgovUserManageService userManageService;
//강의 회차 정보
@Resource(name = "vEAStngService")
private VEAStngService vEAStngService;
/**
* 학교정보 검색 팝업 리스트
*/
@ -248,4 +256,23 @@ public class CommonManageWebController {
model.addAttribute("userList", userList);
return "oprtn/cmm/userPopListBower";
}
/**
* 회차 검색 팝업 리스트
*/
@RequestMapping("popup/rndsPopList.do")
public String rndsPopList(
@ModelAttribute("searchVO") VEAStngVO vEAStngVO
, ModelMap model
, HttpServletRequest request
) throws Exception {
//VEAStngVO vEAStngVO = new VEAStngVO();
List<VEAStngVO> rndsList = vEAStngService.selectList_VEALRS(vEAStngVO);
//회차 정보리스트
model.addAttribute("rndsList", rndsList);
return "oprtn/cmm/rndsPopList";
}
}

View File

@ -130,7 +130,7 @@ public class EduAplctMngTngrServiceImpl implements EduAplctMngTngrService {
vEEduAplctVO.setEduAplctOrd(eduAplctOrd);
vEEduAplctVO.setLctrDivCd(VeConstants.LCTR_DIV_CD_10); //강의 구분 코드 체험교실
vEEduAplctVO.setScholSealAtchFileId(s_scholSealAtchFileId); //학교장직인 첨부파일
vEEduAplctVO.setUserId(loginVO.getUniqId());
//vEEduAplctVO.setUserId(loginVO.getUniqId());
vEEduAplctVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
//저장전 암호화 - VO 단위로 만들어서 사용
@ -143,7 +143,7 @@ public class EduAplctMngTngrServiceImpl implements EduAplctMngTngrService {
//System.out.println(mberManageVO.getUniqId());
if (mberManageVO!=null) {
vEEduAplctVO.setUserId(mberManageVO.getUniqId());
//vEEduAplctVO.setUserId(mberManageVO.getUniqId());
vEEduAplctVO.setFrstRegisterId(mberManageVO.getUniqId()); //esntl_id
}
@ -406,7 +406,7 @@ public class EduAplctMngTngrServiceImpl implements EduAplctMngTngrService {
vEEduAplctVO.setLctrDivCd(VeConstants.LCTR_DIV_CD_10); //강의 구분 코드 체험교실
vEEduAplctVO.setScholSealAtchFileId(s_scholSealAtchFileId); //학교장직인 첨부파일
//vEEduAplctVO.setUserId(loginVO.getUniqId());
vEEduAplctVO.setUserId(null);
//vEEduAplctVO.setUserId(null);
vEEduAplctVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
//저장전 암호화 - VO 단위로 만들어서 사용

View File

@ -1130,11 +1130,11 @@
<!-- 해당 반기의 차시 총 시간 - 교육신청 시 해당 지역의 총 신청 시간을 필요로 함 -->
<select id="VEEduAplctDAO.selectTotalChasi202310" parameterClass="VEAStngVO" resultClass="int">
/* VEEduAplctDAO.selectTotalChasi */
/* VEEduAplctDAO.selectTotalChasi202310 */
SELECT NVL(sum(b.chasi),0) AS totalLrnTm
FROM ve_edu_aplct a
, ve_edu_chasi b
WHERE a.rnds_ord=#rndsOrd#'
WHERE a.rnds_ord=#rndsOrd#
AND a.edu_slct_cd =#eduSlctCd#
@ -1152,9 +1152,9 @@
요청(10), 선정완료(120), 승인(20), 교육확정(60), 수정요청(70), 수정요청 완료(80), 대기 수량(230)을 모두 카운트 한다.
*/
AND
a.aprvl_cd IN ('10','120','20','60','70','80','230')
AND
a.aprvl_cd IN ('10','120','20','60','70','80','230')
GROUP BY a.rnds_ord
</select>
<!-- 해당 반기의 차시 총 시간 - 교육신청 시 해당 지역의 총 신청 시간을 필요로 함 -->

View File

@ -707,7 +707,47 @@
AND #lctrPsblDdlnTm# BETWEEN b.LCTR_PSBL_STRT_TM AND b.LCTR_PSBL_DDLN_TM
</select>
<!-- 해당 일자에 신청가능한 차시 정보를 가져온다. L -->
<select id="VELctrAreaMngDAO.selectList20231025" parameterClass="VEAStngVO" resultClass="int">
/* VELctrAreaMngDAO.selectList20231025 */
SELECT NVL(c.psbl_tm_qntty,b.PSBL_TM_QNTTY) AS psblTmQnttyCnt
FROM vea_lctr_rnds_stng a ,
vea_lctr_yr_stng b
LEFT OUTER JOIN vea_dt_psbl_tm_qntty_stng C
on(c.yr=b.yr
AND c.TRGT_DT =#trgtDt#
)
WHERE 1=1
AND a.yr =b.yr
AND a.rnds_ord=#rndsOrd#
</select>
<!-- 해당 일자에 신청한 차시 정보를 가져온다. L -->
<select id="VELctrAreaMngDAO.selectList20231026" parameterClass="VEAStngVO" resultClass="int">
/* VELctrAreaMngDAO.selectList20231026 */
SELECT sum(d.chasi) AS psblTmQnttyCnt
FROM vea_lctr_rnds_stng a ,
vea_lctr_rnds_stng b
, ve_edu_aplct c
, ve_edu_chasi d
WHERE 1=1
AND a.yr =b.yr
AND a.rnds_ord=#rndsOrd#
AND d.edu_hope_dt=#trgtDt#
AND b.RNDS_ORD =c.RNDS_ORD
AND c.EDU_APLCT_ORD =d.EDU_APLCT_ORD
AND NVL(c.use_yn,'Y')='Y'
AND c.SBMT_YN = 'Y'
/* 요청(10), 선정완료(120), 승인(20), 교육확정(60), 수정요청(70), 수정요청 완료(80), 대기 수량(230)을 모두 카운트 한다. */
AND c.aprvl_cd IN ('10','120','20','60','70','80','230')
GROUP BY d.edu_hope_dt
</select>
<!-- 강사 정보 L -->
<select id="VELctrAreaMngDAO.selectDateChkList" parameterClass="VELctrDetailVO" resultClass="VELctrDetailVO">
/* VELctrAreaMngDAO.selectDateChkList */

View File

@ -200,6 +200,10 @@
<isNotEmpty property="yr">
AND a.yr=#yr#
</isNotEmpty>
<isNotEmpty property="searchWord" prepend="AND">
a.yr LIKE '%'||#searchWord#||'%'
</isNotEmpty>
</select>

View File

@ -468,7 +468,15 @@
/* VEALctrYrStngMixDAO.selectEduAplctDateChkList */
SELECT a.rnds_ord AS topLctrPsblPrdOrd
,sum(CASE WHEN a.lctr_psbl_yn='Y' THEN 1 ELSE 0 end) AS dpStrtDt
,sum(CASE WHEN a.lctr_psbl_yn='N' THEN 1 ELSE 0 END) AS dpDdlnDt
,sum(
CASE WHEN a.lctr_psbl_yn='N' THEN 1 ELSE 0 END
+
CASE
WHEN to_char(to_date(#lctrPsblStrtDt#,'YYYY.MM.DD'),'d')='1' THEN 1
WHEN to_char(to_date(#lctrPsblStrtDt#,'YYYY.MM.DD'),'d')='7' THEN 1
ELSE 0
END
) AS dpDdlnDt
FROM vea_lctr_psbl_prd_stng a
WHERE #lctrPsblStrtDt# BETWEEN a.lctr_psbl_strt_dt AND a.lctr_psbl_ddln_dt
AND a.rnds_ord=#rndsOrd#

View File

@ -0,0 +1,85 @@
<%@ 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"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>학교명 검색</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/kccadrPb/usr/script/popup.js"></script>
<script type="text/javaScript" language="javascript">
$(document).ready(function(){
});
function fncGoList(){
linkPage(1);
}
function linkPage(pageNo){
var popList = document.popList ;
popList.pageIndex.value = pageNo ;
popList.action = "<c:url value='/kccadr/oprtn/comm/popup/rndsPopList.do'/>";
popList.submit();
}
function fncUserDataSlct(obj){
opener.$("#rndsOrd").val(obj.getAttribute('data-value'));
self.close();
}
</script>
</head>
<body>
<!-- 일정 상세 -->
<form:form commandName="userManageVO" id="popList" name="popList" method="post" onsubmit="return false;">
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}' default='1' />"/>
<input type="hidden" name="pageUnit" value="<c:out value='${searchVO.pageUnit}' default='1' />"/>
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
<div class="area_popup">
<div class="cont_popup">
<div class="pop_list_top">
<input type="text" name="searchWord" id="searchWord" style="width: 450px;" value="<c:out value='${searchVO.searchWord}' />" placeholder="년도 입력" size="20">
<button type="button" class="btn_type08" onclick="fncGoList(); return false;">검색</button>
</div>
<div class="pop_tb_type01 list2">
<table>
<colgroup>
<col style="width: auto;">
<col style="width: auto;">
</colgroup>
<thead>
<tr>
<th scope="col">년도-회차</th>
<th scope="col">소속회차코드</th>
</tr>
</thead>
<tbody>
<c:forEach var="row" items="${rndsList}" varStatus="status">
<tr>
<td>
<a href="#" onclick="fncUserDataSlct(this); return false;" data-value="${row.rndsOrd}"><c:out value="${row.yr}" />-<c:out value="${row.ord}" /></a>
</td>
<td>
<a href="#" onclick="fncUserDataSlct(this); return false;" data-value="${row.rndsOrd}"><c:out value="${row.rndsOrd}" /></a>
<input type="hidden" name="rndsOrd" value="${row.rndsOrd}"/>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</form:form>
</body>
</html>

View File

@ -474,6 +474,18 @@
<col style="width: auto;">
</colgroup>
<tbody>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>신청자 아이디</p>
</th>
<td>
<input type="text" value="${info.userId}" style="min-width:400px;" size="25" readonly id="userId" name="userId" title="교사아이디">
<button type="button" class="btn_type06" onclick="fncUserList();">사용자 검색</button>
</td>
</tr>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>

View File

@ -233,6 +233,24 @@ $( document ).ready(function(){
return true;
}
function fncUserList() {
commonPopWindowopenForm(
"${pageContext.request.contextPath}/kccadr/oprtn/comm/popup/userPopList.do"
, "700"
, "750"
, "UserListPop",$("#popupForm")
);
}
function fncRndsList() {
commonPopWindowopenForm(
"${pageContext.request.contextPath}/kccadr/oprtn/comm/popup/rndsPopList.do"
, "700"
, "750"
, "RndsListPop",$("#popupForm")
);
}
</script>
</head>
@ -251,7 +269,9 @@ $( document ).ready(function(){
<input type="hidden" name="searchSortOrd" value="<c:out value="${modelVO.searchSortOrd}" />" />
</form:form>
<form:form id="createForm" name="createForm" commandName="modelVO" onsubmit="return false;">
<input type="hidden" name="userId" id="userId" value="<c:out value='${info.userId}'/>"/> <!-- 사용자 아이디 -->
<!-- 사용자 아이디 -->
<%-- <input type="hidden" name="userId" id="userId" value="<c:out value='${info.userId}'/>"/> --%>
<!-- validator 체크를 위한 핸드폰, 이메일 input -->
<input type="hidden" name="clphone" id="clphone" value=""/><!-- 연락처(핸드폰) -->
<input type="hidden" name="phone" id="phone" value=""/><!-- 연락처 -->
@ -302,7 +322,28 @@ $( document ).ready(function(){
<col style="width: auto;">
</colgroup>
<tbody>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>신청자 아이디</p>
</th>
<td>
<input type="text" value="${info.userId}" style="min-width:400px;" size="25" readonly id="userId" name="userId" title="교사아이디">
<button type="button" class="btn_type06" onclick="fncUserList();">사용자 검색</button>
</td>
</tr>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>소속회차</p>
</th>
<td>
<input type="text" value="${info.rndsOrd}" style="min-width:400px;" size="25" readonly id="rndsOrd" name="rndsOrd" title="회차">
<button type="button" class="btn_type06" onclick="fncRndsList();">회차 검색</button>
</td>
</tr>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>교육선택</p>

View File

@ -50,7 +50,8 @@ $(document).ready(function(){
, "ScholListPop",$("#popupForm")
);
}
/*
function fncUserList() {
commonPopWindowopenForm(
"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/popup/eduAplctMngUserListPop.do"
@ -59,6 +60,25 @@ $(document).ready(function(){
, "ScholListPop",$("#popupForm")
);
}
*/
function fncUserList() {
commonPopWindowopenForm(
"${pageContext.request.contextPath}/kccadr/oprtn/comm/popup/userPopList.do"
, "700"
, "750"
, "UserListPop",$("#popupForm")
);
}
function fncRndsList() {
commonPopWindowopenForm(
"${pageContext.request.contextPath}/kccadr/oprtn/comm/popup/rndsPopList.do"
, "700"
, "750"
, "RndsListPop",$("#popupForm")
);
}
function callBackSchPop(schData){
if(emptyObject(schData)){
@ -263,7 +283,9 @@ $(document).ready(function(){
<input type="hidden" name="searchSortOrd" value="<c:out value="${modelVO.searchSortOrd}" />" />
</form:form>
<form:form id="createForm" name="createForm" commandName="modelVO" onsubmit="return false;">
<input type="hidden" name="userId" id="userId" value="<c:out value='${info.userId}'/>"/> <!-- 사용자 아이디 -->
<!-- 사용자 아이디 -->
<%-- <input type="hidden" name="userId" id="userId" value="<c:out value='${info.userId}'/>"/> --%>
<!-- validator 체크를 위한 핸드폰, 이메일 input -->
<input type="hidden" name="clphone" id="clphone" value=""/><!-- 연락처(핸드폰) -->
<input type="hidden" name="phone" id="phone" value=""/><!-- 연락처 -->
@ -326,6 +348,26 @@ $(document).ready(function(){
<button type="button" class="btn_type06" onclick="fncUserList();">신청자 검색</button>
</td>
</tr> -->
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>신청자 아이디</p>
</th>
<td>
<input type="text" value="${info.userId}" style="min-width:400px;" size="25" readonly id="userId" name="userId" title="교사아이디">
<button type="button" class="btn_type06" onclick="fncUserList();">사용자 검색</button>
</td>
</tr>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>소속회차</p>
</th>
<td>
<input type="text" value="${info.rndsOrd}" style="min-width:400px;" size="25" readonly id="rndsOrd" name="rndsOrd" title="회차">
<button type="button" class="btn_type06" onclick="fncRndsList();">회차 검색</button>
</td>
</tr>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>

View File

@ -14,13 +14,15 @@
2-1.신청 가능한 일자인지(구현)
(해당 강의 회차의 교육 가능일자만 신청 가능하도록)
==>vea_lctr_rnds_stng
2-2.신청 가능한 시간인지(구현)
2-2.신청 가능한 시간인지(구현)
2-3.해당일 신청가능한 차시가 남았는지(미구현)
2-4.해당 지역에 신청 가능한 차시가 남았는지(미구현)
2-5.동일한 날짜에 기 신청된 건이 있는지(구현)
2-4.동일한 날짜에 기 신청된 건이 있는지(구현)
3.교육신청할때는 신청, 대기만 구분함
3-1.해당 지역에 신청 가능한 차시가 남았는지(구현)
수정일 수정자 수정내용
------- -------- ---------------------------
2021.12.02 조용준 내용
@ -518,29 +520,18 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
var trgt = $(this).find('input[name=trgt]').val();
var rndsOrd = $('input[name=rndsOrd]').val();
/*
if (eduSlctCd=='10'){
$("select[name=eduSlctAreaCd]").val('400');
eduSlctAreaCd = $("select[name=eduSlctAreaCd]").val();
//eduSlctAreaCd = "400";
}
*/
//alert(eduSlctAreaCd);
//return;
//상반기 하반기 구하기
/*
신청일자를 기준으로 대상을 찾는 방식으로 변경 따라서 상반기 하반기 구할필요 없음
var now = new Date();
var prdDivCd = now.getMonth()+1;
if(prdDivCd <= 6){
prdDivCd = "10";
}else{
prdDivCd = "20";
}
*/
2.교육신청시 교육희망일 비교하여 가능한 정보를 가져온다.
2-1.신청 가능한 일자인지(구현)
(해당 강의 회차의 교육 가능일자만 신청 가능하도록)
==>vea_lctr_rnds_stng
2-2.신청 가능한 시간인지(구현)
2-3.해당일 신청가능한 차시가 남았는지(미구현)
2-4.동일한 날짜에 기 신청된 건이 있는지(구현)
*/
$.ajax({
type:"POST",
@ -835,6 +826,7 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크
<label for="eduSlctCd" class="label">온/오프라인 선택</label>
<%-- 수정요청사항에 따라 온라인 -> 온라인 실시간으로 변경을 위해 ve:code 미사용_220224 --%>
<select id="eduSlctCd" name="eduSlctCd" class="selType1" onChange="itemChg(this.value);">
<option value="" <c:if test="${info.eduSlctCd == ''}">selected="selected"</c:if>>선택</option>
<option value="10" <c:if test="${info.eduSlctCd == '10'}">selected="selected"</c:if>>온라인 실시간</option>
<option value="20" <c:if test="${info.eduSlctCd == '20'}">selected="selected"</c:if>>오프라인</option>
</select>