51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
@using Contracts.ViewModels
|
|
|
|
@model List<DetailTimeReport>
|
|
|
|
@{
|
|
ViewData["Title"] = "Details on Time Reports";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h1 class="display-4">Список деталей в диапазоне времени</h1>
|
|
</div>
|
|
|
|
<form asp-controller="Report" method="post">
|
|
<button type="submit" class="btn btn-primary">Отправить отчет на почту</button>
|
|
</form>
|
|
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Деталь</th>
|
|
<th>Изделие</th>
|
|
<th>Производства</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var detail in Model)
|
|
{
|
|
<tr>
|
|
<td>@detail.DetailName</td>
|
|
<td>
|
|
<ul>
|
|
@foreach (var product in detail.Products)
|
|
{
|
|
<li>@product</li>
|
|
}
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
<ul>
|
|
@foreach (var production in detail.Productions)
|
|
{
|
|
<li>@production</li>
|
|
}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|