diff --git a/C-TRACK/Web.config b/C-TRACK/Web.config
index 52d332c..493b869 100644
--- a/C-TRACK/Web.config
+++ b/C-TRACK/Web.config
@@ -30,7 +30,7 @@
-
+
diff --git a/C-TRACK/WebUserControls/mod_enrollByJumperAuthKey.ascx.cs b/C-TRACK/WebUserControls/mod_enrollByJumperAuthKey.ascx.cs
index 4f03d47..c9d4818 100644
--- a/C-TRACK/WebUserControls/mod_enrollByJumperAuthKey.ascx.cs
+++ b/C-TRACK/WebUserControls/mod_enrollByJumperAuthKey.ascx.cs
@@ -52,7 +52,6 @@ namespace C_TRACK.WebUserControls
if (fatto)
{
Response.Redirect("Login");
- //Response.Redirect("Default");
}
else
{
diff --git a/C-TRACK/WebUserControls/mod_menuTopCompact.ascx.cs b/C-TRACK/WebUserControls/mod_menuTopCompact.ascx.cs
index 3419f15..ae2317c 100644
--- a/C-TRACK/WebUserControls/mod_menuTopCompact.ascx.cs
+++ b/C-TRACK/WebUserControls/mod_menuTopCompact.ascx.cs
@@ -25,7 +25,7 @@ namespace C_TRACK.WebUserControls
// SE non sono in "safe page"
if (memLayer.ML.CRS("_loginPages").ToLower().IndexOf(lastPage.ToLower()) < 0)
{
- Response.Redirect("login");
+ Response.Redirect("~/login");
}
}
else
diff --git a/C-TRACK/barcode.aspx.cs b/C-TRACK/barcode.aspx.cs
index 655b324..a098298 100644
--- a/C-TRACK/barcode.aspx.cs
+++ b/C-TRACK/barcode.aspx.cs
@@ -88,8 +88,12 @@ namespace C_TRACK
// Avvio...
stopwatch.Start();
traduciObj();
+#if false
+
// registro che i valori in cache sono scaduti...
lastDataRefresh = DateTime.Now.AddDays(-1);
+
+#endif
numDD = memLayer.ML.CRI("numDD");
cacheValSec = memLayer.ML.CRI("cacheValSec");
// registro
@@ -242,7 +246,7 @@ namespace C_TRACK
memLayer.ML.setCacheVal("lastBCodeDataRead", value);
if (logLevel > 5)
{
- logger.lg.scriviLog("impostata validità cache");
+ logger.lg.scriviLog("impostata validita cache");
}
}
}
@@ -271,7 +275,8 @@ namespace C_TRACK
get
{
Dictionary answ = new Dictionary();
- if (memLayer.ML.isInCacheObject("valoriAmmessiBCode") && cacheValida)
+ bool valIncache = memLayer.ML.isInCacheObject("valoriAmmessiBCode");
+ if (valIncache && cacheValida)
{
answ = (Dictionary)memLayer.ML.objCacheObj("valoriAmmessiBCode");
}
@@ -280,6 +285,7 @@ namespace C_TRACK
set
{
memLayer.ML.setCacheVal("valoriAmmessiBCode", value);
+ lastDataRefresh = DateTime.Now;
}
}
///
@@ -299,6 +305,7 @@ namespace C_TRACK
set
{
memLayer.ML.setCacheVal("comandiAmmessiBCode", value);
+ lastDataRefresh = DateTime.Now;
}
}
///
@@ -475,7 +482,7 @@ namespace C_TRACK
private void eseguiComando()
{
// in primis: sono in esecuzione, x cui il comando è valido...
- string msg2show = "";
+ string msg2show = "";
var testNumTask = Regex.Match(mod_barcode1.comandoRegistrato.valore, reNumTask);
// verifico se cmd setup utente...
if (mod_barcode1.comandoRegistrato.prevCmdIn == "RESOP")
@@ -497,7 +504,7 @@ namespace C_TRACK
CurrNumTask = "";
// torno a pagina base...
Response.Redirect("~/barcode");
- }
+ }
else if (mod_barcode1.comandoRegistrato.valore.Contains("OPR."))
{
// imposto operatore
@@ -560,7 +567,7 @@ namespace C_TRACK
dataLayer.man.taTR.insertQuery(CodOpr, CodPost, CurrNumTask, mod_barcode1.comandoRegistrato.prevCmdIn, DateTime.Now);
// controllo se sia fase di CHIUSURA DEFINITIVA registro con INIZIO e FINE insieme e CHIUDO commessa...
var rigaFase = dataLayer.man.taAF.getByKey(mod_barcode1.comandoRegistrato.prevCmdIn)[0];
- if(rigaFase.CloseTask)
+ if (rigaFase.CloseTask)
{
// chiudo direttamente SIA fase che il TASK principale...
dataLayer.man.taTL.updateClose(CurrNumTask, true);