diff --git a/Controllers/GiriController.cs b/Controllers/GiriController.cs index 4983a7f..a589f1a 100644 --- a/Controllers/GiriController.cs +++ b/Controllers/GiriController.cs @@ -31,8 +31,9 @@ namespace SoftwayWeb.Controllers { helper = new SessionHelper(this); token = helper.GetStringValue("tok"); - string url = apiUrl + "Giri/listaGiri"; - urlBase = url + "?token=" + token; + urlBase = apiUrl + "Giri/listaGiri?aperto="+aperto; + //string url = apiUrl + "Giri/listaGiri"; + //urlBase = url + "?token=" + token; Uri baseAddress = new Uri(urlBase); client = new HttpClient(); client.BaseAddress = baseAddress; @@ -69,8 +70,8 @@ namespace SoftwayWeb.Controllers //{ // modelList = modelList.Where(x => x.DataChiusura != null).ToList(); //} - //var shortList = modelList.ToPagedList(); - return View(modelList); + var shortList = modelList.ToPagedList(); + return View(shortList/*modelList*/); } else { diff --git a/Views/Giri/Index.cshtml b/Views/Giri/Index.cshtml index 689c48a..be0c7fe 100644 --- a/Views/Giri/Index.cshtml +++ b/Views/Giri/Index.cshtml @@ -1,28 +1,31 @@ -@model IEnumerable -@* @model IPagedList *@ +@* @model IEnumerable *@ +@model IPagedList @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"; } +

Giri di consegna

*@ +

Giri di consegna

Aggiungi nuovo giro di consegna

-@using (Html.BeginForm(@* "Index", "Giri" *@)) +@using (Html.BeginForm()) { - @*
@Html.TextBox("codAuti", null, new { placeholder = "Codice autista", @class = "agy-form-field require" })
-
@Html.TextBox("dataCons", null, new { placeholder = "Data consegna", @class = "agy-form-field require" })
-
*@
@Html.TextBox("codAutista", null, new { placeholder = "Codice autista", @class = "agy-form-field require" })

@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })
@@ -30,9 +33,7 @@
@Html.CheckBox("aperto", new { placeholder ="aperto", @checked = true, }) @Html.Label("aperto", "aperto") - - -
+