이지우 - 청소년 교육확정알림 자동에서 수동으로 변경

This commit is contained in:
jiwoo 2024-02-19 11:46:03 +09:00
parent c1a1461b27
commit 4bbf7a4862
3 changed files with 72 additions and 9 deletions

View File

@ -146,8 +146,11 @@
dataType:'json',
success:function(returnData){
if(returnData.rsCnt > 0){
alert("상태가 변경 되었습니다.");
fncGoDetail();
if(statusVal == VeConstants.APRVL_CD_60 ){
/* 240219. 메일, sms 자동안내 삭제 */
/* if(statusVal == VeConstants.APRVL_CD_60 ){
//교육확정 시 SMS, 메일 안내
try{
sendSms(
@ -175,7 +178,7 @@
}else{
alert("상태가 변경 되었습니다.");
fncGoDetail();
}
} */
}
},
error:function(request , status, error){

View File

@ -32,6 +32,7 @@
transition: background-color .1s linear;
}
</style>
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
<script type="text/javascript">
$(document).ready(function(){
@ -162,7 +163,7 @@
}
//sms 발송
function fncSndSms(){
/* function fncSndSms(){
var chkLen = $(listForm).find("input[name=chk]:checked").length;
if(chkLen == 0){
@ -210,6 +211,48 @@
emails,
"Z"
);
} */
//교육확정 알림 발송
function fncSndSnd(){
var fnExit = false;
var chkLen = $(listForm).find("input[name=chk]:checked").length;
if(chkLen == 0){
alert("선택된 항목이 없습니다.");
return;
}
$('input:checkbox[name="chk"]:checked').each(function(idx) {
if($(this).attr("class") != "60") {
alert("선택한 목록 중 교욱확정알림이 불가능한 건이 있습니다.");
fnExit = true;
}
});
if(fnExit) return false;
$('input:checkbox[name="chk"]:checked').each(function(idx) {
try{
sendSms(
$(this).data("phone"),
"안녕하세요, 한국저작권위원회 교육운영팀입니다.\n신청하신 찾아가는 저작권 교육일정이 확정되었습니다.\n강사 배정 후, 교육 일주일 전 다시 안내 드리겠습니다.\n범죄경력조회동의서 등 필요서류가 있으시면 신청하신 교육 홈페이지 교육신청목록에서 서류 양식 업로드 하시면 됩니다. 단, 강사 배정 후 업로드 가능하며 교육일로부터 2주전 가능합니다.(위원회 사정에 따라 강사 배정 시기는 변동 될 수 있음)\n감사합니다.\n055-792-0224\nschool@copyright.or.kr",
$(this).val(),
$(this).data("userid"),
"C",
"N"
);
sendEmail(
$(this).data("email"),
"신청하신 찾아가는 저작권 교육일정이 확정되었습니다.\n강사 배정 후, 교육 일주일 전 다시 안내 드리겠습니다.\n범죄경력조회동의서 등 필요서류가 있으시면 신청하신 교육 홈페이지 교육신청목록에서 서류 양식 업로드 하시면 됩니다. 단, 강사 배정 후 업로드 가능하며 교육일로부터 2주전 가능합니다.(위원회 사정에 따라 강사 배정 시기는 변동 될 수 있음)",
$(this).val(),
$(this).data("userid"),
"C",
"N"
);
}catch (e) {
}
});
alert("발송되었습니다.");
}
//발송
@ -429,7 +472,7 @@
<input name="chk" class="${list.aprvlCd}"
value="${list.eduAplctOrd}" title="Check" type="checkbox"
data-chasi="${list.eduAplctOrd}@${list.eduChasiOrd}" data-phone="<c:out value='${list.clphone}' />"
data-email="<c:out value='${list.email}' />"
data-email="<c:out value='${list.email}' />" data-userid="<c:out value='${list.frstRegisterId}' />"
/>
</td>
<td>
@ -563,12 +606,13 @@
<%-- <option value="${VeConstants.STATUS_CD_WAIT_Y}">대기(처리)</option> --%>
</select>
<button type="button" class="btn_type05" onclick="fncChkStatusUpdate(); return false;">상태저장</button>
<button type="button" class="btn_type01" onclick="fncSndSnd(); return false;">교육확정알림</button>
</div>
<div class="btn_center">
</div>
<div class="btn_right">
<button type="button" class="btn_type01" onclick="fncCreate(); return false;">등록</button>
<!-- <button type="button" class="btn_type06" onclick="fncSndSms(); return false;">교육확정알림</button> -->
</div>
</div>
<!-- page -->

View File

@ -1068,12 +1068,28 @@ function _chkChasiTime(p_this){
//저작권배움터 수정요청사항(r1.2023.11.23.).pptx p.109 요구사항
$('#createForm select').prop('disabled', true);
/* $('#createForm select').prop('disabled', true);
$('#createForm input').prop('disabled', true);
$('#createForm button').prop('disabled', true);
$('#createForm button').prop('disabled', true); */
// Disable all radio buttons
// $('input[type="radio"]').prop('disabled', true);
//240219 웹접근성 조치로 인한 disabeld가 아닌 다른 방법 사용
$("input[type='text']").prop('readonly', true);
$("button").attr("onclick", "return false;");
$("select").on("mousedown", function(e) {
e.preventDefault();
});
$("select").on("keydown", function(e) {
if (e.keyCode != 9) { // 탭키만 작동 가능
e.preventDefault();
}
});
$("input[type='radio']").on("click", function(e) {
e.preventDefault();
});
$("input[type='checkbox']").on("click", function(e) {
e.preventDefault();
});
$("button").removeAttr("data-tooltip");
}else{
$("input[name=rndsOrd]").val(returnData.rndsOrd);