From 9dacd94929c3cd128ffc8ea77d06e673e0c8be35 Mon Sep 17 00:00:00 2001 From: myname Date: Mon, 27 Nov 2023 18:44:54 +0900 Subject: [PATCH] =?UTF-8?q?2023-11-27=2018:44=20=EA=B0=95=EC=9D=98?= =?UTF-8?q?=EA=B5=90=ED=99=98=20=EC=88=98=EC=A0=95=20=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/ScholInfoController.java | 58 +++++++ .../eduAplct/web/EduAplctTngrController.java | 42 +++++ .../popup/changeLctrPopList.jsp | 153 ++++++++++++++++++ .../asgnmInfo/instrAsgnmRqstList.jsp | 52 +++++- 4 files changed, 302 insertions(+), 3 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/changeLctrPopList.jsp diff --git a/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/web/ScholInfoController.java b/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/web/ScholInfoController.java index 99de6785..120144e3 100644 --- a/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/web/ScholInfoController.java +++ b/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/web/ScholInfoController.java @@ -21,6 +21,7 @@ import kcc.ve.adv.tngr.stngInfo.service.VEAStngMixService; import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO; import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ScholInfoService; import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ScholInfoVO; +import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO; /** * 학교검색(대국민) @@ -105,6 +106,63 @@ public class ScholInfoController { return "/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/scholPopList"; } + /** + * 강의교안 팝업 리스트 + */ + @RequestMapping("popup/changeLctrPopList.do") + public String changeLctrPopList( + //@ModelAttribute("scholInfoVO") ScholInfoVO scholInfoVO + @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO + , ModelMap model + , HttpServletRequest request + ) throws Exception { + /* + //1.paging step1 + PaginationInfo paginationInfo = this.setPagingStep1(scholInfoVO); + //2. paging step2 + scholInfoVO = this.setPagingStep2(scholInfoVO, paginationInfo); + + if (!"".equals(scholInfoVO.getSearchKeyword())) { + scholInfoVO.setSelectPagingListQuery(" AND A.SCHOL_NM LIKE '%"+scholInfoVO.getSearchKeyword()+"%' "); + } + + if (!"".equals(scholInfoVO.getSearchCondition())) { + if(scholInfoVO.getSearchCondition().equals("10")) { + scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%초등%' "); + }else if(scholInfoVO.getSearchCondition().equals("20")) { + scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%중학%' "); + }else if(scholInfoVO.getSearchCondition().equals("30")) { + scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%고등%' "); + }else if(scholInfoVO.getSearchCondition().equals("40")) { + scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%특수%' "); + }else if(scholInfoVO.getSearchCondition().equals("50")) { + scholInfoVO.setScholGrade(" AND A.SCHOL_GRADE_NM LIKE '%각종%' "); + } + } + + List scholInfoVOList = scholInfoService.selectPagingList(scholInfoVO); + //3.paging step3 + paginationInfo = this.setPagingStep3(scholInfoVOList, paginationInfo); + model.addAttribute("paginationInfo", paginationInfo); + //학교정보 리스트, 페이징 정보 전달 + model.addAttribute("scholList", scholInfoVOList); + */ + + System.out.println("request.getParameter(userId)"); + System.out.println(request.getParameter("userId")); + System.out.println(request.getParameter("eduAplctOrd")); + System.out.println(request.getParameter("eduChasiOrd")); + + System.out.println(vEEduAplctVO.getUserId()); + System.out.println(vEEduAplctVO.getEduAplctOrd()); + System.out.println(vEEduAplctVO.getEduChasiOrd()); + + + + + return "/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/changeLctrPopList"; + } + /** * 교육일정당력보기 */ diff --git a/src/main/java/kcc/ve/aplct/tngrVisitEdu/eduAplct/web/EduAplctTngrController.java b/src/main/java/kcc/ve/aplct/tngrVisitEdu/eduAplct/web/EduAplctTngrController.java index 9cb60804..346928a3 100644 --- a/src/main/java/kcc/ve/aplct/tngrVisitEdu/eduAplct/web/EduAplctTngrController.java +++ b/src/main/java/kcc/ve/aplct/tngrVisitEdu/eduAplct/web/EduAplctTngrController.java @@ -422,6 +422,48 @@ public class EduAplctTngrController { return modelAndView; } + /** + * // 해당 강사가 강의교환이 가능한지 체크하는 로직 + */ + @RequestMapping("eduInstrAsgnmChkAjax.do") + public ModelAndView eduInstrAsgnmChkAjax( + @ModelAttribute("vEAStngVO") VEAStngVO vEAStngVO + , ModelMap model + , HttpServletRequest request + ) throws Exception { + ModelAndView modelAndView = new ModelAndView(); + modelAndView.setViewName("jsonView"); + + //로그인 처리==================================== + //일자 정보 가져오기 + //boolean flag = eduAplctTngrService.eduAplctDateChkProcess(vEEduAplctVO, request, modelAndView); + //String s_message = eduAplctTngrService.eduAplctDateChkProcess(vEEduAplctVO, request, modelAndView); + + System.out.println("request.getParameter(userId)"); + System.out.println(request.getParameter("userId")); + System.out.println(request.getParameter("eduAplctOrd")); + System.out.println(request.getParameter("eduChasiOrd")); + + //String s_message = vEAStngMixService.eduAplctDateChkProcess(vEAStngVO, request, modelAndView); + + //vEAStngMixService.selectDetail_VEADPTQS(paramVO) + //ㅁ + /* + if(!"".equals(s_message) && s_message.indexOf("rndsOrd")<0){ + //if(!flag){ + modelAndView.addObject("result", "fail"); + modelAndView.addObject("message", s_message); + return modelAndView; + } + modelAndView.addObject("result", "success"); + modelAndView.addObject("rndsOrd", s_message); + */ + + modelAndView.addObject("result", "success"); + + return modelAndView; + } + /** * 교육신청서 상세 화면 */ diff --git a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/changeLctrPopList.jsp b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/changeLctrPopList.jsp new file mode 100644 index 00000000..6948dfe2 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/changeLctrPopList.jsp @@ -0,0 +1,153 @@ +<%@ 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"%> + + + + + + +" /> +" /> +" /> + + + diff --git a/src/main/webapp/WEB-INF/jsp/web/ve/instr/tngrVisitEdu/asgnmInfo/instrAsgnmRqstList.jsp b/src/main/webapp/WEB-INF/jsp/web/ve/instr/tngrVisitEdu/asgnmInfo/instrAsgnmRqstList.jsp index 7744e8e1..93f2b5f4 100644 --- a/src/main/webapp/WEB-INF/jsp/web/ve/instr/tngrVisitEdu/asgnmInfo/instrAsgnmRqstList.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/ve/instr/tngrVisitEdu/asgnmInfo/instrAsgnmRqstList.jsp @@ -40,6 +40,31 @@ $(this).val(''); }); } + + //강의교환 + function fncChangeLctr( + p_userId + , p_eduAplctOrd + , p_eduChasiOrd + ) { + paramObj = { + + "userId" : p_userId, + "eduAplctOrd" : p_eduAplctOrd, + "eduChasiOrd" : p_eduChasiOrd, + + formId : "createForm" + }; + + commonPopLayeropen( + "${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/changeLctrPopList.do" + , 500 + , 600 + , paramObj + , "Y" + , "scholPop" + ); + } @@ -168,7 +193,7 @@ - + @@ -180,7 +205,18 @@ - ${statCd} + ${statCd} + + + + + + + @@ -238,7 +274,7 @@ - + @@ -255,6 +291,16 @@ <%-- --%> + + + + + +