VirtualTask/Views/Chiamate/Index.cshtml

412 lines
14 KiB
Plaintext

@model IPagedList<VirtualTask.Models.Chiamate>
@using X.PagedList.Mvc.Core;
@using X.PagedList.Web.Common;
@using X.PagedList;
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
ViewData["Title"] = "Index";
}
<h1>Index</h1>
<p>
<a asp-action="Create">Create New</a>
</p>
@using (Html.BeginForm())
{
<p>
Find by Impianto: @Html.TextBox("SearchString")
<input type="submit" value="Search" />
</p>
}
<table class="table">
<thead>
<tr>
<th>
@* @Html.DisplayNameFor(model => model.chcodazi) *@
AZIENDA
</th>
<th>
@* @Html.DisplayNameFor(model => model.chserial) *@
SERIALE
</th>
<th>
@* @Html.DisplayNameFor(model => model.chcodese) *@
ESERCIZIO
</th>
<th>
@* @Html.DisplayNameFor(model => model.chtipo) *@
TIPO
</th>
<th>
@* @Html.DisplayNameFor(model => model.chnumero) *@
NUMERO
</th>
<th>
@* @Html.DisplayNameFor(model => model.chdata) *@
DATA
</th>
<th>
@* @Html.DisplayNameFor(model => model.chora) *@
ORA
</th>
<th>
@* @Html.DisplayNameFor(model => model.chmin) *@
MINUTI
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chopins) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chopass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chopchi) *@
</th>
<th>
@* @Html.DisplayNameFor(model => model.chcodimp) *@
IMPIANTO
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chaziimp) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chtchiam) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chtmanut) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chstato) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtapp) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.choraapi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminapi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.choraapf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminapf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chrifer) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chtelef) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chcodseg) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chstopi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chnote) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chorass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtchi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chorachi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminchi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtlin) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chorali) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminli) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtlfi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.choralf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminlf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chvalfat) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.cpccchk) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chnrap1) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chsrap1) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chnrap2) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chsrap2) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chmodrac) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chprgann) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chserchi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdesfat) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdessup) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chimpofa) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chserdoc) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chimpmat) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chimpman) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chperman) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chflstim) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chfleste) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chserext) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chrifiutata) *@
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.chcodazi)
</td>
<td>
@Html.DisplayFor(modelItem => item.chserial)
</td>
<td>
@Html.DisplayFor(modelItem => item.chcodese)
</td>
<td>
@Html.DisplayFor(modelItem => item.chtipo)
</td>
<td>
@Html.DisplayFor(modelItem => item.chnumero)
</td>
<td>
@Html.DisplayFor(modelItem => item.chdata)
</td>
<td>
@Html.DisplayFor(modelItem => item.chora)
</td>
<td>
@Html.DisplayFor(modelItem => item.chmin)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chopins)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chopass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chopchi)
</td>
<td>
@Html.DisplayFor(modelItem => item.chcodimp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chaziimp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chtchiam)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chtmanut)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chstato)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtapp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.choraapi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminapi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.choraapf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminapf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chrifer)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chtelef)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chcodseg)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chstopi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chnote)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chorass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chorachi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtlin)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chorali)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminli)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtlfi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.choralf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminlf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chvalfat)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.cpccchk)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chnrap1)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chsrap1)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chnrap2)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chsrap2)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chmodrac)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chprgann)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chserchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdesfat)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdessup)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chimpofa)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chserdoc)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chimpmat)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chimpman)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chperman)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chflstim)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chfleste)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chserext)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chrifiutata)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.chserial }) |
@Html.ActionLink("Details", "Details", new { id=item.chserial }) |
@Html.ActionLink("Delete", "Delete", new { id=item.chserial })
</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 = "Next",
LinkToPreviousPageFormat = "Previous",
MaximumPageNumbersToDisplay = 5,
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
DisplayLinkToNextPage = PagedListDisplayMode.Always
})
</nav>