Michele: Giri controller: filtro per giro aperto chiuso
This commit is contained in:
parent
547749a2e0
commit
9cecad4ec2
@ -31,8 +31,9 @@ namespace SoftwayWeb.Controllers
|
|||||||
{
|
{
|
||||||
helper = new SessionHelper(this);
|
helper = new SessionHelper(this);
|
||||||
token = helper.GetStringValue("tok");
|
token = helper.GetStringValue("tok");
|
||||||
string url = apiUrl + "Giri/listaGiri";
|
urlBase = apiUrl + "Giri/listaGiri?aperto="+aperto;
|
||||||
urlBase = url + "?token=" + token;
|
//string url = apiUrl + "Giri/listaGiri";
|
||||||
|
//urlBase = url + "?token=" + token;
|
||||||
Uri baseAddress = new Uri(urlBase);
|
Uri baseAddress = new Uri(urlBase);
|
||||||
client = new HttpClient();
|
client = new HttpClient();
|
||||||
client.BaseAddress = baseAddress;
|
client.BaseAddress = baseAddress;
|
||||||
@ -69,8 +70,8 @@ namespace SoftwayWeb.Controllers
|
|||||||
//{
|
//{
|
||||||
// modelList = modelList.Where(x => x.DataChiusura != null).ToList();
|
// modelList = modelList.Where(x => x.DataChiusura != null).ToList();
|
||||||
//}
|
//}
|
||||||
//var shortList = modelList.ToPagedList();
|
var shortList = modelList.ToPagedList();
|
||||||
return View(modelList);
|
return View(shortList/*modelList*/);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,28 +1,31 @@
|
|||||||
@model IEnumerable<SoftwayWeb.Models.GiriConsegnaView>
|
@* @model IEnumerable<SoftwayWeb.Models.GiriConsegnaView> *@
|
||||||
@* @model IPagedList<SoftwayWeb.Models.GiriConsegnaView> *@
|
@model IPagedList<SoftwayWeb.Models.GiriConsegnaView>
|
||||||
@using X.PagedList;
|
@using X.PagedList;
|
||||||
@using X.PagedList.Mvc.Core;
|
@using X.PagedList.Mvc.Core;
|
||||||
@using X.PagedList;
|
@using X.PagedList;
|
||||||
|
|
||||||
|
|
||||||
@* @using X.PagedList.Web.Common; *@
|
@* @using X.PagedList.Web.Common; *@
|
||||||
|
@{
|
||||||
|
ViewData["Title"] = "Giri di consegna";
|
||||||
|
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
|
||||||
|
}
|
||||||
|
|
||||||
|
@*
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Index";
|
ViewData["Title"] = "Index";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<h1>Giri di consegna</h1> *@
|
||||||
|
|
||||||
<h1>Giri di consegna</h1>
|
<h1>Giri di consegna</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">Aggiungi nuovo giro di consegna</a>
|
<a asp-action="Create">Aggiungi nuovo giro di consegna</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@using (Html.BeginForm(@* "Index", "Giri" *@))
|
@using (Html.BeginForm())
|
||||||
{
|
{
|
||||||
@* <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>
|
<div>@Html.TextBox("codAutista", null, new { placeholder = "Codice autista", @class = "agy-form-field require" })</div>
|
||||||
<br />
|
<br />
|
||||||
<div>@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })</div>
|
<div>@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })</div>
|
||||||
@ -30,8 +33,6 @@
|
|||||||
<div>
|
<div>
|
||||||
@Html.CheckBox("aperto", new { placeholder ="aperto", @checked = true, })
|
@Html.CheckBox("aperto", new { placeholder ="aperto", @checked = true, })
|
||||||
@Html.Label("aperto", "aperto")
|
@Html.Label("aperto", "aperto")
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user