YNICTE/BO/Views/croom/cmlectattprint.cshtml

111 lines
4.2 KiB
Plaintext
Raw Normal View History

2020-10-12 14:39:23 +09:00
@model NP.Model.VMCM
@{
Layout = "~/Views/Shared/_PrintLayout.cshtml";
var i = 1;
}
<div id="print_area" style="width: 680px; margin: 0 auto; padding-top: 20px;">
@for (int j = 0; j <= Model.Lects.Count / 20; j++)
{
<div class="print">
<h2 class="text-center">@Model.CM.cname</h2>
<br /><br />
<h4>■ 기수/반 : @Model.CM.tmname / @Model.CM.classno 반</h4>
<h4>■ 교육일 : @(Model.CM.sstime == null ? "" : Model.CM.sstime.Value.ToShortDateString())</h4>
<h4>■ 출력일 : @(DateTime.Now.ToString("yyyy-MM-dd H:mm"))</h4>
<table class="table">
<colgroup>
<col style="width: 7%;" />
<col style="width: 10%;" />
<col />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 20%;" />
</colgroup>
<tr><th>번호</th><th>분류</th><th>회사명</th><th>참석자</th><th>부서</th><th>직위</th><th>결제상태</th><th>서명</th></tr>
@foreach (var d in Model.Lects)
{
var d1 = Model.Lects.Where(w => w.rno == i).FirstOrDefault();
if (d1 == null) { break; }
<tr>
<td>@d1.rno</td>
<td>@d1.isjoinname</td>
<td>@d1.asname</td>
<td>@d1.username</td>
<td>@d1.depart</td>
<td>@d1.ccpositionname</td>
<td>@d1.pstatusname</td>
<td>&nbsp;</td>
</tr>
i++;
if (i % 20 == 0)
{
break;
}
}
</table>
</div>
}
<div style="page-break-after: always;" class="print">
<h2 class="text-center">@Model.CM.cname</h2>
<br /><br />
<h4>■ 기수/반 : @Model.CM.tmname / @Model.CM.classno 반</h4>
<h4>■ 교육일 : @(Model.CM.sstime == null ? "" : Model.CM.sstime.Value.ToShortDateString())</h4>
<h4>■ 출력일 : @(DateTime.Now.ToString("yyyy-MM-dd H:mm"))</h4>
<table class="table">
<colgroup>
<col style="width: 7%;" />
<col style="width: 10%;" />
<col />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 20%;" />
</colgroup>
<tr><th>번호</th><th>분류</th><th>회사명</th><th>참석자</th><th>부서</th><th>직위</th><th>결제상태</th><th>서명</th></tr>
@for (int k = 0; k < 20; k++)
{
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
}
</table>
</div>
</div>
<div class="printNonArea" style="height: 85px;">&nbsp;</div>
<div style="text-align: center; position: fixed; z-index: 1; 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">
#print_area { display: table; width: 100%;}
.print { page-break-after: always; padding-top: 20px;}
.print:last-child { page-break-after: auto;}
</style>
}
@section scriptsHeader
{
}
@section scripts
{
<script type="text/javascript">
$(document).ready(function () {
});
</script>
}