diff --git a/MP-ADM/BCode.aspx.cs b/MP-ADM/BCode.aspx.cs index 835a8951..b9b57b26 100644 --- a/MP-ADM/BCode.aspx.cs +++ b/MP-ADM/BCode.aspx.cs @@ -5,18 +5,7 @@ namespace MP_ADM { public partial class BCode : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - checkEnabled(); - string codPre = memLayer.ML.CRS("OptAdmBCode_CodPre"); - mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR"; - mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre; - mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase"); - mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo"); - } - } + #region Private Methods private void checkEnabled() { @@ -29,5 +18,25 @@ namespace MP_ADM } lblDataImportOut.Text = messaggio; } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + checkEnabled(); + string codPre = memLayer.ML.CRS("OptAdmBCode_CodPre"); + mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR"; + mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre; + mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase"); + mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo"); + ((MoonPro)this.Master).showSearch = true; + } + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/BasePage.cs b/MP-ADM/BasePage.cs index 52526ada..d20cc7f6 100644 --- a/MP-ADM/BasePage.cs +++ b/MP-ADM/BasePage.cs @@ -1,10 +1,22 @@ using MapoDb; using SteamWare; +using System; namespace MP_ADM { public class BasePage : System.Web.UI.Page { + #region Internal Fields + + /// + /// Oggetto datalayer specifico + /// + internal DataLayer DataLayerObj = new DataLayer(); + + #endregion Internal Fields + + #region Protected Properties + /// /// Prox pagina da aprire /// @@ -21,10 +33,9 @@ namespace MP_ADM } } - /// - /// Oggetto datalayer specifico - /// - internal DataLayer DataLayerObj = new DataLayer(); + #endregion Protected Properties + + #region Public Methods /// /// effettua traduzione del lemma @@ -45,5 +56,7 @@ namespace MP_ADM { return user_std.UtSn.TraduciEn(lemma); } + + #endregion Public Methods } } \ No newline at end of file diff --git a/MP-ADM/CTrackBCode.aspx.cs b/MP-ADM/CTrackBCode.aspx.cs index 602af42d..2309a345 100644 --- a/MP-ADM/CTrackBCode.aspx.cs +++ b/MP-ADM/CTrackBCode.aspx.cs @@ -5,16 +5,7 @@ namespace MP_ADM { public partial class CTrackBCode : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - ((MoonPro)this.Master).headCssClass = "bg-secondary text-warning"; - ((MoonPro)this.Master).mainCssClass = "table-secondary"; - checkEnabled(); - string codPre = memLayer.ML.CRS("OptAdmCTrack_CodPre"); - mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR"; - mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptCTrack_enbSelFase"); - mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptCTrack_CodGruppo"); - } + #region Private Methods private void checkEnabled() { @@ -27,5 +18,26 @@ namespace MP_ADM } lblDataImportOut.Text = messaggio; } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } + ((MoonPro)this.Master).headCssClass = "bg-secondary text-warning"; + ((MoonPro)this.Master).mainCssClass = "table-secondary"; + checkEnabled(); + string codPre = memLayer.ML.CRS("OptAdmCTrack_CodPre"); + mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR"; + mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptCTrack_enbSelFase"); + mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptCTrack_CodGruppo"); + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/DataImport.aspx.cs b/MP-ADM/DataImport.aspx.cs index 65ed933d..0d9b9082 100644 --- a/MP-ADM/DataImport.aspx.cs +++ b/MP-ADM/DataImport.aspx.cs @@ -5,10 +5,7 @@ namespace MP_ADM { public partial class DataImport : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - checkEnabled(); - } + #region Private Methods private void checkEnabled() { @@ -22,6 +19,10 @@ namespace MP_ADM lblDataImportOut.Text = messaggio; } + #endregion Private Methods + + #region Protected Methods + /// /// Esegue import dati /// @@ -37,5 +38,16 @@ namespace MP_ADM DataLayerObj.taWKS.All_ImportFile_Process(null, null, null, null, 0, 0); } } + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } + checkEnabled(); + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/GestKIT.aspx.cs b/MP-ADM/GestKIT.aspx.cs index 81b96802..0facece3 100644 --- a/MP-ADM/GestKIT.aspx.cs +++ b/MP-ADM/GestKIT.aspx.cs @@ -5,18 +5,7 @@ namespace MP_ADM { public partial class GestKIT : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - checkEnabled(); - string codPre = memLayer.ML.CRS("OptAdmKit_CodPre"); - mod_barcode.codOrdPre = codPre != "" ? codPre : "KIT"; - mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre; - mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase"); - mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo"); - mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato; - mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead; - mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit; - } + #region Private Methods private void checkEnabled() { @@ -31,21 +20,6 @@ namespace MP_ADM } } - private void Mod_gestKIT_eh_selKit(object sender, EventArgs e) - { - // invio ultimo kit creato a barcode... - mod_barcode.BCodeVal = mod_gestKIT.lastKitMade; - mod_barcode.processInput(); - } - - private void Mod_barcode_eh_dataRead(object sender, EventArgs e) - { - // verifico input su KIT x lettura "grezza" - string rawInput = mod_barcode.rawInput; - mod_gestKIT.lastInput = rawInput; - mod_gestKIT.doUpdate(); - } - private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e) { // verifico input su KIT x comando completo @@ -63,5 +37,43 @@ namespace MP_ADM } mod_gestKIT.doUpdate(); } + + private void Mod_barcode_eh_dataRead(object sender, EventArgs e) + { + // verifico input su KIT x lettura "grezza" + string rawInput = mod_barcode.rawInput; + mod_gestKIT.lastInput = rawInput; + mod_gestKIT.doUpdate(); + } + + private void Mod_gestKIT_eh_selKit(object sender, EventArgs e) + { + // invio ultimo kit creato a barcode... + mod_barcode.BCodeVal = mod_gestKIT.lastKitMade; + mod_barcode.processInput(); + } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } + checkEnabled(); + string codPre = memLayer.ML.CRS("OptAdmKit_CodPre"); + mod_barcode.codOrdPre = codPre != "" ? codPre : "KIT"; + mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre; + mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase"); + mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo"); + mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato; + mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead; + mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit; + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/GestKIT.aspx.designer.cs b/MP-ADM/GestKIT.aspx.designer.cs index 29a01959..370b8bdc 100644 --- a/MP-ADM/GestKIT.aspx.designer.cs +++ b/MP-ADM/GestKIT.aspx.designer.cs @@ -1,59 +1,61 @@ //------------------------------------------------------------------------------ -// -// 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 MP_ADM { - - - public partial class GestKIT { - +namespace MP_ADM +{ + + + public partial class GestKIT + { + /// - /// Controllo lblDataImportOut. + /// lblDataImportOut 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.Label lblDataImportOut; - + /// - /// Controllo divContent. + /// divContent 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.HtmlControls.HtmlGenericControl divContent; - + /// - /// Controllo mod_gestKIT. + /// mod_gestKIT 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::MP_ADM.WebUserControls.mod_gestKIT mod_gestKIT; - + /// - /// Controllo mod_barcode. + /// mod_barcode 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::MP_ADM.WebUserControls.mod_barcode mod_barcode; - + /// - /// Controllo mod_gestPromODL. + /// mod_gestPromODL 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::MP_ADM.WebUserControls.mod_gestPromODL mod_gestPromODL; } diff --git a/MP-ADM/HwSwInfo.aspx.cs b/MP-ADM/HwSwInfo.aspx.cs index 27c6f153..7016fe62 100644 --- a/MP-ADM/HwSwInfo.aspx.cs +++ b/MP-ADM/HwSwInfo.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class HwSwInfo : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/ImageArchive.aspx.cs b/MP-ADM/ImageArchive.aspx.cs index 197d08b0..1c56a661 100644 --- a/MP-ADM/ImageArchive.aspx.cs +++ b/MP-ADM/ImageArchive.aspx.cs @@ -9,9 +9,16 @@ namespace MP_ADM { public partial class ImageArchive : System.Web.UI.Page { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/Planner.aspx.cs b/MP-ADM/Planner.aspx.cs index 2d5318f3..e3bdaaf7 100644 --- a/MP-ADM/Planner.aspx.cs +++ b/MP-ADM/Planner.aspx.cs @@ -84,6 +84,7 @@ namespace MP_ADM { if (!Page.IsPostBack) { + ((MoonPro)this.Master).showSearch = false; checkFixPromIn(); } checkEnabled(); diff --git a/MP-ADM/StoricoTC.aspx.cs b/MP-ADM/StoricoTC.aspx.cs index e74aca58..302293fc 100644 --- a/MP-ADM/StoricoTC.aspx.cs +++ b/MP-ADM/StoricoTC.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class StoricoTC : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/TechSheetMan.aspx.cs b/MP-ADM/TechSheetMan.aspx.cs index 210dab53..83e29ecd 100644 --- a/MP-ADM/TechSheetMan.aspx.cs +++ b/MP-ADM/TechSheetMan.aspx.cs @@ -9,9 +9,16 @@ namespace MP_ADM { public partial class TechSheetMan : System.Web.UI.Page { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/Vocabolario.aspx.cs b/MP-ADM/Vocabolario.aspx.cs index 6860a68f..d89d0473 100644 --- a/MP-ADM/Vocabolario.aspx.cs +++ b/MP-ADM/Vocabolario.aspx.cs @@ -48,6 +48,7 @@ namespace MP_ADM { if (!Page.IsPostBack) { + ((MoonPro)this.Master).showSearch = false; cmp_righePag.numRowPag = 10; cmp_vocabolario.pageSize = cmp_righePag.numRowPag; } diff --git a/MP-ADM/WebMasterPages/MoonPro.master b/MP-ADM/WebMasterPages/MoonPro.master index 6eee9cca..10933a4f 100644 --- a/MP-ADM/WebMasterPages/MoonPro.master +++ b/MP-ADM/WebMasterPages/MoonPro.master @@ -65,7 +65,7 @@
- +
diff --git a/MP-ADM/WebMasterPages/MoonPro.master.cs b/MP-ADM/WebMasterPages/MoonPro.master.cs index 45eaec75..a906d030 100644 --- a/MP-ADM/WebMasterPages/MoonPro.master.cs +++ b/MP-ADM/WebMasterPages/MoonPro.master.cs @@ -2,12 +2,31 @@ using System; public partial class MoonPro : System.Web.UI.MasterPage { - protected void Page_Load(object sender, EventArgs e) - { - } + #region Protected Fields + + protected string _headCssClass; protected string _mainCssClass; + #endregion Protected Fields + + #region Public Properties + + /// + /// classe css area HEADER + /// + public string headCssClass + { + get + { + return _headCssClass; + } + set + { + _headCssClass = value; + } + } + /// /// classe css area BODY /// @@ -23,20 +42,25 @@ public partial class MoonPro : System.Web.UI.MasterPage } } - protected string _headCssClass; - - /// - /// classe css area HEADER - /// - public string headCssClass + public bool showSearch { get { - return _headCssClass; + return Mod_ricercaGenerica1.Visible; } set { - _headCssClass = value; + Mod_ricercaGenerica1.Visible = value; } } + + #endregion Public Properties + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + } + + #endregion Protected Methods } \ No newline at end of file diff --git a/MP-ADM/WebMasterPages/MoonPro.master.designer.cs b/MP-ADM/WebMasterPages/MoonPro.master.designer.cs index cc9cc78c..de846327 100644 --- a/MP-ADM/WebMasterPages/MoonPro.master.designer.cs +++ b/MP-ADM/WebMasterPages/MoonPro.master.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. +// //------------------------------------------------------------------------------ @@ -13,101 +13,101 @@ public partial class MoonPro { /// - /// Controllo PlaceHolder1. + /// PlaceHolder1 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.PlaceHolder PlaceHolder1; /// - /// Controllo BundleReference2. + /// BundleReference2 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::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2; /// - /// Controllo BundleReference1. + /// BundleReference1 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::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1; /// - /// Controllo form1. + /// form1 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.HtmlControls.HtmlForm form1; /// - /// Controllo ScriptManager1. + /// ScriptManager1 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.ScriptManager ScriptManager1; /// - /// Controllo Mod_menuTop1. + /// Mod_menuTop1 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::MP_ADM.WebUserControls.mod_menuTop Mod_menuTop1; /// - /// Controllo UpdatePanel1. + /// UpdatePanel1 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.UpdatePanel UpdatePanel1; /// - /// Controllo Mod_pageTitleAndSearch1. + /// Mod_pageTitleAndSearch1 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::mod_pageTitleAndSearch Mod_pageTitleAndSearch1; /// - /// Controllo Mod_ricercaGenerica1. + /// Mod_ricercaGenerica1 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::mod_ricercaGenerica Mod_ricercaGenerica1; /// - /// Controllo ContentPlaceHolder1. + /// ContentPlaceHolder1 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.ContentPlaceHolder ContentPlaceHolder1; /// - /// Controllo mod_menuBottom. + /// mod_menuBottom 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::MP_ADM.WebUserControls.mod_menuBottom mod_menuBottom; } diff --git a/MP-ADM/anagArticoli.aspx.cs b/MP-ADM/anagArticoli.aspx.cs index da4e4471..5738e022 100644 --- a/MP-ADM/anagArticoli.aspx.cs +++ b/MP-ADM/anagArticoli.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class anagArticoli : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = true; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/aperturaImpianti.aspx.cs b/MP-ADM/aperturaImpianti.aspx.cs index fcaa0642..975dab37 100644 --- a/MP-ADM/aperturaImpianti.aspx.cs +++ b/MP-ADM/aperturaImpianti.aspx.cs @@ -4,8 +4,5 @@ namespace MP_ADM { public partial class aperturaImpianti : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - } } } \ No newline at end of file diff --git a/MP-ADM/approvazioneODL.aspx.cs b/MP-ADM/approvazioneODL.aspx.cs index f25f1269..d56e2d48 100644 --- a/MP-ADM/approvazioneODL.aspx.cs +++ b/MP-ADM/approvazioneODL.aspx.cs @@ -5,10 +5,7 @@ namespace MP_ADM { public partial class approvazioneODL : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - checkEnabled(); - } + #region Private Methods private void checkEnabled() { @@ -21,5 +18,20 @@ namespace MP_ADM } lblDataImportOut.Text = messaggio; } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } + checkEnabled(); + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/approvazioneProd.aspx.cs b/MP-ADM/approvazioneProd.aspx.cs index 28fc43f1..a70a08e7 100644 --- a/MP-ADM/approvazioneProd.aspx.cs +++ b/MP-ADM/approvazioneProd.aspx.cs @@ -5,10 +5,7 @@ namespace MP_ADM { public partial class approvazioneProd : BasePage { - protected void Page_Load(object sender, EventArgs e) - { - checkEnabled(); - } + #region Private Methods private void checkEnabled() { @@ -21,5 +18,20 @@ namespace MP_ADM } lblDataImportOut.Text = messaggio; } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } + checkEnabled(); + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/calendChiusura.aspx.cs b/MP-ADM/calendChiusura.aspx.cs index 0f07ebc4..f2680714 100644 --- a/MP-ADM/calendChiusura.aspx.cs +++ b/MP-ADM/calendChiusura.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class calendChiusura : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/gestPromesseODL.aspx.cs b/MP-ADM/gestPromesseODL.aspx.cs index 378bae04..a8ac89b4 100644 --- a/MP-ADM/gestPromesseODL.aspx.cs +++ b/MP-ADM/gestPromesseODL.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class gestPromesseODL : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/gestioneDatiMacchine.aspx.cs b/MP-ADM/gestioneDatiMacchine.aspx.cs index 192048c1..a3986bfc 100644 --- a/MP-ADM/gestioneDatiMacchine.aspx.cs +++ b/MP-ADM/gestioneDatiMacchine.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class gestioneDatiMacchine : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/gestioneODL.aspx.cs b/MP-ADM/gestioneODL.aspx.cs index 2adabdbb..54dab926 100644 --- a/MP-ADM/gestioneODL.aspx.cs +++ b/MP-ADM/gestioneODL.aspx.cs @@ -4,8 +4,16 @@ namespace MP_ADM { public partial class gestioneODL : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-ADM/menu.aspx.cs b/MP-ADM/menu.aspx.cs index f50fba71..ed030670 100644 --- a/MP-ADM/menu.aspx.cs +++ b/MP-ADM/menu.aspx.cs @@ -1,6 +1,19 @@ +using System; + namespace MP_ADM { public partial class menu : BasePage { + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + ((MoonPro)this.Master).showSearch = false; + } + } + + #endregion Protected Methods } } \ No newline at end of file