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