From 2dc6c74bae75f1fae3b40cb5232e547ee5cfdbcb Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Thu, 19 Oct 2023 18:37:53 +0200 Subject: [PATCH] link buono su pagina lista chiamate --- Views/Chiamate/Index.cshtml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Views/Chiamate/Index.cshtml b/Views/Chiamate/Index.cshtml index a5c8d16..5f26dae 100644 --- a/Views/Chiamate/Index.cshtml +++ b/Views/Chiamate/Index.cshtml @@ -4,7 +4,7 @@ @using X.PagedList; @{ - ViewData["Title"] = "Index"; + ViewData["Title"] = "Chiamate"; }

Chiamate

@@ -31,7 +31,7 @@ Stato R IC - C + Buono @@ -62,8 +62,23 @@ @Html.DisplayFor(modelItem => item.chstato) - @Html.DisplayFor(modelItem => item.descStato) @Html.DisplayFor(modelItem => item.rif) @Html.DisplayFor(modelItem => item.ic) - @Html.DisplayFor(modelItem => item.ser_buono_chiu) - + + @{ + + string link = string.Empty; + + + if (!string.IsNullOrEmpty(item.ser_buono_chiu)) + { + link = "http://testapi.poloinformatico.it:9001/VIRTU/"; + link = link + item.ser_buono_chiu + ".jpg"; + @item.ser_buono_chiu + } + else + { + + } + } @Html.ActionLink("Modifica", "Edit", new { id=item.chserial }) | @Html.ActionLink("Dettaglio", "Details", new { id=item.chserial }) |