Nascosti campi non necessari per Articoli

This commit is contained in:
michele 2025-02-24 11:29:59 +01:00
parent 7313ebe4de
commit f9ec584d15
5 changed files with 62 additions and 246 deletions

View File

@ -12,8 +12,7 @@
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
@Html.HiddenFor(x => x.Azienda)
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="SlCodice" class="control-label"></label></h5>
@ -35,98 +34,34 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="SlQtAper" class="control-label"></label></h5>
<input asp-for="SlQtAper" class="form-control" />
<input asp-for="SlQtAper" class="form-control" value="1"/>
<span asp-validation-for="SlQtAper" 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="AmCodice" class="control-label"></label></h5>
<input asp-for="AmCodice" class="form-control" />
<span asp-validation-for="AmCodice" 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="LoCodice" class="control-label"></label></h5>
<input asp-for="LoCodice" class="form-control" />
<span asp-validation-for="LoCodice" 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="LiCodLis" class="control-label"></label></h5>
<input asp-for="LiCodLis" class="form-control" />
<span asp-validation-for="LiCodLis" 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="LiCodArt" class="control-label"></label></h5>
<input asp-for="LiCodArt" class="form-control" />
<span asp-validation-for="LiCodArt" 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="LiDatAtt" class="control-label"></label></h5>
<input asp-for="LiDatAtt" class="form-control" />
<span asp-validation-for="LiDatAtt" 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="LiQuanti" class="control-label"></label></h5>
<input asp-for="LiQuanti" class="form-control" />
<span asp-validation-for="LiQuanti" 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="LiPrezzo" class="control-label"></label></h5>
<input asp-for="LiPrezzo" class="form-control" />
<span asp-validation-for="LiPrezzo" 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="LiScont1" class="control-label"></label></h5>
<input asp-for="LiScont1" class="form-control" />
<span asp-validation-for="LiScont1" 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="LiScont2" class="control-label"></label></h5>
<input asp-for="LiScont2" class="form-control" />
<span asp-validation-for="LiScont2" 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="LiScont3" class="control-label"></label></h5>
<input asp-for="LiScont3" class="form-control" />
<span asp-validation-for="LiScont3" 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="LiScont4" class="control-label"></label></h5>
<input asp-for="LiScont4" class="form-control" />
<span asp-validation-for="LiScont4" 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="Gest_Matr" class="control-label"></label></h5>
<input asp-for="Gest_Matr" class="form-control" />
<span asp-validation-for="Gest_Matr" 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="Gest_Lotti" class="control-label"></label></h5>
<input asp-for="Gest_Lotti" class="form-control" />
<span asp-validation-for="Gest_Lotti" 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="Desc_sup" class="control-label"></label></h5>
<input asp-for="Desc_sup" class="form-control" />
<span asp-validation-for="Desc_sup" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</div>
@Html.HiddenFor(x => x.Azienda)
@Html.HiddenFor(model => model.AmCodice)
@Html.HiddenFor(model => model.LoCodice)
@Html.HiddenFor(model => model.LiCodLis)
@Html.HiddenFor(model => model.LiCodArt)
@Html.HiddenFor(model => model.LiDatAtt)
@Html.HiddenFor(model => model.LiQuanti)
@Html.HiddenFor(model => model.LiScont1)
@Html.HiddenFor(model => model.LiScont2)
@Html.HiddenFor(model => model.LiScont3)
@Html.HiddenFor(model => model.LiScont4)
@Html.HiddenFor(model => model.Gest_Matr)
@Html.HiddenFor(model => model.Gest_Lotti)
@Html.HiddenFor(model => model.Desc_sup)
</form>
</div>
</div>

View File

