From a7a9f4d49c2bc8dbf4bd2c5a9f0b315ae0245535 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Thu, 19 Oct 2023 15:36:37 +0200 Subject: [PATCH 1/2] chiamata chtipo=A --- Controllers/ChiamateController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/ChiamateController.cs b/Controllers/ChiamateController.cs index 424b84e..1d891b9 100644 --- a/Controllers/ChiamateController.cs +++ b/Controllers/ChiamateController.cs @@ -115,7 +115,7 @@ namespace VirtualTask.Controllers model.chdata = adesso; model.chdtass = adesso; model.chdtapp = adesso; - model.chtipo = "X";//X=creato da app, A creato da adhoc. NON SERVE + model.chtipo = "A";//X=creato da app, A creato da adhoc. DEVO METTERE A perche altrimenti l'app lo tratta come una chiamata da commessa model.chmodrac = "EMAIL"; int year=adesso.Year; int ora = adesso.Hour; From 2dc6c74bae75f1fae3b40cb5232e547ee5cfdbcb Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Thu, 19 Oct 2023 18:37:53 +0200 Subject: [PATCH 2/2] 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 }) |