Michele: modifiche grafiche
This commit is contained in:
parent
ecfc109507
commit
4ce271d570
@ -63,15 +63,13 @@ namespace VirtualTask.Controllers
|
||||
if (dataIni.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_rapportino.Date >= dataIni.Date).ToList();
|
||||
|
||||
ViewData["dataIni"] = dataIni;
|
||||
//ViewData["dataFin"] = dataFin;
|
||||
}
|
||||
else
|
||||
{
|
||||
ViewData["dataIni"] = null;
|
||||
|
||||
}
|
||||
|
||||
if (dataFin.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_rapportino.Date <= dataFin.Date).ToList();
|
||||
@ -80,7 +78,6 @@ namespace VirtualTask.Controllers
|
||||
else
|
||||
{
|
||||
ViewData["dataFin"] = null;
|
||||
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(Codbuono))
|
||||
|
||||
@ -78,36 +78,29 @@ namespace VirtualTask.Controllers
|
||||
{
|
||||
modelList = modelList.Where(s => s.codice_impianto.Contains(impianto)).ToList();
|
||||
|
||||
ViewData["CurrentFilter"] = impianto;
|
||||
ViewData["impianto"] = impianto;
|
||||
|
||||
ViewBag.Impianto = impianto;
|
||||
}
|
||||
else
|
||||
ViewData["CurrentFilter"] = null;
|
||||
|
||||
|
||||
ViewData["impianto"] = null;
|
||||
|
||||
if (dataIni.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_rapportino.GetValueOrDefault().Date >= dataIni.Date).ToList();
|
||||
ViewData["dataIni"] = dataIni;
|
||||
|
||||
}
|
||||
else
|
||||
ViewData["dataIni"] = null;
|
||||
|
||||
if (dataFin.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_rapportino.GetValueOrDefault().Date <= dataFin.Date).ToList();
|
||||
ViewData["dataFin"] = dataFin;
|
||||
}
|
||||
|
||||
|
||||
//if (!dataFin.ToString().Substring(0, 10).Equals("01/01/0001"))
|
||||
//{
|
||||
// modelList = modelList.Where(x => x.data_rapportino.GetValueOrDefault().Date >= dataIni.Date && x.data_rapportino.GetValueOrDefault().Date <= dataFin.Date).ToList();
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// modelList = modelList.Where(x => x.data_rapportino.GetValueOrDefault().Date >= dataIni.Date).ToList();
|
||||
//}
|
||||
|
||||
|
||||
|
||||
else
|
||||
ViewData["dataFin"] = null;
|
||||
|
||||
if (page != null && page < 1)
|
||||
{
|
||||
|
||||
@ -66,27 +66,36 @@ namespace VirtualTask.Controllers
|
||||
if (dataIni.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_timbratura.GetValueOrDefault().Date >= dataIni.Date).ToList();
|
||||
ViewData["dataIni"] = dataIni;
|
||||
|
||||
}
|
||||
else
|
||||
ViewData["dataIni"] = null;
|
||||
|
||||
if (dataFin.Date != DateTime.MinValue)
|
||||
{
|
||||
modelList = modelList.Where(x => x.data_timbratura.GetValueOrDefault().Date <= dataFin.Date).ToList();
|
||||
ViewData["dataFin"] = dataFin;
|
||||
}
|
||||
else
|
||||
ViewData["dataFin"] = null;
|
||||
|
||||
if (!string.IsNullOrEmpty(commessa))
|
||||
{
|
||||
modelList = modelList.Where(s => s.commessa.Contains(commessa)).ToList();
|
||||
|
||||
// ViewData["CurrentFilter"] = commessa;
|
||||
|
||||
//ViewBag.Timbrature = commessa;
|
||||
ViewData["commessa"] = commessa;
|
||||
}
|
||||
else
|
||||
//ViewData["CurrentFilter"] = null;
|
||||
ViewData["commessa"] = null;
|
||||
|
||||
if (!string.IsNullOrEmpty(tecnico))
|
||||
{
|
||||
modelList = modelList.Where(s => s.tecnico.ToLower().Contains(tecnico.ToLower())).ToList();
|
||||
ViewData["tecnico"] = tecnico;
|
||||
}
|
||||
else
|
||||
ViewData["tecnico"] = null;
|
||||
|
||||
if (page != null && page < 1)
|
||||
{
|
||||
|
||||
@ -19,58 +19,87 @@
|
||||
</p>
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
|
||||
<div>
|
||||
<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>
|
||||
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per Rag. Sociale", @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>
|
||||
<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>
|
||||
</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>
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Clienti</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Codice</th>
|
||||
<th>Rag. Sociale</th>
|
||||
<th>Codice Fiscale</th>
|
||||
<th>Partita Iva</th>
|
||||
<th></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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<nav>
|
||||
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString=@ViewData["CurrentFilter"] }), new PagedListRenderOptions()
|
||||
|
||||
@ -18,14 +18,32 @@
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<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>
|
||||
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per tecnico", @class = "agy-form-field require" })</span>
|
||||
|
||||
<div>
|
||||
</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>
|
||||
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per tecnico", @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">
|
||||
|
||||
@ -222,6 +222,7 @@
|
||||
// link = link + item.ser_buono_chiu + ".jpg";
|
||||
// <td><a href="@link" target="_blank">@item.ser_buono_chiu</a></td>
|
||||
<td>@item.ser_buono_chiu</td>
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -19,56 +19,85 @@
|
||||
</p>
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<div>
|
||||
<div class="card">
|
||||
<h5 class="card-header">Ricerca</h5>
|
||||
<table class="table">
|
||||
<tbody class="table-border-bottom-0">
|
||||
<tr>
|
||||
<td>
|
||||
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per descrizione", @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="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per descrizione", @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>
|
||||
</div> *@
|
||||
}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Azienda</th>
|
||||
<th>Codice</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Testo del rapportino App (desc. sup.)</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.cccodazi)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.cccodice)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ccdescr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ccdessup)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Chiusure", new { id=item.cccodice })" 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", "Chiusure", new { id=item.cccodice })" 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", "Chiusure", new { id=item.cccodice })" 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 style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Tipi intervento</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Azienda</th>
|
||||
<th>Codice</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Testo del rapportino App (desc. sup.)</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.cccodazi)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.cccodice)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ccdescr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ccdessup)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Chiusure", new { id=item.cccodice })" 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", "Chiusure", new { id=item.cccodice })" 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", "Chiusure", new { id=item.cccodice })" 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"] }), new PagedListRenderOptions()
|
||||
|
||||
@ -20,116 +20,150 @@
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<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>
|
||||
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per commessa", @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>
|
||||
|
||||
|
||||
@* <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%;"> </div>
|
||||
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
||||
|
||||
</div>
|
||||
</div> *@
|
||||
|
||||
}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>Seriale Commessa</th>
|
||||
<th hidden>Azienda</th>
|
||||
<th>Cod. Commessa</th>
|
||||
<th>Descrizione 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, azienda = item.lacodazi })" 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, azienda = item.lacodazi })" title="Dettaglio" class="links">
|
||||
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
||||
</a>
|
||||
@{
|
||||
string _url_del = @Url.Action("Delete", "CommesseVT", new { id = item.laserial, azienda = item.lacodazi });
|
||||
string flagComGen = string.Empty;
|
||||
flagComGen = string.IsNullOrEmpty(item.lacomgen) ? "N" : item.lacomgen;
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
if (!flagComGen.Equals("S"))
|
||||
{
|
||||
<a href="@_url_del" title="Elimina" class="links">
|
||||
<img alt="Elimina" src="~/assets/images/icons8-elimina-50.png" style="width:30px;height:30px;">
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Commesse</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>Seriale Commessa</th>
|
||||
<th hidden>Azienda</th>
|
||||
<th>Cod. Commessa</th>
|
||||
<th>Descrizione 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>
|
||||
<th></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, azienda = item.lacodazi })" title="Modifica" class="links">
|
||||
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
|
||||
</a>
|
||||
}
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="@Url.Action("Details", "CommesseVT", new { id=item.laserial, azienda = item.lacodazi })" title="Dettaglio" class="links">
|
||||
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
||||
</a>
|
||||
@{
|
||||
string _url_del = @Url.Action("Delete", "CommesseVT", new { id = item.laserial, azienda = item.lacodazi });
|
||||
string flagComGen = string.Empty;
|
||||
flagComGen = string.IsNullOrEmpty(item.lacomgen) ? "N" : item.lacomgen;
|
||||
|
||||
if (!flagComGen.Equals("S"))
|
||||
{
|
||||
<a href="@_url_del" title="Elimina" class="links">
|
||||
<img alt="Elimina" src="~/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"] }), new PagedListRenderOptions()
|
||||
|
||||
@ -14,73 +14,82 @@
|
||||
<p>
|
||||
<a asp-action="Create" ><img src="~/assets/images/icons8-nuovo-50.png" alt="Crea un nuovo elemento" /></a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.tecnico)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ragsoc)
|
||||
</th>
|
||||
<div class="card">
|
||||
<h5 class="card-header"></h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.logo)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.testo_buono)
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.tecnico)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ragsoc)
|
||||
</th>
|
||||
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.logo)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.testo_buono)
|
||||
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tecnico)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ragsoc)
|
||||
</td>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
@{
|
||||
var base64 = Convert.ToBase64String(item.logo);
|
||||
var imgSrc = String.Format("data:image/gif;base64,{0}", base64);
|
||||
}
|
||||
<img src="@imgSrc" height="80" />
|
||||
</td>
|
||||
<td>
|
||||
@{
|
||||
string testo = string.Empty;
|
||||
testo = item.testo_buono;
|
||||
}
|
||||
@Html.Raw(@testo)
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tecnico)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ragsoc)
|
||||
</td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<td>
|
||||
@{
|
||||
var base64 = Convert.ToBase64String(item.logo);
|
||||
var imgSrc = String.Format("data:image/gif;base64,{0}", base64);
|
||||
}
|
||||
<img src="@imgSrc" height="80" />
|
||||
</td>
|
||||
<td>
|
||||
@{
|
||||
string testo = string.Empty;
|
||||
testo = item.testo_buono;
|
||||
}
|
||||
@Html.Raw(@testo)
|
||||
|
||||
<a href="@Url.Action("Edit", "DatiAzienda", new { azienda=item.azienda,tecnico=item.tecnico })" 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("Detail", "DatiAzienda", new { azienda=item.azienda,tecnico=item.tecnico })" 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", "DatiAzienda", new { azienda=item.azienda,tecnico=item.tecnico })" title="Elimina" class="links">
|
||||
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="@Url.Action("Edit", "DatiAzienda", new { azienda=item.azienda,tecnico=item.tecnico })" 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("Detail", "DatiAzienda", new { azienda=item.azienda,tecnico=item.tecnico })" 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", "DatiAzienda", new { azienda=item.azienda,tecnico=item.tecnico })" 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>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
</div>
|
||||
<div class="card">
|
||||
<h5 class="card-header">IMPIANTI</h5>
|
||||
<h5 class="card-header">Impianti</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
|
||||
@ -18,56 +18,85 @@
|
||||
</p> *@
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<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>
|
||||
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per tipo", @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>
|
||||
@* <div>
|
||||
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per tipo", @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>
|
||||
</div> *@
|
||||
|
||||
}
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Azienda</th>
|
||||
<th>Tipo progressivo</th>
|
||||
<th>Valore progressivo</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.azienda)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tipo_prog)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.val_prog)
|
||||
</td>
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Progressivi", new { id=item.tipo_prog })" 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", "Progressivi", new { id=item.tipo_prog })" title="Dettaglio" class="links">
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Progressivi</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Azienda</th>
|
||||
<th>Tipo progressivo</th>
|
||||
<th>Valore progressivo</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.azienda)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tipo_prog)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.val_prog)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Progressivi", new { id=item.tipo_prog })" 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", "Progressivi", new { id=item.tipo_prog })" 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", "Progressivi", new { id=item.tipo_prog })" title="Elimina" class="links">
|
||||
</a>
|
||||
|
|
||||
<a href="@Url.Action("Delete", "Progressivi", new { id=item.tipo_prog })" 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()
|
||||
|
||||
@ -66,8 +66,9 @@
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">BUONI INTERVENTO</h5>
|
||||
<h5 class="card-header">Buoni Intervento</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -235,8 +236,8 @@
|
||||
|
||||
<br />
|
||||
<nav>
|
||||
@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()
|
||||
@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"},
|
||||
|
||||
@ -15,100 +15,112 @@
|
||||
<div class="row">
|
||||
@using (Html.BeginForm("Index", "Rapportini"))
|
||||
{
|
||||
<div>
|
||||
<div style="float:left;width:40%;padding:0 20px;">
|
||||
<th><b>Impianto:</b></th>
|
||||
@Html.DropDownList("impianto", ViewBag.Rapportini, null, new { @class = "agy-form-field require" })
|
||||
|
||||
@* <div style="float:left;width:40%;padding:0 20px;"> *@
|
||||
<th><b>Data da:</b></th>
|
||||
@Html.TextBox("dataIni", null, new { type = "date", @class = "agy-form-field require" })
|
||||
@* </div> *@
|
||||
|
||||
@* <div style="float:left;width:40%;padding:0 20px;"> *@
|
||||
<th><b>Data a:</b></th>
|
||||
@Html.TextBox("dataFin", null, new { type = "date", @class = "agy-form-field require" })
|
||||
@* </div> *@
|
||||
|
||||
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
||||
<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">Impianto:</i>
|
||||
<span class="fw-medium">@Html.DropDownList("impianto", ViewBag.Rapportini, null, new { @class = "agy-form-field require" })</span>
|
||||
</td>
|
||||
<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>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div style="float:left;width:2%;"> </div>
|
||||
<div style="float:left;width:2%;"> </div>
|
||||
<div style="float:left;width:2%;"> </div>
|
||||
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
@using (Html.BeginForm("ExportDataToExcel", "Rapportini"))
|
||||
{
|
||||
@Html.Hidden("dataIni", ViewBag.Rapportini, null)
|
||||
@Html.Hidden("dataFin", ViewBag.Rapportini, null)
|
||||
@Html.Hidden("impianto", ViewBag.Rapportini, null)
|
||||
|
||||
<div style="float:left;width:40%;padding:0 20px;">
|
||||
<input type="submit" value="Esporta excel" name="Esporta excel" class="agy-btn submitForm" />
|
||||
<div class="card">
|
||||
<h5 class="card-header">Estrai</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table">
|
||||
<tbody class="table-border-bottom-0">
|
||||
<tr>
|
||||
<td>
|
||||
@Html.Hidden("dataIni", ViewBag.Rapportini, null)
|
||||
@Html.Hidden("dataFin", ViewBag.Rapportini, null)
|
||||
@Html.Hidden("impianto", ViewBag.Rapportini, null)
|
||||
</td>
|
||||
<td>
|
||||
<span class="fw-medium"><input type="submit" value="Esporta excel" name="Esporta excel" class="agy-btn submitForm" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Seriale buono</th>
|
||||
<th>Data buono</th>
|
||||
<th>Cliente</th>
|
||||
<th>Codice impianto</th>
|
||||
@* <th>Seriale commessa</th>
|
||||
<th>Data buono</th> *@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.seriale_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.data_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ancodice) - @Html.DisplayFor(modelItem => item.andescri)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.codice_impianto)
|
||||
</td>
|
||||
@* <td>
|
||||
@Html.DisplayFor(modelItem => item.seriale_commessa)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.data_rapportino)
|
||||
</td>
|
||||
*@
|
||||
@* <td>
|
||||
<a href="@Url.Action("Edit", "Anag", 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", "Anag", 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", "Anag", 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>
|
||||
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header"></h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Seriale buono</th>
|
||||
<th>Data buono</th>
|
||||
<th>Cliente</th>
|
||||
<th>Codice impianto</th>
|
||||
@* <th>Seriale commessa</th>
|
||||
<th>Data buono</th> *@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.seriale_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.data_rapportino)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ancodice) - @Html.DisplayFor(modelItem => item.andescri)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.codice_impianto)
|
||||
</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, impianto = @ViewData["impianto"], dataIni = @ViewData["dataIni"],
|
||||
dataFin = @ViewData["dataFin"]}), new PagedListRenderOptions()
|
||||
{
|
||||
ActiveLiElementClass = "active",
|
||||
PageClasses = new[] { "page-link" },
|
||||
|
||||
@ -20,76 +20,108 @@
|
||||
</p>
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<div>
|
||||
<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>
|
||||
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per descrizione", @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>
|
||||
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per descrizione", @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>
|
||||
</div> *@
|
||||
}
|
||||
<table class="table">
|
||||
<thread>
|
||||
<tr>
|
||||
<th>Codice</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Tel.</th>
|
||||
<th>Utente</th>
|
||||
<th>Password</th>
|
||||
<th hidden>Costo ordinario</th>
|
||||
<th hidden>Costo notturno</th>
|
||||
<th hidden>Costo straordinario</th>
|
||||
<th hidden>Costo festivo</th>
|
||||
</tr>
|
||||
</thread>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tccodice)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tcdescri)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tctelef1)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tcuser)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tcpwd)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccoor)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccono)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccost)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccofe)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Tecnici", new { id=item.tccodice })" 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", "Tecnici", new { id=item.tccodice })" 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", "Tecnici", new { id=item.tccodice })" 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 style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Tecnici</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thread>
|
||||
<tr>
|
||||
<th>Codice</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Tel.</th>
|
||||
<th>Utente</th>
|
||||
<th>Password</th>
|
||||
<th hidden>Costo ordinario</th>
|
||||
<th hidden>Costo notturno</th>
|
||||
<th hidden>Costo straordinario</th>
|
||||
<th hidden>Costo festivo</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thread>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tccodice)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tcdescri)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tctelef1)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tcuser)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tcpwd)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccoor)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccono)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccost)
|
||||
</td>
|
||||
<td hidden>
|
||||
@Html.DisplayFor(modelItem => item.tccofe)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("Edit", "Tecnici", new { id=item.tccodice })" 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", "Tecnici", new { id=item.tccodice })" 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", "Tecnici", new { id=item.tccodice })" 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"] }), new PagedListRenderOptions()
|
||||
|
||||
@ -16,7 +16,45 @@
|
||||
<div class="row">
|
||||
@using (Html.BeginForm("Index", "Timbrature"))
|
||||
{
|
||||
<div>
|
||||
<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">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>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="bx bxl-angular bx-sm text-black me-3">Commessa:</i>
|
||||
<span class="fw-medium">@Html.DropDownList("commessa", ViewBag.Timbrature, null, new { @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.TextBox("tecnico", null, new { placeholder = "", @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>
|
||||
<div style="float:left;width:40%;padding:0 20px;">
|
||||
<th><b>Data da:</b></th>
|
||||
|
||||
@ -38,76 +76,111 @@
|
||||
<div style="float:left;width:2%;"> </div>
|
||||
<div style="float:left;width:2%;"> </div>
|
||||
|
||||
</div>
|
||||
</div> *@
|
||||
}
|
||||
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
@* <br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br> *@
|
||||
|
||||
@using (Html.BeginForm("ExportExcel", "Timbrature"))
|
||||
{
|
||||
@Html.Hidden("dataIni", ViewBag.Timbrature, null)
|
||||
@Html.Hidden("dataFin", ViewBag.Timbrature, null)
|
||||
@Html.Hidden("commessa", ViewBag.Timbrature, null)
|
||||
@Html.Hidden("tecnico", ViewBag.Timbrature, null)
|
||||
<div class="card">
|
||||
<h5 class="card-header">Estrai</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table">
|
||||
<tbody class="table-border-bottom-0">
|
||||
<tr>
|
||||
<td>
|
||||
@Html.Hidden("dataIni", ViewBag.Timbrature, null)
|
||||
@Html.Hidden("dataFin", ViewBag.Timbrature, null)
|
||||
@Html.Hidden("commessa", ViewBag.Timbrature, null)
|
||||
@Html.Hidden("tecnico", ViewBag.Timbrature, null)
|
||||
</td>
|
||||
<td>
|
||||
<span class="fw-medium"><input type="submit" value="Esporta excel" name="Esporta excel" class="agy-btn submitForm" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@*
|
||||
|
||||
<div style="float:left;width:40%;padding:0 20px;">
|
||||
<input type="submit" value="Esporta excel" name="Esporta excel" class="agy-btn submitForm" />
|
||||
</div>
|
||||
</div> *@
|
||||
}
|
||||
|
||||
<div style="width:100%;height:30px;">
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Data timbratura</th>
|
||||
<th>Ora inizio</th>
|
||||
<th>Minuti inizio</th>
|
||||
<th>Ora fine</th>
|
||||
<th>Minuti fine</th>
|
||||
<th>Commessa</th>
|
||||
<th>Ore viaggio</th>
|
||||
<th>Totale ore</th>
|
||||
<th>Giorno sett.</th>
|
||||
<th>Tecnico</th>
|
||||
<th hidden>Id</th>
|
||||
<th hidden>Azienda</th>
|
||||
<th hidden>Note</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
|
||||
<td>@Html.DisplayFor(modelItem => item.data_timbratura)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.ora_ini)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.min_ini)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.ora_fin)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.min_fin)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.commessa)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.ore_viaggio)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.tot_ore)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.giorno)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.tecnico)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.id)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.azienda)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.cpccchk)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.note)</td>
|
||||
<td>
|
||||
<a href="@Url.Action("Details", "Timbrature", new { id=item.id })" title="Dettaglio" class="links">
|
||||
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Timbrature</h5>
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Data timbratura</th>
|
||||
<th>Ora inizio</th>
|
||||
<th>Minuti inizio</th>
|
||||
<th>Ora fine</th>
|
||||
<th>Minuti fine</th>
|
||||
<th>Commessa</th>
|
||||
<th>Ore viaggio</th>
|
||||
<th>Totale ore</th>
|
||||
<th>Giorno sett.</th>
|
||||
<th>Tecnico</th>
|
||||
<th></th>
|
||||
<th hidden>Id</th>
|
||||
<th hidden>Azienda</th>
|
||||
<th hidden>Note</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
|
||||
<td>@Html.DisplayFor(modelItem => item.data_timbratura)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.ora_ini)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.min_ini)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.ora_fin)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.min_fin)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.commessa)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.ore_viaggio)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.tot_ore)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.giorno)</td>
|
||||
<td>@Html.DisplayFor(modelItem => item.tecnico)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.id)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.azienda)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.cpccchk)</td>
|
||||
<td>@Html.HiddenFor(modelItem => item.note)</td>
|
||||
<td>
|
||||
<a href="@Url.Action("Details", "Timbrature", new { id=item.id })" title="Dettaglio" class="links">
|
||||
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.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"] }), new PagedListRenderOptions()
|
||||
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, commessa=@ViewData["commessa"],
|
||||
tecnico=@ViewData["tecnico"], dataIni=@ViewData["dataIni"], dataFin=@ViewData["dataFin"]/* searchString = @ViewData["CurrentFilter"] */ }), new PagedListRenderOptions()
|
||||
{
|
||||
ActiveLiElementClass = "active",
|
||||
PageClasses = new[] { "page-link" },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user