230 lines
8.8 KiB
Plaintext
230 lines
8.8 KiB
Plaintext
@* @model IEnumerable<VirtualTask.Models.Tecnici> *@
|
|
@model IPagedList<VirtualTask.Models.Tecnici>
|
|
@using X.PagedList;
|
|
@using X.PagedList.Mvc.Core;
|
|
@using X.PagedList.Web.Common;
|
|
|
|
|
|
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
|
|
@{
|
|
ViewData["Title"] = "Tecnici";
|
|
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
|
|
}
|
|
|
|
<div class="agy-project-wrapper agy-project-page-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
<p>
|
|
<a asp-action="Create" class="info-data"><img src="~/assets/images/icons8-nuovo-50.png" alt="Crea un nuovo tecnico" /></a>
|
|
</p>
|
|
@using (Html.BeginForm())
|
|
{
|
|
<div>
|
|
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per descrizione", @class = "agy-form-field require" })</div>
|
|
<div style="float:left;width:2%;"> </div>
|
|
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
|
|
|
</div>
|
|
}
|
|
<table class="table">
|
|
<thread>
|
|
<tr>
|
|
<th>Codice</th>
|
|
<th>Descrizione</th>
|
|
<th>Tel.</th>
|
|
<th>Utente</th>
|
|
<th>Password</th>
|
|
<th hidden>Costo ordinario</th>
|
|
<th hidden>Costo notturno</th>
|
|
<th hidden>Costo straordinario</th>
|
|
<th hidden>Costo festivo</th>
|
|
</tr>
|
|
</thread>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tccodice)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tcdescri)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tctelef1)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tcuser)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tcpwd)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccost)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccono)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccost)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccofe)
|
|
</td>
|
|
|
|
<td>
|
|
<a href="@Url.Action("Edit", "Tecnici", new { id=item.tccodice })" title="Modifica" class="links">
|
|
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
|
|
|
<a href="@Url.Action("Details", "Tecnici", new { id=item.tccodice })" title="Dettaglio" class="links">
|
|
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
|
|
|
<a href="@Url.Action("Delete", "Tecnici", new { id=item.tccodice })" title="Elimina" class="links">
|
|
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<br />
|
|
<nav>
|
|
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString=@ViewData["CurrentFilter"] }), new PagedListRenderOptions()
|
|
{
|
|
ActiveLiElementClass = "active",
|
|
PageClasses = new[]{ "page-link"},
|
|
LiElementClasses=new[] { "page-item" },
|
|
UlElementClasses = new[] { "pagination","justify-content-center", "mt-3" },
|
|
LinkToNextPageFormat = "Successiva",
|
|
LinkToPreviousPageFormat = "Precedente",
|
|
MaximumPageNumbersToDisplay = 5,
|
|
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
|
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
|
})
|
|
</nav>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
@* <h1>Tecnici</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Crea nuovo tecnico</a>
|
|
</p>
|
|
@using (Html.BeginForm())
|
|
{
|
|
<p>
|
|
Find by Descrizione: @Html.TextBox("SearchString")
|
|
<input type="submit" value="Cerca" />
|
|
</p>
|
|
} *@
|
|
<@* table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th> *@
|
|
@* @Html.DisplayNameFor(model => model.tccodazi) *@
|
|
@*AZIENDA*@
|
|
@* </th>
|
|
<th> *@
|
|
@* @Html.DisplayNameFor(model => model.tccodice) *@
|
|
@* Codice *@
|
|
@* </th>
|
|
<th> *@
|
|
@* @Html.DisplayNameFor(model => model.tcdescri) *@
|
|
@* Descrizione
|
|
</th>
|
|
<th> *@
|
|
@* @Html.DisplayNameFor(model => model.tctelef1) *@
|
|
@* Tel.
|
|
</th>
|
|
<th> *@
|
|
@* @Html.DisplayNameFor(model => model.tcuser) *@
|
|
@* Utente
|
|
</th>
|
|
<th> *@
|
|
@* @Html.DisplayNameFor(model => model.tcpwd) *@
|
|
@* Password
|
|
</th>
|
|
<th hidden> *@
|
|
@* @Html.DisplayNameFor(model => model.tccoor) *@
|
|
@* Costo ordinario
|
|
</th>
|
|
<th hidden> *@
|
|
@* @Html.DisplayNameFor(model => model.tccono) *@
|
|
@* Costo notturno
|
|
</th>
|
|
<th hidden> *@
|
|
@* @Html.DisplayNameFor(model => model.tccost) *@
|
|
@* Costo straordinario
|
|
</th>
|
|
<th hidden> *@
|
|
@* @Html.DisplayNameFor(model => model.tccofe) *@
|
|
@* Costo festivo
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody> *@
|
|
@* @foreach (var item in Model) {
|
|
<tr>
|
|
<td> *@
|
|
@*@Html.DisplayFor(modelItem => item.tccodazi)*@
|
|
@* @Html.HiddenFor(modelItem => item.tccodazi)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tccodice)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tcdescri)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tctelef1)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tcuser)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tcpwd)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccoor)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccono)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccost)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tccofe)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Modifica", "Edit", new { id=item.tccodice }) |
|
|
@Html.ActionLink("Dettaglio", "Details", new { id=item.tccodice }) |
|
|
@Html.ActionLink("Elimina", "Delete", new { id=item.tccodice })
|
|
</td>
|
|
</tr>
|
|
} *@
|
|
@* </tbody>
|
|
</table>
|
|
<nav>
|
|
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString=@ViewData["CurrentFilter"] }), new PagedListRenderOptions()
|
|
{
|
|
ActiveLiElementClass = "active",
|
|
PageClasses = new[]{ "page-link"},
|
|
LiElementClasses=new[] { "page-item" },
|
|
UlElementClasses = new[] { "pagination","justify-content-center", "mt-3" },
|
|
LinkToNextPageFormat = "Successiva",
|
|
LinkToPreviousPageFormat = "Precedente",
|
|
MaximumPageNumbersToDisplay = 5,
|
|
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
|
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
|
})
|
|
</nav> *@
|