cliente su impianti

This commit is contained in:
Marco Audiffredi 2023-10-17 16:41:22 +02:00
parent c795fbbaa1
commit 336a4ab10f
3 changed files with 9 additions and 5 deletions

View File

@ -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();

View File

@ -57,6 +57,10 @@ namespace VirtualTask.Models
/// <summary> cliente associato </summary>
public string? imultcli { get; set; }
[Display(Name = "Rag.Soc.")]
/// <summary> cliente associato </summary>
public string? descCliente { get; set; }
public string? indirizzo
{
get

View File

@ -43,7 +43,7 @@
@Html.HiddenFor(modelItem => item.imcodazi)
<td>@Html.DisplayFor(modelItem => item.imdescri)</td>
<td>@Html.DisplayFor(modelItem => item.indirizzo)</td>
<td>@Html.DisplayFor(modelItem => item.imultcli)</td>
<td>@Html.DisplayFor(modelItem => item.imultcli) - @Html.DisplayFor(modelItem => item.descCliente)</td>
<td>
@Html.ActionLink("Modifica", "Edit", new { id=item.imcodimp }) |
@Html.ActionLink("Dettaglio", "Details", new { id=item.imcodimp }) |