<%@ 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>
	<script type="text/javascript" src="/publish/js/jquery-3.5.0.js"></script>
	
	<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">
$(document).ready(function(){
	
});

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  1551-8011</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>
	                                    <td colspan="2" class="colspan"><span><c:out value="${userNm}"/></span> &nbsp;님의 전용계좌 발급 사실을 아래와 같이 확인합니다.</td>
	                                </tr>
	                            </tbody>
	                        </table>
	                    </div>
	                </div>
	                <div class="cont3">
	                    <div class="est_table2_wrap">
	                        <table class="est_table2">
	                            <caption>예금주명, 발급은행, 계좌번호 정보를 제공하는 표</caption>
	                            <colgroup>
	                                <col style="width: 25%;">
	                                <col style="width: 25%;">
	                                <col style="width: auto;">
	                            </colgroup>
	                            <thead>
	                                <tr>
	                                    <th scope="col">예금주명</th>
	                                    <th scope="col">발급은행</th>
	                                    <th scope="col">계좌번호</th>
	                                </tr>
	                            </thead>
	                            <tbody>
	                            	<c:choose>
										<c:when test="${not empty resultMyList}">
											<c:forEach var="result" items="${resultMyList}" varStatus="status">										
												<tr>
													<td>
														<c:out value="${result.cmfNm}"/>
													</td>
													<td>
														<c:out value='${result.codeNm}'/>
													</td>
													<td>
														<c:out value='${result.acctNo}'/>
													</td>
												</tr>
											</c:forEach>								
										</c:when>
										<c:otherwise>
											<tr>
												<td colspan="3">
													<div>
														보유한 전용 계좌가 없습니다.
													</div>
												</td>
											</tr>
										</c:otherwise>
									</c:choose>
	                                <!-- <tr>
	                                    <td>홍길동</td>
	                                    <td>신한은행</td>
	                                    <td>56212519512583</td>
	                                </tr> -->
	                            </tbody>
	                        </table>
	                    </div>
	                </div>
	                <div class="cont4 account">
	                    <table class="est_table">
	                        <caption>추가설명</caption>
	                        <colgroup>
	                            <col style="width: 64px;">
	                            <col style="width: auto;">
	                        </colgroup>
	                        <tbody>
	                            <tr>
	                                <td class="acc_te">* 본 확인서는 결제 증빙 용도로만 활용될 수 있습니다. (법적 효력 없음)</td>
	                            </tr>
	                        </tbody>
	                    </table>
	                </div>
	                <div class="cont5">
						<p><span><c:out value="${year}"/></span> 년&nbsp;&nbsp;<span><c:out value="${month}"/></span> 월&nbsp;&nbsp;<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>
