varie visualizzazioni chiamate

This commit is contained in:
Marco Audiffredi 2023-12-21 12:57:53 +01:00
parent 4845c549b6
commit 2d2562c0cd
6 changed files with 11 additions and 7 deletions

View File

@ -77,7 +77,7 @@ namespace VirtualTask.Controllers
var pageSize = 10;
var shortLinks = modelList
.OrderByDescending(s => s.chcodimp)
.OrderByDescending(s => s.chnumero)
.ToPagedList(page ?? 1, pageSize);
return View(shortLinks);

View File

@ -44,7 +44,8 @@ namespace VirtualTask.Controllers
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
tenant = helper.GetStringValue("tenant");
tenant2= helper.GetStringValue("tenant2");
if (string.IsNullOrEmpty(token))
{
return RedirectToAction("Login2", "Login");

View File

@ -16,6 +16,7 @@ namespace VirtualTask.Controllers
string urlBase = string.Empty;
string token = string.Empty;
string tenant = string.Empty;
string tenant2 = string.Empty;
string errMes = string.Empty;
string admin = string.Empty;
@ -36,7 +37,8 @@ namespace VirtualTask.Controllers
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
tenant = helper.GetStringValue("tenant");
tenant2 = helper.GetStringValue("tenant2");
if (string.IsNullOrEmpty(token))
{
return RedirectToAction("Login2", "Login");
@ -57,7 +59,7 @@ namespace VirtualTask.Controllers
{
string data = response.Content.ReadAsStringAsync().Result;
modelList = JsonConvert.DeserializeObject<List<Impianto>>(data);
modelList = modelList.Where(s => !string.IsNullOrEmpty(s.imcodimp)).ToList();
modelList = modelList.Where(s => !string.IsNullOrEmpty(s.imcodimp) && s.imcodazi.Equals(tenant2)).ToList();
if (!string.IsNullOrEmpty(searchString))
{

View File

@ -7,12 +7,13 @@
<p>
<a asp-action="Create">Create New</a>
</p>
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<p>
<a asp-action="Create" ><img src="~/assets/images/icons8-nuovo-50.png" alt="Crea un nuovo elemento" /></a>
</p>
<table class="table">
<thead>
<tr>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 902 B

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 B