Fix serializzazioni varie, vers 1033
This commit is contained in:
@@ -65,7 +65,8 @@ namespace MP_SITE.WebUserControls
|
||||
string hashKeyMSE = memLayer.ML.redHash("Tab:MSE:" + IdxMacchina);
|
||||
string hashKeyAS = memLayer.ML.redHash("Tab:AnagStati");
|
||||
string serVal = "";
|
||||
if (memLayer.ML.redHashPresent(hashKeyMSE))
|
||||
if (memLayer.ML.redKeyPresent(hashKeyMSE))
|
||||
//if (memLayer.ML.redHashPresent(hashKeyMSE))
|
||||
{
|
||||
serVal = memLayer.ML.getRSV(hashKeyMSE);
|
||||
tabMSE = (DS_ProdTempi.MappaStatoExplDataTable)memLayer.ML.deserializeVal(serVal);
|
||||
|
||||
+5
-2
@@ -372,7 +372,9 @@ public class resoconti
|
||||
Dictionary<int, string> answ = new Dictionary<int, string>();
|
||||
if (memLayer.ML.isInCacheObject("codColore"))
|
||||
{
|
||||
answ = (Dictionary<int, string>)memLayer.ML.objCacheObj("codColore");
|
||||
string redKey = memLayer.ML.redHash("codColore");
|
||||
string serVal = memLayer.ML.getRSV(redKey);
|
||||
answ = JsonConvert.DeserializeObject<Dictionary<int, string>>(serVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -401,7 +403,8 @@ public class resoconti
|
||||
}
|
||||
answ.Add(item.IdxStato, _colore);
|
||||
}
|
||||
memLayer.ML.setCacheVal("codColore", answ, true);
|
||||
string serVal = JsonConvert.SerializeObject(answ);
|
||||
memLayer.ML.setCacheVal("codColore", serVal, true);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user