CourseWork_BankYouBankrupt/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/ReportWithAccounts.cshtml

82 lines
2.3 KiB
Plaintext
Raw Normal View History

2023-05-17 20:46:26 +04:00
@using BankYouBankruptContracts.ViewModels
2023-05-18 12:19:37 +04:00
@model List<ReportCashierAccountsViewModel>?
2023-05-17 20:46:26 +04:00
@{
2023-05-18 17:22:13 +04:00
ViewData["Title"] = "Отчет по счетам";
2023-05-17 20:46:26 +04:00
}
<div class="text-center">
<h1 class="display-4">Отчет</h1>
</div>
<div class="container" sf-type="container" sf-label="Bootstrap Container" sf-uid="2">
<div class="row" sf-type="container" sf-label="Row" sf-uid="3">
<div class="mb-4 mb-md-0 aos-init aos-animate col-md-3" sf-type="container" sf-label="Column" sf-anim-delay="1.5" data-aos="fade-down" data-aos-delay="400" sf-uid="4">
<div sf-type="container" sf-label="Container" class="py-15 h-100 bg-bg-2" sf-uid="5">
<form method="post">
<select id="accountId" name="accountId" class="form-control" asp-items="@(new SelectList(ViewBag.Accounts, "Id", "AccountNumber"))">
<option disabled selected>Выберите счёт</option>
</select>
<div>
<input class="btn btn-primary mt-3" type="submit" value="Submit" />
</div>
</form>
</div>
</div>
<div class="aos-init aos-animate col-md" sf-type="container" sf-label="Column" sf-anim-delay="2" data-aos="fade-down" data-aos-delay="500" sf-uid="8">
<div sf-type="container" sf-label="Container" class="py-15 h-100 bg-bg-2" sf-uid="9">
<table class="table">
<thead>
<tr>
<th>
2023-05-18 12:19:37 +04:00
Тип операции
2023-05-17 20:46:26 +04:00
</th>
<th>
2023-05-18 12:19:37 +04:00
Кассир
2023-05-17 20:46:26 +04:00
</th>
<th>
2023-05-18 17:22:13 +04:00
Счет отправителя
2023-05-17 20:46:26 +04:00
</th>
<th>
2023-05-18 17:22:13 +04:00
Счет получателя
2023-05-17 20:46:26 +04:00
</th>
<th>
2023-05-18 12:19:37 +04:00
Сумма операции
2023-05-17 20:46:26 +04:00
</th>
<th>
2023-05-18 12:19:37 +04:00
Дата
2023-05-17 20:46:26 +04:00
</th>
</tr>
</thead>
<tbody>
2023-05-18 12:19:37 +04:00
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.typeOperation)
</td>
<td>
@Html.DisplayFor(modelItem => item.CashierSurname)
</td>
<td>
@Html.DisplayFor(modelItem => item.AccountSenderNumber)
</td>
<td>
@Html.DisplayFor(modelItem => item.AccountPayeeNumber)
</td>
<td>
@Html.DisplayFor(modelItem => item.Sum)
</td>
<td>
@Html.DisplayFor(modelItem => item.DateOperation)
</td>
</tr>
}
2023-05-17 20:46:26 +04:00
</tbody>
</table>
</div>
</div>
</div>
</div>