fix reset squadra con apposito menu footer
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResetSquadra.aspx.cs" Inherits="WebSCR.ResetSquadra" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace WebSCR
|
||||
{
|
||||
public partial class ResetSquadra : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// resetto dati squadra e rimando a squadra!
|
||||
memLayer.ML.emptyCookieVal("colorSquadraCurr");
|
||||
memLayer.ML.emptyCookieVal("SquadraCurr");
|
||||
memLayer.ML.emptyCookieVal("CodSquadra");
|
||||
memLayer.ML.emptyCookieVal("DataRif");
|
||||
memLayer.ML.emptyCookieVal("NumGg");
|
||||
memLayer.ML.emptyCookieVal("Data");
|
||||
memLayer.ML.emptyCookieVal("IdxImpegno");
|
||||
memLayer.ML.emptyCookieVal("CodCliente");
|
||||
memLayer.ML.emptyCookieVal("Indir");
|
||||
memLayer.ML.emptySessionVal("Cliente");
|
||||
Response.Redirect("Squadra");
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR
|
||||
{
|
||||
|
||||
|
||||
public partial class ResetSquadra
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
}
|
||||
}
|
||||
@@ -335,6 +335,7 @@
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="jumper.aspx" />
|
||||
<Content Include="NuovoImpegno.aspx" />
|
||||
<Content Include="ResetSquadra.aspx" />
|
||||
<Content Include="Scripts\jquery-1.7.1.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-1.7.1.js" />
|
||||
<Content Include="Scripts\jquery-1.7.1.min.js" />
|
||||
@@ -444,6 +445,13 @@
|
||||
<DependentUpon>NuovoImpegno.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ResetSquadra.aspx.cs">
|
||||
<DependentUpon>ResetSquadra.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ResetSquadra.aspx.designer.cs">
|
||||
<DependentUpon>ResetSquadra.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Setup.aspx.cs">
|
||||
<DependentUpon>Setup.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_footer.ascx.cs" Inherits="WebSCR.WebUserControls.mod_footer" %>
|
||||
<div id="divFooterMenu" runat="server" data-role="navbar">
|
||||
<ul>
|
||||
<ul runat="server" id="ulStd">
|
||||
<li><a href="Clienti" data-icon="user" class='<%: liClass("Clienti") %>'>Clienti</a></li>
|
||||
<li><a href="Interventi" data-icon="mail" class='<%: liClass("Interventi") %>'>Gestione Interventi</a></li>
|
||||
<li><a href="Pianificazione" data-icon="calendar" class='<%: liClass("Pianificazione") %>'>Pianificazione</a></li>
|
||||
<li><a href="Squadra" data-icon="navigation" class='<%: liClass("Squadre") %>'>Squadre/Consegne</a></li>
|
||||
<li><a href="Setup" data-icon="gear" class='<%: liClass("Setup") %>'>Setup</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul runat="server" id="ulSquadra" visible="false">
|
||||
<li><a href="ResetSquadra" data-icon="recycle" class='<%: liClass("Squadre") %>'>Reset Squadra</a></li>
|
||||
<li><a href="Interventi" data-icon="mail" class='<%: liClass("Interventi") %>'>Gestione Interventi</a></li>
|
||||
<li><a href="Squadra" data-icon="navigation" class='<%: liClass("Squadre") %>'>Squadre/Consegne</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -16,6 +16,14 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
divFooterMenu.Visible = false;
|
||||
}
|
||||
bool showMenuSquadra = false;
|
||||
// in base alla pagina corrente decido cosa mostrare in footer...
|
||||
if (devicesAuthProxy.pagCorrente == "Squadra")
|
||||
{
|
||||
showMenuSquadra = true;
|
||||
}
|
||||
ulStd.Visible = !showMenuSquadra;
|
||||
ulSquadra.Visible = showMenuSquadra;
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce stato active se pagina corrente...
|
||||
|
||||
+18
@@ -20,5 +20,23 @@ namespace WebSCR.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divFooterMenu;
|
||||
|
||||
/// <summary>
|
||||
/// ulStd control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl ulStd;
|
||||
|
||||
/// <summary>
|
||||
/// ulSquadra control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl ulSquadra;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<a href="Default" data-icon="home" class="ui-btn-left">
|
||||
<asp:Label ID="lblVers" runat="server" Font-Bold="false" /></a>
|
||||
<div class="ui-btn-right">
|
||||
<asp:LinkButton runat="server" ID="lbtResetSquadra" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-recycle ui-btn-icon-right ui-btn-inline" Text="Reset Squadra" OnClick="lbtResetSquadra_Click" OnClientClick="return confirm('Sei sicuro di voler resettare la selezione della squadra?')"/>
|
||||
<a href="UserAdmin" data-icon="lock" class="ui-btn ui-shadow ui-corner-all ui-icon-lock ui-btn-icon-right ui-btn-inline">User Admin</a>
|
||||
<%--<asp:LinkButton runat="server" ID="lbtResetSquadra" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-recycle ui-btn-icon-right ui-btn-inline" Text="Reset Squadra" OnClick="lbtResetSquadra_Click" OnClientClick="return confirm('Sei sicuro di voler resettare la selezione della squadra?')"/>--%>
|
||||
<a href="UserAdmin" data-icon="lock" class="ui-btn ui-shadow ui-corner-all ui-icon-lock ui-btn-icon-right ui-btn-inline"> </a>
|
||||
</div>
|
||||
<div id="headData">
|
||||
<div style="float: right; font-size: 0.7em; font-weight: 100; margin-right: 4px;">
|
||||
|
||||
@@ -129,7 +129,9 @@ namespace WebSCR.WebUserControls
|
||||
// se c'è e non è expired
|
||||
showSel = false;
|
||||
}
|
||||
lbtResetSquadra.Visible = !showSel;
|
||||
#if false
|
||||
lbtResetSquadra.Visible = !showSel;
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica che la pagina sia tra quelle autorizzate x l'utente
|
||||
@@ -244,6 +246,7 @@ namespace WebSCR.WebUserControls
|
||||
memLayer.ML.setCookieVal(memLayer.ML.confReadString("AuthCookieName"), "");
|
||||
memLayer.ML.emptyCookieVal(memLayer.ML.confReadString("AuthCookieName"));
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// in caso di richiesta reset elimina cookie delal squadra selezionata
|
||||
/// </summary>
|
||||
@@ -262,6 +265,7 @@ namespace WebSCR.WebUserControls
|
||||
memLayer.ML.emptyCookieVal("Indir");
|
||||
memLayer.ML.emptySessionVal("Cliente");
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -29,14 +29,5 @@ namespace WebSCR.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblVers;
|
||||
|
||||
/// <summary>
|
||||
/// lbtResetSquadra control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtResetSquadra;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user