@ -11,9 +11,6 @@
<div class="row">
<div class="row">
<div class="col-md-4">
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Azienda)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.Azienda)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.SlCodice)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.SlCodice)
</div>
@ -23,48 +20,23 @@
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.SlCodMag)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.SlCodMag)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.AmCodice)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.AmCodice)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LoCodice)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LoCodice)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiCodLis)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiCodLis)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiCodArt)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiCodArt)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiDatAtt)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiDatAtt)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiQuanti)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiQuanti)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiPrezzo)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiPrezzo)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont1)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiScont1)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont2)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiScont2)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont3)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiScont3)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont4)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.LiScont4)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Gest_Matr)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.Gest_Matr)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Gest_Lotti)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.Gest_Lotti)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Desc_sup)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.Desc_sup)
</div>
@Html.HiddenFor(x => x.Azienda)
@Html.HiddenFor(model => model.AmCodice)
@Html.HiddenFor(model => model.LoCodice)
@Html.HiddenFor(model => model.LiCodLis)
@Html.HiddenFor(model => model.LiCodArt)
@Html.HiddenFor(model => model.LiDatAtt)
@Html.HiddenFor(model => model.LiQuanti)
@Html.HiddenFor(model => model.LiScont1)
@Html.HiddenFor(model => model.LiScont2)
@Html.HiddenFor(model => model.LiScont3)
@Html.HiddenFor(model => model.LiScont4)
@Html.HiddenFor(model => model.Gest_Matr)
@Html.HiddenFor(model => model.Gest_Lotti)
@Html.HiddenFor(model => model.Desc_sup)
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>

View File

@ -9,9 +9,6 @@
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Azienda)</b> @Html.DisplayFor(model => model.Azienda)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.SlCodice)</b> @Html.DisplayFor(model => model.SlCodice)
</div>
@ -24,48 +21,23 @@
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.SlQtAper)</b> @Html.DisplayFor(model => model.SlQtAper)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.AmCodice)</b> @Html.DisplayFor(model => model.AmCodice)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LoCodice)</b> @Html.DisplayFor(model => model.LoCodice)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiCodLis)</b> @Html.DisplayFor(model => model.LiCodLis)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiCodArt)</b> @Html.DisplayFor(model => model.LiCodArt)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiDatAtt)</b> @Html.DisplayFor(model => model.LiDatAtt)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiQuanti)</b> @Html.DisplayFor(model => model.LiQuanti)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiPrezzo)</b> @Html.DisplayFor(model => model.LiPrezzo)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont1)</b> @Html.DisplayFor(model => model.LiScont1)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont2)</b> @Html.DisplayFor(model => model.LiScont2)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont3)</b> @Html.DisplayFor(model => model.LiScont3)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.LiScont4)</b> @Html.DisplayFor(model => model.LiScont4)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Gest_Matr)</b> @Html.DisplayFor(model => model.Gest_Matr)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Gest_Lotti)</b> @Html.DisplayFor(model => model.Gest_Lotti)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.Desc_sup)</b> @Html.DisplayFor(model => model.Desc_sup)
</div>
@Html.HiddenFor(model => model.Azienda)
@Html.HiddenFor(model => model.AmCodice)
@Html.HiddenFor(model => model.LoCodice)
@Html.HiddenFor(model => model.LiCodLis)
@Html.HiddenFor(model => model.LiCodArt)
@Html.HiddenFor(model => model.LiDatAtt)
@Html.HiddenFor(model => model.LiQuanti)
@Html.HiddenFor(model => model.LiScont1)
@Html.HiddenFor(model => model.LiScont2)
@Html.HiddenFor(model => model.LiScont3)
@Html.HiddenFor(model => model.LiScont4)
@Html.HiddenFor(model => model.Gest_Matr)
@Html.HiddenFor(model => model.Gest_Lotti)
@Html.HiddenFor(model => model.Desc_sup)
<div>
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</div>

View File

