From df68e994cd193ebaf4b54c161f529796d60be3d8 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 5 Jun 2018 00:26:25 +0200 Subject: [PATCH] bozza persistenza 4 timeline (NON OK x scala...) --- MP-Site/WS/MPData.asmx.cs | 10 +++---- MP-Site/Web.config | 2 +- .../WebUserControls/mod_sequencerStatiJS.ascx | 18 ++++++------- MP-Site/test.aspx | 11 ++++---- MP-Site/test.aspx.designer.cs | 27 +++++++++++++++++++ 5 files changed, 48 insertions(+), 20 deletions(-) diff --git a/MP-Site/WS/MPData.asmx.cs b/MP-Site/WS/MPData.asmx.cs index abfc628d..2a37a456 100644 --- a/MP-Site/WS/MPData.asmx.cs +++ b/MP-Site/WS/MPData.asmx.cs @@ -99,7 +99,7 @@ namespace MoonPro.WS { needRecalc = false; answ = redJson; - logger.lg.scriviLog("Recuperato jsonSeq"); + logger.lg.scriviLog("Recuperato jsonSeq " + rKey); } catch { @@ -107,7 +107,7 @@ namespace MoonPro.WS } if (needRecalc) { - logger.lg.scriviLog("Inizio calcolo dati"); + logger.lg.scriviLog(string.Format("Inizio calcolo dati per {0}", rKey)); visjsDsItem[] items = new visjsDsItem[10]; List tlSerie; { @@ -128,9 +128,9 @@ namespace MoonPro.WS } } answ = js.Serialize(items); - // salvo in sessione l'oggetto... per 1 gg.. - memLayer.ML.setRSV(rKey, answ, 20); - logger.lg.scriviLog(string.Format("Salvataggio in sessione jsonSeq effettuato: {0} msec", stopwatch.ElapsedMilliseconds)); + // salvo in sessione l'oggetto... secondo durata impostata in web.config.. + memLayer.ML.setRSV(rKey, answ, 60 * memLayer.ML.CRI("seqCacheDurMin")); + logger.lg.scriviLog(string.Format("Salvataggio in sessione jsonSeq {0} effettuato", rKey)); } Context.Response.Write(answ); } diff --git a/MP-Site/Web.config b/MP-Site/Web.config index b3fa01a8..fe747c80 100644 --- a/MP-Site/Web.config +++ b/MP-Site/Web.config @@ -15,7 +15,7 @@ - + diff --git a/MP-Site/WebUserControls/mod_sequencerStatiJS.ascx b/MP-Site/WebUserControls/mod_sequencerStatiJS.ascx index 260cc97f..e8f54d56 100644 --- a/MP-Site/WebUserControls/mod_sequencerStatiJS.ascx +++ b/MP-Site/WebUserControls/mod_sequencerStatiJS.ascx @@ -1,6 +1,6 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sequencerStatiJS.ascx.cs" Inherits="MoonPro.WebUserControls.mod_sequencerStatiJS" %> -
+
@@ -8,11 +8,11 @@ - <%-- -
-
-
--%> - + + + + + <%-- + --%> diff --git a/MP-Site/test.aspx.designer.cs b/MP-Site/test.aspx.designer.cs index 7f6eb359..09c9288c 100644 --- a/MP-Site/test.aspx.designer.cs +++ b/MP-Site/test.aspx.designer.cs @@ -29,5 +29,32 @@ namespace MoonPro { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::MoonPro.WebUserControls.mod_sequencerStatiJS mod_sequencerStatiJS; + + /// + /// Controllo mod_sequencerStatiJS1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MoonPro.WebUserControls.mod_sequencerStatiJS mod_sequencerStatiJS1; + + /// + /// Controllo mod_sequencerStatiJS2. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MoonPro.WebUserControls.mod_sequencerStatiJS mod_sequencerStatiJS2; + + /// + /// Controllo mod_sequencerStatiJS3. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MoonPro.WebUserControls.mod_sequencerStatiJS mod_sequencerStatiJS3; } }