VirtualTask/Views/CommesseVT/Index.cshtml
2024-01-05 14:48:17 +01:00

272 lines
10 KiB
Plaintext

@using X.PagedList.Mvc.Core;
@using X.PagedList.Web.Common;
@using X.PagedList;
@model IPagedList<VirtualTask.Models.CommesseVT>
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
ViewData["Title"] = "Commesse";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
@* <h1>Index</h1> *@
<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 nuova commessa" /></a>
</p>
@using (Html.BeginForm())
{
<div>
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per commessa", @class = "agy-form-field require" })</div>
<div style="float:left;width:2%;">&nbsp;</div>
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
</div>
}
<table class="table">
<thead>
<tr>
<th hidden>Seriale Commessa</th>
<th hidden>Azienda</th>
<th>Cod. Commessa</th>
<th>Fase Commessa</th>
<th hidden>Fine validita Commessa</th>
<th hidden>Tipo</th>
<th>Cod. Cliente</th>
<th>Cliente</th>
<th>impianto</th>
<th hidden>tipo ind</th>
<th hidden>indirizzo</th>
<th hidden>numero</th>
<th hidden>lettera</th>
<th hidden>scala</th>
<th hidden>CAP</th>
<th hidden>provincia</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td hidden>
@Html.DisplayFor(modelItem => item.laserial)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.lacodazi)
</td>
<td>
@Html.DisplayFor(modelItem => item.lacodcom)
</td>
<td>
@Html.DisplayFor(modelItem => item.ladeslav)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.ladatchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.latipcli)
</td>
<td>
@Html.DisplayFor(modelItem => item.lacodcli)
</td>
<td>
@Html.DisplayFor(modelItem => item.andescri)
</td>
<td>
@Html.DisplayFor(modelItem => item.imcodimp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imindiri1)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imindiri2)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imindiri3)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imindiri4)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imindiri5)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imlocali)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.imcodcap)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.improvin)
</td>
<td>
<a href="@Url.Action("Edit", "CommesseVT", new { id=item.laserial })" 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", "CommesseVT", new { id=item.laserial })" 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", "CommesseVT", new { id=item.laserial })" 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>
@*
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayFor(modelItem => modelItem.laserial)
</th>
<th>
@Html.DisplayNameFor(model => model.lacodazi)
</th>
<th>
@Html.DisplayNameFor(model => model.lacodcom)
</th>
<th>
@Html.DisplayNameFor(model => model.ladeslav)
</th>
<th>
@Html.DisplayNameFor(model => model.ladatchi)
</th>
<th>
@Html.DisplayNameFor(model => model.latipcli)
</th>
<th>
@Html.DisplayNameFor(model => model.lacodcli)
</th>
<th>
@Html.DisplayNameFor(model => model.andescri)
</th>
<th>
@Html.DisplayNameFor(model => model.imcodimp)
</th>
<th>
@Html.DisplayNameFor(model => model.imindiri1)
</th>
<th>
@Html.DisplayNameFor(model => model.imindiri2)
</th>
<th>
@Html.DisplayNameFor(model => model.imindiri3)
</th>
<th>
@Html.DisplayNameFor(model => model.imindiri4)
</th>
<th>
@Html.DisplayNameFor(model => model.imindiri5)
</th>
<th>
@Html.DisplayNameFor(model => model.imlocali)
</th>
<th>
@Html.DisplayNameFor(model => model.imcodcap)
</th>
<th>
@Html.DisplayNameFor(model => model.improvin)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.laserial)
</td>
<td>
@Html.DisplayFor(modelItem => item.lacodazi)
</td>
<td>
@Html.DisplayFor(modelItem => item.lacodcom)
</td>
<td>
@Html.DisplayFor(modelItem => item.ladeslav)
</td>
<td>
@Html.DisplayFor(modelItem => item.ladatchi)
</td>
<td>
@Html.DisplayFor(modelItem => item.latipcli)
</td>
<td>
@Html.DisplayFor(modelItem => item.lacodcli)
</td>
<td>
@Html.DisplayFor(modelItem => item.andescri)
</td>
<td>
@Html.DisplayFor(modelItem => item.imcodimp)
</td>
<td>
@Html.DisplayFor(modelItem => item.imindiri1)
</td>
<td>
@Html.DisplayFor(modelItem => item.imindiri2)
</td>
<td>
@Html.DisplayFor(modelItem => item.imindiri3)
</td>
<td>
@Html.DisplayFor(modelItem => item.imindiri4)
</td>
<td>
@Html.DisplayFor(modelItem => item.imindiri5)
</td>
<td>
@Html.DisplayFor(modelItem => item.imlocali)
</td>
<td>
@Html.DisplayFor(modelItem => item.imcodcap)
</td>
<td>
@Html.DisplayFor(modelItem => item.improvin)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
</td>
</tr>
}
</tbody> *@
</table>