Michele: modifiche per filtri, paginazioni impianti e rapportini
This commit is contained in:
parent
fba773ce32
commit
ecfc109507
@ -33,7 +33,7 @@ namespace VirtualTask.Controllers
|
||||
|
||||
#region INDEX
|
||||
|
||||
public IActionResult Index(string searchString, int? page = 1)
|
||||
public IActionResult Index(string searchString, string cliente, int? page = 1)
|
||||
{
|
||||
SessionHelper helper = new SessionHelper(this);
|
||||
token = helper.GetStringValue("tok");
|
||||
@ -71,6 +71,15 @@ namespace VirtualTask.Controllers
|
||||
else
|
||||
ViewData["CurrentFilter"] = null;
|
||||
|
||||
if (!string.IsNullOrEmpty(cliente))
|
||||
{
|
||||
modelList = modelList.Where(x => x.imultcli != null && x.imultcli.Contains(cliente)).ToList();
|
||||
ViewData["CurrentFilterCli"] = cliente;
|
||||
ViewBag.Cliente = cliente;
|
||||
}
|
||||
else
|
||||
ViewData["CurrentFilterCli"] = null;
|
||||
|
||||
if (page != null && page < 1)
|
||||
{
|
||||
page = 1;
|
||||
@ -82,6 +91,8 @@ namespace VirtualTask.Controllers
|
||||
.OrderByDescending(s => s.imcodimp)
|
||||
.ToPagedList(page ?? 1, pageSize);
|
||||
|
||||
ViewBag.Clienti = LoadStockitems();
|
||||
|
||||
return View(shortLinks);
|
||||
}
|
||||
else
|
||||
|
||||
@ -31,10 +31,11 @@ namespace VirtualTask.Controllers
|
||||
|
||||
#region INDEX
|
||||
|
||||
public IActionResult Index(string searchString, int? page = 1)
|
||||
public IActionResult Index(DateTime dataIni, DateTime dataFin, string Codbuono, string tecnico, int? page = 1)
|
||||
{
|
||||
SessionHelper helper = new SessionHelper(this);
|
||||
token = helper.GetStringValue("tok");
|
||||
|
||||
if (string.IsNullOrEmpty(token))
|
||||
{
|
||||
return RedirectToAction("Login2", "Login");
|
||||
@ -59,15 +60,44 @@ namespace VirtualTask.Controllers
|
||||
string data = response.Content.ReadAsStringAsync().Result;
|
||||
modelList = JsonConvert.DeserializeObject<List<Rapp_New>>(data);
|
||||
|
||||
if (!string.IsNullOrEmpty(searchString))
|
||||
if (dataIni.Date != DateTime.MinValue)
|
||||
{
|
||||
//modelList = modelList.Where(s => s.descrizione_intervento.ToUpper().Contains(searchString.ToUpper())).ToList();
|
||||
modelList = modelList.Where(s => s.data_rapportino.ToString().Substring(0,10).Contains(searchString.ToUpper())).ToList();
|
||||
modelList = modelList.Where(x => x.data_rapportino.Date >= dataIni.Date).ToList();
|
||||
|
||||
ViewData["CurrentFilter"] = searchString;
|
||||
ViewData["dataIni"] = dataIni;
|
||||
//ViewData["dataFin"] = dataFin;
|
||||
}
|
||||
else
|
||||
ViewData["CurrentFilter"] = null;
|
||||
{
|
||||
ViewData["dataIni"] = null;
|
||||
|
||||
}
|
||||
if (dataFin.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_rapportino.Date <= dataFin.Date).ToList();
|
||||
ViewData["dataFin"] = dataFin;
|
||||
}
|
||||
else
|
||||
{
|
||||
ViewData["dataFin"] = null;
|
||||
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(Codbuono))
|
||||
{
|
||||
modelList = modelList.Where(x => x.seriale_rapportino.ToUpper().Contains(Codbuono)).ToList();
|
||||
ViewData["Codbuono"] = Codbuono;
|
||||
}
|
||||
else
|
||||
ViewData["Codbuono"] = null;
|
||||
|
||||
if (!string.IsNullOrEmpty(tecnico))
|
||||
{
|
||||
modelList = modelList.Where(x => x.codice_tecnico.ToUpper().Contains(tecnico)).ToList();
|
||||
ViewData["tecnico"] = tecnico;
|
||||
}
|
||||
else
|
||||
ViewData["tecnico"] = null;
|
||||
|
||||
if (page != null && page < 1)
|
||||
{
|
||||
@ -80,6 +110,9 @@ namespace VirtualTask.Controllers
|
||||
.OrderByDescending(s => s.seriale_rapportino)
|
||||
.ToPagedList(page ?? 1, pageSize);
|
||||
|
||||
|
||||
ViewBag.Tecnici = GetTecnici();
|
||||
|
||||
return View(shortLinks);
|
||||
}
|
||||
else
|
||||
@ -346,11 +379,22 @@ namespace VirtualTask.Controllers
|
||||
{
|
||||
string data = response.Content.ReadAsStringAsync().Result;
|
||||
modelList = JsonConvert.DeserializeObject<List<Tecnici>>(data);
|
||||
|
||||
//per gestire primo elemento tendina (deve essere vuoto)
|
||||
SelectListItem listItemFirst = new SelectListItem();
|
||||
|
||||
listItemFirst.Value = string.Empty;
|
||||
listItemFirst.Text = " - Tecnico";
|
||||
selectItems.Add(listItemFirst);
|
||||
|
||||
foreach (var role in modelList)
|
||||
{
|
||||
SelectListItem listItem = new SelectListItem();
|
||||
|
||||
string s = role.tccodice + " - " + role.tcdescri;
|
||||
listItem.Value = role.tccodice;
|
||||
listItem.Text = role.tcdescri;
|
||||
listItem.Text = s/*role.tcdescri*/;
|
||||
|
||||
selectItems.Add(listItem);
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,75 +12,102 @@
|
||||
|
||||
<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>
|
||||
|
||||
<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 Indirizzo", @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 style="width:20%;">Impianto</th>
|
||||
<th style="width:35%;">Indirizzo</th>
|
||||
<th style="width:30%;">Cliente</th>
|
||||
<th style="width:15%;"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.imcodimp) - @Html.DisplayFor(modelItem => item.imdescri)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.indirizzo)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.imultcli) - @Html.DisplayFor(modelItem => item.descCliente)
|
||||
</td>
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Impianti", new { id=item.imcodimp })" 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", "Impianti", new { id=item.imcodimp })" 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", "Impianti", new { id=item.imcodimp })" 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()
|
||||
@using (Html.BeginForm("Index", "Impianti"))
|
||||
{
|
||||
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 class="card">
|
||||
<h5 class="card-header">Ricerca</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table">
|
||||
<tbody class="table-border-bottom-0">
|
||||
<tr>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Indirizzo:</i>
|
||||
<span class="fw-medium">@Html.TextBox("searchString", null, new { placeholder = "Cerca per indirizzo impianto", @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Cliente:</i>
|
||||
<span class="fw-medium">@Html.DropDownList("cliente", ViewBag.Clienti, null, new { @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3"> </i>
|
||||
<span class="fw-medium"><input type="submit" value="Cerca" class="agy-btn submitForm" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
<div class="card">
|
||||
<h5 class="card-header">IMPIANTI</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:20%;">Impianto</th>
|
||||
<th style="width:35%;">Indirizzo</th>
|
||||
<th style="width:30%;">Cliente</th>
|
||||
<th style="width:15%;"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.imcodimp) - @Html.DisplayFor(modelItem => item.imdescri)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.indirizzo)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.imultcli) - @Html.DisplayFor(modelItem => item.descCliente)
|
||||
</td>
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Impianti", new { id=item.imcodimp })" 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", "Impianti", new { id=item.imcodimp })" 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", "Impianti", new { id=item.imcodimp })" 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>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<nav>
|
||||
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString = @ViewData["CurrentFilter"], cliente = ViewData["CurrentFilterCli"]}), 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>
|
||||
@*
|
||||
|
||||
@ -3,17 +3,13 @@
|
||||
@using X.PagedList.Mvc.Core;
|
||||
@using X.PagedList.Web.Common;
|
||||
|
||||
|
||||
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Buoni intervento";
|
||||
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<div class="agy-project-wrapper agy-project-page-wrapper">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@ -21,179 +17,226 @@
|
||||
@* <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())
|
||||
|
||||
@using (Html.BeginForm("Index","Rapp_New"))
|
||||
{
|
||||
<div class="card">
|
||||
<h5 class="card-header">Ricerca</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table">
|
||||
<tbody class="table-border-bottom-0">
|
||||
<tr>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Codice buono:</i>
|
||||
<span class="fw-medium">@Html.TextBox("Codbuono", null, new { placeholder = "Cerca per Buono", @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Tecnico:</i>
|
||||
<span class="fw-medium">@Html.DropDownList("tecnico", ViewBag.Tecnici, null, new { @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Data da:</i>
|
||||
<span class="fw-medium">@Html.TextBox("dataIni", null, new { type = "date", @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Data a:</i>
|
||||
<span class="fw-medium">@Html.TextBox("dataFin", null, new { type = "date", @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3"> </i>
|
||||
<span class="fw-medium"><input type="submit" value="Cerca" class="agy-btn submitForm" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<div>
|
||||
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per data buono", @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>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
@* <th>Seriale rapportino</th> *@
|
||||
@* <th>Tipo rapportino</th> *@
|
||||
@* <th>Azienda</th> *@
|
||||
<th>Data buono</th>
|
||||
<th>Codice impianto</th>
|
||||
@* <th hidden>Az. chiamata</th> *@
|
||||
@* <th hidden>Seriale chiamata</th> *@
|
||||
@* <th hidden>Seriale commessa</th> *@
|
||||
@* <th hidden>Ora inizio</th> *@
|
||||
@* <th hidden>Minuto inzio</th> *@
|
||||
@* <th hidden>Ora fine</th> *@
|
||||
@* <th hidden>Minuto fine</th> *@
|
||||
@* <th hidden>Codice chiusura 1</th>
|
||||
<th hidden>Codice chiusura 2</th>
|
||||
<th hidden>Codice chiusura 3</th>
|
||||
<th hidden>Codice chiusura 4</th>
|
||||
<th hidden>Codice chiusura 5</th>
|
||||
<th hidden>Codice chiusura 6</th>
|
||||
<th hidden>Codice chiusura 7</th>
|
||||
<th hidden>Codice chiusura 8</th>
|
||||
<th hidden>Codice chiusura 9</th>
|
||||
<th hidden>Codice chiusura 10</th>*@
|
||||
<th>desc. Intervento</th>
|
||||
@* <th hidden>Stato</th>
|
||||
<th hidden>Generato</th>
|
||||
<th hidden>Az. Tecnico</th> *@
|
||||
<th>Cod. Tecnico</th>
|
||||
@* <th hidden>Rifiutata</th>
|
||||
<th hidden>Firma</th>
|
||||
<th hidden>Incarico</th>
|
||||
<th hidden>Data validità</th>
|
||||
<th hidden>Immagine</th>
|
||||
<th hidden>Seriale buono</th>
|
||||
<th hidden>Data effettiva</th>
|
||||
<th hidden>Codice intervento</th>
|
||||
<th hidden>Difetti</th>
|
||||
<th hidden>Lavoro</th>
|
||||
<th hidden>Esito</th>
|
||||
<th hidden>Note</th>
|
||||
<th hidden>Nuovo contratto</th>
|
||||
<th hidden>Ore lavoro</th>
|
||||
<th hidden>Causale</th>
|
||||
<th hidden>Materiale</th>
|
||||
<th hidden>Diritto chiamata</th>
|
||||
<th hidden>Manodopera</th>
|
||||
<th hidden>Spese viaggio</th>
|
||||
<th hidden>Pagamento</th>
|
||||
<th hidden>Anticipo</th>
|
||||
<th hidden>Totale</th>
|
||||
<th hidden>Note pagamento</th>
|
||||
<th hidden>Foto 1</th>
|
||||
<th hidden>Foto 2</th>
|
||||
<th hidden>Foto 3</th>
|
||||
<th hidden>Foto 4</th>
|
||||
<th hidden>Foto 5</th>
|
||||
<th hidden>Foto 6</th>
|
||||
<th hidden>Foto 7</th>
|
||||
<th hidden>Foto 8</th>
|
||||
<th hidden>Foto 9</th>
|
||||
<th hidden>Foto 10</th> *@
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
@Html.HiddenFor(modelItem => item.seriale_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.tipo_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.azienda_impianto)
|
||||
@Html.HiddenFor(modelItem => item.azienda_chiamata)
|
||||
@Html.HiddenFor(modelItem => item.seriale_chiamata)
|
||||
@Html.HiddenFor(modelItem => item.ora_ini_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.min_ini_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.ora_fin_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.min_fin_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_1)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_2)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_3)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_4)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_5)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_6)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_7)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_8)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_9)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_10)
|
||||
@Html.HiddenFor(modelItem => item.descrizione_intervento)
|
||||
@Html.HiddenFor(modelItem => item.stato_finale)
|
||||
@Html.HiddenFor(modelItem => item.generato)
|
||||
@Html.HiddenFor(modelItem => item.azienda_tecnico)
|
||||
@Html.HiddenFor(modelItem => item.rifiutata)
|
||||
@Html.HiddenFor(modelItem => item.rifiutata)
|
||||
@Html.HiddenFor(modelItem => item.firma)
|
||||
@Html.HiddenFor(modelItem => item.incarico)
|
||||
@Html.HiddenFor(modelItem => item.data_validita)
|
||||
@Html.HiddenFor(modelItem => item.immagine)
|
||||
@Html.HiddenFor(modelItem => item.ser_buono)
|
||||
@Html.HiddenFor(modelItem => item.data_effettiva)
|
||||
@Html.HiddenFor(modelItem => item.codice_intervento)
|
||||
@Html.HiddenFor(modelItem => item.difetti_riscontrati)
|
||||
@Html.HiddenFor(modelItem => item.lavoro_eseguito)
|
||||
@Html.HiddenFor(modelItem => item.esito_intervento)
|
||||
@Html.HiddenFor(modelItem => item.note_intervento)
|
||||
@Html.HiddenFor(modelItem => item.nuovo_contratto)
|
||||
@Html.HiddenFor(modelItem => item.ore_lavoro)
|
||||
@Html.HiddenFor(modelItem => item.causale)
|
||||
@Html.HiddenFor(modelItem => item.materiale)
|
||||
@Html.HiddenFor(modelItem => item.diritto_chiamata)
|
||||
@Html.HiddenFor(modelItem => item.manodopera)
|
||||
@Html.HiddenFor(modelItem => item.spese_viaggio)
|
||||
@Html.HiddenFor(modelItem => item.pagamento)
|
||||
@Html.HiddenFor(modelItem => item.anticipo)
|
||||
@Html.HiddenFor(modelItem => item.totale)
|
||||
@Html.HiddenFor(modelItem => item.note_pagamento)
|
||||
@Html.HiddenFor(modelItem => item.tipo_intervento)
|
||||
@Html.HiddenFor(modelItem => item.rafoto)
|
||||
@Html.HiddenFor(modelItem => item.rafoto2)
|
||||
@Html.HiddenFor(modelItem => item.rafoto3)
|
||||
@Html.HiddenFor(modelItem => item.rafoto4)
|
||||
@Html.HiddenFor(modelItem => item.rafoto5)
|
||||
@Html.HiddenFor(modelItem => item.rafoto6)
|
||||
@Html.HiddenFor(modelItem => item.rafoto7)
|
||||
@Html.HiddenFor(modelItem => item.rafoto8)
|
||||
@Html.HiddenFor(modelItem => item.rafoto9)
|
||||
@Html.DisplayFor(modelItem => item.rafoto10)
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.data_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.codice_impianto)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.descrizione_intervento)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.codice_tecnico)
|
||||
</td>
|
||||
<td>
|
||||
@* <a href="@Url.Action("Edit", "Rapp_New", new { id=item.seriale_rapportino })" 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", "Rapp_New", new { id=item.seriale_rapportino })" 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", "Rapp_New", new { id=item.seriale_rapportino })" title="Elimina" class="links">
|
||||
}
|
||||
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">BUONI INTERVENTO</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Codice buono</th>
|
||||
@* <th>Tipo rapportino</th> *@
|
||||
@* <th>Azienda</th> *@
|
||||
<th>Data</th>
|
||||
<th>Codice impianto</th>
|
||||
@* <th hidden>Az. chiamata</th> *@
|
||||
@* <th hidden>Seriale chiamata</th> *@
|
||||
@* <th hidden>Seriale commessa</th> *@
|
||||
@* <th hidden>Ora inizio</th> *@
|
||||
@* <th hidden>Minuto inzio</th> *@
|
||||
@* <th hidden>Ora fine</th> *@
|
||||
@* <th hidden>Minuto fine</th> *@
|
||||
@* <th hidden>Codice chiusura 1</th>
|
||||
<th hidden>Codice chiusura 2</th>
|
||||
<th hidden>Codice chiusura 3</th>
|
||||
<th hidden>Codice chiusura 4</th>
|
||||
<th hidden>Codice chiusura 5</th>
|
||||
<th hidden>Codice chiusura 6</th>
|
||||
<th hidden>Codice chiusura 7</th>
|
||||
<th hidden>Codice chiusura 8</th>
|
||||
<th hidden>Codice chiusura 9</th>
|
||||
<th hidden>Codice chiusura 10</th>*@
|
||||
<th>desc. Intervento</th>
|
||||
@* <th hidden>Stato</th>
|
||||
<th hidden>Generato</th>
|
||||
<th hidden>Az. Tecnico</th> *@
|
||||
<th>Cod. Tecnico</th>
|
||||
@* <th hidden>Rifiutata</th>
|
||||
<th hidden>Firma</th>
|
||||
<th hidden>Incarico</th>
|
||||
<th hidden>Data validità</th>
|
||||
<th hidden>Immagine</th>
|
||||
<th hidden>Seriale buono</th>
|
||||
<th hidden>Data effettiva</th>
|
||||
<th hidden>Codice intervento</th>
|
||||
<th hidden>Difetti</th>
|
||||
<th hidden>Lavoro</th>
|
||||
<th hidden>Esito</th>
|
||||
<th hidden>Note</th>
|
||||
<th hidden>Nuovo contratto</th>
|
||||
<th hidden>Ore lavoro</th>
|
||||
<th hidden>Causale</th>
|
||||
<th hidden>Materiale</th>
|
||||
<th hidden>Diritto chiamata</th>
|
||||
<th hidden>Manodopera</th>
|
||||
<th hidden>Spese viaggio</th>
|
||||
<th hidden>Pagamento</th>
|
||||
<th hidden>Anticipo</th>
|
||||
<th hidden>Totale</th>
|
||||
<th hidden>Note pagamento</th>
|
||||
<th hidden>Foto 1</th>
|
||||
<th hidden>Foto 2</th>
|
||||
<th hidden>Foto 3</th>
|
||||
<th hidden>Foto 4</th>
|
||||
<th hidden>Foto 5</th>
|
||||
<th hidden>Foto 6</th>
|
||||
<th hidden>Foto 7</th>
|
||||
<th hidden>Foto 8</th>
|
||||
<th hidden>Foto 9</th>
|
||||
<th hidden>Foto 10</th> *@
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
@Html.HiddenFor(modelItem => item.tipo_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.azienda_impianto)
|
||||
@Html.HiddenFor(modelItem => item.azienda_chiamata)
|
||||
@Html.HiddenFor(modelItem => item.seriale_chiamata)
|
||||
@Html.HiddenFor(modelItem => item.ora_ini_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.min_ini_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.ora_fin_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.min_fin_rapportino)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_1)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_2)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_3)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_4)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_5)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_6)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_7)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_8)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_9)
|
||||
@Html.HiddenFor(modelItem => item.codice_chiusura_10)
|
||||
@Html.HiddenFor(modelItem => item.descrizione_intervento)
|
||||
@Html.HiddenFor(modelItem => item.stato_finale)
|
||||
@Html.HiddenFor(modelItem => item.generato)
|
||||
@Html.HiddenFor(modelItem => item.azienda_tecnico)
|
||||
@Html.HiddenFor(modelItem => item.rifiutata)
|
||||
@Html.HiddenFor(modelItem => item.rifiutata)
|
||||
@Html.HiddenFor(modelItem => item.firma)
|
||||
@Html.HiddenFor(modelItem => item.incarico)
|
||||
@Html.HiddenFor(modelItem => item.data_validita)
|
||||
@Html.HiddenFor(modelItem => item.immagine)
|
||||
@Html.HiddenFor(modelItem => item.ser_buono)
|
||||
@Html.HiddenFor(modelItem => item.data_effettiva)
|
||||
@Html.HiddenFor(modelItem => item.codice_intervento)
|
||||
@Html.HiddenFor(modelItem => item.difetti_riscontrati)
|
||||
@Html.HiddenFor(modelItem => item.lavoro_eseguito)
|
||||
@Html.HiddenFor(modelItem => item.esito_intervento)
|
||||
@Html.HiddenFor(modelItem => item.note_intervento)
|
||||
@Html.HiddenFor(modelItem => item.nuovo_contratto)
|
||||
@Html.HiddenFor(modelItem => item.ore_lavoro)
|
||||
@Html.HiddenFor(modelItem => item.causale)
|
||||
@Html.HiddenFor(modelItem => item.materiale)
|
||||
@Html.HiddenFor(modelItem => item.diritto_chiamata)
|
||||
@Html.HiddenFor(modelItem => item.manodopera)
|
||||
@Html.HiddenFor(modelItem => item.spese_viaggio)
|
||||
@Html.HiddenFor(modelItem => item.pagamento)
|
||||
@Html.HiddenFor(modelItem => item.anticipo)
|
||||
@Html.HiddenFor(modelItem => item.totale)
|
||||
@Html.HiddenFor(modelItem => item.note_pagamento)
|
||||
@Html.HiddenFor(modelItem => item.tipo_intervento)
|
||||
@Html.HiddenFor(modelItem => item.rafoto)
|
||||
@Html.HiddenFor(modelItem => item.rafoto2)
|
||||
@Html.HiddenFor(modelItem => item.rafoto3)
|
||||
@Html.HiddenFor(modelItem => item.rafoto4)
|
||||
@Html.HiddenFor(modelItem => item.rafoto5)
|
||||
@Html.HiddenFor(modelItem => item.rafoto6)
|
||||
@Html.HiddenFor(modelItem => item.rafoto7)
|
||||
@Html.HiddenFor(modelItem => item.rafoto8)
|
||||
@Html.HiddenFor(modelItem => item.rafoto9)
|
||||
@Html.DisplayFor(modelItem => item.rafoto10)
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.seriale_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.data_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.codice_impianto)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.descrizione_intervento)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.codice_tecnico)
|
||||
</td>
|
||||
<td>
|
||||
@* <a href="@Url.Action("Edit", "Rapp_New", new { id=item.seriale_rapportino })" 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", "Rapp_New", new { id=item.seriale_rapportino })" 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", "Rapp_New", new { id=item.seriale_rapportino })" 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>
|
||||
</a> *@
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<br />
|
||||
<nav>
|
||||
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString=@ViewData["CurrentFilter"] }), new PagedListRenderOptions()
|
||||
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString = @ViewData["CurrentFilter"],
|
||||
CodBuono = ViewData["Codbuono"], tecnico = @ViewData["tecnico"], dataIni = ViewData["dataIni"], dataFin=@ViewData["dataFin"]}), new PagedListRenderOptions()
|
||||
{
|
||||
ActiveLiElementClass = "active",
|
||||
PageClasses = new[]{ "page-link"},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user