61 lines
2.1 KiB
Plaintext
61 lines
2.1 KiB
Plaintext
|
@using BankContracts.ViewModels;
|
|||
|
|
|||
|
@model List<BankContracts.ViewModels.PaymentViewModel>?
|
|||
|
@{
|
|||
|
ViewData["Title"] = "Список операций с оплатами";
|
|||
|
}
|
|||
|
<h1>@ViewData["Title"]</h1>
|
|||
|
|
|||
|
<form method="post">
|
|||
|
<div class="align-content-center row mb-3">
|
|||
|
<div class="col-sm-auto">
|
|||
|
<label for="startDate">С:</label>
|
|||
|
</div>
|
|||
|
<div class="col-3">
|
|||
|
<input name="startDate" id="startDate" class="form-control" type="date"/>
|
|||
|
</div>
|
|||
|
<div class="col-sm-auto">
|
|||
|
<label for="endDate">По:</label>
|
|||
|
</div>
|
|||
|
<div class="col-3">
|
|||
|
<input name="endDate" id="endDate" class="form-control" type="date" value="@DateTime.Today.ToString("yyyy-MM-dd")" />
|
|||
|
</div>
|
|||
|
<div class="col-2">
|
|||
|
<input type="submit" name="getReport" class="btn btn-primary" value="Сформировать отчет"/>
|
|||
|
</div>
|
|||
|
<div class="col-3">
|
|||
|
<input type="submit" name="sendToMail" class="btn btn-primary" value="Отправить на почту" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
|
|||
|
<div class="text-center">
|
|||
|
<table class="table">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Сделка</th>
|
|||
|
<th>Вид операции</th>
|
|||
|
<th>Тип операции</th>
|
|||
|
<th>Дата оплаты</th>
|
|||
|
<th>Внесенная оплата</th>
|
|||
|
<th>Полная оплата</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody id="fillReportOperations">
|
|||
|
@if (Model != null)
|
|||
|
{
|
|||
|
foreach (var payment in Model)
|
|||
|
{
|
|||
|
<tr>
|
|||
|
<td>@payment.OperationByPurchase.PurchaseId</td>
|
|||
|
<td>@(payment.Operation?.Model ?? string.Empty)</td>
|
|||
|
<td>@(payment.Operation?.Mark ?? string.Empty)</td>
|
|||
|
<td>@(payment.Date.ToShortDateString() ?? string.Empty)</td>
|
|||
|
<td>@payment.PaidPrice</td>
|
|||
|
<td>@payment.FullPrice</td>
|
|||
|
</tr>
|
|||
|
}
|
|||
|
}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|