이지우 - 관리자 기소유예 대상자관리에 문자 일괄발송 추가

This commit is contained in:
jiwoo 2024-01-15 11:19:52 +09:00
parent c28cdd55bd
commit 191dd751f9

View File

@ -32,6 +32,7 @@
<head>
<link href="/offedu/visitEdu/adm/publish/css/select2.min.css" rel="stylesheet"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js" /></script>
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
@ -265,10 +266,53 @@
$(".memoTr").fadeIn();
}
}
function chkAll(thisObj){
$("input[name=chk]").prop("checked" , $(thisObj).is(":checked"));
}
function openSmsPopup(){
var chkLen = $(listForm).find("input[name=chk]:checked").length;
if(chkLen == 0){
alert("선택된 항목이 없습니다.");
return;
}
document.popForm.action = "<c:url value='/oprtn/cndtnSspnIdtmt/popup/trgtSendSmsPopup.do'/>";
window.open("#", "_trgtSendSmsPopup", "scrollbars = no, top=100px, left=100px, height=550px, width=750px");
document.popForm.target = "_trgtSendSmsPopup";
document.popForm.submit();
}
function chkSendSms(cn){
var chkLen = $(listForm).find("input[name=chk]:checked").length;
if(chkLen == 0){
alert("선택된 항목이 없습니다.");
return;
}
$('input:checkbox[name="chk"]:checked').each(function() {
sendSms(
$(this).val(),
cn,
$(this).data('sspnidtmttrgtord'),
$(this).data('userid'),
"N"
);
});
alert("발송되었습니다.");
}
</script>
<title>교육과정관리</title>
</head>
<body>
<form id="popForm" name="popForm" method="post">
<input type="hidden" name="sspnIdtmtTrgtOrd" value=""/>
<input type="hidden" name="targetId" value=""/>
<input type="hidden" name="type" value=""/>
<input type="hidden" name="phone" value=""/>
</form>
<form id="detailForm" name="detailForm" method="post" >
<input type="hidden" id="sspnIdtmtTrgtOrd" name="sspnIdtmtTrgtOrd" value="" />
</form>
@ -443,6 +487,7 @@
<div class="tb_type01">
<table>
<colgroup>
<col style="width: 1px;">
<col style="width: 10%">
<col style="width: 10%">
<col style="width: 2px">
@ -457,6 +502,7 @@
</colgroup>
<thead>
<tr>
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="chkAll(this);" /><label for="checkAll"></label></th>
<th>의뢰일</th>
<th>사건번호</th>
<th>관할청</th>
@ -486,6 +532,11 @@
<%-- <td onclick="fncGoDetail('<c:out value="${list.sspnIdtmtTrgtOrd}"/>');" style="cursor:pointer;"> --%>
<%-- <c:out value='${list.prcsNm}'/> --%>
<!-- </td> -->
<td onclick="event.cancelBubble=true">
<input name="chk" class="${list.atchFileId}" value="${list.clphone}"
data-userid="<c:out value='${list.userId}' />" data-sspnidtmttrgtord="<c:out value='${list.sspnIdtmtTrgtOrd}' />"
title="Check" type="checkbox"/>
</td>
<td><!-- 의뢰일 -->
<c:set var="reqPnttm" value="${fn:substring(list.reqPnttm, 0, 10)}" />
@ -533,7 +584,7 @@
</tr>
<c:if test="${!empty list.rmrks }">
<tr class="memoTr" style="display:none;">
<td colspan="11" style="text-align:left; background-color:#131de14a;">
<td colspan="12" style="text-align:left; background-color:#131de14a;">
<c:out value="${list.rmrks}" />
</td>
@ -554,6 +605,7 @@
</div>
<div class="btn_wrap btn_layout01">
<div class="btn_left">
<button type="button" class="btn_type06" onclick="openSmsPopup();">문자발송</button>
</div>
<div class="btn_center">
</div>