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);
|
||||
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
|
||||
{
|
||||
|
||||
@ -1,28 +1,31 @@
|
||||
@model IEnumerable<SoftwayWeb.Models.GiriConsegnaView>
|
||||
@* @model IPagedList<SoftwayWeb.Models.GiriConsegnaView> *@
|
||||
@* @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"] = "Giri di consegna";
|
||||
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
|
||||
}
|
||||
|
||||
|
||||
@*
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h1>Giri di consegna</h1> *@
|
||||
|
||||
<h1>Giri di consegna</h1>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Aggiungi nuovo giro di consegna</a>
|
||||
</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>
|
||||
<br />
|
||||
<div>@Html.TextBox("data", null, new { type = "date", @class = "agy-form-field require" })</div>
|
||||
@ -30,9 +33,7 @@
|
||||
<div>
|
||||
@Html.CheckBox("aperto", new { placeholder ="aperto", @checked = true, })
|
||||
@Html.Label("aperto", "aperto")
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user