65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
@using ElectronicsShopContracts.ViewModels
|
|
@model (List<PaymeantViewModel>, string)
|
|
|
|
@{
|
|
ViewData["Title"] = "ReportSearchFix";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h1 class="row align-items-center mb-3">
|
|
<div class="text-center">
|
|
<label>Предпросмотр отчета:</label>
|
|
</div>
|
|
<div class="text-end">
|
|
<a class="btn btn-primary btn-sm" asp-action="CreateWordReport" asp-route-ids ="@Model.Item2" style="background-color:#335a95;">Экспорт отчета в .docx</a>
|
|
<a class="btn btn-primary btn-sm" asp-action="CreateExcelReport" asp-route-ids="@Model.Item2" style="background-color:#04713A;">Экспорт отчета в .xlsx</a>
|
|
</div>
|
|
</h1>
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
@{
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер оплаты
|
|
</th>
|
|
<th>
|
|
Номер заказа
|
|
</th>
|
|
<th>
|
|
Статус оплаты
|
|
</th>
|
|
<th>
|
|
Сумма оплаты
|
|
</th>
|
|
<th>
|
|
Дата оплаты
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Item1) {
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayFor(modelItem => item.ID)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayFor(modelItem => item.OrderID)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayFor(modelItem => item.PayOption)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayFor(modelItem => item.SumPayment)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayFor(modelItem => item.DatePaymeant)
|
|
</th>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |