487 lines
16 KiB
Plaintext
487 lines
16 KiB
Plaintext
@model IPagedList<VirtualTask.Models.Rapp_New>
|
|
@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"] = "Index";
|
|
}
|
|
|
|
<h1>Rapportini</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Crea nuovo rapportino</a>
|
|
</p>
|
|
@using (Html.BeginForm())
|
|
{
|
|
<p>
|
|
Cerca per seriale: @Html.TextBox("SearchString")
|
|
<input type="submit" value="Cerca" />
|
|
</p>
|
|
}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.seriale_rapportino) *@
|
|
Seriale rapportino
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.tipo_rapportino) *@
|
|
Tipo rapportino
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.azienda_impianto) *@
|
|
Azienda
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.codice_impianto) *@
|
|
Codice impianto
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.azienda_chiamata) *@
|
|
Az. chiamata
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.seriale_chiamata) *@
|
|
Seriale chiamata
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.seriale_commessa) *@
|
|
Seriale commessa
|
|
</th>
|
|
<th>
|
|
@* @Html.DisplayNameFor(model => model.data_rapportino) *@
|
|
Data rapportino
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.ora_ini_rapportino) *@
|
|
Ora inizio
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.min_ini_rapportino) *@
|
|
Minuto inzio
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.ora_fin_rapportino) *@
|
|
Ora fine
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.min_fin_rapportino) *@
|
|
Minuto fine
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_1) *@
|
|
Codice chiusura 1
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_2) *@
|
|
Codice chiusura 2
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_3) *@
|
|
Codice chiusura 3
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_4) *@
|
|
Codice chiusura 4
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_5) *@
|
|
Codice chiusura 5
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_6) *@
|
|
Codice chiusura 6
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_7) *@
|
|
Codice chiusura 7
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_8) *@
|
|
Codice chiusura 8
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_9) *@
|
|
Codice chiusura 9
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_chiusura_10) *@
|
|
Codice chiusura 10
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.descrizione_intervento) *@
|
|
desc. Intervento
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.stato_finale) *@
|
|
Stato
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.generato) *@
|
|
Generato
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.azienda_tecnico) *@
|
|
Az. Tecnico
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_tecnico) *@
|
|
Cod. Tecnico
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rifiutata) *@
|
|
Rifiutata
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.firma) *@
|
|
Firma
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.incarico) *@
|
|
Incarico
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.data_validita) *@
|
|
Data validità
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.immagine) *@
|
|
Immagine
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.ser_buono) *@
|
|
Seriale buono
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.data_effettiva) *@
|
|
Data effettiva
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.codice_intervento) *@
|
|
Codice intervento
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.difetti_riscontrati) *@
|
|
Difetti
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.lavoro_eseguito) *@
|
|
Lavoro
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.esito_intervento) *@
|
|
Esito
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.note_intervento) *@
|
|
Note
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.nuovo_contratto) *@
|
|
Nuovo contratto
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.ore_lavoro) *@
|
|
Ore lavoro
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.causale) *@
|
|
Causale
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.materiale) *@
|
|
Materiale
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.diritto_chiamata) *@
|
|
Diritto chiamata
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.manodopera) *@
|
|
Manodopera
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.spese_viaggio) *@
|
|
Spese viaggio
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.pagamento) *@
|
|
Pagamento
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.anticipo) *@
|
|
Anticipo
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.totale) *@
|
|
Totale
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.note_pagamento) *@
|
|
Note pagamento
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.tipo_intervento) *@
|
|
Tipo intervento
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto) *@
|
|
Foto 1
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto2) *@
|
|
Foto 2
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto3) *@
|
|
Foto 3
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto4) *@
|
|
Foto 4
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto5) *@
|
|
Foto 5
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto6) *@
|
|
Foto 6
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto7) *@
|
|
Foto 7
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto8) *@
|
|
Foto 8
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto9) *@
|
|
Foto 9
|
|
</th>
|
|
<th hidden>
|
|
@* @Html.DisplayNameFor(model => model.rafoto10) *@
|
|
Foto 10
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.seriale_rapportino)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tipo_rapportino)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.azienda_impianto)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.codice_impianto)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.azienda_chiamata)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.seriale_chiamata)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.seriale_commessa)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.data_rapportino)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.ora_ini_rapportino)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.min_ini_rapportino)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.ora_fin_rapportino)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.min_fin_rapportino)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_1)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_2)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_3)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_4)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_5)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_6)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_7)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_8)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_9)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_chiusura_10)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.descrizione_intervento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.stato_finale)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.generato)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.azienda_tecnico)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_tecnico)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rifiutata)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.firma)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.incarico)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.data_validita)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.immagine)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.ser_buono)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.data_effettiva)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.codice_intervento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.difetti_riscontrati)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.lavoro_eseguito)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.esito_intervento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.note_intervento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.nuovo_contratto)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.ore_lavoro)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.causale)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.materiale)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.diritto_chiamata)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.manodopera)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.spese_viaggio)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.pagamento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.anticipo)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.totale)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.note_pagamento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.tipo_intervento)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto2)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto3)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto4)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto5)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto6)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto7)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto8)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto9)
|
|
</td>
|
|
<td hidden>
|
|
@Html.DisplayFor(modelItem => item.rafoto10)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Modifica", "Edit", new { id=item.seriale_rapportino }) |
|
|
@Html.ActionLink("Dettaglio", "Details", new { id=item.seriale_rapportino }) |
|
|
@Html.ActionLink("Elimina", "Delete", new { id=item.seriale_rapportino })
|
|
</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>
|