diff --git a/Controllers/AnagController.cs b/Controllers/AnagController.cs index ad94047..c435da9 100644 --- a/Controllers/AnagController.cs +++ b/Controllers/AnagController.cs @@ -26,7 +26,7 @@ namespace VirtualTask.Controllers string admin = string.Empty; //seriale commessa string _sercomm = "SER_COMMES"; - + string time_sheet=string.Empty; private readonly IConfiguration _configuration; public AnagController(IConfiguration configuration) @@ -52,6 +52,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl+"anagraficheList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/AziendaRifController.cs b/Controllers/AziendaRifController.cs index efcfa56..e84456d 100644 --- a/Controllers/AziendaRifController.cs +++ b/Controllers/AziendaRifController.cs @@ -16,7 +16,7 @@ namespace VirtualTask.Controllers string tenant = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -47,6 +47,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "aziendeList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/ChiamateController.cs b/Controllers/ChiamateController.cs index 2f32ad7..2a336f7 100644 --- a/Controllers/ChiamateController.cs +++ b/Controllers/ChiamateController.cs @@ -19,7 +19,7 @@ namespace VirtualTask.Controllers string _serchiam = "SER_CHIAMA"; string _numchiam = "NUM_CHIAMA"; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -46,6 +46,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "chiamateListMngr"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/ChiusureController.cs b/Controllers/ChiusureController.cs index acb4df7..46c43ae 100644 --- a/Controllers/ChiusureController.cs +++ b/Controllers/ChiusureController.cs @@ -17,7 +17,7 @@ namespace VirtualTask.Controllers string tenant = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -45,6 +45,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "chiusureVtList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/CommesseVTController.cs b/Controllers/CommesseVTController.cs index dc21ba7..097856a 100644 --- a/Controllers/CommesseVTController.cs +++ b/Controllers/CommesseVTController.cs @@ -18,7 +18,7 @@ namespace VirtualTask.Controllers string errMes = string.Empty; string admin = string.Empty; string _sercomm = "SER_COMMES"; - + string time_sheet=string.Empty; HttpClient client; @@ -49,6 +49,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "commesseList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/DatiAziendaController.cs b/Controllers/DatiAziendaController.cs index 9ff3385..21887ad 100644 --- a/Controllers/DatiAziendaController.cs +++ b/Controllers/DatiAziendaController.cs @@ -28,7 +28,7 @@ namespace VirtualTask.Controllers string admin = string.Empty; private readonly IConfiguration _configuration; //private readonly Microsoft.Extensions.Hosting.IHostingEnvironment _hostingEnvironment; - + string time_sheet=string.Empty; public DatiAziendaController(IConfiguration configuration /*,Microsoft.Extensions.Hosting.IHostingEnvironment hostingEnvironment*/) { client = new HttpClient(); @@ -46,6 +46,8 @@ namespace VirtualTask.Controllers token = helper.GetStringValue("tok"); tenant = helper.GetStringValue("tenant"); tenant2= helper.GetStringValue("tenant2"); + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; if (string.IsNullOrEmpty(token)) { return RedirectToAction("Login2", "Login"); diff --git a/Controllers/ImpiantiController.cs b/Controllers/ImpiantiController.cs index 99d269f..a89a429 100644 --- a/Controllers/ImpiantiController.cs +++ b/Controllers/ImpiantiController.cs @@ -19,7 +19,7 @@ namespace VirtualTask.Controllers string tenant2 = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -47,6 +47,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "impiantiListMngr"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/ProgressiviController.cs b/Controllers/ProgressiviController.cs index e95f3ca..42f58a0 100644 --- a/Controllers/ProgressiviController.cs +++ b/Controllers/ProgressiviController.cs @@ -17,7 +17,7 @@ namespace VirtualTask.Controllers string tenant = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -43,6 +43,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "progressiviList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/Rapp_NewController.cs b/Controllers/Rapp_NewController.cs index 6be792b..e03a10d 100644 --- a/Controllers/Rapp_NewController.cs +++ b/Controllers/Rapp_NewController.cs @@ -15,7 +15,7 @@ namespace VirtualTask.Controllers string token = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet = string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -43,6 +43,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "rappnewList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/RapportiniController.cs b/Controllers/RapportiniController.cs index 0fc5db9..edd7b3d 100644 --- a/Controllers/RapportiniController.cs +++ b/Controllers/RapportiniController.cs @@ -21,7 +21,7 @@ namespace VirtualTask.Controllers string tenant = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -56,6 +56,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "rapportiniList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/RegistrazioniController.cs b/Controllers/RegistrazioniController.cs index 0398d97..5beac32 100644 --- a/Controllers/RegistrazioniController.cs +++ b/Controllers/RegistrazioniController.cs @@ -28,7 +28,7 @@ namespace VirtualTask.Controllers string errMes = string.Empty; string admin = string.Empty; string urlConfirm = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -54,7 +54,8 @@ namespace VirtualTask.Controllers urlBase = apiUrl + "RegistrazioniList"; admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; - + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; Uri baseAddress = new Uri(urlBase); client = new HttpClient(); client.BaseAddress = baseAddress; diff --git a/Controllers/TecniciController.cs b/Controllers/TecniciController.cs index b42ffba..45aa45d 100644 --- a/Controllers/TecniciController.cs +++ b/Controllers/TecniciController.cs @@ -19,7 +19,7 @@ namespace VirtualTask.Controllers string tenant = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -46,6 +46,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "tecniciList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); diff --git a/Controllers/TimbratureController.cs b/Controllers/TimbratureController.cs index 20a63a9..a50403d 100644 --- a/Controllers/TimbratureController.cs +++ b/Controllers/TimbratureController.cs @@ -16,7 +16,7 @@ namespace VirtualTask.Controllers string tenant = string.Empty; string errMes = string.Empty; string admin = string.Empty; - + string time_sheet=string.Empty; HttpClient client; private readonly IConfiguration _configuration; @@ -44,6 +44,8 @@ namespace VirtualTask.Controllers apiUrl = helper.GetStringValue("apiUrl"); admin = helper.GetStringValue("admin"); ViewBag.Admin = admin; + time_sheet = helper.GetStringValue("time_sheet"); + ViewBag.TimeSheet = time_sheet; urlBase = apiUrl + "timbratureList"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase);