Coursach/Course/ImplementerApp/Views/Home/DetailWorkshopReport.cshtml
Sergey Kozyrev 8e9e4dd321 ViewUpdate
Around the world, around the world
Around the world, around the world
Around the world, around the world
Around the world, around the world
2024-04-30 00:44:32 +04:00

43 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using Contracts.ViewModels
@model List<DetailWorkshopReportViewModel>
@{
ViewData["Title"] = "Details - Workshop Reports";
}
<div class="text-center">
<h1 class="display-4">Список деталей с отображением цехов</h1>
</div>
<form asp-controller="Report" method="post">
<button type="submit" class="btn btn-primary">Сгенерировать отчет в Word</button>
</form>
<form asp-controller="Report" method="post">
<button type="submit" class="btn btn-primary">Сгенерировать отчет в Excel</button>
</form>
<table class="table">
<thead>
<tr>
<th>Деталь</th>
<th>Цех</th>
</tr>
</thead>
<tbody>
@foreach (var detail in Model)
{
<tr>
<td>@detail.DetailName</td>
<td>
<ul>
@foreach (var workshop in detail.WorkShops)
{
<li>@workshop</li>
}
</ul>
</td>
</tr>
}
</tbody>
</table>