95 lines
1.7 KiB
Plaintext
95 lines
1.7 KiB
Plaintext
|
@using TaskTrackerContracts.ViewModels
|
||
|
@model List<TaskViewModel>
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Отчёт по сотрудникам";
|
||
|
}
|
||
|
<div class="text-center">
|
||
|
<h1 class="display-4">Сотрудник</h1>
|
||
|
</div>
|
||
|
<div class="text-center">
|
||
|
@{
|
||
|
|
||
|
<p>
|
||
|
<form action="/Home/ReportEmployee" method="get">
|
||
|
<button type="submit" class="btn btn-danger">Получить отчет</button>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-4">Сотрудник:</div>
|
||
|
<div class="col-8">
|
||
|
<select id="id" name="id" class="form-control" asp-items="@(new SelectList(@ViewBag.Employees,"Id", "Name"))"></select>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</form>
|
||
|
</p>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th id="id">
|
||
|
Id
|
||
|
</th>
|
||
|
<th>
|
||
|
Имя
|
||
|
</th>
|
||
|
<th>
|
||
|
Дата создания
|
||
|
</th>
|
||
|
<th>
|
||
|
Дедлайн
|
||
|
</th>
|
||
|
<th>
|
||
|
Проект
|
||
|
</th>
|
||
|
<th>
|
||
|
Статус
|
||
|
</th>
|
||
|
<th>
|
||
|
Дата выполнения
|
||
|
</th>
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model)
|
||
|
{
|
||
|
<tr>
|
||
|
<td id="id">
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.Id)
|
||
|
</td>
|
||
|
<td id="name">
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.Name)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.DateCreate)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.Deadline)
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.ProjectName)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.Status)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.DateDone)
|
||
|
</td>
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
}
|
||
|
|
||
|
</div>
|