tabella giri formattata

This commit is contained in:
Marco Audiffredi 2024-07-18 12:07:33 +02:00
parent 5f665d3b2d
commit 564611a4ad
2 changed files with 2066 additions and 149 deletions

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
<h1>Giri di consegna</h1> *@
<h1>Giri di consegna</h1>
<p>
<a asp-action="Create">Elenco giri di consegna da creare</a>
@ -26,26 +26,129 @@
@using (Html.BeginForm())
{
<th><b>Data giro:</b></th>
<div>@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<th><b>Autista:</b></th>
<div>@Html.DropDownList("codAutista", ViewBag.Autisti, null, new { @class = "agy-form-field require" })</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<th><b>Automezzo:</b></th>
<div>@Html.DropDownList("codMezzo", ViewBag.CodMezzo, null, new { @class = "agy-form-field require" })</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="card">
<h5 class="card-header">Ricerca</h5>
<div class="table-responsive text-nowrap">
<table class="table table-striped">
<thead>
<tr>
<th>Data giro</th>
<th>Autista</th>
<th>Automezzo</th>
<th>Tipo</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody class="table-border-bottom-0">
<tr>
<td><i class="bx bxl-angular bx-sm text-danger me-3"></i> <span class="fw-medium">@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })</span></td>
<td>
@Html.DropDownList("codAutista", ViewBag.Autisti, null, new { @class = "agy-form-field require" })
</td>
<td>
@Html.DropDownList("codMezzo", ViewBag.CodMezzo, null, new { @class = "agy-form-field require" })
</td>
<td>
<div>
@Html.CheckBox("aperto", new { placeholder ="aperto", @checked = true, })
@Html.Label("aperto", "aperto")
@Html.CheckBox("aperto", new { placeholder ="aperto", @checked = true, })
@Html.Label("aperto", "aperto")
</td>
<td>
<input type="submit" value="Cerca" class="agy-btn submitForm" />
</td>
</tr>
</tbody>
</table>
</div>
<br />
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
</div>
}
<br />
<br />
<br />
<!-- Striped Rows -->
<div class="card">
<h5 class="card-header">Giri di consegna</h5>
<div class="table-responsive text-nowrap">
<table class="table table-striped">
<thead>
<tr>
<th>Data</th>
<th>Autista</th>
<th>Automezzo</th>
<th><img alt="nocons" src="@Url.Content("~/images/pallet.png")" style="width:31px;height:31px;">Par</th>
<th><img alt="nocons" src="@Url.Content("~/images/icons8-euro-30.png")" style="width:31px;height:31px;">Par</th>
<th><img alt="nocons" src="@Url.Content("~/images/pallet.png")" style="width:31px;height:31px;">Temp</th>
<th><img alt="nocons" src="@Url.Content("~/images/icons8-euro-30.png")" style="width:31px;height:31px;">Temp</th>
<th style="width:12%;">&nbsp;</th>
</tr>
</thead>
<tbody class="table-border-bottom-0">
@foreach (var item in Model)
{
<tr>
<td><i class="bx bxl-angular bx-sm text-danger me-3"></i> <span class="fw-medium">@Html.DisplayFor(modelItem => item.DataGiro)</span></td>
<td>@Html.DisplayFor(modelItem => item.CodAutista) - @Html.DisplayFor(modelItem => item.Autista)</td>
<td>
@Html.DisplayFor(modelItem => item.CodMezzo) - @Html.DisplayFor(modelItem => item.Automezzo)
</td>
<td>
@Html.DisplayFor(modelItem => item.BancaliCaricati)
</td>
<td>
@Html.DisplayFor(modelItem => item.ImportoDaRecuperare)
</td>
@if (item.parzialeBanRec != null && item.parzialeBanRec > 0)
{
<td>
@Html.DisplayFor(modelItem => item.parzialeBanRec)
</td>
}
else
{
<td>&nbsp;</td>
}
@if (item.parzialeImpRec != null && item.parzialeImpRec > 0)
{
<td>
@Html.DisplayFor(modelItem => item.parzialeImpRec)
</td>
}
else
{
<td>&nbsp;</td>
}
<td>
<a href="@Url.ActionLink("Index", "Destinazioni", new { id=item.SerialeGiro,
codAutista=item.CodAutista,
nomeAutista=item.Autista,
dataGiro=item.DataGiro,
codMezzo=item.CodMezzo,
desMezzo=item.Automezzo})" title="Destinazioni" class="links"><img alt="nocons" src="@Url.Content("~/images/icons8-oggetti-puntiforme-30.png")" style="width:24px;height:24px;"></a>
<a href="@Url.ActionLink("Bancali", "Giri", new { id=item.SerialeGiro })" title="Bancali" class="links"><img alt="nocons" src="@Url.Content("~/images/icons8-bancale-24.png")" style="width:24px;height:24px;"></a>
<a href="@Url.ActionLink("Chiudi", "GiriChiudi", new { id=item.SerialeGiro,nbanc=item.parzialeBanRec,imp=item.parzialeImpRec })" title="Chiudi" class="links"><img alt="nocons" src="@Url.Content("~/images/icons8-bandiera-a-scacchi-64.png")" style="width:24px;height:24px;"></a>
<a href="@Url.ActionLink("ModificaTutteDestinazioni", "Giri", new { codAutista = item.CodAutista,
nomeAutista = item.Autista,
codMezzo= item.CodMezzo,
nomeMezzo = item.Automezzo@* id=item.SerialeGiro,nbanc=item.parzialeBanRec,imp=item.parzialeImpRec *@ })" title="Modifica tutte le destinazioni" class="links"><img alt="nocons" src="@Url.Content("~/images/system.png")" style="width:24px;height:24px;"></a>
<table class="table">
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
<!--/ Striped Rows -->
@*<table class="table">
<thead>
<tr>
<th>Data</th>
@ -111,14 +214,14 @@
<a href="@Url.ActionLink("ModificaTutteDestinazioni", "Giri", new { codAutista = item.CodAutista,
nomeAutista = item.Autista,
codMezzo= item.CodMezzo,
nomeMezzo = item.Automezzo@* id=item.SerialeGiro,nbanc=item.parzialeBanRec,imp=item.parzialeImpRec *@ })" title="Modifica tutte le destinazioni" class="links"><img alt="nocons" src="@Url.Content("~/images/system.png")" style="width:24px;height:24px;"></a>
nomeMezzo = item.Automezzo@* id=item.SerialeGiro,nbanc=item.parzialeBanRec,imp=item.parzialeImpRec })" title="Modifica tutte le destinazioni" class="links"><img alt="nocons" src="@Url.Content("~/images/system.png")" style="width:24px;height:24px;"></a>
</td>
</tr>
}
</tbody>
</table>
<br />
<br />*@
<nav>
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString = @ViewData["CurrentFilter"] }), new PagedListRenderOptions()
{