From 10bf95882774dd9d3dc9048897e6ae303e5cccd9 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 4 Sep 2020 18:13:07 +0200 Subject: [PATCH] meno errori, ma ancora chart NON corretto in update panel... sospendo... --- .../WebMasterPages/AjaxSimpleFull.Master | 8 +- .../AjaxSimpleFull.Master.designer.cs | 159 +++++----- GPW_Commesse/WebUserControls/cmp_chart.ascx | 40 +-- .../WebUserControls/cmp_chart.ascx.cs | 14 - .../cmp_chart.ascx.designer.cs | 9 - .../WebUserControls/mod_commUtLog.ascx | 281 +++++++++--------- .../WebUserControls/mod_commUtLog.ascx.cs | 9 +- .../mod_commUtLog.ascx.designer.cs | 22 +- GPW_Commesse/test01.aspx | 2 +- 9 files changed, 268 insertions(+), 276 deletions(-) diff --git a/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master b/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master index 3b970bd..a1ab0fa 100644 --- a/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master +++ b/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master @@ -69,12 +69,12 @@
- - + <%-- + --%> - - + <%-- + --%>
diff --git a/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master.designer.cs b/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master.designer.cs index 6472793..d78bba8 100644 --- a/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master.designer.cs +++ b/GPW_Commesse/WebMasterPages/AjaxSimpleFull.Master.designer.cs @@ -11,97 +11,88 @@ namespace GPW.WebMasterPages { - public partial class AjaxSimpleFull - { + public partial class AjaxSimpleFull + { - /// - /// Controllo Head1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + /// + /// Controllo Head1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - /// - /// Controllo BundleReference2. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2; + /// + /// Controllo BundleReference2. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2; - /// - /// Controllo BundleReference1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1; + /// + /// Controllo BundleReference1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1; - /// - /// Controllo PlaceHolder1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1; + /// + /// Controllo PlaceHolder1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1; - /// - /// Controllo form1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm form1; + /// + /// Controllo form1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; - /// - /// Controllo sm. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.ScriptManager sm; + /// + /// Controllo sm. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.ScriptManager sm; - /// - /// Controllo mod_menuTopFull1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::GPW_Commesse.WebUserControls.mod_menuTopFull mod_menuTopFull1; + /// + /// Controllo mod_menuTopFull1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GPW_Commesse.WebUserControls.mod_menuTopFull mod_menuTopFull1; - /// - /// Controllo upMain. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.UpdatePanel upMain; + /// + /// Controllo cph1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1; - /// - /// Controllo cph1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1; - - /// - /// Controllo mod_menuBottomFullpage. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::GPW_Commesse.WebUserControls.mod_menuBottomFullpage mod_menuBottomFullpage; - } + /// + /// Controllo mod_menuBottomFullpage. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::GPW_Commesse.WebUserControls.mod_menuBottomFullpage mod_menuBottomFullpage; + } } diff --git a/GPW_Commesse/WebUserControls/cmp_chart.ascx b/GPW_Commesse/WebUserControls/cmp_chart.ascx index 90aaccd..d080feb 100644 --- a/GPW_Commesse/WebUserControls/cmp_chart.ascx +++ b/GPW_Commesse/WebUserControls/cmp_chart.ascx @@ -5,18 +5,15 @@ var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_pageLoaded(function () { - // chiamo recupero dati + plot della TS e dell'Histogram - plotTS(); - plotHist(); - console.log('prmForceReloadStart!'); + redrawAll(); + //console.log('add_pageLoaded!'); }); - prm.add_endRequest(function () { - // chiamo recupero dati + plot della TS e dell'Histogram - plotTS(); - plotHist(); - console.log('prmForceReloadEnd!'); + //prm.add_endRequest(function () { + // redrawAll(); + // console.log('add_endRequest!'); + //}); - }); + //Sys.Application.add_load(redrawAll); // funzione eseguita se successo al caricamento function OnSuccess_(reponse) { @@ -60,7 +57,7 @@ options: myOptions }); - console.log('TS draw!'); + //console.log('TS draw!'); } // errore in reload! function OnErrorCall_(repo) { @@ -143,26 +140,21 @@ }); } - // funzione di drawing ad OGNI pageload! + function redrawAll() { + console.log('numRec: <%=ddlMaxNum.SelectedValue%>'); + plotTS(); + plotHist(); + } + + // funzione di drawing ad OGNI pageload! function pageLoad() { - console.log('visible: <%=hfShowMe.Value %>'); - // verifico SE abilitato sho... - if ('<%=hfShowMe.Value %>'=='False') { - console.log('hidden!!'); - } - else { - // chiamo recupero dati + plot della TS e dell'Histogram - plotTS(); - plotHist(); - console.log('pageLoad!'); - } + //redrawAll(); } -
Periodo
diff --git a/GPW_Commesse/WebUserControls/cmp_chart.ascx.cs b/GPW_Commesse/WebUserControls/cmp_chart.ascx.cs index f1d1dc2..1783b62 100644 --- a/GPW_Commesse/WebUserControls/cmp_chart.ascx.cs +++ b/GPW_Commesse/WebUserControls/cmp_chart.ascx.cs @@ -28,20 +28,6 @@ namespace GPW_Commesse.WebUserControls } } - public bool showMe - { - get - { - bool answ = false; - bool.TryParse(hfShowMe.Value, out answ); - return answ; - } - set - { - hfShowMe.Value = $"{value}"; - } - } - protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) diff --git a/GPW_Commesse/WebUserControls/cmp_chart.ascx.designer.cs b/GPW_Commesse/WebUserControls/cmp_chart.ascx.designer.cs index f54cec1..4d36c53 100644 --- a/GPW_Commesse/WebUserControls/cmp_chart.ascx.designer.cs +++ b/GPW_Commesse/WebUserControls/cmp_chart.ascx.designer.cs @@ -32,15 +32,6 @@ namespace GPW_Commesse.WebUserControls /// protected global::System.Web.UI.WebControls.HiddenField hfData; - /// - /// Controllo hfShowMe. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HiddenField hfShowMe; - /// /// Controllo ddlMaxNum. /// diff --git a/GPW_Commesse/WebUserControls/mod_commUtLog.ascx b/GPW_Commesse/WebUserControls/mod_commUtLog.ascx index 0590fd2..4f605ea 100644 --- a/GPW_Commesse/WebUserControls/mod_commUtLog.ascx +++ b/GPW_Commesse/WebUserControls/mod_commUtLog.ascx @@ -14,148 +14,157 @@ - -
-
-
-
-
-
- -
-
- Sel globale: + +
+
+ + +
+
+ +
+
+ Sel globale: +
-
-
-
- + + + + +
+
+ +
+
+ +
-
- -
-
-
-
- -
- -
-
- -
-
- -
-
-
-
- - - - No record - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- -
- + + + + +
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+ + + + No record + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ - -
-
-
- - - - - - - - - - - - - -
+ +
+ +
+ + - -
- - -
- -
-
- - - - - - -
- -
-
- -
- - - - - - - - - - - -
-
- -
- -
-
-
- - + + + + + + + + + + +
+ + +
+
+ +
+ +
+
+ +
+ + + + +
+ +
+
+ +
+ + + + + + + + + + + +
+
+ +
+
-
- +
+
+ + +
+
+ +
-
-
+ +
- +
diff --git a/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.cs b/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.cs index 3d0f0b0..4657b85 100644 --- a/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.cs +++ b/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.cs @@ -132,6 +132,8 @@ namespace GPW_Commesse.WebUserControls { activeMode = modoCommesse.elenco; showPanels(); + grView.SelectedIndex = -1; + grView.DataBind(); } private void Cmp_toggle_ehToggle(object sender, EventArgs e) @@ -395,9 +397,12 @@ namespace GPW_Commesse.WebUserControls pnlEditOre.Visible = timbr; mod_commAttivitaDesk1.Visible = commesse; mod_commUtMancTimbr1.Visible = timbr; - cmp_rilTemp.Visible = temp; - cmp_chart.showMe = true; divRilTemp.Visible = temp; + cmp_rilTemp.Visible = temp; + cmp_chart.Visible = true; + + upMain.Update(); + upCharts.Update(); } /// /// chiamata del button close (entrambi) diff --git a/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.designer.cs b/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.designer.cs index 43f5db7..9155733 100644 --- a/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.designer.cs +++ b/GPW_Commesse/WebUserControls/mod_commUtLog.ascx.designer.cs @@ -33,13 +33,13 @@ namespace GPW_Commesse.WebUserControls protected global::System.Web.UI.WebControls.HiddenField hfDataTo; /// - /// Controllo pnlAll. + /// Controllo upFilt. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.Panel pnlAll; + protected global::System.Web.UI.UpdatePanel upFilt; /// /// Controllo mod_periodoAnalisi1. @@ -59,6 +59,15 @@ namespace GPW_Commesse.WebUserControls /// protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggle; + /// + /// Controllo upCharts. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.UpdatePanel upCharts; + /// /// Controllo divRilTemp. /// @@ -86,6 +95,15 @@ namespace GPW_Commesse.WebUserControls /// protected global::GPW_Commesse.WebUserControls.cmp_chart cmp_chart; + /// + /// Controllo upMain. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.UpdatePanel upMain; + /// /// Controllo divSx. /// diff --git a/GPW_Commesse/test01.aspx b/GPW_Commesse/test01.aspx index 7502c38..1d2fc08 100644 --- a/GPW_Commesse/test01.aspx +++ b/GPW_Commesse/test01.aspx @@ -5,7 +5,7 @@ <%-- --%> - + <%-- --%>