From e8d2c5206cfb7d0346bef9f936d4737eddd9ecbc Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 4 Oct 2019 18:39:24 +0200 Subject: [PATCH] Fix check licenza --- AppData/licenzeApp.cs | 25 +++---------------------- C-TRACK/Web.config | 24 ------------------------ 2 files changed, 3 insertions(+), 46 deletions(-) diff --git a/AppData/licenzeApp.cs b/AppData/licenzeApp.cs index c864a0d..c4159c9 100644 --- a/AppData/licenzeApp.cs +++ b/AppData/licenzeApp.cs @@ -96,25 +96,6 @@ namespace AppData } } /// - /// nome ambiente sw - /// - public static string appName - { - get - { - string answ = ""; - try - { - answ = memLayer.ML.CRS("appName"); - } - catch (Exception exc) - { - logger.lg.scriviLog(string.Format("Errore recupero appName: {0}", exc), tipoLog.EXCEPTION); - } - return answ; - } - } - /// /// nome installazione sw /// public static string installazione @@ -159,7 +140,7 @@ namespace AppData { get { - string answ = memLayer.ML.confReadString("appName"); + string answ = memLayer.ML.CRS("appName"); return answ; } } @@ -174,7 +155,7 @@ namespace AppData try { answ = utentiAttivi <= licenzeAttive; - if (!answ && memLayer.ML.confReadInt("_logLevel") > 5) + if (!answ && memLayer.ML.CRI("_logLevel") > 5) { logger.lg.scriviLog(string.Format("WARNING licenze: utenti attivi {0} / licenziati {1}", utentiAttivi, licenzeAttive), tipoLog.WARNING); } @@ -215,7 +196,7 @@ namespace AppData // se non trovato provo installazione + environment... if (tabKey.Count == 0) { - tabKey = dataLayer.man.taAKV.getByKey(appName); + tabKey = dataLayer.man.taAKV.getByKey(applicazione); } if (tabKey.Count > 0) { diff --git a/C-TRACK/Web.config b/C-TRACK/Web.config index 46184c0..f67da5d 100644 --- a/C-TRACK/Web.config +++ b/C-TRACK/Web.config @@ -30,29 +30,6 @@ - - - - @@ -64,7 +41,6 @@ --> -