Visibilità scarti/controlli condizionale
This commit is contained in:
@@ -30,10 +30,10 @@
|
||||
<uc4:mod_confProd ID="mod_confProd1" runat="server" />
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<asp:HyperLink runat="server" ID="hlScarti" NavigateUrl="~/Scarti.aspx" CssClass="btn btn-info btn-lg btn-block"><i class="fa fa-bug"></i> Reg. SCARTI</asp:HyperLink>
|
||||
<asp:HyperLink runat="server" ID="hlScarti" NavigateUrl="~/Scarti" CssClass="btn btn-info btn-lg btn-block"><i class="fa fa-bug"></i> Reg. SCARTI</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<asp:HyperLink runat="server" ID="hlCOntrolli" NavigateUrl="~/Controlli.aspx" CssClass="btn btn-primary btn-lg btn-block"><i class="fa fa-wrench"></i> Reg.CONTROLLI</asp:HyperLink>
|
||||
<asp:HyperLink runat="server" ID="hlControlli" NavigateUrl="~/Controlli" CssClass="btn btn-primary btn-lg btn-block"><i class="fa fa-wrench"></i> Reg.CONTROLLI</asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
<%--<uc3:mod_regScarti runat="server" ID="mod_regScarti" />
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableScarti
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.cdvb("enableScarti");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableControlli
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.cdvb("enableControlli");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -58,13 +58,13 @@ namespace MoonProTablet {
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlScarti;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlCOntrolli.
|
||||
/// Controllo hlControlli.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlCOntrolli;
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlControlli;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_directLinks.
|
||||
|
||||
@@ -399,6 +399,7 @@
|
||||
<Content Include="fonts\fontawesome-webfont.eot" />
|
||||
<Content Include="images\iconDic\IconGen.pdn" />
|
||||
<Content Include="Content\bloccoMacc.less" />
|
||||
<Content Include="Reset.aspx" />
|
||||
<Content Include="Resources\Disegni\ND.docx" />
|
||||
<Content Include="Files\Disegni\ND.pdf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
@@ -672,6 +673,13 @@
|
||||
<Compile Include="RepProd_GG.aspx.designer.cs">
|
||||
<DependentUpon>RepProd_GG.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Reset.aspx.cs">
|
||||
<DependentUpon>Reset.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Reset.aspx.designer.cs">
|
||||
<DependentUpon>Reset.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Scarti.aspx.cs">
|
||||
<DependentUpon>Scarti.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
Reference in New Issue
Block a user