From 4d810e63c855bdd04200de49555d0e5dc7ac3c90 Mon Sep 17 00:00:00 2001 From: jiwoo Date: Wed, 20 Dec 2023 18:35:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9A=B0=20-=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=EC=9E=90=20=EC=B2=AD=EC=86=8C=EB=85=84/=EC=84=B1?= =?UTF-8?q?=EC=9D=B8=20=EA=B0=95=EC=82=AC=EC=8B=A0=EC=B2=AD=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A0=95=20=EA=B8=B0=EB=8A=A5=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20=EC=8B=A0=EA=B7=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/OprtnInstrAdultPrflContoller.java | 56 ++++ .../adultVisitEdu/eduInstrFeeMngList.jsp | 2 +- .../adultVisitEdu/instrAplctMngDetail.jsp | 291 +++++++++++++++++- .../jsp/oprtn/adultVisitEdu/instrAplctReg.jsp | 6 +- .../adultVisitEdu/instrAplctRegExcel.jsp | 2 +- .../cndtnSspnIdtmt/eduInstrFeeMngList.jsp | 2 +- .../fndthEnhanceTrn/eduInstrFeeMngList.jsp | 2 +- .../oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp | 28 +- .../tngrVisitEdu/instrAplctMngDetail.jsp | 153 +++++++-- .../jsp/oprtn/tngrVisitEdu/instrAplctReg.jsp | 8 +- .../oprtn/tngrVisitEdu/instrAplctRegExcel.jsp | 2 +- .../tngrVisitEdu/instrAplctStngExcel.jsp | 2 +- 12 files changed, 494 insertions(+), 60 deletions(-) diff --git a/src/main/java/kcc/ve/oprtn/instr/adultVisitEdu/instrInfo/web/OprtnInstrAdultPrflContoller.java b/src/main/java/kcc/ve/oprtn/instr/adultVisitEdu/instrInfo/web/OprtnInstrAdultPrflContoller.java index 129f6925..36c4631c 100644 --- a/src/main/java/kcc/ve/oprtn/instr/adultVisitEdu/instrInfo/web/OprtnInstrAdultPrflContoller.java +++ b/src/main/java/kcc/ve/oprtn/instr/adultVisitEdu/instrInfo/web/OprtnInstrAdultPrflContoller.java @@ -1722,6 +1722,62 @@ public class OprtnInstrAdultPrflContoller { return modelAndView; } + /** + * 2. 강사신청 수정 + */ + @RequestMapping("/ve/oprtn/instr/adultVisitEdu/instrInfo/instrAplctMngDetailUpdateAjax.do") + public ModelAndView instrAplctMngDetailUpdateAjax( + @ModelAttribute("vEInstrDetailVO") VEInstrDetailVO vEInstrDetailVO + , final MultipartHttpServletRequest multiRequest + , ModelMap model + , RedirectAttributes redirectAttributes + , HttpSession session + , HttpServletRequest request + ) throws Exception { + + ModelAndView modelAndView = new ModelAndView(); + modelAndView.setViewName("jsonView"); + + //로그인 처리==================================== + //로그인 정보 가져오기 + LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기 + + String atchFileId = ""; + final Map files = multiRequest.getFileMap(); + + if (!files.isEmpty()) { + //XXX_로 첨부파일 네이밍 + List result = egovFileMngUtil.parseFileInf(files, "PHT_", 0, "", "", ""); + atchFileId = fileMngService.insertFileInfs(result); + } + //첨부파일Id(atchFileId)를 해당 VO atchFileId변수에 저장 + vEInstrDetailVO.setPhtAtchFileId(atchFileId); + + //세션 ID 가져오기 + vEInstrDetailVO.setLastUpdusrId(loginVO.getUniqId()); + + //제출, 승인요청 일시 + SimpleDateFormat format1 = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss"); + Date time = new Date(); + String now = format1.format(time); + if("Y".equals(vEInstrDetailVO.getSbmtYn())) { + vEInstrDetailVO.setSbmtPnttm(now); + } + + vEInstrService.update(vEInstrDetailVO); + //등록 요청, 재요청일 시 반려사유 삭제 + if("10".equals(vEInstrDetailVO.getAprvlCd())) { + vEInstrDetailVO.setAprvlCn(""); + } + + //암호화 + vEInstrDetailVO = egovCryptoUtil.encryptVEInstrDetailVO(vEInstrDetailVO);/*이름, 번호 복호화*/ + vEInstrDetailService.update(vEInstrDetailVO); + modelAndView.addObject("result", "success"); + + return modelAndView; + } + //////////////////////////////////////////////////////////////// // // private function 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 ebd2c9b5..6366277d 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp @@ -192,7 +192,7 @@ $('input:checkbox[name="chk"]:checked').each(function() { sendSms( $(this).data('instrphone'), - "교육운영 관리 시스템입니다." + $(this).data('instrnm')+"님의 " + $(this).data('date') + " 교육 강사료는 " + $(this).data('instrfeesum') +"입니다.", + "교육운영 관리 시스템입니다." + $(this).data('instrnm')+"님의 " + $(this).data('date') + " 교육 강사료는 " + $(this).data('instrfeesum') +"원입니다.", $(this).val().split('@')[0], $(this).data('userid'), "N" diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngDetail.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngDetail.jsp index 8c687d8b..2e40ac90 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngDetail.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngDetail.jsp @@ -28,7 +28,114 @@ 전자교육신청 상세 + + @@ -160,6 +366,9 @@ + + +
@@ -196,7 +405,8 @@

강사명

- + +
@@ -215,69 +425,121 @@

연락처(핸드폰)

- + + + - + + - + +

e-mail

- + + + <%-- --%> + + @ + + + +

주소

-
-   + + + +
+ + + + +

거주지

- + + + + +

생년월일

- + + + + + + + --%> + +

소속

- + + +

직위

- + + +

위촉년도

- + + +

구분

- + + + - + <%--

위촉구분${info.apptDiv}

- + --%>

전문분야

- + @@ -295,6 +557,7 @@ + +
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctMngDetail.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctMngDetail.jsp index bbfb924b..127bcf4e 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctMngDetail.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctMngDetail.jsp @@ -28,6 +28,8 @@ 강사정보 상세 + + @@ -284,6 +365,10 @@ + + + +
@@ -450,7 +535,7 @@

구분

- + @@ -459,7 +544,7 @@

위촉구분

- + diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctReg.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctReg.jsp index 4552c076..5cb0b52f 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctReg.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctReg.jsp @@ -251,11 +251,13 @@ $( document ).ready(function(){ function fncRsdnePopup() { //거주지 팝업 - document.createForm.action = ""; - window.open("#", "_rsdnePopup", "scrollbars = no, top=200px, left=2500px, height=500px, width=700px"); + /* document.createForm.action = ""; + window.open('', "_rsdnePopup", "scrollbars = no, top=200px, left=2500px, height=500px, width=700px"); document.createForm.target = "_rsdnePopup"; document.createForm.formId.value = "createForm"; - document.createForm.submit(); + document.createForm.submit(); */ + + commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/instr/tngrVisitEdu/popup/instrRsdnePopup.do", "750", "660", "rsdnePopup", $('#createForm')); } function fncPhotoPopup() { diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctRegExcel.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctRegExcel.jsp index d8922b71..17cdc462 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctRegExcel.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctRegExcel.jsp @@ -410,7 +410,7 @@ $( document ).ready(function(){ - ※ 컴퓨터 파일(엑셀)만 등록 가능합니다.sample + ※ 컴퓨터 파일(엑셀)만 등록 가능합니다.sample diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctStngExcel.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctStngExcel.jsp index 81f11d43..6e7f1ef1 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctStngExcel.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrAplctStngExcel.jsp @@ -410,7 +410,7 @@ $( document ).ready(function(){ - ※ 컴퓨터 파일(엑셀)만 등록 가능합니다.sample + ※ 컴퓨터 파일(엑셀)만 등록 가능합니다.sample