From 5e084c7a97840fe4d84997d1c2cbb3530ec37e57 Mon Sep 17 00:00:00 2001 From: michele Date: Thu, 16 Oct 2025 09:48:24 +0200 Subject: [PATCH] gestione stato chiamate --- Controllers/ChiamateController.cs | 13 +++++++++++++ appsettings.json | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Controllers/ChiamateController.cs b/Controllers/ChiamateController.cs index 73d3a45..48ffa02 100644 --- a/Controllers/ChiamateController.cs +++ b/Controllers/ChiamateController.cs @@ -250,6 +250,10 @@ namespace VirtualTask.Controllers { model.chstato = "C"; } + else + { + model.chtchiam = null; + } model.chmodrac = "EMAIL"; //int year=adesso.Year; @@ -420,6 +424,15 @@ namespace VirtualTask.Controllers //model.chdtass = model.chdata; model.chdtass = model.chdtapp; + if (model.chtchiam != null) + { + model.chstato = "C"; + } + else + { + model.chtchiam = null; + } + //int year = model.chdata.Value.Year; //int hour = model.chdata.Value.Hour; //int minute = model.chdata.Value.Minute; diff --git a/appsettings.json b/appsettings.json index 572e46a..d355d84 100644 --- a/appsettings.json +++ b/appsettings.json @@ -8,8 +8,8 @@ "ApplicationInsights": { //PRODUZIONE - //"rootUrlApi": "https://api-vt.poloinformatico.it/api/Polo/", - //"rootUrlApi2": "https://api-vt.poloinformatico.it/VIRTU/", + "rootUrlApi": "https://api-vt.poloinformatico.it/api/Polo/", + "rootUrlApi2": "https://api-vt.poloinformatico.it/VIRTU/", //"rootWebLoghi": "C:\\ZAPIPOLO\\api_polo\\wwwroot\\VIRTU\\", //"rootWebLoghi": "/zucchetti/api/api-vt.poloinformatico.it/app/wwwroot/VIRTU/", "rootWebLoghi": "./wwwroot/VIRTU", @@ -17,8 +17,8 @@ "rootPath": "/mnt/storagebox", //TEST - "rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/", - "rootUrlApi2": "http://testapi.poloinformatico.it:9001/VIRTU/", + //"rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/", + //"rootUrlApi2": "http://testapi.poloinformatico.it:9001/VIRTU/", //"rootWebLoghi": "C:\\Users\\audif\\source\\repos\\VirtualTask\\wwwroot\\VIRTU\\", //"rootUrl": "https://localhost:7140/",