문자 재전송 치환문자 관련 수정

This commit is contained in:
itn 2023-10-17 12:23:37 +09:00
parent 7c205e4922
commit 875aad3696
7 changed files with 63 additions and 16 deletions

View File

@ -283,6 +283,7 @@ public class MjonMsgCampainDataController {
model.addAttribute("msgResendAllFlag", searchVO.getMsgResendAllFlag()); model.addAttribute("msgResendAllFlag", searchVO.getMsgResendAllFlag());
model.addAttribute("msgResendAllGroupId", searchVO.getMsgResendAllGroupId()); model.addAttribute("msgResendAllGroupId", searchVO.getMsgResendAllGroupId());
model.addAttribute("msgResendAllAdvertiseYn", searchVO.getMsgResendAllAdvertiseYn()); model.addAttribute("msgResendAllAdvertiseYn", searchVO.getMsgResendAllAdvertiseYn());
model.addAttribute("msgResendAllReplaceYn", searchVO.getMsgResendAllReplaceYn());
return "web/msgcampain/MsgDataView"; return "web/msgcampain/MsgDataView";
} }

View File

@ -70,8 +70,15 @@ public class MjonMsgDataVO extends UserDefaultVO{
private String msgResendAllFlag; private String msgResendAllFlag;
private String msgResendAllGroupId; private String msgResendAllGroupId;
private String msgResendAllAdvertiseYn; private String msgResendAllAdvertiseYn;
private String msgResendAllReplaceYn;
private String atchFiles; private String atchFiles;
public String getMsgResendAllReplaceYn() {
return msgResendAllReplaceYn;
}
public void setMsgResendAllReplaceYn(String msgResendAllReplaceYn) {
this.msgResendAllReplaceYn = msgResendAllReplaceYn;
}
public String getAtchFiles() { public String getAtchFiles() {
return atchFiles; return atchFiles;
} }

View File

@ -407,6 +407,7 @@ public class MjonMsgDataController {
model.addAttribute("msgResendAllFlag", searchVO.getMsgResendAllFlag()); model.addAttribute("msgResendAllFlag", searchVO.getMsgResendAllFlag());
model.addAttribute("msgResendAllGroupId", searchVO.getMsgResendAllGroupId()); model.addAttribute("msgResendAllGroupId", searchVO.getMsgResendAllGroupId());
model.addAttribute("msgResendAllAdvertiseYn", searchVO.getMsgResendAllAdvertiseYn()); model.addAttribute("msgResendAllAdvertiseYn", searchVO.getMsgResendAllAdvertiseYn());
model.addAttribute("msgResendAllReplaceYn", searchVO.getMsgResendAllReplaceYn());
}catch(Exception ex) { }catch(Exception ex) {
ex.printStackTrace(); ex.printStackTrace();

View File

@ -23,6 +23,7 @@ var popCustomScrT=0; // 맞춤제작 요청 JSPark => 2023.02.21 추가
var msgResendAllFlag = "${msgResendAllFlag}"; var msgResendAllFlag = "${msgResendAllFlag}";
var msgResendAllGroupId = "${msgResendAllGroupId}"; var msgResendAllGroupId = "${msgResendAllGroupId}";
var msgResendAllAdvertiseYn = "${msgResendAllAdvertiseYn}"; var msgResendAllAdvertiseYn = "${msgResendAllAdvertiseYn}";
var msgResendAllReplaceYn = "${msgResendAllReplaceYn}";
$(document).ready(function(){ $(document).ready(function(){
//문자 발송 화면 폼 불러오기 //문자 발송 화면 폼 불러오기
@ -223,8 +224,10 @@ function listMsgDataView(){
// 문자 재전송 New // 문자 재전송 New
if (msgResendAllFlag == "Y") { if (msgResendAllFlag == "Y") {
if (msgResendAllReplaceYn != "Y") {
// 문자 그룹정보 => 재전송용 // 문자 그룹정보 => 재전송용
getMjMsgGroupInfoByResend(); getMjMsgGroupInfoByResend();
}
// 문자 상세정보 => 재전송용 // 문자 상세정보 => 재전송용
getMjMsgListByResend(); getMjMsgListByResend();

View File

@ -23,6 +23,7 @@ var popCustomScrT=0; // 맞춤제작 요청 JSPark => 2023.02.21 추가
var msgResendAllFlag = "${msgResendAllFlag}"; var msgResendAllFlag = "${msgResendAllFlag}";
var msgResendAllGroupId = "${msgResendAllGroupId}"; var msgResendAllGroupId = "${msgResendAllGroupId}";
var msgResendAllAdvertiseYn = "${msgResendAllAdvertiseYn}"; var msgResendAllAdvertiseYn = "${msgResendAllAdvertiseYn}";
var msgResendAllReplaceYn = "${msgResendAllReplaceYn}";
$(document).ready(function(){ $(document).ready(function(){
var tsMoreSampleYn = "${moreSampleYn}"; var tsMoreSampleYn = "${moreSampleYn}";
@ -418,8 +419,10 @@ function listMsgDataView(){
// 문자 재전송 New // 문자 재전송 New
if (msgResendAllFlag == "Y") { if (msgResendAllFlag == "Y") {
if (msgResendAllReplaceYn != "Y") {
// 문자 그룹정보 => 재전송용 // 문자 그룹정보 => 재전송용
getMjMsgGroupInfoByResend(); getMjMsgGroupInfoByResend();
}
// 문자 상세정보 => 재전송용 // 문자 상세정보 => 재전송용
getMjMsgListByResend(); getMjMsgListByResend();

View File

@ -58,8 +58,26 @@ $(document).ready(function(){
//문자 재전송 //문자 재전송
function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt) { function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt) {
var form = document.reSendAllForm;
form.msgResendAllFlag.value = "Y";
form.msgResendAllGroupId.value = msgGroupId;
if (replaceCnt > 0) { 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 { else {
var title = ""; var title = "";
@ -70,11 +88,7 @@ function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt)
title = "문자발송"; title = "문자발송";
} }
//if (confirm(title + " 화면으로 이동합니다.\n문자내용, 받는사람 확인후 발송해주세요.")) { if (confirm("문자 재전송 하시겠습니까?\n문자내용, 받는 사람 목록 확인후 발송해주세요.")) {
if (confirm("문자내용, 받는사람 확인후 발송해주세요.")) {
var form = document.reSendAllForm;
form.msgResendAllFlag.value = "Y";
form.msgResendAllGroupId.value = msgGroupId;
if (electionCnt > 0) { if (electionCnt > 0) {
form.action="/web/mjon/msgcampain/selectMsgDataView.do"; form.action="/web/mjon/msgcampain/selectMsgDataView.do";
} }
@ -113,6 +127,8 @@ function fnRevDetailPop(msgGroupId, msgId, fileCnt){
<input type="hidden" name="msgResendAllFlag" value="N"/> <input type="hidden" name="msgResendAllFlag" value="N"/>
<input type="hidden" name="msgResendAllGroupId" value=""/> <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> </form>
<!-- 전송내역 불러오기 --> <!-- 전송내역 불러오기 -->

View File

@ -705,8 +705,26 @@ function infoPop(pageUrl){
//문자 재전송 //문자 재전송
function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt) { function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt) {
var form = document.reSendAllForm;
form.msgResendAllFlag.value = "Y";
form.msgResendAllGroupId.value = msgGroupId;
if (replaceCnt > 0) { 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 { else {
var title = ""; var title = "";
@ -717,10 +735,7 @@ function fnMjMsgReSendAll(msgGroupId, replaceCnt, electionCnt, advertisementCnt)
title = "문자발송"; title = "문자발송";
} }
if (confirm(title + " 화면으로 이동합니다.\n문자내용, 받는사람 확인후 발송해주세요.")) { if (confirm(title + " 화면으로 이동합니다.\n문자내용, 받는 사람 목록 확인후 발송해주세요.")) {
var form = document.reSendAllForm;
form.msgResendAllFlag.value = "Y";
form.msgResendAllGroupId.value = msgGroupId;
if (electionCnt > 0) { if (electionCnt > 0) {
form.action="/web/mjon/msgcampain/selectMsgDataView.do"; 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="msgResendAllFlag" value="N"/>
<input type="hidden" name="msgResendAllGroupId" value=""/> <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> </form>