77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
@using ComputerShopContracts.ViewModels
|
|
|
|
@model List<EquipmentReceivingViewModel>
|
|
|
|
@{
|
|
ViewData["Title"] = "Home Page";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h1 class="display-4">Список получений техники</h1>
|
|
</div>
|
|
|
|
|
|
<div class="text-center">
|
|
@{
|
|
if (Model == null)
|
|
{
|
|
<h3 class="display-4">Авторизируйтесь</h3>
|
|
return;
|
|
}
|
|
|
|
<p>
|
|
<form action="CreateReceiving" method="post">
|
|
<button type="submit" class="btn btn-primary">Создать новое получение</button>
|
|
</form>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер
|
|
</th>
|
|
<th>
|
|
ID клиента
|
|
</th>
|
|
<th>
|
|
Дата получения
|
|
</th>
|
|
<th>
|
|
Статус
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ClientId)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DateImplement)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Status)
|
|
</td>
|
|
<td>
|
|
<form action="SetFinish" method="post">
|
|
<input type="hidden" name="id" value="@item.Id" />
|
|
<button type="submit" class="btn btn-primary">Получено</button>
|
|
</form>
|
|
<td>
|
|
<form action="DeleteReceiving" method="post">
|
|
<input type="hidden" name="receiving" value="@item.Id" />
|
|
<button type="submit" class="btn btn-danger">Отменить</button>
|
|
</form>
|
|
<td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|