문자 재전송 치환문자 관련 수정
This commit is contained in:
parent
7c205e4922
commit
875aad3696
@ -283,6 +283,7 @@ public class MjonMsgCampainDataController {
|
||||
model.addAttribute("msgResendAllFlag", searchVO.getMsgResendAllFlag());
|
||||
model.addAttribute("msgResendAllGroupId", searchVO.getMsgResendAllGroupId());
|
||||
model.addAttribute("msgResendAllAdvertiseYn", searchVO.getMsgResendAllAdvertiseYn());
|
||||
model.addAttribute("msgResendAllReplaceYn", searchVO.getMsgResendAllReplaceYn());
|
||||
|
||||
return "web/msgcampain/MsgDataView";
|
||||
}
|
||||
|
||||
@ -70,8 +70,15 @@ public class MjonMsgDataVO extends UserDefaultVO{
|
||||
private String msgResendAllFlag;
|
||||
private String msgResendAllGroupId;
|
||||
private String msgResendAllAdvertiseYn;
|
||||
private String msgResendAllReplaceYn;
|
||||
private String atchFiles;
|
||||
|
||||
public String getMsgResendAllReplaceYn() {
|
||||
return msgResendAllReplaceYn;
|
||||
}
|
||||
public void setMsgResendAllReplaceYn(String msgResendAllReplaceYn) {
|
||||
this.msgResendAllReplaceYn = msgResendAllReplaceYn;
|
||||
}
|
||||
public String getAtchFiles() {
|
||||
return atchFiles;
|
||||
}
|
||||
|
||||
@ -407,6 +407,7 @@ public class MjonMsgDataController {
|
||||
model.addAttribute("msgResendAllFlag", searchVO.getMsgResendAllFlag());
|
||||
model.addAttribute("msgResendAllGroupId", searchVO.getMsgResendAllGroupId());
|
||||
model.addAttribute("msgResendAllAdvertiseYn", searchVO.getMsgResendAllAdvertiseYn());
|
||||
model.addAttribute("msgResendAllReplaceYn", searchVO.getMsgResendAllReplaceYn());
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
|
||||
@ -23,6 +23,7 @@ var popCustomScrT=0; // 맞춤제작 요청 JSPark => 2023.02.21 추가
|
||||
var msgResendAllFlag = "${msgResendAllFlag}";
|
||||
var msgResendAllGroupId = "${msgResendAllGroupId}";
|
||||
var msgResendAllAdvertiseYn = "${msgResendAllAdvertiseYn}";
|
||||
var msgResendAllReplaceYn = "${msgResendAllReplaceYn}";
|
||||
|
||||
$(document).ready(function(){
|
||||
//문자 발송 화면 폼 불러오기
|
||||
@ -223,8 +224,10 @@ function listMsgDataView(){
|
||||
|
||||
// 문자 재전송 New
|
||||
if (msgResendAllFlag == "Y") {
|
||||
// 문자 그룹정보 => 재전송용
|
||||
getMjMsgGroupInfoByResend();
|
||||
if (msgResendAllReplaceYn != "Y") {
|
||||
// 문자 그룹정보 => 재전송용
|
||||
getMjMsgGroupInfoByResend();
|
||||
}
|
||||
|
||||
// 문자 상세정보 => 재전송용
|
||||
getMjMsgListByResend();
|
||||
|
||||
@ -23,6 +23,7 @@ var popCustomScrT=0; // 맞춤제작 요청 JSPark => 2023.02.21 추가
|
||||
var msgResendAllFlag = "${msgResendAllFlag}";
|
||||
var msgResendAllGroupId = "${msgResendAllGroupId}";
|
||||
var msgResendAllAdvertiseYn = "${msgResendAllAdvertiseYn}";
|
||||
var msgResendAllReplaceYn = "${msgResendAllReplaceYn}";
|
||||
|
||||
$(document).ready(function(){
|
||||
var tsMoreSampleYn = "${moreSampleYn}";
|
||||
@ -418,8 +419,10 @@ function listMsgDataView(){
|
||||
|
||||
// 문자 재전송 New
|
||||
if (msgResendAllFlag == "Y") {
|
||||
// 문자 그룹정보 => 재전송용
|
||||
getMjMsgGroupInfoByResend();
|
||||
if (msgResendAllReplaceYn != "Y") {
|
||||
// 문자 그룹정보 => 재전송용
|
||||
getMjMsgGroupInfoByResend();
|
||||
}
|
||||
|
||||
// 문자 상세정보 => 재전송용
|
||||
getMjMsgListByResend();
|
||||
|
||||
@ -58,8 +58,26 @@ $(document).ready(function(){
|
||||
|
||||
//문자 재전송
|
||||
function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt) {
|
||||
var form = document.reSendAllForm;
|
||||
form.msgResendAllFlag.value = "Y";
|
||||
form.msgResendAllGroupId.value = msgGroupId;
|
||||
|
||||
if (replaceCnt > 0) {
|
||||
alert("치환문자는 재전송 불가합니다.");
|
||||
if (confirm("특정문구 일괄변환 문자(치환문자)의 경우 문자내용은 재전송할 수 없고 받는 사람 목록만 불러올 수 있습니다.\n받는사람 목록을 불러올까요?")) {
|
||||
// 광고문자
|
||||
form.msgResendAllReplaceYn.value = "Y";
|
||||
if (electionCnt > 0) {
|
||||
form.action="/web/mjon/msgcampain/selectMsgDataView.do";
|
||||
}
|
||||
else {
|
||||
if (advertisementCnt > 0) {
|
||||
// 광고문자
|
||||
form.msgResendAllAdvertiseYn.value = "Y";
|
||||
}
|
||||
form.action="/web/mjon/msgdata/selectMsgDataView.do";
|
||||
}
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
else {
|
||||
var title = "";
|
||||
@ -70,11 +88,7 @@ function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt)
|
||||
title = "문자발송";
|
||||
}
|
||||
|
||||
//if (confirm(title + " 화면으로 이동합니다.\n문자내용, 받는사람 확인후 발송해주세요.")) {
|
||||
if (confirm("문자내용, 받는사람 확인후 발송해주세요.")) {
|
||||
var form = document.reSendAllForm;
|
||||
form.msgResendAllFlag.value = "Y";
|
||||
form.msgResendAllGroupId.value = msgGroupId;
|
||||
if (confirm("문자 재전송 하시겠습니까?\n문자내용, 받는 사람 목록 확인후 발송해주세요.")) {
|
||||
if (electionCnt > 0) {
|
||||
form.action="/web/mjon/msgcampain/selectMsgDataView.do";
|
||||
}
|
||||
@ -112,7 +126,9 @@ function fnRevDetailPop(msgGroupId, msgId, fileCnt){
|
||||
<form name="reSendAllForm" method="post">
|
||||
<input type="hidden" name="msgResendAllFlag" value="N"/>
|
||||
<input type="hidden" name="msgResendAllGroupId" value=""/>
|
||||
<input type="hidden" name="msgResendAllAdvertiseYn" value="N"/>
|
||||
<input type="hidden" name="msgResendAllAdvertiseYn" value="N"/>
|
||||
<input type="hidden" name="msgResendAllReplaceYn" value="N"/>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- 전송내역 불러오기 -->
|
||||
|
||||
@ -705,8 +705,26 @@ function infoPop(pageUrl){
|
||||
|
||||
//문자 재전송
|
||||
function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt) {
|
||||
var form = document.reSendAllForm;
|
||||
form.msgResendAllFlag.value = "Y";
|
||||
form.msgResendAllGroupId.value = msgGroupId;
|
||||
|
||||
if (replaceCnt > 0) {
|
||||
alert("치환문자는 재전송 불가합니다.");
|
||||
if (confirm("특정문구 일괄변환 문자(치환문자)의 경우 문자내용은 재전송할 수 없고 받는 사람 목록만 불러올 수 있습니다.\n받는사람 목록을 불러올까요?")) {
|
||||
// 광고문자
|
||||
form.msgResendAllReplaceYn.value = "Y";
|
||||
if (electionCnt > 0) {
|
||||
form.action="/web/mjon/msgcampain/selectMsgDataView.do";
|
||||
}
|
||||
else {
|
||||
if (advertisementCnt > 0) {
|
||||
// 광고문자
|
||||
form.msgResendAllAdvertiseYn.value = "Y";
|
||||
}
|
||||
form.action="/web/mjon/msgdata/selectMsgDataView.do";
|
||||
}
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
else {
|
||||
var title = "";
|
||||
@ -717,10 +735,7 @@ function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt)
|
||||
title = "문자발송";
|
||||
}
|
||||
|
||||
if (confirm(title + " 화면으로 이동합니다.\n문자내용, 받는사람 확인후 발송해주세요.")) {
|
||||
var form = document.reSendAllForm;
|
||||
form.msgResendAllFlag.value = "Y";
|
||||
form.msgResendAllGroupId.value = msgGroupId;
|
||||
if (confirm(title + " 화면으로 이동합니다.\n문자내용, 받는 사람 목록 확인후 발송해주세요.")) {
|
||||
if (electionCnt > 0) {
|
||||
form.action="/web/mjon/msgcampain/selectMsgDataView.do";
|
||||
}
|
||||
@ -1082,4 +1097,5 @@ function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt)
|
||||
<input type="hidden" name="msgResendAllFlag" value="N"/>
|
||||
<input type="hidden" name="msgResendAllGroupId" value=""/>
|
||||
<input type="hidden" name="msgResendAllAdvertiseYn" value="N"/>
|
||||
<input type="hidden" name="msgResendAllReplaceYn" value="N"/>
|
||||
</form>
|
||||
Loading…
Reference in New Issue
Block a user