varie visualizzazioni chiamate
This commit is contained in:
parent
4845c549b6
commit
2d2562c0cd
@ -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);
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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))
|
||||
{
|
||||
|
||||
@ -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 |
BIN
wwwroot/assets/images/icons8-nuovo-50_old.png
Normal file
BIN
wwwroot/assets/images/icons8-nuovo-50_old.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 902 B |
Loading…
Reference in New Issue
Block a user