SoftwayWeb/Views/Giri/Index.cshtml

116 lines
3.8 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"] = "Index";
}
<h1>Giri di consegna</h1>
<p>
<a asp-action="Create">Aggiungi nuovo giro di consegna</a>
</p>
@using (Html.BeginForm(@* "Index", "Giri" *@))
{
@* <div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("codAuti", null, new { placeholder = "Codice autista", @class = "agy-form-field require" })</div>
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("dataCons", null, new { placeholder = "Data consegna", @class = "agy-form-field require" })</div>
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div> *@
<div>@Html.TextBox("codAutista", null, new { placeholder = "Codice autista", @class = "agy-form-field require" })</div>
<br />
<div>@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })</div>
<br />
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
}
<table class="table">
<thead>
<tr>
<th>Seriale giro</th>
<th>Data</th>
<th>Cod. Autista</th>
<th>Autista</th>
<th>Bancali caricati</th>
<th>Bancali recuperati</th>
<th>Importo da recuperare</th>
<th>Importo recuperato</th>
<th>Data chiusura</th>
@* <th hidden>
@Html.DisplayNameFor(model => model.SerialeGiro)
</th>
<th>
@Html.DisplayNameFor(model => model.DataGiro)
</th>
<th>
@Html.DisplayNameFor(model => model.CodAutista)
</th>
<th>
@Html.DisplayNameFor(model => model.Autista)
</th>
<th>
@Html.DisplayNameFor(model => model.BancaliCaricati)
</th>
<th>
@Html.DisplayNameFor(model => model.BancaliRecuperati)
</th>
<th>
@Html.DisplayNameFor(model => model.ImportoDaRecuperare)
</th>
<th>
@Html.DisplayNameFor(model => model.ImportoRecuperato)
</th>
<th>
@Html.DisplayNameFor(model => model.DataChiusura)
</th>
<th></th> *@
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.SerialeGiro)
</td>
<td>
@Html.DisplayFor(modelItem => item.DataGiro)
</td>
<td>
@Html.DisplayFor(modelItem => item.CodAutista)
</td>
<td>
@Html.DisplayFor(modelItem => item.Autista)
</td>
<td>
@Html.DisplayFor(modelItem => item.BancaliCaricati)
</td>
<td>
@Html.DisplayFor(modelItem => item.BancaliRecuperati)
</td>
<td>
@Html.DisplayFor(modelItem => item.ImportoDaRecuperare)
</td>
<td>
@Html.DisplayFor(modelItem => item.ImportoRecuperato)
</td>
<td>
@Html.DisplayFor(modelItem => item.DataChiusura)
</td>
<td>
@Html.ActionLink("Chiudi", "Chiudi", new { id=item.SerialeGiro }) |
@Html.ActionLink("Elimina", "Elimina", new { id=item.SerialeGiro })
</td>
</tr>
}
</tbody>
</table>