후불제 요금사용 내역 인쇄하기 팝업 수정 - 기존 요금사용내역에 대한 화면이 나와서 변경 완료
- 기존 요금사용내역에 대한 화면이 나와서 변경 완료
@36ce0af7d535f3a201cf23344593a8bc8af8446c
--- src/main/java/itn/let/mjo/pay/web/MjonPayController.java
+++ src/main/java/itn/let/mjo/pay/web/MjonPayController.java
... | ... | @@ -3003,6 +3003,41 @@ |
| 3003 | 3003 |
try { wb.close(); } catch(Exception ignore) {}
|
| 3004 | 3004 |
} |
| 3005 | 3005 |
} |
| 3006 |
+ |
|
| 3007 |
+ |
|
| 3008 |
+ @RequestMapping(value= {"/web/member/pay/PrintPayUserSWListAjax.do"})
|
|
| 3009 |
+ public String printPayUserSWListAjax( |
|
| 3010 |
+ @ModelAttribute("searchVO") MjonMsgVO mjonMsgVO
|
|
| 3011 |
+ , RedirectAttributes redirectAttributes |
|
| 3012 |
+ , ModelMap model) throws Exception {
|
|
| 3013 |
+ //로그인 권한정보 불러오기 |
|
| 3014 |
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
|
| 3015 |
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
|
| 3016 |
+ String userNm = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getName()); |
|
| 3017 |
+ |
|
| 3018 |
+ mjonMsgVO.setUserId(userId); |
|
| 3019 |
+ model.addAttribute("userNm", userNm);
|
|
| 3020 |
+ |
|
| 3021 |
+ |
|
| 3022 |
+ mjonMsgVO.setFirstIndex(0); |
|
| 3023 |
+ mjonMsgVO.setRecordCountPerPage(10000); |
|
| 3024 |
+ |
|
| 3025 |
+ //결제 리스트 정보 불러오기 |
|
| 3026 |
+ List<MjonMsgVO> payUserList = mjonMsgDataService.selectPayUserSWList(mjonMsgVO); |
|
| 3027 |
+ model.addAttribute("payUserList", payUserList);
|
|
| 3028 |
+ |
|
| 3029 |
+ Calendar cal = Calendar.getInstance(); |
|
| 3030 |
+ |
|
| 3031 |
+ int year = cal.get(Calendar.YEAR); |
|
| 3032 |
+ int month = cal.get(Calendar.MONTH) + 1; |
|
| 3033 |
+ int day = cal.get(Calendar.DAY_OF_MONTH); |
|
| 3034 |
+ |
|
| 3035 |
+ model.addAttribute("year", year);
|
|
| 3036 |
+ model.addAttribute("month", month);
|
|
| 3037 |
+ model.addAttribute("day", day);
|
|
| 3038 |
+ |
|
| 3039 |
+ return "web/pay/PrintPayUserSWListPopUp"; |
|
| 3040 |
+ } |
|
| 3006 | 3041 |
|
| 3007 | 3042 |
|
| 3008 | 3043 |
|
--- src/main/webapp/WEB-INF/jsp/web/pay/PayUserSWListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/pay/PayUserSWListAjax.jsp
... | ... | @@ -160,7 +160,7 @@ |
| 160 | 160 |
|
| 161 | 161 |
$("#listForm").attr("target","msgSentPrint");
|
| 162 | 162 |
window.open('', 'msgSentPrint', 'width='+ popup_wid +', height='+ popup_ht +', left=' + popup_left + ', top='+ popup_top );
|
| 163 |
- $("#listForm").attr({"action":"/web/member/pay/PrintPayUserListAjax.do", "method":"post"}).submit();
|
|
| 163 |
+ $("#listForm").attr({"action":"/web/member/pay/PrintPayUserSWListAjax.do", "method":"post"}).submit();
|
|
| 164 | 164 |
} |
| 165 | 165 |
|
| 166 | 166 |
//환불요청 내역 프린트 출력 팝업 |
+++ src/main/webapp/WEB-INF/jsp/web/pay/PrintPayUserSWListPopUp.jsp
... | ... | @@ -0,0 +1,227 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 4 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 5 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
| 6 | +<%@ page import="itn.com.cmm.LoginVO" %> | |
| 7 | +<!DOCTYPE html> | |
| 8 | +<html lang="ko"> | |
| 9 | + <head> | |
| 10 | + <meta charset="UTF-8"> | |
| 11 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| 12 | + <title>요금 사용내역</title> | |
| 13 | + <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap" rel="stylesheet"> | |
| 14 | + <link rel="stylesheet" href="/publish/css/reset.css"> | |
| 15 | + <link rel="stylesheet" href="/publish/css/common.css"> | |
| 16 | + <link rel="stylesheet" href="/publish/css/estimate.css"> | |
| 17 | + <link rel="stylesheet" href="/publish/css/font.css"> | |
| 18 | + <link rel="stylesheet" href="/publish/css/button.css"> | |
| 19 | + </head> | |
| 20 | + <script type="text/javascript"> | |
| 21 | + function f_print(){ | |
| 22 | + | |
| 23 | + document.getElementById('est_btn_wrap').style.display = 'none'; | |
| 24 | + var initBody = document.body.innerHTML; | |
| 25 | + window.onbeforeprint = function(){ | |
| 26 | + // print_area는 인쇄하고자 하는 영역의 ID를 말합니다.( 필수 ) | |
| 27 | +// document.body.innerHTML = document.getElementById("print_area").innerHTML; | |
| 28 | + } | |
| 29 | + window.onafterprint = function(){ | |
| 30 | + document.body.innerHTML = initBody; | |
| 31 | + } | |
| 32 | + window.print(); | |
| 33 | + document.getElementById('est_btn_wrap').style.display = ''; | |
| 34 | + } | |
| 35 | + </script> | |
| 36 | + <body> | |
| 37 | + <!-- 견적서 --> | |
| 38 | + <div class="estimate_wrap"> | |
| 39 | + <div class="estimate"> | |
| 40 | + <div class="est_head clearfix"> | |
| 41 | + <img src="/publish/images/CI.png" alt="문자온 CI"> | |
| 42 | + <div class="clearfix"> | |
| 43 | + <p>(12248) 경기도 남양주시 다산순환로 20, A동 735호(다산동, 현대프리미어캠퍼스)</p> | |
| 44 | + <p>TEL 010-8432-9333</p> | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + <div class="est_body"> | |
| 48 | + <h2>요금 사용내역</h2> | |
| 49 | + <div class="cont1 tb_ver2"> | |
| 50 | + <div> | |
| 51 | + <table class="est_table"> | |
| 52 | + <caption>발신자 정보</caption> | |
| 53 | + <colgroup> | |
| 54 | + <col style="width: 50px;"> | |
| 55 | + <col style="width: auto;"> | |
| 56 | + </colgroup> | |
| 57 | + <tbody> | |
| 58 | + <tr> | |
| 59 | + <th></th> | |
| 60 | + <td colspan="2" class="colspan"> | |
| 61 | + <span><c:out value="${userNm}"/></span> 님의 사용내역을 아래와 같이 확인합니다. | |
| 62 | + </td> | |
| 63 | + </tr> | |
| 64 | + </tbody> | |
| 65 | + </table> | |
| 66 | + </div> | |
| 67 | + </div> | |
| 68 | + <div class="cont3"> | |
| 69 | + <div class="est_table2_wrap"> | |
| 70 | + <table class="est_table2"> | |
| 71 | + <caption>사용날짜, 문자유형, 문자내용, 충전 충전금, 충전 포인트, 사용 충전금, 사용 포인트, 잔액 충전금, 잔액 포인트를 제공하는 표</caption> | |
| 72 | + <colgroup> | |
| 73 | + <col style="width: 15%;"> | |
| 74 | + <col style="width: 10%;"> | |
| 75 | + <col style="width: 15%;"> | |
| 76 | + <col style="width: 15%;"> | |
| 77 | + <col style="width: 10%;"> | |
| 78 | + <%-- <col style="width: 10%;"> | |
| 79 | + <col style="width: 15%;"> | |
| 80 | + <col style="width: 10%;"> --%> | |
| 81 | + </colgroup> | |
| 82 | + <thead> | |
| 83 | + <tr> | |
| 84 | + <th rowspan="2" style=" vertical-align : middle;"> | |
| 85 | + 날짜 | |
| 86 | + </th> | |
| 87 | + <th rowspan="2" style=" vertical-align : middle;"> | |
| 88 | + 문자유형 | |
| 89 | + </th> | |
| 90 | + <th rowspan="2" style=" vertical-align : middle;border-right:1px solid #ccc;"> | |
| 91 | + 발송건수 | |
| 92 | + </th> | |
| 93 | + <!-- <th colspan="2">충전</th> --> | |
| 94 | + <th colspan="2">사용</th> | |
| 95 | + <!-- <th colspan="2">잔액</th> --> | |
| 96 | + </tr> | |
| 97 | + <tr> | |
| 98 | + <th>충전금</th> | |
| 99 | + <th>포인트</th> | |
| 100 | + <!-- <th>충전금</th> | |
| 101 | + <th>포인트</th> | |
| 102 | + <th>충전금</th> | |
| 103 | + <th>포인트</th> --> | |
| 104 | + </tr> | |
| 105 | + </thead> | |
| 106 | + <tbody> | |
| 107 | + <c:choose> | |
| 108 | + <c:when test="${not empty payUserList}"> | |
| 109 | + <c:forEach var="payUserInfo" items="${payUserList}" varStatus="status"> | |
| 110 | + <tr> | |
| 111 | + <td> | |
| 112 | + <c:out value="${payUserInfo.regDate}"/> | |
| 113 | + </td> | |
| 114 | + <td> | |
| 115 | + <p style="text-align:center;"> | |
| 116 | + <c:choose> | |
| 117 | + <c:when test="${payUserInfo.msgTypeTxt eq '6' && payUserInfo.fileCnt eq 0 }"> | |
| 118 | + 장문 | |
| 119 | + </c:when> | |
| 120 | + <c:when test="${payUserInfo.msgTypeTxt eq '6' && payUserInfo.fileCnt ne 0 }"> | |
| 121 | + 그림 | |
| 122 | + </c:when> | |
| 123 | + <c:when test="${payUserInfo.msgTypeTxt eq '8'}"> | |
| 124 | + 알림톡 | |
| 125 | + </c:when> | |
| 126 | + <c:when test="${payUserInfo.msgTypeTxt eq '9'}"> | |
| 127 | + 친구톡 | |
| 128 | + </c:when> | |
| 129 | + <c:when test="${payUserInfo.msgTypeTxt eq 'fax'}"> | |
| 130 | + 펙스 | |
| 131 | + </c:when> | |
| 132 | + <c:otherwise> | |
| 133 | + 단문 | |
| 134 | + </c:otherwise> | |
| 135 | + </c:choose> | |
| 136 | + </p> | |
| 137 | + </td> | |
| 138 | + <td> | |
| 139 | + <c:out value="${payUserInfo.succSendCnt}"/> | |
| 140 | + <c:if test="${payUserInfo.msgTypeTxt eq 'fax'}"> | |
| 141 | + (<c:out value="${payUserInfo.fileCnt}"/>) | |
| 142 | + </c:if> | |
| 143 | + </td> | |
| 144 | + <td> | |
| 145 | + <p class="fwRg c_002c9a" style="text-align:center;"> | |
| 146 | + <fmt:formatNumber type="number" maxFractionDigits="3" value="${payUserInfo.succSendPrice}" var="succCash" /> | |
| 147 | + <c:out value="${succCash}"/> | |
| 148 | + </p> | |
| 149 | + </td> | |
| 150 | + <td> | |
| 151 | + <p class="fwRg c_002c9a" style="text-align:center;"> | |
| 152 | + 0 | |
| 153 | + </p> | |
| 154 | + </td> | |
| 155 | + <%-- <td> | |
| 156 | + <p class="fwRg c_002c9a"> | |
| 157 | + <fmt:formatNumber type="number" maxFractionDigits="3" value="${payUserInfo.totPrice}" var="totPrice" /> | |
| 158 | + <c:out value="${totPrice}"/> | |
| 159 | + </p> | |
| 160 | + </td> | |
| 161 | + <td> | |
| 162 | + <p class="fwRg c_002c9a"> | |
| 163 | + 0 | |
| 164 | + </p> | |
| 165 | + </td> | |
| 166 | + <td> | |
| 167 | + <p class="fwRg c_222"> | |
| 168 | + <fmt:formatNumber type="number" maxFractionDigits="3" value="${payUserInfo.thisPoint}" var="thisPoint" /> | |
| 169 | + <c:out value="${thisPoint}"/> | |
| 170 | + </p> | |
| 171 | + </td> | |
| 172 | + <td> | |
| 173 | + <p class="fwRg c_222"> | |
| 174 | + <c:out value="${payUserInfo.befPoint}"/> | |
| 175 | + </p> | |
| 176 | + </td> --%> | |
| 177 | + </tr> | |
| 178 | + </c:forEach> | |
| 179 | + </c:when> | |
| 180 | + <c:otherwise> | |
| 181 | + <tr> | |
| 182 | + <td colspan="9"> | |
| 183 | + 사용내역이 없습니다. | |
| 184 | + </td> | |
| 185 | + </tr> | |
| 186 | + </c:otherwise> | |
| 187 | + </c:choose> | |
| 188 | + </tbody> | |
| 189 | + </table> | |
| 190 | + </div> | |
| 191 | + </div> | |
| 192 | + <div class="cont4"> | |
| 193 | + <table class="est_table"> | |
| 194 | + <caption>공급가액, 부가세, 총 결제금액에 대한 표</caption> | |
| 195 | + <colgroup> | |
| 196 | + <col style="width: 64px;"> | |
| 197 | + <col style="width: auto;"> | |
| 198 | + </colgroup> | |
| 199 | + <tbody> | |
| 200 | + <tr> | |
| 201 | + <th>대표번호</th> | |
| 202 | + <td>010-8432-9333</td> | |
| 203 | + </tr> | |
| 204 | + <tr> | |
| 205 | + <th>이메일</th> | |
| 206 | + <td>help@iten.co.kr</td> | |
| 207 | + </tr> | |
| 208 | + </tbody> | |
| 209 | + </table> | |
| 210 | + </div> | |
| 211 | + <div class="cont5"> | |
| 212 | + <p><span><c:out value="${year}"/></span> 년 <span><c:out value="${month}"/></span> 월 <span><c:out value="${day}"/></span> 일</p> | |
| 213 | + <div> | |
| 214 | + <span>주식회사 아이티앤 대표이사</span> | |
| 215 | + <span>유 인 식</span> | |
| 216 | + <span class="big_stamp"><img src="/publish/images/content/big_stamp.png"></span> | |
| 217 | + </div> | |
| 218 | + </div> | |
| 219 | + </div> | |
| 220 | + <div class="est_btn_wrap" id="est_btn_wrap"> | |
| 221 | + <button type="button" class="btnType" onclick="javascript:f_print(); return false;"><i class="print_img"></i>인쇄하기</button> | |
| 222 | + </div> | |
| 223 | + </div> | |
| 224 | + </div> | |
| 225 | + <!--// 견적서 --> | |
| 226 | + </body> | |
| 227 | +</html> |
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?