SoftwayWeb/Views/Destinazioni/Index.cshtml
2024-07-08 09:15:04 +02:00

194 lines
6.5 KiB
Plaintext

@model IEnumerable<SoftwayWeb.Models.Destinazioni_Out>
@* @model 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>Consegna @* effettuata *@</th>
<th>Riga</th>
<th>Bancali caricati</th>
<th>Bancali scaricati</th>
<th>Automezzo</th>
<th>Autista</th>
<th>Importo recuperato</th>
<th>Importo non recuperato</th>
<th>Bancali non recuperati</th>
<th>Flag</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>
} *@
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaSerial)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaRow)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaBanCar)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaBanSca)
</td>
<td>
@Html.DisplayFor(modelItem => item.ConsFatta.consFattaMezzo)
</td>
<td>
@Html.DisplayFor(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.DisplayFor(modelItem => item.ConsFatta.consFattaFlagCons)
</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>
@if (item.ConsFatta != null){
<td>
<img alt="cons" src="@Url.Content("~/images/fatto1.png")" style="width:35px;height:35px;">
</td>
}
@if (item.ConsFatta == null)
{
<td>
<img alt="nocons" src="@Url.Content("~/images/noFatto2.png")" style="width:50px;height:50px;">
</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>