View для отчёта PDF.
This commit is contained in:
parent
972383b3db
commit
d666f1f74b
81
Bank/BankOperatorApp/Views/Home/ViewReport.cshtml
Normal file
81
Bank/BankOperatorApp/Views/Home/ViewReport.cshtml
Normal file
@ -0,0 +1,81 @@
|
||||
@using BankContracts.ViewModels
|
||||
|
||||
@model List<ReportCurrencyPurchasePaymentViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "View Report";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Отчёт о закупках</h1>
|
||||
<h1 class="display4">C @ViewBag.DateFrom по @ViewBag.DateTo</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-center">
|
||||
@{
|
||||
if (Model == null)
|
||||
{
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Номер закупки
|
||||
</th>
|
||||
<th>
|
||||
Дата закупки
|
||||
</th>
|
||||
<th>
|
||||
Валюта
|
||||
</th>
|
||||
<th>
|
||||
Номер выплаты
|
||||
</th>
|
||||
<th>
|
||||
Дата выплаты
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
Закупка №@item.CurrencyPurchaseId
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.PurchaseDate)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CurrencyName)
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
@foreach (var payment in item.Payments)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
Выплата №@payment.PaymentId
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => payment.PaymentDate)
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user