Michele:: modifiche per paginazione destinazioni

This commit is contained in:
michele 2024-07-17 16:30:28 +02:00
parent 35685d2874
commit 6a4cdc4c73
2 changed files with 127 additions and 118 deletions

View File

@ -42,6 +42,7 @@ namespace SoftwayWeb.Controllers
string autista = string.Empty;
string dataGi = string.Empty;
string mezzo = string.Empty;
string dataGiro2 = string.Empty;
ViewBag.CodAutista = codAutista;
ViewBag.Autista = nomeAutista;
@ -52,31 +53,42 @@ namespace SoftwayWeb.Controllers
if (!string.IsNullOrEmpty(codAutista))
{
helper.SetStringValue("codAutista", codAutista.TrimEnd());
helper.SetStringValue("nomeAutista", nomeAutista.TrimEnd());
}
else
{
string aut = helper.GetStringValue("codAutista");
codAutista = aut.TrimEnd();
string codAut = helper.GetStringValue("codAutista");
codAutista = codAut.TrimEnd();
ViewBag.CodAutista = codAutista;
string nomeAut = helper.GetStringValue("nomeAutista");
ViewBag.Autista = nomeAut;
}
if (!string.IsNullOrEmpty(codMezzo))
{
helper.SetStringValue("codMezzo", codMezzo.TrimEnd());
helper.SetStringValue("desMezzo", desMezzo.TrimEnd());
}
else
{
string mez = helper.GetStringValue("codMezzo").TrimEnd();
codMezzo = mez;
ViewBag.CodMezzo = codMezzo;
string nomeMezzo = helper.GetStringValue("desMezzo");
ViewBag.Automezzo = nomeMezzo;
}
if (dataGiro.Date != DateTime.MinValue)
{
helper.SetStringValue("dataGiro", dataGiro.ToString("yyyy-MM-dd'T'HH:mm:ss.fff'Z'"));
dataGi = dataGiro.ToString("yyyy-MM-dd'T'HH:mm:ss.fff'Z'");
helper.SetStringValue("dataGiro2", dataGiro.ToString("dd/MM/yyyy"));
}
else
{
dataGi = helper.GetStringValue("dataGiro");
string dataG = helper.GetStringValue("dataGiro2");
ViewBag.dataGiro = dataG;
}
urlBase = apiUrl + "Giri/listaDestinazioniByAutistaDataMezzo";

View File

@ -166,16 +166,13 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
}
</tr>
}
</tbody>
</table>
<br />
<nav>
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString = @ViewData["CurrentFilter"] }), new PagedListRenderOptions()
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, Model/* searchString = @ViewData["CurrentFilter"] */ }), new PagedListRenderOptions()
{
ActiveLiElementClass = "active",
PageClasses = new[] { "page-link" },