diff --git a/Bank/BankOperatorApp/Views/Home/ViewReport.cshtml b/Bank/BankOperatorApp/Views/Home/ViewReport.cshtml new file mode 100644 index 0000000..f8d644c --- /dev/null +++ b/Bank/BankOperatorApp/Views/Home/ViewReport.cshtml @@ -0,0 +1,81 @@ +@using BankContracts.ViewModels + +@model List + +@{ + ViewData["Title"] = "View Report"; +} + +
+

Отчёт о закупках

+

C @ViewBag.DateFrom по @ViewBag.DateTo

+
+ + +
+ @{ + if (Model == null) + { +

Авторизируйтесь

+ return; + } + + + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + @foreach (var payment in item.Payments) + { + + + + + + + + } + } + +
+ Номер закупки + + Дата закупки + + Валюта + + Номер выплаты + + Дата выплаты +
+ Закупка №@item.CurrencyPurchaseId + + @Html.DisplayFor(modelItem => item.PurchaseDate) + + @Html.DisplayFor(modelItem => item.CurrencyName) + + +
+ + + + Выплата №@payment.PaymentId + + @Html.DisplayFor(modelItem => payment.PaymentDate) +
+ } +
\ No newline at end of file