115 lines
2.5 KiB
Plaintext
115 lines
2.5 KiB
Plaintext
@using BankYouBankruptContracts.ViewModels;
|
|
|
|
@model ReportClientViewModelForHTML
|
|
|
|
@{
|
|
ViewData["Title"] = "Создание отчёта";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h2 class="display-4">Отчёт по картам за выбранный период</h2>
|
|
</div>
|
|
<form method="post">
|
|
<div class="row mb-2">
|
|
<div class="col-4">Дата начала периода:</div>
|
|
<div class="col-8">
|
|
<input id="dateFrom" name="dateFrom" class="form-control" type="date" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="col-4">Дата конца периода:</div>
|
|
<div class="col-8">
|
|
<input id="dateTo" name="dateTo" class="form-control" type="date" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<input id="createReport" style="width:100%;" type="submit" value="Сформировать отчёт" class="btn btn-warning" />
|
|
</div>
|
|
|
|
<hr class="mt-5 mb-3" />
|
|
@if (Model != null)
|
|
{
|
|
<div class="row text-center">
|
|
<p>Отчёт по пополнениям</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер операции
|
|
</th>
|
|
<th>
|
|
Номер карты
|
|
</th>
|
|
<th>
|
|
Сумма
|
|
</th>
|
|
<th>
|
|
Дата операции
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.ReportCrediting)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.OperationId)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.CardNumber)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.SumOperation)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DateComplite)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<hr class="my-12" />
|
|
<div class="row text-center">
|
|
<p>Отчёт по снятиям</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер операции
|
|
</th>
|
|
<th>
|
|
Номер карты
|
|
</th>
|
|
<th>
|
|
Сумма
|
|
</th>
|
|
<th>
|
|
Дата операции
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.ReportDebiting)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.OperationId)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.CardNumber)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.SumOperation)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DateComplite)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
</form>
|