Coursach/Course/ImplementerApp/Views/Home/DetailWorkshopReport.cshtml

43 lines
1.1 KiB
Plaintext
Raw Normal View History

@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>