- rapp_new details inseriti i campi del rapportino in tabella

- Mag new impaginata meglio la index
This commit is contained in:
michele 2025-09-24 11:32:03 +02:00
parent 5da95be2e4
commit 480e926e06
2 changed files with 487 additions and 308 deletions

View File

@ -11,6 +11,24 @@
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<style>
/* 🔽 Fix per il wrapping della tabella */
.table td{
white-space: normal !important; /* consente di andare a capo */
word-wrap: break-word;
word-break: break-word;
max-width: 300px; /* regola la larghezza massima */
}
.table th {
white-space: normal !important; /* consente di andare a capo */
word-wrap: break-word;
word-break: break-word;
max-width: 250px; /* regola la larghezza massima */
white-space: nowrap !important;
}
</style>
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">

View File

@ -16,7 +16,7 @@
@using (Html.BeginForm("Index", "MagNewVT", FormMethod.Post))
{
<a asp-action="Index" asp-controller="MagNewVT" asp-route-serRapp="@Model.seriale_rapportino" value="Mag new" class="agy-btn submitForm">Mag New</a>
<a asp-action="Index" asp-controller="MagNewVT" asp-route-serRapp="@Model.seriale_rapportino" value="Mag new" class="agy-btn submitForm">Magazzino componenti</a>
}
@ -36,318 +36,479 @@
<b>@Html.DisplayNameFor(model => model.seriale_rapportino)</b> @Html.DisplayFor(model => model.seriale_rapportino)
</td>
</tr>
<div class="col-md-10">
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_impianto)</b> @Html.DisplayFor(model => model.codice_impianto)
</div>
@{
if (!string.IsNullOrEmpty(Model.seriale_chiamata)&&!Model.seriale_chiamata.Trim().Equals(string.Empty))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.seriale_chiamata)</b> @Html.DisplayFor(model => model.seriale_chiamata)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.seriale_commessa) && !Model.seriale_commessa.Trim().Equals(string.Empty))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.seriale_commessa)</b> @Html.DisplayFor(model => model.seriale_commessa)
</div>
}
}
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.data_rapportino)</b> @Html.DisplayFor(model => model.data_rapportino)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.ora_ini_rapportino)</b> @Html.DisplayFor(model => model.ora_ini_rapportino):@Html.DisplayFor(model => model.min_ini_rapportino)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.ora_fin_rapportino)</b> @Html.DisplayFor(model => model.ora_fin_rapportino):@Html.DisplayFor(model => model.min_fin_rapportino)
</div>
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_1))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_1)</b> @Html.DisplayFor(model => model.codice_chiusura_1)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_2))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_2)</b> @Html.DisplayFor(model => model.codice_chiusura_2)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_3))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_3)</b> @Html.DisplayFor(model => model.codice_chiusura_3)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_4))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_4)</b> @Html.DisplayFor(model => model.codice_chiusura_4)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_5))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_5)</b> @Html.DisplayFor(model => model.codice_chiusura_5)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_6))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_6)</b> @Html.DisplayFor(model => model.codice_chiusura_6)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_7))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_7)</b> @Html.DisplayFor(model => model.codice_chiusura_7)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_8))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_8)</b> @Html.DisplayFor(model => model.codice_chiusura_8)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_9))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_9)</b> @Html.DisplayFor(model => model.codice_chiusura_9)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_10))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_chiusura_10)</b> @Html.DisplayFor(model => model.codice_chiusura_10)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.descrizione_intervento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.descrizione_intervento)</b> @Html.DisplayFor(model => model.descrizione_intervento)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.stato_finale) && Model.stato_finale.Trim() != string.Empty)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.stato_finale)</b> @Html.DisplayFor(model => model.stato_finale)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_tecnico))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_tecnico)</b> @Html.DisplayFor(model => model.codice_tecnico)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.firma) && Model.firma.Trim()!=string.Empty)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.firma)</b> @Html.DisplayFor(model => model.firma)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.ser_buono))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.ser_buono)</b> @Html.DisplayFor(model => model.ser_buono)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_intervento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.codice_intervento)</b> @Html.DisplayFor(model => model.codice_intervento)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.difetti_riscontrati))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.difetti_riscontrati)</b> @Html.DisplayFor(model => model.difetti_riscontrati)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.lavoro_eseguito))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.lavoro_eseguito)</b> @Html.DisplayFor(model => model.lavoro_eseguito)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.esito_intervento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.esito_intervento)</b> @Html.DisplayFor(model => model.esito_intervento)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.note_intervento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.note_intervento)</b> @Html.DisplayFor(model => model.note_intervento)
</div>
}
}
@{
if (Model.ore_lavoro!=null)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.ore_lavoro)</b> @Html.DisplayFor(model => model.ore_lavoro)
</div>
}
}
@{
if (Model.materiale!=null && Model.materiale>0)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.materiale)</b> @Html.DisplayFor(model => model.materiale)
</div>
}
}
@{
if (Model.diritto_chiamata != null && Model.diritto_chiamata > 0)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.diritto_chiamata)</b> @Html.DisplayFor(model => model.diritto_chiamata)
</div>
}
}
@{
if (Model.manodopera != null && Model.manodopera> 0)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.manodopera)</b> @Html.DisplayFor(model => model.manodopera)
</div>
}
}
@{
if (Model.spese_viaggio != null && Model.spese_viaggio > 0)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.spese_viaggio)</b> @Html.DisplayFor(model => model.spese_viaggio)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.pagamento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.pagamento)</b> @Html.DisplayFor(model => model.pagamento)
</div>
}
}
@{
if (Model.anticipo != null && Model.anticipo > 0)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.anticipo)</b> @Html.DisplayFor(model => model.anticipo)
</div>
}
}
@{
if (Model.totale != null && Model.totale > 0)
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.totale)</b> @Html.DisplayFor(model => model.totale)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.note_pagamento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.note_pagamento)</b> @Html.DisplayFor(model => model.note_pagamento)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.tipo_intervento))
{
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tipo_intervento)</b> @Html.DisplayFor(model => model.tipo_intervento)
</div>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto1))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_impianto)</b> @Html.DisplayFor(model => model.codice_impianto)
</td>
</tr>
@{
if (!string.IsNullOrEmpty(Model.seriale_chiamata) && !Model.seriale_chiamata.Trim().Equals(string.Empty))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.seriale_chiamata)</b> @Html.DisplayFor(model => model.seriale_chiamata)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.seriale_commessa) && !Model.seriale_commessa.Trim().Equals(string.Empty))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.seriale_commessa)</b> @Html.DisplayFor(model => model.seriale_commessa)
</td>
</tr>
}
}
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto1 })">
@Html.DisplayNameFor(model => model.rafoto1)
</a>
<b>@Html.DisplayNameFor(model => model.data_rapportino)</b> @Html.DisplayFor(model => model.data_rapportino)
</td>
</tr>
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.ora_ini_rapportino)</b> @Html.DisplayFor(model => model.ora_ini_rapportino):@Html.DisplayFor(model => model.min_ini_rapportino)
</td>
</tr>
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.ora_fin_rapportino)</b> @Html.DisplayFor(model => model.ora_fin_rapportino):@Html.DisplayFor(model => model.min_fin_rapportino)
</td>
</tr>
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_1))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_1)</b> @Html.DisplayFor(model => model.codice_chiusura_1)
</td>
</tr>
}
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_2))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_2)</b> @Html.DisplayFor(model => model.codice_chiusura_2)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_3))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_3)</b> @Html.DisplayFor(model => model.codice_chiusura_3)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_4))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_4)</b> @Html.DisplayFor(model => model.codice_chiusura_4)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_5))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_5)</b> @Html.DisplayFor(model => model.codice_chiusura_5)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_6))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_6)</b> @Html.DisplayFor(model => model.codice_chiusura_6)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_7))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_7)</b> @Html.DisplayFor(model => model.codice_chiusura_7)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_8))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_8)</b> @Html.DisplayFor(model => model.codice_chiusura_8)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_9))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_9)</b> @Html.DisplayFor(model => model.codice_chiusura_9)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_chiusura_10))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_chiusura_10)</b> @Html.DisplayFor(model => model.codice_chiusura_10)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.descrizione_intervento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.descrizione_intervento)</b> @Html.DisplayFor(model => model.descrizione_intervento)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.stato_finale) && Model.stato_finale.Trim() != string.Empty)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.stato_finale)</b> @Html.DisplayFor(model => model.stato_finale)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_tecnico))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_tecnico)</b> @Html.DisplayFor(model => model.codice_tecnico)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.firma) && Model.firma.Trim() != string.Empty)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.firma)</b> @Html.DisplayFor(model => model.firma)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.ser_buono))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.ser_buono)</b> @Html.DisplayFor(model => model.ser_buono)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.codice_intervento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.codice_intervento)</b> @Html.DisplayFor(model => model.codice_intervento)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.difetti_riscontrati))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.difetti_riscontrati)</b> @Html.DisplayFor(model => model.difetti_riscontrati)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.lavoro_eseguito))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.lavoro_eseguito)</b> @Html.DisplayFor(model => model.lavoro_eseguito)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.esito_intervento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.esito_intervento)</b> @Html.DisplayFor(model => model.esito_intervento)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.note_intervento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.note_intervento)</b> @Html.DisplayFor(model => model.note_intervento)
</td>
</tr>
}
}
@{
if (Model.ore_lavoro != null)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.ore_lavoro)</b> @Html.DisplayFor(model => model.ore_lavoro)
</td>
</tr>
}
}
@{
if (Model.materiale != null && Model.materiale > 0)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.materiale)</b> @Html.DisplayFor(model => model.materiale)
</td>
</tr>
}
}
@{
if (Model.diritto_chiamata != null && Model.diritto_chiamata > 0)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.diritto_chiamata)</b> @Html.DisplayFor(model => model.diritto_chiamata)
</td>
</tr>
}
}
@{
if (Model.manodopera != null && Model.manodopera > 0)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.manodopera)</b> @Html.DisplayFor(model => model.manodopera)
</td>
</tr>
}
}
@{
if (Model.spese_viaggio != null && Model.spese_viaggio > 0)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.spese_viaggio)</b> @Html.DisplayFor(model => model.spese_viaggio)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.pagamento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.pagamento)</b> @Html.DisplayFor(model => model.pagamento)
</td>
</tr>
}
}
@{
if (Model.anticipo != null && Model.anticipo > 0)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.anticipo)</b> @Html.DisplayFor(model => model.anticipo)
</td>
</tr>
}
}
@{
if (Model.totale != null && Model.totale > 0)
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.totale)</b> @Html.DisplayFor(model => model.totale)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.note_pagamento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.note_pagamento)</b> @Html.DisplayFor(model => model.note_pagamento)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.tipo_intervento))
{
<tr>
<td>
<b>@Html.DisplayNameFor(model => model.tipo_intervento)</b> @Html.DisplayFor(model => model.tipo_intervento)
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto1))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto1 })">
@Html.DisplayNameFor(model => model.rafoto1)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto2))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto2 })">
@Html.DisplayNameFor(model => model.rafoto2)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto3))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto3 })">
@Html.DisplayNameFor(model => model.rafoto3)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto4))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto4 })">
@Html.DisplayNameFor(model => model.rafoto4)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto5))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto5 })">
@Html.DisplayNameFor(model => model.rafoto5)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto6))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto6 })">
@Html.DisplayNameFor(model => model.rafoto6)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto7))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto7 })">
@Html.DisplayNameFor(model => model.rafoto7)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto8))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto8 })">
@Html.DisplayNameFor(model => model.rafoto8)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto9))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto9 })">
@Html.DisplayNameFor(model => model.rafoto9)
</a>
</td>
</tr>
}
}
@{
if (!string.IsNullOrEmpty(Model.rafoto10))
{
<tr>
<td>
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto10 })">
@Html.DisplayNameFor(model => model.rafoto10)
</a>
</td>
</tr>
}
}
</tbody>
</table>
</div>