From 336a4ab10f3c3df9645ee739f4fa055caa7f6d20 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Tue, 17 Oct 2023 16:41:22 +0200 Subject: [PATCH] cliente su impianti --- Controllers/ImpiantiController.cs | 8 ++++---- Models/Impianto.cs | 4 ++++ Views/Impianti/Index.cshtml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Controllers/ImpiantiController.cs b/Controllers/ImpiantiController.cs index fb21c99..bf919fc 100644 --- a/Controllers/ImpiantiController.cs +++ b/Controllers/ImpiantiController.cs @@ -35,7 +35,7 @@ namespace VirtualTask.Controllers return RedirectToAction("Index", "Login"); apiUrl = helper.GetStringValue("apiUrl"); - urlBase = apiUrl + "impiantiList"; + urlBase = apiUrl + "impiantiListMngr"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); client.BaseAddress = baseAddress; @@ -128,7 +128,7 @@ namespace VirtualTask.Controllers SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); apiUrl = helper.GetStringValue("apiUrl"); - urlBase = apiUrl + "impiantiList"; + urlBase = apiUrl + "impiantiListMngr"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); client = new HttpClient(); @@ -168,7 +168,7 @@ namespace VirtualTask.Controllers token = helper.GetStringValue("tok"); apiUrl = helper.GetStringValue("apiUrl"); - urlBase = apiUrl + "impiantiList"; + urlBase = apiUrl + "impiantiListMngr"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); client = new HttpClient(); @@ -243,7 +243,7 @@ namespace VirtualTask.Controllers SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); apiUrl = helper.GetStringValue("apiUrl"); - urlBase = apiUrl + "impiantiList"; + urlBase = apiUrl + "impiantiListMngr"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); client = new HttpClient(); diff --git a/Models/Impianto.cs b/Models/Impianto.cs index 4cc3af5..1ba6941 100644 --- a/Models/Impianto.cs +++ b/Models/Impianto.cs @@ -57,6 +57,10 @@ namespace VirtualTask.Models /// cliente associato public string? imultcli { get; set; } + [Display(Name = "Rag.Soc.")] + /// cliente associato + public string? descCliente { get; set; } + public string? indirizzo { get diff --git a/Views/Impianti/Index.cshtml b/Views/Impianti/Index.cshtml index b65b0e0..8d32383 100644 --- a/Views/Impianti/Index.cshtml +++ b/Views/Impianti/Index.cshtml @@ -43,7 +43,7 @@ @Html.HiddenFor(modelItem => item.imcodazi) @Html.DisplayFor(modelItem => item.imdescri) @Html.DisplayFor(modelItem => item.indirizzo) - @Html.DisplayFor(modelItem => item.imultcli) + @Html.DisplayFor(modelItem => item.imultcli) - @Html.DisplayFor(modelItem => item.descCliente) @Html.ActionLink("Modifica", "Edit", new { id=item.imcodimp }) | @Html.ActionLink("Dettaglio", "Details", new { id=item.imcodimp }) |