후불제 요금사용 내역 인쇄하기 팝업 수정
- 기존 요금사용내역에 대한 화면이 나와서 변경 완료
This commit is contained in:
parent
ff77287e58
commit
36ce0af7d5
@ -3003,6 +3003,41 @@ public class MjonPayController {
|
|||||||
try { wb.close(); } catch(Exception ignore) {}
|
try { wb.close(); } catch(Exception ignore) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value= {"/web/member/pay/PrintPayUserSWListAjax.do"})
|
||||||
|
public String printPayUserSWListAjax(
|
||||||
|
@ModelAttribute("searchVO") MjonMsgVO mjonMsgVO
|
||||||
|
, RedirectAttributes redirectAttributes
|
||||||
|
, ModelMap model) throws Exception {
|
||||||
|
//로그인 권한정보 불러오기
|
||||||
|
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
|
||||||
|
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||||
|
String userNm = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getName());
|
||||||
|
|
||||||
|
mjonMsgVO.setUserId(userId);
|
||||||
|
model.addAttribute("userNm", userNm);
|
||||||
|
|
||||||
|
|
||||||
|
mjonMsgVO.setFirstIndex(0);
|
||||||
|
mjonMsgVO.setRecordCountPerPage(10000);
|
||||||
|
|
||||||
|
//결제 리스트 정보 불러오기
|
||||||
|
List<MjonMsgVO> payUserList = mjonMsgDataService.selectPayUserSWList(mjonMsgVO);
|
||||||
|
model.addAttribute("payUserList", payUserList);
|
||||||
|
|
||||||
|
Calendar cal = Calendar.getInstance();
|
||||||
|
|
||||||
|
int year = cal.get(Calendar.YEAR);
|
||||||
|
int month = cal.get(Calendar.MONTH) + 1;
|
||||||
|
int day = cal.get(Calendar.DAY_OF_MONTH);
|
||||||
|
|
||||||
|
model.addAttribute("year", year);
|
||||||
|
model.addAttribute("month", month);
|
||||||
|
model.addAttribute("day", day);
|
||||||
|
|
||||||
|
return "web/pay/PrintPayUserSWListPopUp";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -160,7 +160,7 @@ function fnPayUserPrintPopup(){
|
|||||||
|
|
||||||
$("#listForm").attr("target","msgSentPrint");
|
$("#listForm").attr("target","msgSentPrint");
|
||||||
window.open('', 'msgSentPrint', 'width='+ popup_wid +', height='+ popup_ht +', left=' + popup_left + ', top='+ popup_top );
|
window.open('', 'msgSentPrint', 'width='+ popup_wid +', height='+ popup_ht +', left=' + popup_left + ', top='+ popup_top );
|
||||||
$("#listForm").attr({"action":"/web/member/pay/PrintPayUserListAjax.do", "method":"post"}).submit();
|
$("#listForm").attr({"action":"/web/member/pay/PrintPayUserSWListAjax.do", "method":"post"}).submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//환불요청 내역 프린트 출력 팝업
|
//환불요청 내역 프린트 출력 팝업
|
||||||
|
|||||||
227
src/main/webapp/WEB-INF/jsp/web/pay/PrintPayUserSWListPopUp.jsp
Normal file
227
src/main/webapp/WEB-INF/jsp/web/pay/PrintPayUserSWListPopUp.jsp
Normal file
@ -0,0 +1,227 @@
|
|||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<%@ page import="itn.com.cmm.LoginVO" %>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>요금 사용내역</title>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="/publish/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="/publish/css/common.css">
|
||||||
|
<link rel="stylesheet" href="/publish/css/estimate.css">
|
||||||
|
<link rel="stylesheet" href="/publish/css/font.css">
|
||||||
|
<link rel="stylesheet" href="/publish/css/button.css">
|
||||||
|
</head>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function f_print(){
|
||||||
|
|
||||||
|
document.getElementById('est_btn_wrap').style.display = 'none';
|
||||||
|
var initBody = document.body.innerHTML;
|
||||||
|
window.onbeforeprint = function(){
|
||||||
|
// print_area는 인쇄하고자 하는 영역의 ID를 말합니다.( 필수 )
|
||||||
|
// document.body.innerHTML = document.getElementById("print_area").innerHTML;
|
||||||
|
}
|
||||||
|
window.onafterprint = function(){
|
||||||
|
document.body.innerHTML = initBody;
|
||||||
|
}
|
||||||
|
window.print();
|
||||||
|
document.getElementById('est_btn_wrap').style.display = '';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body>
|
||||||
|
<!-- 견적서 -->
|
||||||
|
<div class="estimate_wrap">
|
||||||
|
<div class="estimate">
|
||||||
|
<div class="est_head clearfix">
|
||||||
|
<img src="/publish/images/CI.png" alt="문자온 CI">
|
||||||
|
<div class="clearfix">
|
||||||
|
<p>(12248) 경기도 남양주시 다산순환로 20, A동 735호(다산동, 현대프리미어캠퍼스)</p>
|
||||||
|
<p>TEL 010-8432-9333</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="est_body">
|
||||||
|
<h2>요금 사용내역</h2>
|
||||||
|
<div class="cont1 tb_ver2">
|
||||||
|
<div>
|
||||||
|
<table class="est_table">
|
||||||
|
<caption>발신자 정보</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 50px;">
|
||||||
|
<col style="width: auto;">
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<td colspan="2" class="colspan">
|
||||||
|
<span><c:out value="${userNm}"/></span> 님의 사용내역을 아래와 같이 확인합니다.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cont3">
|
||||||
|
<div class="est_table2_wrap">
|
||||||
|
<table class="est_table2">
|
||||||
|
<caption>사용날짜, 문자유형, 문자내용, 충전 충전금, 충전 포인트, 사용 충전금, 사용 포인트, 잔액 충전금, 잔액 포인트를 제공하는 표</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 15%;">
|
||||||
|
<col style="width: 10%;">
|
||||||
|
<col style="width: 15%;">
|
||||||
|
<col style="width: 15%;">
|
||||||
|
<col style="width: 10%;">
|
||||||
|
<%-- <col style="width: 10%;">
|
||||||
|
<col style="width: 15%;">
|
||||||
|
<col style="width: 10%;"> --%>
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th rowspan="2" style=" vertical-align : middle;">
|
||||||
|
날짜
|
||||||
|
</th>
|
||||||
|
<th rowspan="2" style=" vertical-align : middle;">
|
||||||
|
문자유형
|
||||||
|
</th>
|
||||||
|
<th rowspan="2" style=" vertical-align : middle;border-right:1px solid #ccc;">
|
||||||
|
발송건수
|
||||||
|
</th>
|
||||||
|
<!-- <th colspan="2">충전</th> -->
|
||||||
|
<th colspan="2">사용</th>
|
||||||
|
<!-- <th colspan="2">잔액</th> -->
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>충전금</th>
|
||||||
|
<th>포인트</th>
|
||||||
|
<!-- <th>충전금</th>
|
||||||
|
<th>포인트</th>
|
||||||
|
<th>충전금</th>
|
||||||
|
<th>포인트</th> -->
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${not empty payUserList}">
|
||||||
|
<c:forEach var="payUserInfo" items="${payUserList}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<c:out value="${payUserInfo.regDate}"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p style="text-align:center;">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${payUserInfo.msgTypeTxt eq '6' && payUserInfo.fileCnt eq 0 }">
|
||||||
|
장문
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${payUserInfo.msgTypeTxt eq '6' && payUserInfo.fileCnt ne 0 }">
|
||||||
|
그림
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${payUserInfo.msgTypeTxt eq '8'}">
|
||||||
|
알림톡
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${payUserInfo.msgTypeTxt eq '9'}">
|
||||||
|
친구톡
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${payUserInfo.msgTypeTxt eq 'fax'}">
|
||||||
|
펙스
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
단문
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:out value="${payUserInfo.succSendCnt}"/>
|
||||||
|
<c:if test="${payUserInfo.msgTypeTxt eq 'fax'}">
|
||||||
|
(<c:out value="${payUserInfo.fileCnt}"/>)
|
||||||
|
</c:if>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="fwRg c_002c9a" style="text-align:center;">
|
||||||
|
<fmt:formatNumber type="number" maxFractionDigits="3" value="${payUserInfo.succSendPrice}" var="succCash" />
|
||||||
|
<c:out value="${succCash}"/>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="fwRg c_002c9a" style="text-align:center;">
|
||||||
|
0
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<%-- <td>
|
||||||
|
<p class="fwRg c_002c9a">
|
||||||
|
<fmt:formatNumber type="number" maxFractionDigits="3" value="${payUserInfo.totPrice}" var="totPrice" />
|
||||||
|
<c:out value="${totPrice}"/>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="fwRg c_002c9a">
|
||||||
|
0
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="fwRg c_222">
|
||||||
|
<fmt:formatNumber type="number" maxFractionDigits="3" value="${payUserInfo.thisPoint}" var="thisPoint" />
|
||||||
|
<c:out value="${thisPoint}"/>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="fwRg c_222">
|
||||||
|
<c:out value="${payUserInfo.befPoint}"/>
|
||||||
|
</p>
|
||||||
|
</td> --%>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<tr>
|
||||||
|
<td colspan="9">
|
||||||
|
사용내역이 없습니다.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cont4">
|
||||||
|
<table class="est_table">
|
||||||
|
<caption>공급가액, 부가세, 총 결제금액에 대한 표</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 64px;">
|
||||||
|
<col style="width: auto;">
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>대표번호</th>
|
||||||
|
<td>010-8432-9333</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>이메일</th>
|
||||||
|
<td>help@iten.co.kr</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="cont5">
|
||||||
|
<p><span><c:out value="${year}"/></span> 년 <span><c:out value="${month}"/></span> 월 <span><c:out value="${day}"/></span> 일</p>
|
||||||
|
<div>
|
||||||
|
<span>주식회사 아이티앤 대표이사</span>
|
||||||
|
<span>유 인 식</span>
|
||||||
|
<span class="big_stamp"><img src="/publish/images/content/big_stamp.png"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="est_btn_wrap" id="est_btn_wrap">
|
||||||
|
<button type="button" class="btnType" onclick="javascript:f_print(); return false;"><i class="print_img"></i>인쇄하기</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--// 견적서 -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user