Nascosti campi non necessari dA view codici segnalazione, modifica grafica index impianti

This commit is contained in:
michele 2025-06-05 09:45:59 +02:00
parent cc40de472a
commit 0a52a05dc6
5 changed files with 34 additions and 118 deletions

View File

@ -26,14 +26,14 @@
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="csferimp" class="control-label"></label></h5>
<input asp-for="csferimp" class="form-control" />
@* <h5><label asp-for="csferimp" class="control-label"></label></h5> *@
@* <input asp-for="csferimp" class="form-control" /> *@
<span asp-validation-for="csferimp" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="cstipseg" class="control-label"></label></h5>
<input asp-for="cstipseg" class="form-control" />
@* <h5><label asp-for="cstipseg" class="control-label"></label></h5> *@
@* <input asp-for="cstipseg" class="form-control" /> *@
<span asp-validation-for="cstipseg" class="text-danger"></span>
</div>
@ -44,6 +44,8 @@
</div>
@Html.HiddenFor(x => x.cscodazi)
@Html.HiddenFor(x => x.csferimp)
@Html.HiddenFor(x => x.cstipseg)
@Html.HiddenFor(x => x.DataObso)
</form>

View File

@ -18,13 +18,13 @@
<b>@Html.DisplayNameFor(model => model.csdescr)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.csdescr)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.csferimp)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.csferimp)
<b>@Html.HiddenFor(model => model.csferimp)</b>&nbsp;&nbsp;&nbsp;@Html.HiddenFor(model => model.csferimp)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.cscodazi)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.cscodazi)
<b>@Html.HiddenFor(model => model.cscodazi)</b>&nbsp;&nbsp;&nbsp;@Html.HiddenFor(model => model.cscodazi)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.cstipseg)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.cstipseg)
<b>@Html.HiddenFor(model => model.cstipseg)</b>&nbsp;&nbsp;&nbsp;@Html.HiddenFor(model => model.cstipseg)
</div>
@Html.HiddenFor(x => x.DataObso)

View File

@ -28,28 +28,31 @@
</td>
<td>@Html.DisplayFor(model => model.csdescr)</td>
</tr>
<tr>
@* <tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csferimp)</span>
<span class="badge bg-secondary">@Html.HiddenFor(model => model.csferimp)</span>
</td>
<td>@Html.DisplayFor(model => model.csferimp)</td>
<td>@Html.HiddenFor(model => model.csferimp)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cscodazi)</span>
<span class="badge bg-secondary">@Html.HiddenFor(model => model.cscodazi)</span>
</td>
<td>@Html.DisplayFor(model => model.cscodazi)</td>
<td>@Html.HiddenFor(model => model.cscodazi)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cstipseg)</span>
<span class="badge bg-secondary">@Html.HiddenFor(model => model.cstipseg)</span>
</td>
<td>@Html.DisplayFor(model => model.cstipseg)</td>
</tr>
<td>@Html.HiddenFor(model => model.cstipseg)</td>
</tr> *@
</tbody>
</table>
</div>
@Html.HiddenFor(model => model.csferimp)
@Html.HiddenFor(model => model.cscodazi)
@Html.HiddenFor(model => model.cstipseg)
@Html.HiddenFor(model => model.DataObso)
<div>
@ -57,96 +60,3 @@
</div>
</div>
</div>
@* @model VirtualTask.Models.CodiceSegnalazione *@
@* @{ *@
@* ViewData["Title"] = "Dettaglio codice segnalazione"; *@
@* Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; *@
@* } *@
@* <div class="agy-project-wrapper agy-project-page-wrapper"> *@
@* <div class="container"> *@
@* <div class="row"> *@
@* <div class="col-md-4"> *@
@* <div class="col-md-10"> *@
@* <b>@Html.DisplayNameFor(model => model.cscodice)</b> - @Html.DisplayFor(model => model.cscodice) *@
@* </div> *@
@* <div class="col-md-10"> *@
@* <b>@Html.DisplayNameFor(model => model.csdescr)</b> - @Html.DisplayFor(model => model.csdescr) *@
@* </div> *@
@* <div class="col-md-10"> *@
@* <b>@Html.DisplayNameFor(model => model.csferimp)</b> - @Html.DisplayFor(model => model.csferimp) *@
@* </div> *@
@* <div class="col-md-10"> *@
@* <b>@Html.DisplayNameFor(model => model.cscodazi)</b> @Html.DisplayFor(model => model.cscodazi) *@
@* </div> *@
@* <div class="col-md-10"> *@
@* <b>@Html.DisplayNameFor(model => model.cstipseg)</b> @Html.DisplayFor(model => model.cstipseg) *@
@* </div> *@
@* @Html.HiddenFor(model => model.DataObso) *@
@* <div> *@
@* <a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a> *@
@* </div> *@
@* </div> *@
@* </div> *@
@* </div> *@
@* </div> *@
@* @model VirtualTask.Models.CodiceSegnalazione *@
@* @{ *@
@* ViewData["Title"] = "Details"; *@
@* } *@
@* <h1>Details</h1> *@
@* <div> *@
@* <h4>CodiceSegnalazione</h4> *@
@* <hr /> *@
@* <dl class="row"> *@
@* <dt class = "col-sm-2"> *@
@* @Html.DisplayNameFor(model => model.cscodice) *@
@* </dt> *@
@* <dd class = "col-sm-10"> *@
@* @Html.DisplayFor(model => model.cscodice) *@
@* </dd> *@
@* <dt class = "col-sm-2"> *@
@* @Html.DisplayNameFor(model => model.csdescr) *@
@* </dt> *@
@* <dd class = "col-sm-10"> *@
@* @Html.DisplayFor(model => model.csdescr) *@
@* </dd> *@
@* <dt class = "col-sm-2"> *@
@* @Html.DisplayNameFor(model => model.csferimp) *@
@* </dt> *@
@* <dd class = "col-sm-10"> *@
@* @Html.DisplayFor(model => model.csferimp) *@
@* </dd> *@
@* <dt class = "col-sm-2"> *@
@* @Html.DisplayNameFor(model => model.cscodazi) *@
@* </dt> *@
@* <dd class = "col-sm-10"> *@
@* @Html.DisplayFor(model => model.cscodazi) *@
@* </dd> *@
@* <dt class = "col-sm-2"> *@
@* @Html.DisplayNameFor(model => model.cstipseg) *@
@* </dt> *@
@* <dd class = "col-sm-10"> *@
@* @Html.DisplayFor(model => model.cstipseg) *@
@* </dd> *@
@* <dt class = "col-sm-2"> *@
@* @Html.DisplayNameFor(model => model.DataObso) *@
@* </dt> *@
@* <dd class = "col-sm-10"> *@
@* @Html.DisplayFor(model => model.DataObso) *@
@* </dd> *@
@* </dl> *@
@* </div> *@
@* <div> *@
@* @Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) | *@
@* <a asp-action="Index">Back to List</a> *@
@* </div> *@

