253 lines
12 KiB
Plaintext
253 lines
12 KiB
Plaintext
@* @model IEnumerable<SoftwayWeb.Models.GiriConsegnaView> *@
|
|
@model IPagedList<SoftwayWeb.Models.GiriConsegnaView>
|
|
@using X.PagedList;
|
|
@using X.PagedList.Mvc.Core;
|
|
@using X.PagedList;
|
|
@* @using X.PagedList.Web.Common; *@
|
|
|
|
@{
|
|
ViewData["Title"] = "Giri di consegna";
|
|
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
|
|
}
|
|
|
|
@*
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>Giri di consegna</h1> *@
|
|
|
|
|
|
|
|
<p>
|
|
<a asp-action="Create">Elenco giri di consegna da creare</a>
|
|
</p>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
<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> </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>
|
|
|
|
@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>
|
|
</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="Fatti/Totali" src="@Url.Content("~/images/task-list.png")" style="width:32px;height:32px;"></th>
|
|
<th><img alt="Pallet Caricati" src="@Url.Content("~/images/pallet.png")" style="width:31px;height:31px;">Par</th>
|
|
<th><img alt="Euro" src="@Url.Content("~/images/icons8-euro-30.png")" style="width:31px;height:31px;">Par</th>
|
|
<th><img alt="Pallet Fino ad ora" src="@Url.Content("~/images/pallet.png")" style="width:31px;height:31px;">Temp</th>
|
|
<th><img alt="Euro fino ad ora" src="@Url.Content("~/images/icons8-euro-30.png")" style="width:31px;height:31px;">Temp</th>
|
|
<th style="width:12%;"> </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.DestinazioniFatte)/@Html.DisplayFor(modelItem => item.DestinazioniTutte)
|
|
</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> </td>
|
|
}
|
|
@if (item.parzialeImpRec != null && item.parzialeImpRec > 0)
|
|
{
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.parzialeImpRec)
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td> </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 { id = item.SerialeGiro,
|
|
codAutista = item.CodAutista,
|
|
nomeAutista = item.Autista,
|
|
codMezzo= item.CodMezzo,
|
|
nomeMezzo = item.Automezzo,
|
|
dataGiroCons = item.DataGiro@* 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>
|
|
@if (item.DestinazioniModificate != null && item.DestinazioniModificate > 0)
|
|
{
|
|
<img alt="nocons" src="@Url.Content("~/images/warning.png")" style="width:24px;height:24px;">
|
|
}
|
|
else
|
|
{
|
|
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!--/ Striped Rows -->
|
|
|
|
|
|
|
|
|
|
|
|
@*<table class="table">
|
|
<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%;"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DataGiro)
|
|
</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> </td>
|
|
}
|
|
@if (item.parzialeImpRec != null && item.parzialeImpRec > 0)
|
|
{
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.parzialeImpRec)
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td> </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>
|
|
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<br />*@
|
|
<nav>
|
|
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString = @ViewData["CurrentFilter"] }), new PagedListRenderOptions()
|
|
{
|
|
ActiveLiElementClass = "active",
|
|
PageClasses = new[] { "page-link" },
|
|
LiElementClasses = new[] { "page-item" },
|
|
UlElementClasses = new[] { "pagination", "justify-content-center", "mt-3" },
|
|
LinkToNextPageFormat = "Successiva",
|
|
LinkToPreviousPageFormat = "Precedente",
|
|
MaximumPageNumbersToDisplay = 5,
|
|
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
|
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
|
})
|
|
</nav>
|