213 lines
7.6 KiB
Plaintext
213 lines
7.6 KiB
Plaintext
@model IPagedList<VirtualTask.Models.Anag>
|
|
@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"] = "Clienti";
|
|
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 elemento" /></a>
|
|
</p>
|
|
@using (Html.BeginForm())
|
|
{
|
|
|
|
<div>
|
|
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per Rag. Sociale", @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">
|
|
<thead>
|
|
<tr>
|
|
<th>Codice</th>
|
|
<th>Rag. Sociale</th>
|
|
<th>Codice Fiscale</th>
|
|
<th>Partita Iva</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ancodice)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.andescri)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ancodfis)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.anpariva)
|
|
</td>
|
|
|
|
<td>
|
|
<a href="@Url.Action("Edit", "Anag", new { id=item.ancodice })" 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", "Anag", new { id=item.ancodice })" 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", "Anag", new { id=item.ancodice })" 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>Anagrafiche</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Crea nuova anagrafica</a>
|
|
</p>
|
|
@using (Html.BeginForm())
|
|
{
|
|
<p>
|
|
Cerca per Rag. Sociale: @Html.TextBox("SearchString")
|
|
<input type="submit" value="Cerca" />
|
|
</p>
|
|
}
|
|
<table class="table">
|
|
<thead>
|
|
<tr> *@
|
|
@* <th>
|
|
@Html.DisplayNameFor(model => model.antipcon)
|
|
</th>*@
|
|
@* <th>
|
|
Codice
|
|
</th>
|
|
<th>
|
|
Rag. Sociale
|
|
</th> *@
|
|
@* <th>
|
|
@Html.DisplayNameFor(model => model.an_email)
|
|
</th>*@
|
|
@* <th>
|
|
Codice Fiscale
|
|
</th>
|
|
<th>
|
|
Partita Iva
|
|
</th> *@
|
|
@*
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.anindiri)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.antelefo)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.annumcel)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.an_empec)
|
|
</th>
|
|
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.annumlis)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.andtobso)
|
|
</th>*@
|
|
@* <th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr> *@
|
|
@* <td>
|
|
@Html.DisplayFor(modelItem => item.antipcon)
|
|
</td>*@
|
|
@* <td>
|
|
@Html.DisplayFor(modelItem => item.ancodice)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.andescri)
|
|
</td> *@
|
|
@* <td>
|
|
@Html.DisplayFor(modelItem => item.an_email)
|
|
</td>*@
|
|
@* <td>
|
|
@Html.DisplayFor(modelItem => item.ancodfis)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.anpariva)
|
|
</td> *@
|
|
@* <td>
|
|
@Html.DisplayFor(modelItem => item.anindiri)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.antelefo)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.annumcel)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.an_empec)
|
|
</td>
|
|
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.annumlis)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.andtobso)
|
|
</td>*@
|
|
@* <td>
|
|
@Html.ActionLink("Modifica", "Edit", new { id = item.ancodice }) |
|
|
@Html.ActionLink("Dettaglio", "Details", new { id = item.ancodice }) |
|
|
@Html.ActionLink("Elimina", "Delete", new { id = item.ancodice })
|
|
</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> *@ |