Merge branch 'master' of http://tolag3@vcs.iten.co.kr:9999/hylee/mjon_git into master_tolag3
http://tolag3@vcs.iten.co.kr:9999/hylee/mjon_git into master_tolag3 발송상세 목록 버튼 검색조건 이어지도록 수정
@e7cef9aea266881f6e4e1acd2b95303d6a0988e0
--- src/main/java/itn/let/kakao/user/sent/web/KakaoSentController.java
+++ src/main/java/itn/let/kakao/user/sent/web/KakaoSentController.java
... | ... | @@ -1,26 +1,23 @@ |
| 1 | 1 |
package itn.let.kakao.user.sent.web; |
| 2 | 2 |
|
| 3 | 3 |
import java.io.FileReader; |
| 4 |
-import java.io.OutputStream; |
|
| 4 |
+ |
|
| 5 |
+import org.apache.commons.lang3.StringUtils; |
|
| 6 |
+import itn.com.cmm.util.DateUtils; |
|
| 5 | 7 |
import java.text.SimpleDateFormat; |
| 6 | 8 |
import java.util.ArrayList; |
| 7 | 9 |
import java.util.Calendar; |
| 8 |
-import java.util.Date; |
|
| 9 | 10 |
import java.util.List; |
| 10 |
-import java.util.Locale; |
|
| 11 | 11 |
import java.util.Map; |
| 12 | 12 |
|
| 13 | 13 |
import javax.annotation.Resource; |
| 14 |
-import javax.servlet.http.HttpServletRequest; |
|
| 15 | 14 |
import javax.servlet.http.HttpServletResponse; |
| 16 | 15 |
|
| 17 | 16 |
import org.apache.poi.ss.usermodel.Cell; |
| 18 | 17 |
import org.apache.poi.ss.usermodel.CellStyle; |
| 19 |
-import org.apache.poi.ss.usermodel.Font; |
|
| 20 | 18 |
import org.apache.poi.ss.usermodel.Row; |
| 21 | 19 |
import org.apache.poi.ss.usermodel.Sheet; |
| 22 | 20 |
import org.apache.poi.ss.util.CellRangeAddress; |
| 23 |
-import org.apache.poi.xssf.streaming.SXSSFWorkbook; |
|
| 24 | 21 |
import org.json.simple.JSONArray; |
| 25 | 22 |
import org.json.simple.JSONObject; |
| 26 | 23 |
import org.json.simple.parser.JSONParser; |
... | ... | @@ -117,26 +114,16 @@ |
| 117 | 114 |
if(kakaoSentVO.getSearchSortCnd().equals("")) kakaoSentVO.setSearchSortCnd("regdate");
|
| 118 | 115 |
|
| 119 | 116 |
|
| 120 |
- String startDate = kakaoSentVO.getStartDate(); |
|
| 117 |
+ |
|
| 118 |
+ String startDate = kakaoSentVO.getStartDate(); |
|
| 121 | 119 |
String endDate = kakaoSentVO.getEndDate(); |
| 122 | 120 |
|
| 123 |
- if(startDate == null && endDate == null ) {
|
|
| 121 |
+ if(StringUtils.isEmpty(startDate) |
|
| 122 |
+ && StringUtils.isEmpty(endDate)) |
|
| 123 |
+ {
|
|
| 124 | 124 |
|
| 125 |
- Calendar cal = Calendar.getInstance(); |
|
| 126 |
- Date now = new Date(); |
|
| 127 |
- |
|
| 128 |
- SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
|
|
| 129 |
- |
|
| 130 |
- //종료일은 오늘날짜 |
|
| 131 |
- cal.setTime(now); |
|
| 132 |
- endDate = format.format(cal.getTime()); |
|
| 133 |
- |
|
| 134 |
- //시작일은 전날로 셋팅 |
|
| 135 |
- cal.add(Calendar.DATE, -89); |
|
| 136 |
- startDate = format.format(cal.getTime()); |
|
| 137 |
- |
|
| 138 |
- kakaoSentVO.setStartDate(startDate); |
|
| 139 |
- kakaoSentVO.setEndDate(endDate); |
|
| 125 |
+ kakaoSentVO.setStartDate(DateUtils.getDateMonthsAgo(3)); |
|
| 126 |
+ kakaoSentVO.setEndDate(DateUtils.getCurrentDate()); |
|
| 140 | 127 |
|
| 141 | 128 |
} |
| 142 | 129 |
|
--- src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentAllListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentAllListAjax.jsp
... | ... | @@ -104,15 +104,6 @@ |
| 104 | 104 |
|
| 105 | 105 |
} |
| 106 | 106 |
|
| 107 |
-function fn_sentDetailView(msgGroupId) {
|
|
| 108 |
- // msgGroupId 값을 form에 설정 |
|
| 109 |
- $("#searchForm #msgGroupId").val(msgGroupId);
|
|
| 110 |
- |
|
| 111 |
- // form을 해당 URL로 제출 |
|
| 112 |
- $("#searchForm").attr("action", "/web/kakao/sent/selectKakaoSentDetailView.do");
|
|
| 113 |
- $("#searchForm").submit();
|
|
| 114 |
-} |
|
| 115 |
- |
|
| 116 | 107 |
</script> |
| 117 | 108 |
<div class="list_info"> |
| 118 | 109 |
<p>총 발송건수 <span class="c_e40000"><c:out value="${totalRecordCount}"/></span>건</p>
|
--- src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentDetailView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentDetailView.jsp
... | ... | @@ -796,7 +796,7 @@ |
| 796 | 796 |
|
| 797 | 797 |
<!-- 목록--> |
| 798 | 798 |
<div class="btn_list_type1"> |
| 799 |
- <button class="btnType btnType17">목록</button> |
|
| 799 |
+ <button class="btnType btnType17" id="goPageBtn">목록</button> |
|
| 800 | 800 |
</div> |
| 801 | 801 |
<!--// 목록--> |
| 802 | 802 |
|
... | ... | @@ -889,14 +889,14 @@ |
| 889 | 889 |
<!--// 주소록에 등록 팝업 --> |
| 890 | 890 |
|
| 891 | 891 |
<!-- 이전 리스트 상태(검색조건, 페이징) 그대로 가기 위한 form --> |
| 892 |
- <form id="goList" name="goList" method="post" action="/web/mjon/msgsent/selectMsgSentView.do"> |
|
| 892 |
+ <form id="goList" name="goList" method="post" action="/web/kakao/sent/selectKakaoSentView.do"> |
|
| 893 | 893 |
<input type="hidden" name="pageIndex" value="<c:out value="${searchVO.pageIndex}" />" />
|
| 894 | 894 |
<input type="hidden" name="searchSortCnd" value="<c:out value='${searchVO.searchSortCnd }' />" />
|
| 895 | 895 |
<input type="hidden" name="searchSortOrd" value="<c:out value='${searchVO.searchSortOrd }' />" />
|
| 896 | 896 |
<input type="hidden" name="searchCondition01" value="<c:out value='${searchVO.searchCondition01 }' />" />
|
| 897 | 897 |
<input type="hidden" name="searchCondition02" value="<c:out value='${searchVO.searchCondition02 }' />" />
|
| 898 |
- <input type="hidden" name="searchStartDate" value="<c:out value='${searchVO.searchStartDate }' />" />
|
|
| 899 |
- <input type="hidden" name="searchEndDate" value="<c:out value='${searchVO.searchEndDate }' />" />
|
|
| 898 |
+ <input type="hidden" name="startDate" value="<c:out value='${searchVO.startDate }' />" />
|
|
| 899 |
+ <input type="hidden" name="endDate" value="<c:out value='${searchVO.endDate }' />" />
|
|
| 900 | 900 |
<input type="hidden" name="searchCondition" value="<c:out value='${searchVO.searchCondition }' />" />
|
| 901 | 901 |
<input type="hidden" name="searchKeyword" value="<c:out value='${searchVO.searchKeyword }' />" />
|
| 902 | 902 |
<input type="hidden" name="pageUnit" value="<c:out value='${searchVO.pageUnit }' />" />
|
--- src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentView.jsp
... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 |
//초기 전체 리스트 페이지 보여주기 |
| 22 | 22 |
var form = document.searchForm; |
| 23 | 23 |
form.listType.value = "groupList"; |
| 24 |
- linkPage(1); |
|
| 24 |
+ linkPage(<c:out value="${searchVO.pageIndex}"/>);
|
|
| 25 | 25 |
|
| 26 | 26 |
var date = new Date() ; |
| 27 | 27 |
//이전달 첫날/마지막날 조회 |
... | ... | @@ -246,33 +246,6 @@ |
| 246 | 246 |
|
| 247 | 247 |
}); |
| 248 | 248 |
|
| 249 |
-function fnReSendMsg(){
|
|
| 250 |
- |
|
| 251 |
- var msgSeq = []; |
|
| 252 |
- if($("input:checkbox[name='msgSentDel']").is(":checked")==false){
|
|
| 253 |
- alert("선택된 항목이 없습니다.");
|
|
| 254 |
- return; |
|
| 255 |
- } |
|
| 256 |
- |
|
| 257 |
- $("input:checkbox[name='msgSentDel']:checked").each(function(index){
|
|
| 258 |
- |
|
| 259 |
- var disabledChk = $(this).prop('disabled');
|
|
| 260 |
- if(!disabledChk){ //checkbox disabled 인 것은 제외하고 아이디 저장
|
|
| 261 |
- |
|
| 262 |
- msgSeq[index] = $(this).val(); |
|
| 263 |
- } |
|
| 264 |
- |
|
| 265 |
- }); |
|
| 266 |
- |
|
| 267 |
- var form = document.reSendForm; |
|
| 268 |
- form.msgSeqList.value = msgSeq; |
|
| 269 |
- form.msgResendFlag.value = "Y"; |
|
| 270 |
- |
|
| 271 |
- form.action="/web/mjon/msgdata/selectMsgDataView.do"; |
|
| 272 |
- form.submit(); |
|
| 273 |
- |
|
| 274 |
-} |
|
| 275 |
- |
|
| 276 | 249 |
/* 사용내역서 클릭 시 내역서 새창 팝업 오픈 */ |
| 277 | 250 |
function fnShowPrintPopup(tabType, type) {
|
| 278 | 251 |
//만들려는 팝업의 크기 |
... | ... | @@ -382,6 +355,18 @@ |
| 382 | 355 |
|
| 383 | 356 |
} |
| 384 | 357 |
|
| 358 |
+function fn_sentDetailView(msgGroupId) {
|
|
| 359 |
+ // msgGroupId 값을 form에 설정 |
|
| 360 |
+ $("#searchForm #msgGroupId").val(msgGroupId);
|
|
| 361 |
+ |
|
| 362 |
+ $('#ntceBgnde').val($('#startDate').val());
|
|
| 363 |
+ $('#ntceEndde').val($('#endDate').val());
|
|
| 364 |
+ |
|
| 365 |
+ // form을 해당 URL로 제출 |
|
| 366 |
+ $("#searchForm").attr("action", "/web/kakao/sent/selectKakaoSentDetailView.do");
|
|
| 367 |
+ $("#searchForm").submit();
|
|
| 368 |
+} |
|
| 369 |
+ |
|
| 385 | 370 |
</script> |
| 386 | 371 |
|
| 387 | 372 |
|
... | ... | @@ -426,7 +411,9 @@ |
| 426 | 411 |
<!--// tab button --> |
| 427 | 412 |
</div> |
| 428 | 413 |
<form id="searchForm" name="searchForm" method="post"> |
| 429 |
- <input type="hidden" id="pageIndex" name="pageIndex" value="1"/> |
|
| 414 |
+ <input type="hidden" id="pageIndex" name="pageIndex" value="<c:out value="${searchVO.pageIndex}" />"/>
|
|
| 415 |
+<%-- <input type="hidden" id="pageIndex" name="pageIndex" value="<c:out value="${searchVO.pageIndex}" />" /> --%>
|
|
| 416 |
+ <input type="hidden" id="pageUnit" name="pageUnit" value="<c:out value="${searchVO.pageUnit}" />" />
|
|
| 430 | 417 |
<input type="hidden" id="msgGroupIdList" name="msgGroupIdList" value=""/> |
| 431 | 418 |
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
|
| 432 | 419 |
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
|
... | ... | @@ -648,10 +635,6 @@ |
| 648 | 635 |
<input type="hidden" id="msgId" name="msgId" value=""/> |
| 649 | 636 |
<input type="hidden" id="fileCnt" name="fileCnt" value=""/> |
| 650 | 637 |
<input type="hidden" id="resultType" name="resultType" value="S"/> |
| 651 |
- </form> |
|
| 652 |
- <form id="reSendForm" name="reSendForm" method="post"> |
|
| 653 |
- <input type="hidden" id="msgSeqList" name="msgSeqList" value=""/> |
|
| 654 |
- <input type="hidden" id="msgResendFlag" name="msgResendFlag" value="N"/> |
|
| 655 | 638 |
</form> |
| 656 | 639 |
<form name="popForm" id="popForm" method="post"> |
| 657 | 640 |
<input type="hidden" name="pageType" id="pageType" value=""/> |
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?