YNICTE/BO/Views/croom/refundprint.cshtml

88 lines
3.6 KiB
Plaintext
Raw Normal View History

2020-10-12 14:39:23 +09:00
@model NP.Model.VMPay
@{
Layout = "~/Views/Shared/_PrintLayout.cshtml";
ViewBag.PopupMenuName = "환불요청서(인쇄)";
var r = Model.PayRfds.First();
}
<div id="print_area" style="width: 680px; margin: 0 auto;">
<div style="padding: 30px; font-weight: bold; font-size: 25px; text-align: center;">환불 요청서</div>
<table class="regtable" style="margin-top: 0;">
<colgroup><col style="width: 150px" /><col /></colgroup>
<tr><th>신청기관</th><td>@r.asname</td></tr>
<tr><th>신청자</th><td>@Html.Raw(string.Format("{0}({1})<br />Tel: {2} (Mobile: {3})", r.username, r.userid, r.telno, r.mobile))</td></tr>
<tr>
<th>결제상품명</th>
<td>
<ul>
@foreach (var d in Model.PayItems)
{
<li style="margin-bottom: 5px; font-weight: bold;">@d.itemname (@d.payamt.ToString("#,0")원)<br /></li>
}
</ul>
</td>
</tr>
<tr><th>결제금액</th><td>@Model.Pay.payamt.ToString("#,0")원</td></tr>
@if (Model.Pay.refundamt > 0)
{
<tr><th>환불완료금액</th><td>@Model.Pay.refundamt.ToString("#,0")원</td></tr>
}
<tr><th>환불요청일</th><td>@r.cdtymdhms</td></tr>
<tr>
<th>환불요청상품</th>
<td>
<ul>
@foreach (var d in Model.PayRfds)
{
<li style="margin-bottom: 5px; font-weight: bold;">@d.itemname (@d.payamt.ToString("#,0")원)</li>
}
</ul>
</td>
</tr>
<tr><th>환불요청사유</th><td>@r.rtext</td></tr>
<tr style="@(Model.Pay.ptype==1 ? "display:none;" : "")"><th>개인계좌환불여부</th><td>@(r.isowner==1?"예":"아니오")</td>
<tr><th>환불금액</th><td>@((r.ramt??Model.PayRfds.Sum(s=>s.payamt)).ToString("#,0")) 원</td></tr>
<tr style="@(Model.Pay.ptype==1 ? "display:none;" : "")"><th>환불계좌</th><td>@r.bankname @r.bankowner @r.bankno</td></tr>
<tr><th>담당자 확인</th><td style="height: 70px;">&nbsp;</td></tr>
</table>
<div style="text-align: center; padding: 30px 0 0;"><img src="~/Img/gnb_logo.png" /></div>
</div>
<div class="printNonArea" style="height: 85px;">&nbsp;</div>
<div style="text-align: center; position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; background-color: #fff; padding: 10px 0; border: 1px solid #ddd;" class="printNonArea">
<div style="color: red;" class="text-center">* 인쇄설정에서 머리글과 바닥글을 표시제외하고 배경이미지를 활성화 해주세요.</div>
<div style="height: 38px; margin-top: 5px;">
<a class="btn btn-lg btn-info" href="#" title="인쇄" onclick="fnPrint();">인쇄</a>
<a class="btn btn-default btn-lg" href="#" title="취소" onclick="self.close();">취소</a>
</div>
</div>
@section styles{
<style type="text/css">
.regtable tr td {
background-color: #fff;
text-align: left;
padding: 15px;
}
.regtable tr td.left {
text-align: left;
}
.regtable tr td.right {
text-align: right;
}
</style>
}
@section scriptsHeader{
}
@section scripts{
<script>
$(document).ready(function () {
});
$(window).on("load", function () {
//setTimeout(function () {
// fnPrint();
//}, 1000);
});
</script>
}