From 8567bd35cdcf49341464ed9fccf92f1aaf1aa301 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 10 Oct 2018 17:59:02 +0200 Subject: [PATCH] =?UTF-8?q?Visibilit=C3=A0=20scarti/controlli=20condiziona?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MP-TAB/DettaglioMacchina.aspx | 4 ++-- MP-TAB/DettaglioMacchina.aspx.cs | 25 +++++++++++++++++++++-- MP-TAB/DettaglioMacchina.aspx.designer.cs | 4 ++-- MP-TAB/MP-TAB.csproj | 8 ++++++++ 4 files changed, 35 insertions(+), 6 deletions(-) diff --git a/MP-TAB/DettaglioMacchina.aspx b/MP-TAB/DettaglioMacchina.aspx index 7c4629ee..ce727e9e 100644 --- a/MP-TAB/DettaglioMacchina.aspx +++ b/MP-TAB/DettaglioMacchina.aspx @@ -30,10 +30,10 @@
- Reg. SCARTI + Reg. SCARTI
- Reg.CONTROLLI + Reg.CONTROLLI
<%-- diff --git a/MP-TAB/DettaglioMacchina.aspx.cs b/MP-TAB/DettaglioMacchina.aspx.cs index 2035cb4f..19591386 100644 --- a/MP-TAB/DettaglioMacchina.aspx.cs +++ b/MP-TAB/DettaglioMacchina.aspx.cs @@ -1,7 +1,6 @@ using SteamWare; using System; using System.Web.UI; -using WebMasterPages; namespace MoonProTablet { @@ -25,7 +24,9 @@ namespace MoonProTablet { if (!Page.IsPostBack) { - Session["TipoLink"] = "DetMacc"; + memLayer.ML.setSessionVal("TipoLink", "DetMacc"); + hlScarti.Visible = enableScarti; + hlControlli.Visible = enableControlli; } mod_confProd1.eh_newVal += mod_confProd1_eh_newVal; mod_confProd1.eh_reset += mod_confProd1_eh_reset; @@ -48,5 +49,25 @@ namespace MoonProTablet { mod_dettMacchina1.doUpdate(); } + /// + /// Verifica abilitazione gestione scarti + /// + public bool enableScarti + { + get + { + return memLayer.ML.cdvb("enableScarti"); + } + } + /// + /// Verifica abilitazione gestione scarti + /// + public bool enableControlli + { + get + { + return memLayer.ML.cdvb("enableControlli"); + } + } } } \ No newline at end of file diff --git a/MP-TAB/DettaglioMacchina.aspx.designer.cs b/MP-TAB/DettaglioMacchina.aspx.designer.cs index 1ad76954..51074c40 100644 --- a/MP-TAB/DettaglioMacchina.aspx.designer.cs +++ b/MP-TAB/DettaglioMacchina.aspx.designer.cs @@ -58,13 +58,13 @@ namespace MoonProTablet { protected global::System.Web.UI.WebControls.HyperLink hlScarti; /// - /// Controllo hlCOntrolli. + /// Controllo hlControlli. /// /// /// 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.HyperLink hlCOntrolli; + protected global::System.Web.UI.WebControls.HyperLink hlControlli; /// /// Controllo mod_directLinks. diff --git a/MP-TAB/MP-TAB.csproj b/MP-TAB/MP-TAB.csproj index 0c7e6b4e..95967276 100644 --- a/MP-TAB/MP-TAB.csproj +++ b/MP-TAB/MP-TAB.csproj @@ -399,6 +399,7 @@ + Always @@ -672,6 +673,13 @@ RepProd_GG.aspx + + Reset.aspx + ASPXCodeBehind + + + Reset.aspx + Scarti.aspx ASPXCodeBehind