diff --git a/NKC_WF/site/PlannerReports.aspx b/NKC_WF/site/PlannerReports.aspx index c0b6768..d835932 100644 --- a/NKC_WF/site/PlannerReports.aspx +++ b/NKC_WF/site/PlannerReports.aspx @@ -12,11 +12,14 @@
-
+

Reports

- + +
+
+ Reload
@@ -30,11 +33,11 @@
- - + + - \ No newline at end of file + diff --git a/NKC_WF/site/PlannerReports.aspx.cs b/NKC_WF/site/PlannerReports.aspx.cs index 1486bbd..3a77040 100644 --- a/NKC_WF/site/PlannerReports.aspx.cs +++ b/NKC_WF/site/PlannerReports.aspx.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using System.Threading; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; @@ -74,6 +75,7 @@ namespace NKC_WF.site private void TryUpdateModel() { + Thread.Sleep(200); DateTime oggi = DateTime.Today; // verifica se ci sia VETO x update da redis string rawVal = memLayer.ML.getRSV(ComLib.redVetoDayStats); @@ -153,8 +155,8 @@ namespace NKC_WF.site ((SiteMaster)this.Master).showSearch = false; doUpdate(); } + //TryUpdateModel(); cmp_reportSelector.eh_doRefresh += Cmp_reportSelector_eh_doRefresh; - TryUpdateModel(); } #endregion Protected Methods @@ -177,5 +179,10 @@ namespace NKC_WF.site } #endregion Public Methods + + protected void lbtRefreshData_Click(object sender, EventArgs e) + { + TryUpdateModel(); + } } } \ No newline at end of file diff --git a/NKC_WF/site/PlannerReports.aspx.designer.cs b/NKC_WF/site/PlannerReports.aspx.designer.cs index 4d91ff4..58148b8 100644 --- a/NKC_WF/site/PlannerReports.aspx.designer.cs +++ b/NKC_WF/site/PlannerReports.aspx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace NKC_WF.site @@ -15,47 +15,56 @@ namespace NKC_WF.site { /// - /// Controllo cmp_reportSelector. + /// cmp_reportSelector control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_reportSelector cmp_reportSelector; /// - /// Controllo lblInstruction. + /// lbtRefreshData control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtRefreshData; + + /// + /// lblInstruction control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblInstruction; /// - /// Controllo cmp_SheetsStats. + /// cmp_SheetsStats control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_SheetsStats cmp_SheetsStats; /// - /// Controllo cmp_BatchStatsList. + /// cmp_BatchStatsList control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_BatchStatsList cmp_BatchStatsList; /// - /// Controllo cmp_DailyStatsList. + /// cmp_DailyStatsList control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::NKC_WF.WebUserControls.cmp_DailyStatsList cmp_DailyStatsList; }