From d666f1f74bf9d56176c50b6c63a7367b5dfabb57 Mon Sep 17 00:00:00 2001 From: ksenianeva <95441235+ksenianeva@users.noreply.github.com> Date: Sat, 20 May 2023 05:58:55 +0400 Subject: [PATCH] =?UTF-8?q?View=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D1=82=D1=87?= =?UTF-8?q?=D1=91=D1=82=D0=B0=20PDF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Home/ViewReport.cshtml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Bank/BankOperatorApp/Views/Home/ViewReport.cshtml 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