Michele - aggiunta lista delle destinazioni nella vista Modifica massiva destinazioni

This commit is contained in:
michele 2024-07-25 12:55:58 +02:00
parent edec809ea4
commit 0591c843c1

View File

@ -33,6 +33,7 @@
</div>
<div class="mb-3">
<input type="submit" value="Salva modifiche" class="btn btn-primary" />
<a asp-action="Index" asp-controller="Giri" value="Torna alla lista" class="btn btn-primary">Torna alla lista</a>
</div>
@for (var i = 0; i < modelList.Count(); i++)
{
@ -107,13 +108,127 @@
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="mb-0">Elenco Destinazioni</h5> <small class="text-muted float-end"></small>
</div>
<div class="card-body">
@for (var i = 0; i < modelList.Count(); i++)
{
<div class="mb-3">
aaa
</div>
}
<div class="table-responsive text-nowrap">
<table class="table table-striped">
<thead>
<tr>
@*<th>&nbsp;</th>*@
<th>S.</th>
<th>Committente</th>
<th>Sede</th>
<th>Indirizzo sede</th>
<th>Ca.</th>
<th>Tr.</th>
<th>Co.</th>
<th>Nr.Co.</th>
<th>Uo</th>
<th>Ci.</th>
<th>Note</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody class="table-border-bottom-0">
@for (var i = 0; i < modelList.Count(); i++)
{
<tr>
<td style="font-size:12px;"><i class="bx bxl-angular bx-sm text-danger me-3"></i>@Html.DisplayFor(modelItem => modelList[i].Seq)</td>
<td>@Html.DisplayFor(modelItem => modelList[i].Committente)</td>
<td>@Html.DisplayFor(modelItem => modelList[i].Sede)</td>
<td>@Html.DisplayFor(modelItem => modelList[i].IndirizzoSede)</td>
@if (modelList[i].Casse != null && modelList[i].Casse > 0)
{
int icasse = 0;
icasse = Convert.ToInt32(modelList[i].Casse);
<td style="font-size:12px;">
@icasse
</td>
}
else
{
<td>&nbsp;</td>
}
@if (modelList[i].Trasf != null && modelList[i].Trasf > 0)
{
<td style="font-size:12px;">
@Html.DisplayFor(modelItem => modelList[i].Trasf)
</td>
}
else
{
<td>&nbsp;</td>
}
@if (modelList[i].Colli != null && modelList[i].Colli > 0)
{
int icolli = 0;
icolli = Convert.ToInt32(modelList[i].Colli);
<td style="font-size:12px;">
@icolli
</td>
}
else
{
<td>&nbsp;</td>
}
@if (modelList[i].num_cons != null && modelList[i].num_cons > 0)
{
<td style="font-size:12px;">
@Html.DisplayFor(modelItem => modelList[i].num_cons)
</td>
}
else
{
<td>&nbsp;</td>
}
@if (modelList[i].Uova != null && modelList[i].Uova > 0)
{
<td style="font-size:12px;">
@Html.DisplayFor(modelItem => modelList[i].Uova)
</td>
}
else
{
<td>&nbsp;</td>
}
@if (modelList[i].Cist != null && modelList[i].Cist > 0)
{
<td style="font-size:12px;">
@Html.DisplayFor(modelItem => modelList[i].Cist)
</td>
}
else
{
<td>&nbsp;</td>
}
<td style="font-size:12px;">
@Html.DisplayFor(modelItem => modelList[i].Note)
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
@* @if (modelList[i].ConsFatta == null)
{
<td>
@if (!string.IsNullOrEmpty(modelList[i].Prog))
{
<img alt="nocons" src="@Url.Content("~/images/warning.png")" style="width:16px;height:16px;">
}
<a href="@Url.ActionLink("EliminaDestinazione", "Destinazioni", new { serial=modelList[i].Brserial })" title="Elimina Destinazione" class="links"><img alt="nocons" src="@Url.Content("~/images/icons8-rimuovere-24.png")" style="width:16px;height:16px;"></a>
</td>
<td>
<a href="@Url.ActionLink("ModificaDestinazione", "Destinazioni", new { serial=modelList[i].Brserial })" title="Modifica Destinazione" class="links"><img alt="nocons" src="@Url.Content("~/images/system.png")" style="width:16px;height:16px;"></a>
</td>
}
else
{
<td>&nbsp;</td>
<td>&nbsp;</td>
} *@
</tr>
}
</tbody>
</table>
</div>
</div>
</div>