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 df6503f0..2a2ec304 100644 --- a/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnInstrMngController.java +++ b/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnInstrMngController.java @@ -584,18 +584,25 @@ public class CndtnInstrMngController { //통계- ④검찰청별 교육 수료 현황(그래프 포함) { vEInstrDetailVODetail = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVODetail); + vEInstrDetailVODetail.setSearchEduStateCd("20"); //이수만 보기 List selectAsgnmInfoT4List_no4 = vEInstrMixService.selectEduPrfrmInfo_csi_no1(vEInstrDetailVODetail); model.addAttribute("list_no4",selectAsgnmInfoT4List_no4); } - // ⑤월별 교육수료현황(그래프 포함) - 대상이 없어서 제공안됨 + // ⑤월별 교육이수현황(그래프 포함) - 대상이 없어서 제공안됨 { - + vEInstrDetailVODetail = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVODetail); + vEInstrDetailVODetail.setSearchEduStateCd("20"); //이수만 보기 + List selectAsgnmInfoT5List = vEInstrMixService.selectEduPrfrmInfo_csi_no2(vEInstrDetailVODetail); + model.addAttribute("list_no5",selectAsgnmInfoT5List); } - // ⑥대상별 교육수료현황(그래프 포함) - 대상이 없어서 제공안됨 + // ⑥대상별 교육이수현황(그래프 포함) - 대상이 없어서 제공안됨 { - + vEInstrDetailVODetail = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVODetail); + vEInstrDetailVODetail.setSearchEduStateCd("20"); //이수만 보기 + List selectAsgnmInfoT6List = vEInstrMixService.selectEduPrfrmInfo_csi_no3(vEInstrDetailVODetail); + model.addAttribute("list_no6",selectAsgnmInfoT6List); } // ⑦월별 교육대상별 교육인원(그래프 포함) - 대상이 없어서 제공안됨 { @@ -833,7 +840,7 @@ public class CndtnInstrMngController { } /** - * 교육실적통계 Excel - 조건부기소유예 - ①검찰청별 교육 의뢰 현황(그래프 포함) + * 교육실적통계 Excel - 조건부기소유예 - 2검찰청별 교육 의뢰 현황(그래프 포함) * @param model * @return * @throws Exception @@ -988,6 +995,241 @@ public class CndtnInstrMngController { return modelAndView; } + /** + * 교육실적통계 Excel - 조건부기소유예 - 4검찰청별 교육 이수 현황(그래프 포함) + * @param model + * @return + * @throws Exception + */ + @SuppressWarnings("rawtypes") + @RequestMapping(value = "/kccadr/oprtn/cndtnSspnIdtmt/eduPrfrmMngExcelDownLoad_csi_no4.do") + public ModelAndView eduPrfrmMngExcelDownLoad_csi_no4( + @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO + , @ModelAttribute("vEInstrDetailVODetail") VEInstrDetailVO vEInstrDetailVODetail + , ModelMap model + ) throws Exception { + + ModelAndView modelAndView = new ModelAndView(); + modelAndView.setViewName("excelDownloadView"); + + try { + + //통계- ①월별 횟수/교육인원(그래프 포함) + //vEInstrDetailVODetail.setInstrNm(vEInstrDetailVODetail.getSearchKeyword()); + vEInstrDetailVODetail = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVODetail); + vEInstrDetailVODetail.setSearchEduStateCd("20"); //이수만 보기 + List selectAsgnmInfoT2List = vEInstrMixService.selectEduPrfrmInfo_csi_no1(vEInstrDetailVODetail); + + //복호화 + //selectAsgnmInfoT2List = egovCryptoUtil.decryptVELctrDetailVOList(selectAsgnmInfoT2List); + + System.out.println("out-list-2"); + + + List excelData = new ArrayList<>(); + excelData.addAll(selectAsgnmInfoT2List); + + + // 세팅값 + String title = "교육실적통계-검찰청별 교육 이수 현황"; + int[] width = { + + 4000, 4000 + + }; // 너비 + + //33개 항목 + String[] header = { + + "구분" + , "이수(명)" + + }; + + String[] order = { + + "CodeNm" + , "Cnt" + + }; + + excelDown( + excelData, + title, + width, + header, + order, + model + ); + + }catch(Exception ep) { + ep.getStackTrace(); + } + + + modelAndView.addObject(model); + + return modelAndView; + } + + /** + * 교육실적통계 Excel - 조건부기소유예 - 5검찰청별 교육 이수 현황(그래프 포함) + * @param model + * @return + * @throws Exception + */ + @SuppressWarnings("rawtypes") + @RequestMapping(value = "/kccadr/oprtn/cndtnSspnIdtmt/eduPrfrmMngExcelDownLoad_csi_no5.do") + public ModelAndView eduPrfrmMngExcelDownLoad_csi_no5( + @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO + , @ModelAttribute("vEInstrDetailVODetail") VEInstrDetailVO vEInstrDetailVODetail + , ModelMap model + ) throws Exception { + + ModelAndView modelAndView = new ModelAndView(); + modelAndView.setViewName("excelDownloadView"); + + try { + + //통계- ①월별 횟수/교육인원(그래프 포함) + //vEInstrDetailVODetail.setInstrNm(vEInstrDetailVODetail.getSearchKeyword()); + vEInstrDetailVODetail = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVODetail); + vEInstrDetailVODetail.setSearchEduStateCd("20"); //이수만 보기 + List selectAsgnmInfoT2List = vEInstrMixService.selectEduPrfrmInfo_csi_no2(vEInstrDetailVODetail); + + //복호화 + //selectAsgnmInfoT2List = egovCryptoUtil.decryptVELctrDetailVOList(selectAsgnmInfoT2List); + + System.out.println("out-list-2"); + + + selectAsgnmInfoT2List.get(12).setCodeNm("합계"); + + List excelData = new ArrayList<>(); + excelData.addAll(selectAsgnmInfoT2List); + + + // 세팅값 + String title = "교육실적통계-월별 교육 이수 현황"; + int[] width = { + + 4000, 4000 + + }; // 너비 + + //33개 항목 + String[] header = { + + "월" + , "이수(명)" + + }; + + String[] order = { + + "CodeNm" + , "Cnt" + + }; + + excelDown( + excelData, + title, + width, + header, + order, + model + ); + + }catch(Exception ep) { + ep.getStackTrace(); + } + + + modelAndView.addObject(model); + + return modelAndView; + } + + /** + * 교육실적통계 Excel - 조건부기소유예 - 3대상별 교육 이수 현황(그래프 포함) + * @param model + * @return + * @throws Exception + */ + @SuppressWarnings("rawtypes") + @RequestMapping(value = "/kccadr/oprtn/cndtnSspnIdtmt/eduPrfrmMngExcelDownLoad_csi_no6.do") + public ModelAndView eduPrfrmMngExcelDownLoad_csi_no6( + @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO + , @ModelAttribute("vEInstrDetailVODetail") VEInstrDetailVO vEInstrDetailVODetail + , ModelMap model + ) throws Exception { + + ModelAndView modelAndView = new ModelAndView(); + modelAndView.setViewName("excelDownloadView"); + + try { + + //통계- ①월별 횟수/교육인원(그래프 포함) + //vEInstrDetailVODetail.setInstrNm(vEInstrDetailVODetail.getSearchKeyword()); + vEInstrDetailVODetail = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVODetail); + vEInstrDetailVODetail.setSearchEduStateCd("20"); //이수만 보기 + List selectAsgnmInfoT3List = vEInstrMixService.selectEduPrfrmInfo_csi_no3(vEInstrDetailVODetail); + + //복호화 + //selectAsgnmInfoT2List = egovCryptoUtil.decryptVELctrDetailVOList(selectAsgnmInfoT2List); + + System.out.println("out-list-2"); + + + selectAsgnmInfoT3List.get(2).setCodeNm("합계"); + + List excelData = new ArrayList<>(); + excelData.addAll(selectAsgnmInfoT3List); + + + // 세팅값 + String title = "교육실적통계-대상별 교육 이수 현황"; + int[] width = { + + 4000, 4000 + + }; // 너비 + + //33개 항목 + String[] header = { + + "대상" + , "이수(명)" + + }; + + String[] order = { + + "CodeNm" + , "Cnt" + + }; + + excelDown( + excelData, + title, + width, + header, + order, + model + ); + + }catch(Exception ep) { + ep.getStackTrace(); + } + + + modelAndView.addObject(model); + + return modelAndView; + } + ////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // diff --git a/src/main/resources/egovframework/sqlmap/ve/instr/VESttst_MIX_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/ve/instr/VESttst_MIX_SQL_Tibero.xml index 969d4916..a9393c76 100644 --- a/src/main/resources/egovframework/sqlmap/ve/instr/VESttst_MIX_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/ve/instr/VESttst_MIX_SQL_Tibero.xml @@ -2142,6 +2142,11 @@ /* 병합제거시 주석 제거 할것 AND a.prcs_aplct_prd_ord_cmplt IS null */ + + + AND a.edu_state_cd = #searchEduStateCd# + + GROUP BY a.CMPTNT_ATHRT )aa LEFT OUTER JOIN ( @@ -2201,6 +2206,10 @@ /* 병합제거시 주석 제거 할것 AND a.prcs_aplct_prd_ord_cmplt IS null */ + + AND a.edu_state_cd = #searchEduStateCd# + + GROUP BY TO_CHAR(a.req_pnttm, 'MM' ) )aa @@ -2246,6 +2255,10 @@ /* 병합제거시 주석 제거 할것 AND a.prcs_aplct_prd_ord_cmplt IS null */ + + AND a.edu_state_cd = #searchEduStateCd# + + GROUP BY substring(req_nmbr,0,1) )aa diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/newEduPrfrmMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/newEduPrfrmMngList.jsp index 06fb305c..6a8f3de0 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/newEduPrfrmMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/newEduPrfrmMngList.jsp @@ -99,28 +99,22 @@ listForm.action = ""; listForm.submit(); } - + function excelDownLoad_no4(){ - var listForm = document.listForm ; - listForm.action = ""; + var listForm = document.listForm ; + listForm.action = ""; listForm.submit(); } - function excelDownLoad_no5_no6_no7(){ + function excelDownLoad_no5(){ var listForm = document.listForm ; - listForm.action = ""; + listForm.action = ""; listForm.submit(); } - function excelDownLoad_no8(){ + function excelDownLoad_no6(){ var listForm = document.listForm ; - listForm.action = ""; - listForm.submit(); - } - - function excelDownLoad_no9(){ - var listForm = document.listForm ; - listForm.action = ""; + listForm.action = ""; listForm.submit(); } @@ -708,7 +702,509 @@ - + + + + +
+ +

+ ④검찰청별 교육 이수 현황 +

+
+ + + +
+
+ + + + + + + + + + + +
+
+
+ +
+ + + +
+ + +<%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
구분이수(명)
+
+ + + + +
+ +

+ ⑤월별 교육 이수 현황 +

+
+ + + +
+
+ + + + + + + + + + + +
+
+
+ +
+ + + +
+ + +<%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
구분 + + 합계 + ${list.codeNm}월 + + +
이수(명)
+
+ + + + +
+ +

+ ⑥대상별 교육 이수 현황 +

+
+ + + +
+
+ + + + + + + + + + + +
+
+
+ +
+ + + +
+ + +<%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
구분 + + 합계 + ${list.codeNm} + + +
이수(명)
+
+