@ -11,7 +11,6 @@
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
@Html.HiddenFor(x => x.Azienda)
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="SlCodice" class="agy-client-quote"></label></h5>
@ -37,95 +36,30 @@
<span asp-validation-for="SlQtAper" 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="AmCodice" class="agy-client-quote"></label></h5>
<input asp-for="AmCodice" class="agy-form-field require" class="form-control" />
<span asp-validation-for="AmCodice" 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="LoCodice" class="agy-client-quote"></label></h5>
<input asp-for="LoCodice" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LoCodice" 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="LiCodLis" class="agy-client-quote"></label></h5>
<input asp-for="LiCodLis" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiCodLis" 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="LiCodArt" class="agy-client-quote"></label></h5>
<input asp-for="LiCodArt" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiCodArt" 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="LiDatAtt" class="agy-client-quote"></label></h5>
<input asp-for="LiDatAtt" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiDatAtt" 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="LiQuanti" class="agy-client-quote"></label></h5>
<input asp-for="LiQuanti" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiQuanti" 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="LiPrezzo" class="agy-client-quote"></label></h5>
<input asp-for="LiPrezzo" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiPrezzo" 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="LiScont1" class="agy-client-quote"></label></h5>
<input asp-for="LiScont1" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiScont1" 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="LiScont2" class="agy-client-quote"></label></h5>
<input asp-for="LiScont2" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiScont2" 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="LiScont3" class="agy-client-quote"></label></h5>
<input asp-for="LiScont3" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiScont3" 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="LiScont4" class="agy-client-quote"></label></h5>
<input asp-for="LiScont4" class="agy-form-field require" class="form-control" />
<span asp-validation-for="LiScont4" 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="Gest_Matr" class="agy-client-quote"></label></h5>
<input asp-for="Gest_Matr" class="agy-form-field require" class="form-control" />
<span asp-validation-for="Gest_Matr" 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="Gest_Lotti" class="agy-client-quote"></label></h5>
<input asp-for="Gest_Lotti" class="agy-form-field require" class="form-control" />
<span asp-validation-for="Gest_Lotti" 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="Desc_sup" class="agy-client-quote"></label></h5>
<input asp-for="Desc_sup" class="agy-form-field require" class="form-control" />
<span asp-validation-for="Desc_sup" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</div>
@Html.HiddenFor(x => x.Azienda)
@Html.HiddenFor(model => model.AmCodice)
@Html.HiddenFor(model => model.LoCodice)
@Html.HiddenFor(model => model.LiCodLis)
@Html.HiddenFor(model => model.LiCodArt)
@Html.HiddenFor(model => model.LiDatAtt)
@Html.HiddenFor(model => model.LiQuanti)
@Html.HiddenFor(model => model.LiScont1)
@Html.HiddenFor(model => model.LiScont2)
@Html.HiddenFor(model => model.LiScont3)
@Html.HiddenFor(model => model.LiScont4)
@Html.HiddenFor(model => model.Gest_Matr)
@Html.HiddenFor(model => model.Gest_Lotti)
@Html.HiddenFor(model => model.Desc_sup)
</form>
</div>
</div>

View File

@ -48,6 +48,7 @@
<tr>
<th>Cod. Articolo</th>
<th>Descrizione</th>
<th>Magazzino</th>
<th>Quantità</th>
<th>Prezzo</th>
<th></th>
@ -63,6 +64,9 @@
<td>
@Html.DisplayFor(modelItem => item.ArDesArt)
</td>
<td>
@Html.DisplayFor(modelItem => item.SlCodMag)
</td>
<td>
@Html.DisplayFor(modelItem => item.SlQtAper)
</td>
@ -70,7 +74,6 @@
@Html.DisplayFor(modelItem => item.LiPrezzo)
</td>
@Html.HiddenFor(modelItem => item.Azienda)
@Html.HiddenFor(modelItem => item.SlCodMag)
@Html.HiddenFor(modelItem => item.AmCodice)
@Html.HiddenFor(modelItem => item.LoCodice)
@Html.HiddenFor(modelItem => item.LiCodLis)