View File

@ -26,21 +26,25 @@
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="csferimp" class="agy-client-quote"></label></h5>
<input asp-for="csferimp" class="agy-form-field require" class="form-control" />
@Html.HiddenFor(x => x.csferimp)
@Html.HiddenFor(model => model.csferimp)
@* <h5><label asp-for="csferimp" class="agy-client-quote"></label></h5> *@
@* <input asp-for="csferimp" class="agy-form-field require" class="form-control" /> *@
<span asp-validation-for="csferimp" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="cscodazi" class="agy-client-quote"></label></h5>
@* <h5><label asp-for="cscodazi" class="agy-client-quote"></label></h5> *@
@Html.HiddenFor(x => x.cscodazi)
@Html.DisplayFor(model => model.cscodazi)
@Html.HiddenFor(model => model.cscodazi)
<span asp-validation-for="cscodazi" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="cstipseg" class="agy-client-quote"></label></h5>
<input asp-for="cstipseg" class="agy-form-field require" class="form-control" />
@* <h5><label asp-for="cstipseg" class="agy-client-quote"></label></h5> *@
@* <input asp-for="cstipseg" class="agy-form-field require" class="form-control" /> *@
@Html.HiddenFor(x => x.cstipseg)
@Html.HiddenFor(model => model.cstipseg)
<span asp-validation-for="cstipseg" class="text-danger"></span>
</div>

View File

@ -64,17 +64,17 @@
@foreach (var item in Model)
{
<tr>
<td>
<td style="width: 20%; word-wrap: break-word; white-space: normal;">
@Html.DisplayFor(modelItem => item.imcodimp) - @Html.DisplayFor(modelItem => item.imdescri)
</td>
<td>
<td style="width: 10%; word-wrap: break-word; white-space: normal;">
@Html.DisplayFor(modelItem => item.indirizzo)
</td>
<td>
<td style ="width: 10%; word-wrap: break-word; white-space: normal;">
@Html.DisplayFor(modelItem => item.imultcli) - @Html.DisplayFor(modelItem => item.descCliente)
</td>
<td>
<td style="width: 20%; word-wrap: break-word; white-space: normal;">
<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>