문자 재전송 기능 작업중
@05cbc9fa0e3b4c7eda307c948a5182060e3d9415
--- src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
+++ src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
... | ... | @@ -85,6 +85,8 @@ |
| 85 | 85 |
import itn.let.mjo.msgdata.service.MjonMsgDataVO; |
| 86 | 86 |
import itn.let.mjo.msgdata.service.MjonMsgReturnVO; |
| 87 | 87 |
import itn.let.mjo.msgdata.service.PhoneVO; |
| 88 |
+import itn.let.mjo.msgsent.service.MjonMsgSentService; |
|
| 89 |
+import itn.let.mjo.msgsent.service.MjonMsgSentVO; |
|
| 88 | 90 |
import itn.let.mjo.pay.service.MjonPayService; |
| 89 | 91 |
import itn.let.mjo.pay.service.MjonPayVO; |
| 90 | 92 |
import itn.let.mjo.spammsg.service.MjonSpamMsgService; |
... | ... | @@ -175,6 +177,9 @@ |
| 175 | 177 |
/** 등급제 관리 서비스 */ |
| 176 | 178 |
@Resource(name = "mberGrdService") |
| 177 | 179 |
MberGrdService mberGrdService; |
| 180 |
+ |
|
| 181 |
+ @Resource(name = "MjonMsgSentService") |
|
| 182 |
+ private MjonMsgSentService mjonMsgSentService; |
|
| 178 | 183 |
|
| 179 | 184 |
private static final Logger logger = LoggerFactory.getLogger(MjonMsgDataController.class); |
| 180 | 185 |
|
... | ... | @@ -5964,4 +5969,62 @@ |
| 5964 | 5969 |
return modelAndView; |
| 5965 | 5970 |
} |
| 5966 | 5971 |
|
| 5972 |
+ /** |
|
| 5973 |
+ * 문자발송 리스트 화면 불러오기 |
|
| 5974 |
+ * |
|
| 5975 |
+ * @param MjonMsgDataVO |
|
| 5976 |
+ * @param |
|
| 5977 |
+ * @param sessionVO |
|
| 5978 |
+ * @param model |
|
| 5979 |
+ * @return |
|
| 5980 |
+ * @throws Exception |
|
| 5981 |
+ */ |
|
| 5982 |
+ @RequestMapping(value= {"/web/mjon/msgdata/selectMjMsgSentListAjax.do"})
|
|
| 5983 |
+ public String selectMjMsgSentListAjax( |
|
| 5984 |
+ @ModelAttribute("searchVO") MjonMsgSentVO mjonMsgSentVO,
|
|
| 5985 |
+ ModelMap model) throws Exception {
|
|
| 5986 |
+ |
|
| 5987 |
+ //로그인 권한정보 불러오기 |
|
| 5988 |
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
|
| 5989 |
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
|
| 5990 |
+ |
|
| 5991 |
+ List<MjonMsgSentVO> mjMsgSentList = null; |
|
| 5992 |
+ /** pageing */ |
|
| 5993 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 5994 |
+ |
|
| 5995 |
+ if(loginVO != null) {
|
|
| 5996 |
+ mjonMsgSentVO.setUserId(userId); |
|
| 5997 |
+ |
|
| 5998 |
+ // 검색 리스트 불러오기 |
|
| 5999 |
+ if(mjonMsgSentVO.getPageUnit() != 10) {
|
|
| 6000 |
+ mjonMsgSentVO.setPageUnit(mjonMsgSentVO.getPageUnit()); |
|
| 6001 |
+ } |
|
| 6002 |
+ |
|
| 6003 |
+ //기본 내림차순 정렬 |
|
| 6004 |
+ if(mjonMsgSentVO.getSearchSortOrd().equals("")) {
|
|
| 6005 |
+ mjonMsgSentVO.setSearchSortOrd("desc");
|
|
| 6006 |
+ mjonMsgSentVO.setSearchSortCnd("regdate");
|
|
| 6007 |
+ } |
|
| 6008 |
+ |
|
| 6009 |
+ paginationInfo.setCurrentPageNo(mjonMsgSentVO.getPageIndex()); |
|
| 6010 |
+ paginationInfo.setRecordCountPerPage(mjonMsgSentVO.getPageUnit()); |
|
| 6011 |
+ paginationInfo.setPageSize(mjonMsgSentVO.getPageSize()); |
|
| 6012 |
+ |
|
| 6013 |
+ mjonMsgSentVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 6014 |
+ mjonMsgSentVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 6015 |
+ mjonMsgSentVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 6016 |
+ |
|
| 6017 |
+ //전체 발송 리스트 불러오기 |
|
| 6018 |
+ mjMsgSentList = mjonMsgSentService.selectAllMsgSentList(mjonMsgSentVO); |
|
| 6019 |
+ |
|
| 6020 |
+ paginationInfo.setTotalRecordCount( mjMsgSentList.size()> 0 ? (Integer.parseInt((mjMsgSentList.get(0)).getTotMsgCnt())) : 0); |
|
| 6021 |
+ } |
|
| 6022 |
+ |
|
| 6023 |
+ model.addAttribute("mjMsgSentList", mjMsgSentList);
|
|
| 6024 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 6025 |
+ model.addAttribute("totalRecordCount", paginationInfo.getTotalRecordCount());
|
|
| 6026 |
+ |
|
| 6027 |
+ return "web/msgdata/MsgSentListAjax"; |
|
| 6028 |
+ } |
|
| 6029 |
+ |
|
| 5967 | 6030 |
} |
--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
... | ... | @@ -3189,6 +3189,16 @@ |
| 3189 | 3189 |
return true; |
| 3190 | 3190 |
} |
| 3191 | 3191 |
|
| 3192 |
+//문자 발송목록(msgSentType : 01:문자전송, 02:선거문자) |
|
| 3193 |
+function getMjMsgSentListAll(pageNo, msgSenTType) {
|
|
| 3194 |
+ document.sentListForm.pageIndex.value = pageNo; |
|
| 3195 |
+ |
|
| 3196 |
+ var sendData= $(document.sentListForm).serializeArray(); |
|
| 3197 |
+ $("#mjMsgSentListAllLoad").load("/web/mjon/msgdata/selectMjMsgSentListAjax.do", sendData ,function(response, status, xhr){
|
|
| 3198 |
+ |
|
| 3199 |
+ }); |
|
| 3200 |
+} |
|
| 3201 |
+ |
|
| 3192 | 3202 |
</script> |
| 3193 | 3203 |
|
| 3194 | 3204 |
<div class="loading_layer"> |
... | ... | @@ -3197,6 +3207,16 @@ |
| 3197 | 3207 |
<div class="text">Loading</div> |
| 3198 | 3208 |
</div> |
| 3199 | 3209 |
</div> |
| 3210 |
+ |
|
| 3211 |
+ <form id="sentListForm" name="sentListForm" method="post"> |
|
| 3212 |
+ <input type="hidden" id="pageType" name="pageType" value=""/> |
|
| 3213 |
+ <input type="hidden" id="pageIndex" name="pageIndex" value=""/> |
|
| 3214 |
+ <input type="hidden" id="msgGroupIdList" name="msgGroupIdList" value=""/> |
|
| 3215 |
+ <input type="hidden" id="tabType" name="tabType" value="all"/><!-- 탭 종류 --> |
|
| 3216 |
+ <input type="hidden" id="stateType" name="stateType" value="all"/><!-- 발송상태 종류 --> |
|
| 3217 |
+ <input type="hidden" id="listType" name="listType" value="groupList"/><!-- 리스트 종류 --> |
|
| 3218 |
+ <input type="hidden" id="addrGrpNm" name="addrGrpNm" value=""/><!-- 주소록 그룹 이름 --> |
|
| 3219 |
+ </form> |
|
| 3200 | 3220 |
|
| 3201 | 3221 |
<!-- 2023 10 16 재전송 : 상세내용 팝업 --> |
| 3202 | 3222 |
<div class="tooltip-wrap" style="z-index:110;"> |
... | ... | @@ -3246,90 +3266,13 @@ |
| 3246 | 3266 |
<p><span>전송내역</p> |
| 3247 | 3267 |
<button type="button" class="tooltip-close" data-focus="popup05-close" id="btnLatestAddPhoneClose"><img src="/publish/images/content/layerPopup_close.png" alt="팝업 닫기"></button> |
| 3248 | 3268 |
</div> |
| 3249 |
- <div class="layer_in"> |
|
| 3250 |
- <!-- 전송내역 불러오기 --> |
|
| 3251 |
- <div class="tb_wrap" style="min-height:400px;"> |
|
| 3252 |
- <table class="tType4"> |
|
| 3253 |
- <colgroup> |
|
| 3254 |
- <col style=""> |
|
| 3255 |
- <col style=""> |
|
| 3256 |
- <col style=""> |
|
| 3257 |
- <col style=""> |
|
| 3258 |
- <col style=""> |
|
| 3259 |
- <col style=""> |
|
| 3260 |
- <col style=""> |
|
| 3261 |
- <col style=""> |
|
| 3262 |
- </colgroup> |
|
| 3263 |
- <thead> |
|
| 3264 |
- <tr> |
|
| 3265 |
- <th>발송일시 |
|
| 3266 |
- <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> |
|
| 3267 |
- </th> |
|
| 3268 |
- <th>형태 |
|
| 3269 |
- <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> |
|
| 3270 |
- </th> |
|
| 3271 |
- <th>발송방식 |
|
| 3272 |
- <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> |
|
| 3273 |
- </th> |
|
| 3274 |
- <th>내용</th> |
|
| 3275 |
- <th>받는사람 |
|
| 3276 |
- <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> |
|
| 3277 |
- </th> |
|
| 3278 |
- <th>발신번호 |
|
| 3279 |
- <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> |
|
| 3280 |
- </th> |
|
| 3281 |
- <th>발송건수 |
|
| 3282 |
- <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> |
|
| 3283 |
- </th> |
|
| 3284 |
- <th>재전송 선택 </th> |
|
| 3285 |
- </tr> |
|
| 3286 |
- </thead> |
|
| 3287 |
- <tbody> |
|
| 3288 |
- <tr> |
|
| 3289 |
- <td>2023-06-10 17:50</td> |
|
| 3290 |
- <td>그림</td> |
|
| 3291 |
- <td>WEB</td> |
|
| 3292 |
- <td><button class="btnType btnType20" data-tooltip="rev_popup01" type="button">상세보기</button></td> |
|
| 3293 |
- <td>010-1547-5895 외 1명</td> |
|
| 3294 |
- <td>010-5897-7895</td> |
|
| 3295 |
- <td>8</td> |
|
| 3296 |
- <td><button class="btnType btnType24" type="button">재전송</button></td> |
|
| 3297 |
- </tr> |
|
| 3298 |
- <tr> |
|
| 3299 |
- <td>2023-06-10 17:50</td> |
|
| 3300 |
- <td>그림</td> |
|
| 3301 |
- <td>WEB</td> |
|
| 3302 |
- <td><button class="btnType btnType20" data-tooltip="rev_popup01" type="button">상세보기</button></td> |
|
| 3303 |
- <td>010-1547-5895 외 1명</td> |
|
| 3304 |
- <td>010-5897-7895</td> |
|
| 3305 |
- <td>8</td> |
|
| 3306 |
- <td><button class="btnType btnType24" type="button">재전송</button></td> |
|
| 3307 |
- </tr> |
|
| 3308 |
- </tbody> |
|
| 3309 |
- </table> |
|
| 3310 |
- </div> |
|
| 3311 |
- <!--// 전송내역 불러오기 --> |
|
| 3312 |
- <!-- pagination --> |
|
| 3313 |
- <ul class="pagination"> |
|
| 3314 |
- <li class="page_first"><button><img src="/publish/images/content/page_first.png" alt="첫페이지"></button></li> |
|
| 3315 |
- <li class="page_prev"><button><img src="/publish/images/content/page_prev.png" alt=""></button></li> |
|
| 3316 |
- <li class="on"><button>1</button></li> |
|
| 3317 |
- <li><button>2</button></li> |
|
| 3318 |
- <li><button>3</button></li> |
|
| 3319 |
- <li><button>4</button></li> |
|
| 3320 |
- <li><button>5</button></li> |
|
| 3321 |
- <li><button>6</button></li> |
|
| 3322 |
- <li><button>7</button></li> |
|
| 3323 |
- <li><button>8</button></li> |
|
| 3324 |
- <li><button>9</button></li> |
|
| 3325 |
- <li><button>10</button></li> |
|
| 3326 |
- <li class="page_next"><button><img src="/publish/images/content/page_next.png" alt=""></button></li> |
|
| 3327 |
- <li class="page_last"><button><img src="/publish/images/content/page_last.png" alt="마지막페이지"></button></li> |
|
| 3328 |
- </ul><!-- pagination --> |
|
| 3329 |
- <div class="popup_btn_wrap2"> |
|
| 3330 |
- <button type="button" class="tooltip-close" data-focus="popup05-close" data-focus-next="popup05">닫기</button> |
|
| 3331 |
- </div> |
|
| 3269 |
+ <div class="layer_in" id="mjMsgSentListAllLoad" style="padding-bottom: 0px;"> |
|
| 3270 |
+ |
|
| 3332 | 3271 |
</div> |
| 3272 |
+ |
|
| 3273 |
+ <div class="popup_btn_wrap2" style="margin-bottom: 30px;"> |
|
| 3274 |
+ <button type="button" class="tooltip-close" data-focus="popup05-close" data-focus-next="popup05">닫기</button> |
|
| 3275 |
+ </div> |
|
| 3333 | 3276 |
</div> |
| 3334 | 3277 |
</div> |
| 3335 | 3278 |
<!--// 2023 10 16 재전송 팝업 --> |
... | ... | @@ -3963,7 +3906,7 @@ |
| 3963 | 3906 |
<button type="button" data-tooltip="popup03" class="btnType btnType7 tab2">자주 보내는 번호</button> |
| 3964 | 3907 |
</div> |
| 3965 | 3908 |
<div class="btn_popup_wrap"> |
| 3966 |
- <button type="button" data-tooltip="popup05" class="btnType btnType7 tab2">재전송</button> |
|
| 3909 |
+ <button type="button" data-tooltip="popup05" class="btnType btnType7 tab2" onclick="getMjMsgSentListAll('1','01');">재전송</button>
|
|
| 3967 | 3910 |
</div> |
| 3968 | 3911 |
<div class="btn_popup_wrap check_validity_wrap"> |
| 3969 | 3912 |
<button type="button" class="btnType btnType7 check_validity">오류 검사 <i class="qmMark"></i></button> |
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgSentListAjax.jsp
... | ... | @@ -0,0 +1,122 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : SendNumberList.jsp | |
| 3 | + Description : 발신번호 리스트 조회 페이지 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2021.03.31 신명섭 최초 생성 | |
| 9 | + | |
| 10 | + Copyright (C) 2009 by ITN All right reserved. | |
| 11 | +--%> | |
| 12 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 13 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 14 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 15 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 16 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 17 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 18 | +<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> | |
| 19 | + | |
| 20 | +<script src="/publish/js/content.js"></script> | |
| 21 | +<script> | |
| 22 | +$(document).ready(function(){ | |
| 23 | + /* 목록 정렬 항목 아이콘 표시 */ | |
| 24 | + var searchSortCnd = $("[name='searchSortCnd']").val(); | |
| 25 | + var searchSortOrd = $("[name='searchSortOrd']").val(); | |
| 26 | + if (searchSortCnd != "" && searchSortOrd != "" && searchSortCnd != undefined && searchSortOrd != undefined) { | |
| 27 | + var $sort_div = $("#sort_"+ searchSortCnd); | |
| 28 | + var sortClass = 'sortBtn' ; | |
| 29 | + if (searchSortOrd == "desc") sortClass = "sortBtnDesc"; | |
| 30 | + $sort_div.replaceClass('sortBtn' , sortClass) ; | |
| 31 | + $sort_div.attr("sortOrd", searchSortOrd); | |
| 32 | + }; | |
| 33 | + | |
| 34 | + // 정렬 항목 이벤트 | |
| 35 | + $(".sort").click(function(e) { | |
| 36 | + listSortOrd(this); | |
| 37 | + }); | |
| 38 | + | |
| 39 | + //목록 정렬 항목 클릭 | |
| 40 | + function listSortOrd(obj){ | |
| 41 | + var sortOrd = $(obj).attr("sortOrd"); | |
| 42 | + var sortCnd = $(obj).attr("id"); | |
| 43 | + | |
| 44 | + $("[name='searchSortCnd']").val(sortCnd.substring(5)); // 구분자 제거 | |
| 45 | + if (sortOrd == "desc") $("[name='searchSortOrd']").val("asc"); | |
| 46 | + else $("[name='searchSortOrd']").val("desc"); | |
| 47 | + payUserListAjax('1'); //각 JSP마다 다를때 메소드 정의해 줘야됨 | |
| 48 | + }; | |
| 49 | +}); | |
| 50 | + | |
| 51 | +</script> | |
| 52 | + | |
| 53 | + <!-- 전송내역 불러오기 --> | |
| 54 | + <div class="tb_wrap" style="min-height:400px;"> | |
| 55 | + <table class="tType4"> | |
| 56 | + <colgroup> | |
| 57 | + <col style=""> | |
| 58 | + <col style=""> | |
| 59 | + <col style=""> | |
| 60 | + <col style=""> | |
| 61 | + <col style=""> | |
| 62 | + <col style=""> | |
| 63 | + <col style=""> | |
| 64 | + <col style=""> | |
| 65 | + </colgroup> | |
| 66 | + <thead> | |
| 67 | + <tr> | |
| 68 | + <th>발송일시 | |
| 69 | + <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> | |
| 70 | + </th> | |
| 71 | + <th>형태 | |
| 72 | + <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> | |
| 73 | + </th> | |
| 74 | + <th>발송방식 | |
| 75 | + <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> | |
| 76 | + </th> | |
| 77 | + <th>내용</th> | |
| 78 | + <th>받는사람 | |
| 79 | + <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> | |
| 80 | + </th> | |
| 81 | + <th>발신번호 | |
| 82 | + <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> | |
| 83 | + </th> | |
| 84 | + <th>발송건수 | |
| 85 | + <div class="sort_wrap"><button type="button"><img src="/publish/images/sortUp.png" alt="오름차순으로 분류"></button><button type="button"><img src="/publish/images/sortDown.png" alt="내림차순으로 분류"></button></div> | |
| 86 | + </th> | |
| 87 | + <th>재전송 선택 </th> | |
| 88 | + </tr> | |
| 89 | + </thead> | |
| 90 | + <tbody> | |
| 91 | + <tr> | |
| 92 | + <td>2023-06-10 17:50</td> | |
| 93 | + <td>그림</td> | |
| 94 | + <td>WEB</td> | |
| 95 | + <td><button class="btnType btnType20" data-tooltip="rev_popup01" type="button">상세보기</button></td> | |
| 96 | + <td>010-1547-5895 외 1명</td> | |
| 97 | + <td>010-5897-7895</td> | |
| 98 | + <td>8</td> | |
| 99 | + <td><button class="btnType btnType24" type="button">재전송</button></td> | |
| 100 | + </tr> | |
| 101 | + <tr> | |
| 102 | + <td>2023-06-10 17:50</td> | |
| 103 | + <td>그림</td> | |
| 104 | + <td>WEB</td> | |
| 105 | + <td><button class="btnType btnType20" data-tooltip="rev_popup01" type="button">상세보기</button></td> | |
| 106 | + <td>010-1547-5895 외 1명</td> | |
| 107 | + <td>010-5897-7895</td> | |
| 108 | + <td>8</td> | |
| 109 | + <td><button class="btnType btnType24" type="button">재전송</button></td> | |
| 110 | + </tr> | |
| 111 | + </tbody> | |
| 112 | + </table> | |
| 113 | + </div> | |
| 114 | + <!--// 전송내역 불러오기 --> | |
| 115 | + | |
| 116 | + <!-- pagination --> | |
| 117 | + <c:if test="${!empty mjMsgSentList}"> | |
| 118 | + <ul class="pagination"> | |
| 119 | + <ui:pagination paginationInfo = "${paginationInfo}" type="imageWeb" jsFunction="getMjMsgSentListAll" /> | |
| 120 | + </ul> | |
| 121 | + </c:if> | |
| 122 | + <!-- pagination --> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?