팩스 발송내역 상세 페이징 오류 수정
@2004b6b89f2b2212b1d1657645c80e5fff058ddc
--- src/main/java/itn/let/fax/user/web/FaxController.java
+++ src/main/java/itn/let/fax/user/web/FaxController.java
... | ... | @@ -20,6 +20,7 @@ |
| 20 | 20 |
import org.springframework.web.servlet.mvc.support.RedirectAttributes; |
| 21 | 21 |
|
| 22 | 22 |
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; |
| 23 |
+import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 23 | 24 |
import itn.com.cmm.LoginVO; |
| 24 | 25 |
import itn.com.cmm.util.FileUtil; |
| 25 | 26 |
import itn.com.cmm.util.PdfUtil; |
... | ... | @@ -222,11 +223,22 @@ |
| 222 | 223 |
} |
| 223 | 224 |
model.addAttribute("loginVO", loginVO);
|
| 224 | 225 |
|
| 226 |
+ |
|
| 227 |
+ /** pageing */ |
|
| 228 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 229 |
+ paginationInfo.setCurrentPageNo(faxGroupDataVO.getPageIndex()); |
|
| 230 |
+ paginationInfo.setRecordCountPerPage(faxGroupDataVO.getPageUnit()); |
|
| 231 |
+ paginationInfo.setPageSize(faxGroupDataVO.getPageSize()); |
|
| 225 | 232 |
|
| 233 |
+ faxGroupDataVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 234 |
+ faxGroupDataVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 235 |
+ faxGroupDataVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 236 |
+ |
|
| 237 |
+ //전체 발송 리스트 불러오기 |
|
| 226 | 238 |
/* 목록을 가져 온다 */ |
| 227 | 239 |
faxGroupDataVO.setUserId(userId); |
| 228 |
- |
|
| 229 | 240 |
Map<String, Object> resultMap = faxService.selectFaxSendDetailList(faxGroupDataVO); |
| 241 |
+ |
|
| 230 | 242 |
// 전송내역 |
| 231 | 243 |
model.addAttribute("faxDetailListVO", resultMap.get("faxDetailListVO"));
|
| 232 | 244 |
model.addAttribute("paginationInfo", resultMap.get("paginationInfo"));
|
--- src/main/webapp/WEB-INF/jsp/web/fax/faxSendDetailPopup.jsp
+++ src/main/webapp/WEB-INF/jsp/web/fax/faxSendDetailPopup.jsp
... | ... | @@ -72,11 +72,25 @@ |
| 72 | 72 |
window.close(); |
| 73 | 73 |
} |
| 74 | 74 |
|
| 75 |
- |
|
| 75 |
+ //검색 버튼 실행 |
|
| 76 |
+ function linkPage(pageNo){
|
|
| 77 |
+ var form = document.listForm; |
|
| 78 |
+ form.pageIndex.value = pageNo; |
|
| 79 |
+ |
|
| 80 |
+ form.action="<c:out value='/web/mjon/fax/faxSendDetailPopup.do' />"; |
|
| 81 |
+ form.submit(); |
|
| 82 |
+ } |
|
| 76 | 83 |
|
| 77 | 84 |
|
| 78 | 85 |
</script> |
| 79 | 86 |
|
| 87 |
+<form id="listForm" name="listForm" method="post"> |
|
| 88 |
+ <input type="hidden" id="pageIndex" name="pageIndex" value=""/> |
|
| 89 |
+ <input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
|
|
| 90 |
+ <input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
|
|
| 91 |
+ <input type="hidden" id="faxGroupId" name="faxGroupId" value="${searchVO.faxGroupId}"/>
|
|
| 92 |
+</form> |
|
| 93 |
+ |
|
| 80 | 94 |
<form id="faxSendListForm" name="faxSendListForm" action="" method="post"> |
| 81 | 95 |
<%-- <input type="hidden" id="pageIndex" name="pageIndex" value="${searchVO.pageIndex}"/> --%>
|
| 82 | 96 |
<%-- <input type="hidden" name="searchSortCnd" id="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" /> --%>
|
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?