이지우 - 관리자 성인교육 신청상세, 배치확정상세, 결과상세 > sms/메일 템플릿 변경
This commit is contained in:
parent
820fac6efa
commit
645f2abcba
@ -261,7 +261,6 @@ public class VeSendMail {
|
|||||||
if("A".equals(sndFlag) // A -> 기반강화
|
if("A".equals(sndFlag) // A -> 기반강화
|
||||||
|| "B".equals(sndFlag) // B -> 기소유예
|
|| "B".equals(sndFlag) // B -> 기소유예
|
||||||
|| "C".equals(sndFlag) // C -> 찾교청소년
|
|| "C".equals(sndFlag) // C -> 찾교청소년
|
||||||
|| "S".equals(sndFlag) // S -> 찾교성인
|
|
||||||
|| "G".equals(sndFlag) // G -> 체험교실
|
|| "G".equals(sndFlag) // G -> 체험교실
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@ -275,6 +274,18 @@ public class VeSendMail {
|
|||||||
.replace("[[_Content_]]", Cn)
|
.replace("[[_Content_]]", Cn)
|
||||||
;
|
;
|
||||||
Cn = emailContent;
|
Cn = emailContent;
|
||||||
|
}else if("S".equals(sndFlag)){ // S -> 찾교성인 . 템플릿 변경
|
||||||
|
|
||||||
|
String emailContent = "";
|
||||||
|
|
||||||
|
emailContent = this.getTemplate()
|
||||||
|
.replace("[[_Name_]] 드림", "")
|
||||||
|
.replace("[[_Phone_]]", phone)
|
||||||
|
.replace("[[_Phone_tel_]]", phone)
|
||||||
|
.replace("[[_Email_]]", email)
|
||||||
|
.replace("[[_Content_]]", "안녕하세요. 저작권배움터 찾아가는 교육 담당자입니다.<br>"+Cn)
|
||||||
|
;
|
||||||
|
Cn = emailContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -89,6 +89,13 @@ public class VeSendSMS {
|
|||||||
|
|
||||||
/******************** 전송정보 ********************/
|
/******************** 전송정보 ********************/
|
||||||
//msg_type - SMS, LMS, MMS 미지정 시 자동 전환
|
//msg_type - SMS, LMS, MMS 미지정 시 자동 전환
|
||||||
|
//성인교육 기본 템플릿 제공
|
||||||
|
if("S".equals(sndFlag)) {
|
||||||
|
msg = "안녕하세요. 저작권배움터 찾아가는 교육 담당자입니다.\n" + msg + "\n감사합니다.";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sms.put("msg", msg); // 메세지 내용
|
sms.put("msg", msg); // 메세지 내용
|
||||||
sms.put("receiver", receiver); // 수신번호
|
sms.put("receiver", receiver); // 수신번호
|
||||||
//sms.put("destination", "01111111111|담당자,01111111112|홍길동"); // 수신인 %고객명% 치환
|
//sms.put("destination", "01111111111|담당자,01111111112|홍길동"); // 수신인 %고객명% 치환
|
||||||
|
|||||||
@ -202,7 +202,7 @@
|
|||||||
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/offeduSMSSndAjax.do",
|
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/offeduSMSSndAjax.do",
|
||||||
"10", //코드 10:sms 20:mail
|
"10", //코드 10:sms 20:mail
|
||||||
p_smsMsg,
|
p_smsMsg,
|
||||||
""
|
"S"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@
|
|||||||
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/offeduSMSSndAjax.do",
|
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/offeduSMSSndAjax.do",
|
||||||
"10", //코드 10:sms 20:mail
|
"10", //코드 10:sms 20:mail
|
||||||
p_smsMsg,
|
p_smsMsg,
|
||||||
""
|
"S"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//이메일 발송
|
//이메일 발송
|
||||||
|
|||||||
@ -240,12 +240,89 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fncSndSms(){
|
||||||
|
|
||||||
|
var p_smsMsg = $("#smsMsg").val();
|
||||||
|
|
||||||
|
if (p_smsMsg==""){
|
||||||
|
alert("SMS 발송 내용은 필수값입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
fncContent(
|
||||||
|
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/offeduSMSSndAjax.do",
|
||||||
|
"10", //코드 10:sms 20:mail
|
||||||
|
p_smsMsg,
|
||||||
|
"S"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
//이메일 발송
|
||||||
|
function fncSndEmail(){
|
||||||
|
|
||||||
|
var p_smsEmail = $("#smsEmail").val();
|
||||||
|
|
||||||
|
if (p_smsEmail==""){
|
||||||
|
alert("이메일 발송 내용은 필수값입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
fncContent(
|
||||||
|
"${pageContext.request.contextPath}/kccadr/oprtn/pblc/emailSndAjax.do",
|
||||||
|
"20",
|
||||||
|
p_smsEmail,
|
||||||
|
"S"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
//기본 발송
|
||||||
|
function fncContent(p_url, p_cd, p_cn, p_flag){
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
// enctype: 'multipart/form-data',
|
||||||
|
url:p_url,
|
||||||
|
//data: data,
|
||||||
|
data:{
|
||||||
|
"sndCd": p_cd,
|
||||||
|
"sndCn": p_cn,
|
||||||
|
"eduAplctOrd": $("#eduAplctOrd").val(),
|
||||||
|
"clphone": '<c:out value="${info.clphone}" />',
|
||||||
|
"email": '<c:out value="${info.email}" />',
|
||||||
|
"sndFlag": p_flag,
|
||||||
|
"trgtId" : '<c:out value="${info.userId}" />'
|
||||||
|
},
|
||||||
|
dataType:'json',
|
||||||
|
/*
|
||||||
|
async: false,
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
cache: false,
|
||||||
|
*/
|
||||||
|
|
||||||
|
success:function(returnData){
|
||||||
|
if(returnData.result == "success"){
|
||||||
|
alert(returnData.message);
|
||||||
|
}else{
|
||||||
|
alert(returnData.message);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form:form id="chasiStatusPopForm" name="chasiStatusPopForm" action="">
|
<form:form id="chasiStatusPopForm" name="chasiStatusPopForm" action="">
|
||||||
<input type="hidden" name="eduAplctOrd" value="<c:out value="${vEEduAplctVO.eduAplctOrd}" />" />
|
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="<c:out value="${vEEduAplctVO.eduAplctOrd}" />" />
|
||||||
<input type="hidden" name="eduChasiOrd" value="<c:out value="${vEEduAplctVO.eduChasiOrd}" />" />
|
<input type="hidden" name="eduChasiOrd" value="<c:out value="${vEEduAplctVO.eduChasiOrd}" />" />
|
||||||
</form:form>
|
</form:form>
|
||||||
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
||||||
@ -444,6 +521,48 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 알림 정보 상세 -->
|
||||||
|
<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" placeholder="* 메시지는 단문(90byte)으로만 작성 가능합니다." onkeyup="countBytes(this ,90 ,$('#byteSms')[0])"></textarea> -->
|
||||||
|
<textarea id="smsMsg"></textarea>
|
||||||
|
<button type="button" class="btn_type08" onclick="fncSndSms();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="fncSndEmail();return false;">이메일 발송</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<p><span id="byteEmail">0</span>/1000 byte</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- list_상세 -->
|
<!-- list_상세 -->
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<p>배정정보</p>
|
<p>배정정보</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user