2023-05-17 14:20:02 +04:00
|
|
|
@using ComputerShopContracts.ViewModels
|
|
|
|
|
2023-05-19 18:26:38 +04:00
|
|
|
@model List<SupplyViewModel>
|
2023-05-17 14:20:02 +04:00
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Supply";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Поставка</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (Model == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Авторизируйтесь</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
<p>
|
2023-05-19 18:26:38 +04:00
|
|
|
<a asp-action="CreateSupply">Создать поставку</a>
|
2023-05-17 14:20:02 +04:00
|
|
|
</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Номер
|
|
|
|
</th>
|
|
|
|
<th>
|
2023-05-19 18:26:38 +04:00
|
|
|
Статус
|
2023-05-17 14:20:02 +04:00
|
|
|
</th>
|
|
|
|
<th>
|
2023-05-19 18:26:38 +04:00
|
|
|
Дата создания
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата поставки
|
2023-05-17 14:20:02 +04:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-05-19 18:26:38 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Status)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.DateCreate)
|
2023-05-17 14:20:02 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2023-05-19 18:26:38 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.DateImplement)
|
2023-05-17 14:20:02 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|