Merge branch 'JIWOO' into advc
This commit is contained in:
commit
ce69fd9bc6
@ -737,8 +737,9 @@ public class FndtnEnhanceTrnController {
|
||||
if (loginVO == null || ssoLoginVO == null) {
|
||||
//이전 url 처리(beforeSiteUrl)_이준호_220228추가
|
||||
return checkLoginUtil.getUserLoginPage(model, request); //로그인 정보가 없으면 로그인 페이지로 이동한다.
|
||||
}
|
||||
|
||||
}else {
|
||||
vEPrcsDetailVO.setUserId(loginVO.getUniqId());
|
||||
}
|
||||
return "/web/ve/aplct/fndtnEnhanceTrn/popup/eduAplctPop";
|
||||
}
|
||||
|
||||
|
||||
@ -258,8 +258,7 @@ public class VeSendMail {
|
||||
* 청소년 성인 체험교실도 Cn 데이터 확인후 조건문 추가
|
||||
* AnotaionSchedule 211 라인 참조
|
||||
* */
|
||||
if("A".equals(sndFlag) // A -> 기반강화
|
||||
|| "B".equals(sndFlag) // B -> 기소유예
|
||||
if("B".equals(sndFlag) // B -> 기소유예
|
||||
|| "C".equals(sndFlag) // C -> 찾교청소년
|
||||
|| "G".equals(sndFlag) // G -> 체험교실
|
||||
) {
|
||||
@ -283,7 +282,19 @@ public class VeSendMail {
|
||||
.replace("[[_Phone_]]", phone)
|
||||
.replace("[[_Phone_tel_]]", phone)
|
||||
.replace("[[_Email_]]", email)
|
||||
.replace("[[_Content_]]", "안녕하세요. 저작권배움터 찾아가는 교육 담당자입니다.<br>"+Cn)
|
||||
.replace("[[_Content_]]", "안녕하세요. 저작권배움터 찾아가는 교육 담당자 입니다.<br>"+Cn)
|
||||
;
|
||||
Cn = emailContent;
|
||||
}else if("A".equals(sndFlag)){ // A -> 실무역량강화 . 템플릿 변경
|
||||
|
||||
String emailContent = "";
|
||||
|
||||
emailContent = this.getTemplate()
|
||||
.replace("[[_Name_]] 드림", "")
|
||||
.replace("[[_Phone_]]", phone)
|
||||
.replace("[[_Phone_tel_]]", phone)
|
||||
.replace("[[_Email_]]", email)
|
||||
.replace("[[_Content_]]", "안녕하세요. 저작권배움터 실무역량강화 담당자 입니다.<br>"+Cn)
|
||||
;
|
||||
Cn = emailContent;
|
||||
}
|
||||
|
||||
@ -374,7 +374,7 @@
|
||||
try{
|
||||
sendSms(
|
||||
returnData.vEInstrDetailVOList[i].phone,
|
||||
"안녕하세요 교육운영팀입니다. 아래 교육이 확정되었으니, 자세한 사항은 시스템(저작권 배움터)을 통하여 확인하시어 일정에 차질이 없도록 준비 부탁드립니다."+
|
||||
"아래 교육이 확정되었으니, 자세한 사항은 시스템(저작권 배움터)을 통하여 확인하시어 일정에 차질이 없도록 준비 부탁드립니다."+
|
||||
"\n일시 : "+ hopeDt + " " + strtTm + " ~ " + endTm +
|
||||
"\n기관 : "+ insttNm,
|
||||
returnData.vEInstrDetailVOList[i].eduAplctOrd,
|
||||
@ -384,7 +384,7 @@
|
||||
);
|
||||
sendEmail(
|
||||
returnData.vEInstrDetailVOList[i].email,
|
||||
"안녕하세요 교육운영팀입니다. 아래 교육이 확정되었으니, 자세한 사항은 시스템(저작권 배움터)을 통하여 확인하시어 일정에 차질이 없도록 준비 부탁드립니다."+
|
||||
"아래 교육이 확정되었으니, 자세한 사항은 시스템(저작권 배움터)을 통하여 확인하시어 일정에 차질이 없도록 준비 부탁드립니다."+
|
||||
"\n일시 : "+ hopeDt + " " + strtTm + " ~ " + endTm +
|
||||
"\n기관 : "+ insttNm,
|
||||
returnData.vEInstrDetailVOList[i].eduAplctOrd,
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
@ -228,7 +229,48 @@
|
||||
}
|
||||
|
||||
|
||||
function chkSnd(type){
|
||||
var chkLen = $(detailForm).find("input[name=chk]:checked").length;
|
||||
|
||||
if(chkLen == 0){
|
||||
alert("선택된 항목이 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(type == 'sms')
|
||||
{
|
||||
$('input:checkbox[name="chk"]:checked').each(function() {
|
||||
|
||||
if(type == "sms"){
|
||||
sendSms(
|
||||
$(this).data('clphone'),
|
||||
$("#smsMsg").val(),
|
||||
$(this).val(),
|
||||
$(this).data('userid'),
|
||||
"A",
|
||||
"N"
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
else if(type == 'email')
|
||||
{
|
||||
$('input:checkbox[name="chk"]:checked').each(function() {
|
||||
|
||||
sendEmail(
|
||||
$(this).data('email'),
|
||||
$("#smsEmail").val(),
|
||||
$(this).val(),
|
||||
$(this).data('userid'),
|
||||
"A", // 기반강화
|
||||
"N"
|
||||
);
|
||||
});
|
||||
}
|
||||
alert("발송되었습니다.");
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -518,7 +560,8 @@
|
||||
<c:forEach var="list" items="${listPrcsAplct}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<input name="chk" class="${list.asgnmAprvlCd}"
|
||||
<input name="chk" class="${list.asgnmAprvlCd}" data-email="<c:out value='${list.email}' />"
|
||||
data-userid="<c:out value='${list.userId}' />" data-clphone="<c:out value='${list.phone}' />"
|
||||
value="${list.eduAplctOrd}" title="Check" type="checkbox"/>
|
||||
</td>
|
||||
<td>
|
||||
@ -588,6 +631,46 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
|
||||
<div class="tb_tit01">
|
||||
<p>교육신청자 알림정보</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<p>SMS 내용</p>
|
||||
</th>
|
||||
<td class="tb_alram">
|
||||
<div>
|
||||
<textarea id="smsMsg"></textarea>
|
||||
<button type="button" class="btn_type08" onclick="chkSnd('sms');return false;">SMS 발송</button>
|
||||
</div>
|
||||
<!-- <p><span id="byteSms">0</span>/90 byte</p> -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<p>이메일 답변 내용</p>
|
||||
</th>
|
||||
<td class="tb_alram">
|
||||
<div>
|
||||
<textarea id="smsEmail" onkeyup="countBytes(this ,1000 ,$('#byteEmail')[0])"></textarea>
|
||||
<button type="button" class="btn_type08" onclick="chkSnd('email');return false;">이메일 발송</button>
|
||||
|
||||
</div>
|
||||
<p><span id="byteEmail">0</span>/1000 byte</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
<!-- btn_wrap -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="btn_left">
|
||||
|
||||
@ -186,7 +186,7 @@
|
||||
try{
|
||||
sendEmail(
|
||||
emailAll,
|
||||
"안녕하세요. 저작권배움터 찾아가는 교육 담당자입니다.\n교육신청 건이 정상적으로 접수되었습니다.\n신청하신 교육과 관련해서 특이사항 발생 시 회원가입하신 저작권 배움터 시스템을 통하여 알려드리겠습니다.\n감사합니다.",
|
||||
"교육신청 건이 정상적으로 접수되었습니다.\n신청하신 교육과 관련해서 특이사항 발생 시 회원가입하신 저작권 배움터 시스템을 통하여 알려드리겠습니다.",
|
||||
returnData.VO.eduAplctOrd,
|
||||
'<c:out value="${modelVO.userId}" />',
|
||||
"S",
|
||||
@ -1136,7 +1136,7 @@
|
||||
</table>
|
||||
<div class="tb_tit01">
|
||||
<div class="tb_tit01_left">
|
||||
<span class="cf_text"><br/>※ 교육희망일외 교육일자 추가시 추가 등록 바랍니다.</span>
|
||||
<span class="cf_text"><br/>※ 교육희망일외 교육일자 추가시 재신청 바랍니다.</span>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<c:url value='/visitEdu/usr/publish/script/duetdatepicker2.js' />"></script>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<un:useConstants var="VeConstants" className="kcc.ve.cmm.VeConstants" />
|
||||
<title>교육신청 목록 > 성인 찾아가는 저작권 교육 > 한국저작권위원회 저작권 교육 시스템</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
||||
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
|
||||
<link rel="stylesheet" href="/offedu/visitEdu/adm/publish/css/reset.css">
|
||||
|
||||
<style>
|
||||
@ -147,6 +147,19 @@ $(document).ready(function(){
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("저장되었습니다.");
|
||||
|
||||
try{
|
||||
sendEmail(
|
||||
$("#email").val(),
|
||||
"교육신청 건이 정상적으로 접수되었습니다.\n신청하신 교육과 관련해서 특이사항 발생시 저작권 배움터 시스템을 통하여 알려드리겠습니다.",
|
||||
'<c:out value="${vEPrcsDetailVO.prcsAplctPrdOrd}" />',
|
||||
'<c:out value="${vEPrcsDetailVO.userId}" />',
|
||||
"A", //실무 - A
|
||||
"N"
|
||||
);
|
||||
}catch (e){
|
||||
}
|
||||
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user