From 1171584ce7ecf23621cc5f83772229137af1efab Mon Sep 17 00:00:00 2001 From: myname Date: Fri, 8 Dec 2023 18:13:19 +0900 Subject: [PATCH] =?UTF-8?q?2023-12-08=2018:13=20=EA=B0=95=EC=82=AC?= =?UTF-8?q?=EB=A3=8C=20=ED=99=95=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/CndtnInstrMngController.java | 132 ++++++ .../web/FndthInstrMngController.java | 134 ++++++ .../adultVisitEdu/eduInstrFeeMngList.jsp | 2 +- .../cndtnSspnIdtmt/eduInstrFeeMngList.jsp | 417 ++++++++++++++++++ .../fndthEnhanceTrn/eduInstrFeeMngList.jsp | 417 ++++++++++++++++++ 5 files changed, 1101 insertions(+), 1 deletion(-) create mode 100644 src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp diff --git a/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnInstrMngController.java b/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnInstrMngController.java index aca25709..a90a2ce6 100644 --- a/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnInstrMngController.java +++ b/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnInstrMngController.java @@ -19,7 +19,11 @@ import kcc.com.cmm.service.EgovFileMngUtil; import kcc.com.cmm.service.impl.CmmUseDAO; import kcc.com.utl.user.service.CheckLoginUtil; import kcc.let.utl.fcc.service.EgovCryptoUtil; +import kcc.ve.cmm.VeInstrFeeMng; +import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeAcmdtVO; +import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeService; import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctService; +import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO; import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduChasiService; import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduMIXService; import kcc.ve.instr.tngrVisitEdu.instrInfo.service.VEInstrDetailVO; @@ -126,6 +130,11 @@ public class CndtnInstrMngController { //과정신청기간순번 @Resource(name="vePrcsAplctPrdEtcGnrService") private EgovIdGnrService vePrcsAplctPrdEtcGnrService; + + // 강사료 + @Resource(name = "vEInstrFeeService") + private VEInstrFeeService vEInstrFeeService; + /* // 교육신청 서비스단 @@ -242,6 +251,83 @@ public class CndtnInstrMngController { return "oprtn/cndtnSspnIdtmt/cndtnInstrMngList"; } + /** + * 강사료 확정 처리 목록 화면 + */ + //@RequestMapping("eduInstrFeeMngList.do") + @RequestMapping("/kccadr/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.do") + public String eduInstrFeeMngList( + @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO + , ModelMap model + ) throws Exception { + + //로그인 처리==================================== + //로그인 정보 가져오기 + + //String s_oprtnLoginCheckNInfo = checkLoginUtil.oprtnCheckNInfo(model); + //if (!"".equals(s_oprtnLoginCheckNInfo)) return s_oprtnLoginCheckNInfo; + + //로그인 처리==================================== + + try { + //담당자 검색 시 이름 암호화 + if("2".equals(vEEduAplctVO.getSearchCondition())) { + vEEduAplctVO.setSearchKeyword(egovCryptoUtil.encrypt(vEEduAplctVO.getSearchKeyword())); + } + model.addAttribute("cryptoUtil", egovCryptoUtil); + + //1.pageing step1 + PaginationInfo paginationInfo = this.setPagingStep1_vEEduAplctVO(vEEduAplctVO); + + //2. pageing step2 + vEEduAplctVO = this.setPagingStep2_vEEduAplctVO(vEEduAplctVO, paginationInfo); + //vEEduAplctVO.setLctrDivCd("30"); // 저작권 체험교실 코드 + vEEduAplctVO.setInstrDiv("60"); // 10-청소년, 20-성인, 30-체험, 40-외부, 50-기반, 60-기소 + vEEduAplctVO.setLctrDivCd("60"); // 10-청소년, 20-성인, 30-체험, 40-외부, 50-기반, 60-기소 + vEEduAplctVO.setAprvlCd("60"); + vEEduAplctVO.setAsgnmAprvlCd("30"); //강사배정 교육승인 +// vEEduAplctVO.setSearchSubmitYn("Y"); //제출에 대한 강사료 확정 여부 + vEEduAplctVO.setSearchAsgnmAprvlCd("30"); + vEEduAplctVO.setSearchTableJoin("tngrResult"); + + System.out.println("11111111111111113"); + + vEEduAplctVO = egovCryptoUtil.encryptVEEduAplctVOInfo(vEEduAplctVO); + List vEEduAplctVOList = vEEduMIXService.selectTngrFeePagingList(vEEduAplctVO); + VEEduAplctVO vo = new VEEduAplctVO(); + for(int i=0; i < vEEduAplctVOList.size(); i++) { + vo = egovCryptoUtil.decryptVEEduAplctVOInfo(vEEduAplctVOList.get(i)); + System.out.println(" @@@@@@@@@@@@@ "+vo.getChrgNm()); + vEEduAplctVOList.get(i).setChrgNm(vo.getChrgNm()); + + // 강사료 계산 + VeInstrFeeMng veInstrFeeMng = new VeInstrFeeMng(); + VEInstrFeeAcmdtVO vEInstrFeeAcmdtVO = veInstrFeeMng.VeInstrFeeMng4Adult(vEInstrFeeService, vEEduAplctVOList.get(i).getEduAplctOrd(), vEEduAplctVOList.get(i).getEduChasiOrd()); + vEEduAplctVOList.get(i).setInstrFeeSum(Integer.toString(vEInstrFeeAcmdtVO.getInstrFeeSum())); + } + + System.out.println("11111111111111112"); + + //3.pageing step3 + paginationInfo = this.setPagingStep3_vEEduAplctVO(vEEduAplctVOList, paginationInfo); + + + model.addAttribute("paginationInfo", paginationInfo); + + + //대상 리스트, 페이징 정보 전달 + model.addAttribute("list", vEEduAplctVOList); + + System.out.println("1111111111111111"); + + //대상 리스트, 페이징 정보 전달 + //model.addAttribute("resultList", vEEduAplctVOList); + }catch(Exception ex) { + ex.printStackTrace(); + } + + return "oprtn/cndtnSspnIdtmt/eduInstrFeeMngList"; + } ////////////////////////////////////////////////////////////////////////////////////////////////////////////// // @@ -314,4 +400,50 @@ public class CndtnInstrMngController { return p_paginationInfo; } + //페이징을 위한 처리 step1 - 페이징 기본 정보 설정 + private PaginationInfo setPagingStep1_vEEduAplctVO( + VEEduAplctVO p_vEEduAplctVO + )throws Exception{ + // pageing step1 + PaginationInfo paginationInfo = new PaginationInfo(); + paginationInfo.setCurrentPageNo(p_vEEduAplctVO.getPageIndex()); + paginationInfo.setRecordCountPerPage(p_vEEduAplctVO.getPageUnit()); + paginationInfo.setPageSize(p_vEEduAplctVO.getPageSize()); + + return paginationInfo; + } + + + //페이징을 위한 처리 step2 - 게시물 리스트 수량 설정 및 검색 조건 초기화 + private VEEduAplctVO setPagingStep2_vEEduAplctVO( + VEEduAplctVO p_vEEduAplctVO + , PaginationInfo p_paginationInfo + )throws Exception{ + // pageing step2 + p_vEEduAplctVO.setFirstIndex(p_paginationInfo.getFirstRecordIndex()); + p_vEEduAplctVO.setLastIndex(p_paginationInfo.getLastRecordIndex()); + p_vEEduAplctVO.setRecordCountPerPage(p_paginationInfo.getRecordCountPerPage()); + + if("".equals(p_vEEduAplctVO.getSearchSortCnd())){ //최초조회시 최신것 조회List + p_vEEduAplctVO.setSearchSortCnd("prcs_ord"); + p_vEEduAplctVO.setSearchSortOrd("desc"); + } + + return p_vEEduAplctVO; + } + + + //페이징을 위한 처리 step3 - 전체 게시물 수량 설정하기 + private PaginationInfo setPagingStep3_vEEduAplctVO( + List p_vEEduAplctVOList + + , PaginationInfo p_paginationInfo + )throws Exception{ + // pageing step3 + int totCnt = 0; + if(p_vEEduAplctVOList.size() > 0) totCnt = p_vEEduAplctVOList.get(0).getTotCnt(); + p_paginationInfo.setTotalRecordCount(totCnt); + + return p_paginationInfo; + } } diff --git a/src/main/java/kcc/ve/oprtn/fndtnEnhanceTrn/prcsAplctPrdMng/web/FndthInstrMngController.java b/src/main/java/kcc/ve/oprtn/fndtnEnhanceTrn/prcsAplctPrdMng/web/FndthInstrMngController.java index 3d325c4d..f305eb65 100644 --- a/src/main/java/kcc/ve/oprtn/fndtnEnhanceTrn/prcsAplctPrdMng/web/FndthInstrMngController.java +++ b/src/main/java/kcc/ve/oprtn/fndtnEnhanceTrn/prcsAplctPrdMng/web/FndthInstrMngController.java @@ -19,7 +19,11 @@ import kcc.com.cmm.service.EgovFileMngUtil; import kcc.com.cmm.service.impl.CmmUseDAO; import kcc.com.utl.user.service.CheckLoginUtil; import kcc.let.utl.fcc.service.EgovCryptoUtil; +import kcc.ve.cmm.VeInstrFeeMng; +import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeAcmdtVO; +import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeService; import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctService; +import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO; import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduChasiService; import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduMIXService; import kcc.ve.instr.tngrVisitEdu.instrInfo.service.VEInstrDetailVO; @@ -126,6 +130,11 @@ public class FndthInstrMngController { //과정신청기간순번 @Resource(name="vePrcsAplctPrdEtcGnrService") private EgovIdGnrService vePrcsAplctPrdEtcGnrService; + + // 강사료 + @Resource(name = "vEInstrFeeService") + private VEInstrFeeService vEInstrFeeService; + /* // 교육신청 서비스단 @@ -243,6 +252,84 @@ public class FndthInstrMngController { } + /** + * 강사료 확정 처리 목록 화면 + */ + //@RequestMapping("eduInstrFeeMngList.do") + @RequestMapping("/kccadr/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.do") + public String eduInstrFeeMngList( + @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO + , ModelMap model + ) throws Exception { + + //로그인 처리==================================== + //로그인 정보 가져오기 + + //String s_oprtnLoginCheckNInfo = checkLoginUtil.oprtnCheckNInfo(model); + //if (!"".equals(s_oprtnLoginCheckNInfo)) return s_oprtnLoginCheckNInfo; + + //로그인 처리==================================== + + try { + //담당자 검색 시 이름 암호화 + if("2".equals(vEEduAplctVO.getSearchCondition())) { + vEEduAplctVO.setSearchKeyword(egovCryptoUtil.encrypt(vEEduAplctVO.getSearchKeyword())); + } + model.addAttribute("cryptoUtil", egovCryptoUtil); + + //1.pageing step1 + PaginationInfo paginationInfo = this.setPagingStep1_vEEduAplctVO(vEEduAplctVO); + + //2. pageing step2 + vEEduAplctVO = this.setPagingStep2_vEEduAplctVO(vEEduAplctVO, paginationInfo); + //vEEduAplctVO.setLctrDivCd("30"); // 저작권 체험교실 코드 + vEEduAplctVO.setInstrDiv("50"); // 10-청소년, 20-성인, 30-체험, 40-외부, 50-기반, 60-기소 + vEEduAplctVO.setLctrDivCd("50"); // 10-청소년, 20-성인, 30-체험, 40-외부, 50-기반, 60-기소 + vEEduAplctVO.setAprvlCd("60"); + vEEduAplctVO.setAsgnmAprvlCd("30"); //강사배정 교육승인 +// vEEduAplctVO.setSearchSubmitYn("Y"); //제출에 대한 강사료 확정 여부 + vEEduAplctVO.setSearchAsgnmAprvlCd("30"); + vEEduAplctVO.setSearchTableJoin("tngrResult"); + + System.out.println("11111111111111113"); + + vEEduAplctVO = egovCryptoUtil.encryptVEEduAplctVOInfo(vEEduAplctVO); + List vEEduAplctVOList = vEEduMIXService.selectTngrFeePagingList(vEEduAplctVO); + VEEduAplctVO vo = new VEEduAplctVO(); + for(int i=0; i < vEEduAplctVOList.size(); i++) { + vo = egovCryptoUtil.decryptVEEduAplctVOInfo(vEEduAplctVOList.get(i)); + System.out.println(" @@@@@@@@@@@@@ "+vo.getChrgNm()); + vEEduAplctVOList.get(i).setChrgNm(vo.getChrgNm()); + + // 강사료 계산 + VeInstrFeeMng veInstrFeeMng = new VeInstrFeeMng(); + VEInstrFeeAcmdtVO vEInstrFeeAcmdtVO = veInstrFeeMng.VeInstrFeeMng4Adult(vEInstrFeeService, vEEduAplctVOList.get(i).getEduAplctOrd(), vEEduAplctVOList.get(i).getEduChasiOrd()); + vEEduAplctVOList.get(i).setInstrFeeSum(Integer.toString(vEInstrFeeAcmdtVO.getInstrFeeSum())); + } + + System.out.println("11111111111111112"); + + //3.pageing step3 + paginationInfo = this.setPagingStep3_vEEduAplctVO(vEEduAplctVOList, paginationInfo); + + + model.addAttribute("paginationInfo", paginationInfo); + + + //대상 리스트, 페이징 정보 전달 + model.addAttribute("list", vEEduAplctVOList); + + System.out.println("1111111111111111"); + + //대상 리스트, 페이징 정보 전달 + //model.addAttribute("resultList", vEEduAplctVOList); + }catch(Exception ex) { + ex.printStackTrace(); + } + + return "oprtn/fndthEnhanceTrn/eduInstrFeeMngList"; + } + ////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // @@ -314,4 +401,51 @@ public class FndthInstrMngController { return p_paginationInfo; } + + //페이징을 위한 처리 step1 - 페이징 기본 정보 설정 + private PaginationInfo setPagingStep1_vEEduAplctVO( + VEEduAplctVO p_vEEduAplctVO + )throws Exception{ + // pageing step1 + PaginationInfo paginationInfo = new PaginationInfo(); + paginationInfo.setCurrentPageNo(p_vEEduAplctVO.getPageIndex()); + paginationInfo.setRecordCountPerPage(p_vEEduAplctVO.getPageUnit()); + paginationInfo.setPageSize(p_vEEduAplctVO.getPageSize()); + + return paginationInfo; + } + + + //페이징을 위한 처리 step2 - 게시물 리스트 수량 설정 및 검색 조건 초기화 + private VEEduAplctVO setPagingStep2_vEEduAplctVO( + VEEduAplctVO p_vEEduAplctVO + , PaginationInfo p_paginationInfo + )throws Exception{ + // pageing step2 + p_vEEduAplctVO.setFirstIndex(p_paginationInfo.getFirstRecordIndex()); + p_vEEduAplctVO.setLastIndex(p_paginationInfo.getLastRecordIndex()); + p_vEEduAplctVO.setRecordCountPerPage(p_paginationInfo.getRecordCountPerPage()); + + if("".equals(p_vEEduAplctVO.getSearchSortCnd())){ //최초조회시 최신것 조회List + p_vEEduAplctVO.setSearchSortCnd("prcs_ord"); + p_vEEduAplctVO.setSearchSortOrd("desc"); + } + + return p_vEEduAplctVO; + } + + + //페이징을 위한 처리 step3 - 전체 게시물 수량 설정하기 + private PaginationInfo setPagingStep3_vEEduAplctVO( + List p_vEEduAplctVOList + + , PaginationInfo p_paginationInfo + )throws Exception{ + // pageing step3 + int totCnt = 0; + if(p_vEEduAplctVOList.size() > 0) totCnt = p_vEEduAplctVOList.get(0).getTotCnt(); + p_paginationInfo.setTotalRecordCount(totCnt); + + return p_paginationInfo; + } } diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp index b6b8caae..ebd2c9b5 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp @@ -228,7 +228,7 @@
  • -

    청소년 찾아가는 저작권 교육

    +

    성인 찾아가는 저작권 교육

  • 강사료 확정 관리
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp new file mode 100644 index 00000000..6494e4d5 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp @@ -0,0 +1,417 @@ + +<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> +<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> +<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> + +<% + /** + * @Class Name : eduInstrFeeMngList.jsp + * @Description : 강사료 확정 관리 > 강사료 확정 목록 + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ ------- -------- --------------------------- + * @ 2022.12.7 안주영 최초 생성 + * @author 안주영 + * @since 2022.2.7 + * @version 1.0 + * @see + * + */ +%> + + + + + + + 신청관리 + + +
+ + +
+ + + " /> + " /> + + + + + + +
+
+ + +
+

강사료 확정 처리 목록

+
    +
  • +
  • +

    조건부기소유예관리

    +
  • +
  • 강사료 확정 관리
  • +
+
+ + +
+ +
+
+
+

구분

+
+
+ + +
+
+
+
+

교육일자

+
+
+
+ +
+ ~ +
+ +
+ + + + + + + +
+
+
+ + + +
+

총 건수 :

+
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
교육일자차시기관구분신청유형기관(단체)명강사이름강사료확정여부
+ + + ${list.eduHopeDt} +<%-- --%> +<%-- --%> + + + + + + + ${list.strtTm} + + + ~ + + + + + + ${list.strtTm} + + + (분) + + + + + + + + + +
(${fn:split(list.userId,'_')[1]*1}) +
+
+ ',''); return false;"> + + + + 확정 + 미확정 +
+
+ + +
+ +
+ +
+
+ + + +
+
+
+
+ +
+
+
+
+
+ + +
+ + + diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp new file mode 100644 index 00000000..d6b00fe5 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp @@ -0,0 +1,417 @@ + +<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> +<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> +<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> + +<% + /** + * @Class Name : eduInstrFeeMngList.jsp + * @Description : 강사료 확정 관리 > 강사료 확정 목록 + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ ------- -------- --------------------------- + * @ 2022.12.7 안주영 최초 생성 + * @author 안주영 + * @since 2022.2.7 + * @version 1.0 + * @see + * + */ +%> + + + + + + + 신청관리 + + +
+ + +
+ + + " /> + " /> + + + + + + +
+
+ + +
+

강사료 확정 처리 목록

+
    +
  • +
  • +

    기반강화연수관리

    +
  • +
  • 강사료 확정 관리
  • +
+
+ + +
+ +
+
+
+

구분

+
+
+ + +
+
+
+
+

교육일자

+
+
+
+ +
+ ~ +
+ +
+ + + + + + + +
+
+
+ + + +
+

총 건수 :

+
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
교육일자차시기관구분신청유형기관(단체)명강사이름강사료확정여부
+ + + ${list.eduHopeDt} +<%-- --%> +<%-- --%> + + + + + + + ${list.strtTm} + + + ~ + + + + + + ${list.strtTm} + + + (분) + + + + + + + + + +
(${fn:split(list.userId,'_')[1]*1}) +
+
+ ',''); return false;"> + + + + 확정 + 미확정 +
+
+ + +
+ +
+ +
+
+ + + +
+
+
+
+ +
+
+
+
+
+ + +
+ + +