SoftwayWeb/Views/Destinazioni/Index.cshtml

229 lines
8.1 KiB
Plaintext

@* @model IEnumerable<SoftwayWeb.Models.Destinazioni_Out> *@
@* @model SoftwayWeb.Models.Destinazioni_Out *@
@model IPagedList<SoftwayWeb.Models.Destinazioni_Out>
@using X.PagedList;
@using X.PagedList.Mvc.Core;
@using X.PagedList;
@{
ViewData["Title"] = "Lista Destinazioni";
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
}
<h1>Lista destinazioni</h1>
@* <p>
<a asp-action="Create">Create New</a>
</p>
*@
<table class="table" style="width:100%">
<thead>
<tr>
<th>Committente</th>
<th>Sede</th>
<th>Indirizzo sede</th>
<th hidden>Consegna @* effettuata *@</th>
<th hidden>Riga</th>
<th>Bancali caricati</th>
<th>Bancali scaricati</th>
<th hidden>Automezzo</th>
<th hidden>Autista</th>
<th>Importo recuperato</th>
<th>Note (importo)@* Importo non recuperato *@</th>
<th>Note (bancali)@* Bancali non recuperati *@</th>
<th>Esito consegna</th>
@* <th>Consegna fatta</th> *@
@* <th>Seriale giro</th> *@
@* <th>
@Html.DisplayNameFor(model => model.CodAutomezzo)
</th>
<th>
@Html.DisplayNameFor(model => model.DescAutomezzo)
</th>
<th>
@Html.DisplayNameFor(model => model.Brserial)
</th>
<th>
@Html.DisplayNameFor(model => model.DataCarico)
</th>
<th>
@Html.DisplayNameFor(model => model.CodCommittente)
</th>
<th>
@Html.DisplayNameFor(model => model.Committente)
</th>
<th>
@Html.DisplayNameFor(model => model.CodAutista)
</th>
<th>
@Html.DisplayNameFor(model => model.Autista)
</th>
<th>
@Html.DisplayNameFor(model => model.CodSede)
</th>
<th>
@Html.DisplayNameFor(model => model.Sede)
</th>
<th>
@Html.DisplayNameFor(model => model.IndirizzoSede)
</th>
<th>
@Html.DisplayNameFor(model => model.Cproword)
</th>
<th>
@Html.DisplayNameFor(model => model.Cprownum)
</th>
<th>
@Html.DisplayNameFor(model => model.Brmerce)
</th>
<th>
@Html.DisplayNameFor(model => model.Brnote)
</th>
<th>
@Html.DisplayNameFor(model => model.ImportoDaRitirare)
</th>
<th>
@Html.DisplayNameFor(model => model.ItemList)
</th>
<th>
@Html.DisplayNameFor(model => model.serialeGiro)
</th>
<th></th> *@
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.CodCommittente) - @Html.DisplayFor(modelItem => item.Committente)
</td>
<td>
@Html.DisplayFor(modelItem => item.CodSede) - @Html.DisplayFor(modelItem => item.Sede)
</td>
<td>
@Html.DisplayFor(modelItem => item.IndirizzoSede)
</td>
@* @if (item.ConsFatta != null)
{
<td>
<a href="@Url.ActionLink("Index","Consegne", new{id = item.ConsFatta.consFattaSerial})" title="ConsFatta">Dettaglio consegna</a>
</td>
} *@
@if (item.ConsFatta != null)
{
<td hidden>
@Html.HiddenFor(modelItem => item.ConsFatta.consFattaSerial)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.ConsFatta.consFattaRow)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaBanCar)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaBanSca)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.ConsFatta.consFattaMezzo)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.ConsFatta.consFattaAut)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaImpor)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaNotImp)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaNotBan)
</td>
<td>
@Html.HiddenFor(modelItem => item.ConsFatta.consFattaFlagCons)
@if (item.ConsFatta.consFattaFlagCons.Contains("S"))
{
<img alt="cons" src="@Url.Content("~/images/Green.png")" style="width:35px;height:35px">
}
else
{
<img alt="nocons" src="@Url.Content("~/images/Red.png")" style="width:35px;height:35px;">
}
</td>
}
else
{
<td hidden>&nbsp;</td>
<td hidden>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td hidden>&nbsp;</td>
<td hidden>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>
<img alt="notyet" src="@Url.Content("~/images/Yellow.png")" style="width:35px;height:35px;">
</td>
}
<td hidden>
@Html.HiddenFor(modelItem => item.CodAutomezzo) @* - *@ @Html.HiddenFor(modelItem => item.DescAutomezzo)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.Brserial)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.DataCarico)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.CodAutista) @* - *@ @Html.HiddenFor(modelItem => item.Autista)
</td>
<td>
@Html.HiddenFor(modelItem => item.Brmerce)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.Brnote)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.ImportoDaRitirare)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.serialeGiro)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.Cproword)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.Cprownum)
</td>
<td hidden>
@Html.HiddenFor(modelItem => item.ItemList)
</td>
@* <td>
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
</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>