2024-07-28 13:06:28 +04:00
|
|
|
|
@using ElectronicsShopContracts.ViewModels
|
|
|
|
|
|
|
|
|
|
@model (DateTime, DateTime, List<PaymeantViewModel>)
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
ViewData["Title"] = "Reports";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<h1 class="row align-items-center mb-3">
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<label>Отчет по оплатам:</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-auto">
|
|
|
|
|
<label>С:</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-auto">
|
|
|
|
|
<input name="DateFrom" id="datefrom" type="text" value="@Model.Item1.Date.ToString("d")" readonly />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-auto">
|
|
|
|
|
<label>По:</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-auto">
|
|
|
|
|
<input name="DateTo" id="dateto" type="text" value="@Model.Item2.Date.ToString("d")" readonly />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-8">
|
2024-07-29 21:12:31 +04:00
|
|
|
|
<a class="btn btn-primary btn-sm" asp-action="CreateWordReport" asp-route-DateFrom="@Model.Item1"
|
2024-08-03 21:30:34 +04:00
|
|
|
|
asp-route-DateTo="@Model.Item2" style="background-color:#335a95;">Экспорт отчета в .docx</a>
|
2024-07-30 15:36:42 +04:00
|
|
|
|
<a class="btn btn-primary btn-sm" asp-action="CreateExcelReport" asp-route-DateFrom="@Model.Item1"
|
2024-08-03 21:30:34 +04:00
|
|
|
|
asp-route-DateTo="@Model.Item2" style="background-color:#04713A;">Экспорт отчета в .xlsx</a>
|
2024-07-28 13:06:28 +04:00
|
|
|
|
<a class="btn btn-primary btn-sm" asp-action="CreatePdfReport" asp-route-DateFrom="@Model.Item1"
|
|
|
|
|
asp-route-DateTo="@Model.Item2" style="background-color:#ad0d09;">отправить на Email отчет в .pdf</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.Item3) {
|
|
|
|
|
<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>
|