diff --git a/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/VEEduAplctVO.java b/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/VEEduAplctVO.java index 9681d29b..492aeb98 100644 --- a/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/VEEduAplctVO.java +++ b/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/VEEduAplctVO.java @@ -149,6 +149,8 @@ public class VEEduAplctVO extends ComDefaultVO implements Serializable { private String acmdtAplctOrd; //숙박신청 순번 private String acmdtSbmtYn; //숙박신청 제출여부 + private String targetId; + public int getChasi() { return chasi; @@ -1748,6 +1750,13 @@ public class VEEduAplctVO extends ComDefaultVO implements Serializable { public void setAcmdtSbmtYn(String acmdtSbmtYn) { this.acmdtSbmtYn = acmdtSbmtYn; } + public String getTargetId() { + return targetId; + } + public void setTargetId(String targetId) { + this.targetId = targetId; + } + } diff --git a/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAplctMng/web/EduAplctMngTngrController.java b/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAplctMng/web/EduAplctMngTngrController.java index 097b77b0..1492b033 100644 --- a/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAplctMng/web/EduAplctMngTngrController.java +++ b/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAplctMng/web/EduAplctMngTngrController.java @@ -976,6 +976,7 @@ public class EduAplctMngTngrController { */ @RequestMapping("popup/eduDocReqAlertPopup.do") public String eduDocReqAlertPopup( @ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO , ModelMap model , HttpServletRequest request ) throws Exception { + return "oprtn/tngrVisitEdu/popup/eduDocReqAlertPopup"; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml index fb451928..fe08602e 100644 --- a/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml @@ -1297,7 +1297,9 @@ A.SBMT_ATCH_FILE_ID AS sbmtAtchFileId, TO_CHAR(A.SBMT_PNTTM,'YYYY-MM-DD') AS sbmtPnttm, A.SBMT_ID AS sbmtId, - B.INSTR_NM AS instrNm + B.INSTR_NM AS instrNm, + B.PHONE AS phone, + B.EMAIL AS email FROM VE_EDU_DOC_REQ A LEFT JOIN VE_INSTR_DETAIL B diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cmm/rejectPopup.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cmm/rejectPopup.jsp index 9fd3191e..6daf5dc3 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cmm/rejectPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cmm/rejectPopup.jsp @@ -13,6 +13,7 @@ 학교명 검색 + @@ -335,7 +339,13 @@
+ "/> + + + + +
" /> @@ -669,10 +679,8 @@ - - - <%-- - --%> + + diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngDetail.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngDetail.jsp index 0b3682eb..ff1b8de3 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngDetail.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngDetail.jsp @@ -272,8 +272,13 @@ function replyCalculation(){ // 서류요청 SMS, EMAIL 알림 팝업 - function alertPopup(userId,type) { //메뉴생성 화면 호출 + function alertPopup(userId,type, p_receiver, instrNm) { //메뉴생성 화면 호출 document.popForm.action = ""; + document.popForm.targetId.value = userId; + document.popForm.type.value = type; + document.popForm.phone.value = p_receiver; + document.popForm.email.value = p_receiver; + document.popForm.instrNm.value = instrNm; window.open("#", "_eduDocReqAlertPopup", "scrollbars = no, top=100px, left=100px, height=550px, width=750px"); document.popForm.target = "_eduDocReqAlertPopup"; document.popForm.submit(); @@ -309,7 +314,12 @@ function replyCalculation(){
+ "/> + + + +
@@ -602,10 +612,8 @@ function replyCalculation(){ - - - <%-- - --%> + + diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/popup/eduDocReqAlertPopup.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/popup/eduDocReqAlertPopup.jsp index 1d5c26fc..f4c6a543 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/popup/eduDocReqAlertPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/popup/eduDocReqAlertPopup.jsp @@ -29,45 +29,79 @@ %> -교육신청 상세 - - - - - + 교육신청 상세 + + + + + + - - " /> - - - " /> - -
+ + + + + + +
-

SMS|EMIAL 발송 - 개발전

+
+

+ + + SMS 발송 + + + EMAIL 발송 + + +

+
@@ -78,13 +112,23 @@ - + - +

수신자

청소년강사1(010-1111-2222) + + + + () + + + () + + +

내용

@@ -95,8 +139,15 @@
- - + + + + + + + + +
diff --git a/src/main/webapp/js/ve/sendSmsEmailUtil.js b/src/main/webapp/js/ve/sendSmsEmailUtil.js new file mode 100644 index 00000000..2e1ca787 --- /dev/null +++ b/src/main/webapp/js/ve/sendSmsEmailUtil.js @@ -0,0 +1,101 @@ +//문자발송 +function sendSms( + p_receiver, // 수신자 + p_cn, //내용 + p_logSeq, //로그에 남길 pk + p_trgtId, //받는사용자pk + p_alertYn // 발송 후 alert 여부 + ){ + + if (p_cn==""){ + alert("SMS 발송 내용은 필수값입니다."); + return false; + } + sendContent( + p_receiver, + p_cn, + "", + "10", //코드 10:sms 20:mail + p_logSeq, + p_trgtId, + p_alertYn + ); +} + +//이메일 발송 +function sendEmail( + p_receiver, // 수신자 + p_cn, //내용 + p_logSeq, //로그에 남길 pk + p_trgtId, //받는사용자pk + p_flag, // p_flag -> 'C' 청소년 , 'S' 성인 + p_alertYn // 발송 후 alert 여부 + ){ + + if (p_cn==""){ + alert("이메일 발송 내용은 필수값입니다."); + return false; + } + + sendContent( + p_receiver, + p_cn, + p_flag, + "20", //코드 10:sms 20:mail + p_logSeq, + p_trgtId, + p_alertYn + ); +} + +//발송 +function sendContent(p_receiver, p_cn, p_flag, p_cd, p_logSeq, p_trgtId, p_alertYn){ + + var url = ""; + if(p_cd == '10') url = getContextPath()+"/kccadr/oprtn/pblc/offeduSMSSndAjax.do"; + else if(p_cd == '20') url = getContextPath()+"/kccadr/oprtn/pblc/emailSndAjax.do"; + + if(url ==""){ + if(p_alertYn != 'N'){ + alert("발송이 실패했습니다."); + } + return false; + } + + $.ajax({ + type: "POST", + url:url, + data:{ + "clphone": p_receiver, + "email": p_receiver, + "sndCn": p_cn, + "sndFlag": p_flag, + "sndCd": p_cd, + "eduAplctOrd": p_logSeq, + "trgtId" : p_trgtId + }, + dataType:'json', + success:function(returnData){ + if(returnData.result == "success"){ + if(p_alertYn != 'N'){ + alert(returnData.message); + } + }else{ + if(p_alertYn != 'N'){ + alert(returnData.message); + } + } + }, + error:function(request , status, error){ + if(p_alertYn != 'N'){ + alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); + } + } + }); +} + +function getContextPath(){ + var hostIndex = location.href.indexOf( location.host ) + location.host.length; + var contextPath = location.href.substring( hostIndex, location.href.indexOf('/', hostIndex + 1) ); + return contextPath; +} \ No newline at end of file