diff --git a/GMW/Web.config b/GMW/Web.config index 73676deb..733320a8 100644 --- a/GMW/Web.config +++ b/GMW/Web.config @@ -61,7 +61,7 @@ - + @@ -118,7 +118,8 @@ - + + diff --git a/GMW/WebUserControls/mod_SearchProvUDC.ascx.cs b/GMW/WebUserControls/mod_SearchProvUDC.ascx.cs index 3db9d7b4..3b574a51 100644 --- a/GMW/WebUserControls/mod_SearchProvUDC.ascx.cs +++ b/GMW/WebUserControls/mod_SearchProvUDC.ascx.cs @@ -44,7 +44,7 @@ namespace GMW.WebUserControls mod_detailUDC1.Visible = false; mod_execUDC1.Visible = false; memLayer.ML.setSessionVal("RicercaUdcAttiva", false, false); - memLayer.ML.setSessionVal("_inizio", DateTime.Now.AddYears(-10)); + memLayer.ML.setSessionVal("_inizio", DateTime.Now.AddYears(-memLayer.ML.confReadInt("defaultYearSAO"))); memLayer.ML.setSessionVal("_fine", DateTime.Now.AddDays(1)); } mod_listUDC1.eh_selValore += new EventHandler(mod_listUDC1_eh_selValore); diff --git a/GMW/WebUserControls/mod_gestPrinterPost.ascx.cs b/GMW/WebUserControls/mod_gestPrinterPost.ascx.cs index 06476227..d329290e 100644 --- a/GMW/WebUserControls/mod_gestPrinterPost.ascx.cs +++ b/GMW/WebUserControls/mod_gestPrinterPost.ascx.cs @@ -69,7 +69,7 @@ namespace GMW.WebUserControls { int trovati = 0; // controllo se ci siano celle associate - trovati = MagClass.magazzino.taSAO.getLastByPost(DateTime.Now.AddYears(-10), DateTime.Now.AddDays(1),idxObj.ToString()).Rows.Count; + trovati = MagClass.magazzino.taSAO.getLastByPost(DateTime.Now.AddYears(-memLayer.ML.confReadInt("defaultYearSAO")), DateTime.Now.AddDays(1),idxObj.ToString()).Rows.Count; // controllo se ci sono record correlati... if (trovati > 0) {