inserita selezione tipo di anagrafica da gestire

This commit is contained in:
Samuele E. Locatelli
2015-04-17 11:15:43 +02:00
parent fa1c824629
commit e03f59b284
29 changed files with 346 additions and 11 deletions
BIN
View File
Binary file not shown.
+21
View File
@@ -1,5 +1,26 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="Setup.aspx.cs" Inherits="WebSCR.Setup" %>
<%@ Register Src="~/WebUserControls/mod_elencoDisp.ascx" TagPrefix="uc1" TagName="mod_elencoDisp" %>
<%@ Register Src="~/WebUserControls/mod_elencoSquadre.ascx" TagPrefix="uc1" TagName="mod_elencoSquadre" %>
<%@ Register Src="~/WebUserControls/mod_elencoTipoInt.ascx" TagPrefix="uc1" TagName="mod_elencoTipoInt" %>
<%@ Register Src="~/WebUserControls/mod_elencoZone.ascx" TagPrefix="uc1" TagName="mod_elencoZone" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div data-role="controlgroup" data-type="horizontal" style="text-align: center; margin: auto;">
<asp:LinkButton runat="server" ID="btnSquadre" CommandArgument="squadre" CssClass="ui-btn ui-corner-all ui-icon-user ui-btn-icon-left" OnClick="btnElenco_Click">Squadre</asp:LinkButton>
<asp:LinkButton runat="server" ID="btnTipoInt" CommandArgument="tipoInt" CssClass="ui-btn ui-corner-all ui-icon-bullets ui-btn-icon-left" OnClick="btnElenco_Click">Tipo Intervento</asp:LinkButton>
<asp:LinkButton runat="server" ID="btnZone" CommandArgument="zone" CssClass="ui-btn ui-corner-all ui-icon-grid ui-btn-icon-left" OnClick="btnElenco_Click">Zone</asp:LinkButton>
<asp:LinkButton runat="server" ID="btnCalendario" CommandArgument="calendario" CssClass="ui-btn ui-corner-all ui-icon-calendar ui-btn-icon-left" OnClick="btnElenco_Click">Calendario</asp:LinkButton>
</div>
<uc1:mod_elencoDisp runat="server" id="mod_elencoDisp" />
<uc1:mod_elencoSquadre runat="server" id="mod_elencoSquadre" />
<uc1:mod_elencoTipoInt runat="server" id="mod_elencoTipoInt" />
<uc1:mod_elencoZone runat="server" id="mod_elencoZone" />
</asp:Content>
+53 -1
View File
@@ -11,7 +11,59 @@ namespace WebSCR
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
showDetail("none");
}
}
/// <summary>
/// sistemazione visualizzaizone dettagli (moduli) secondo richiesta
/// </summary>
/// <param name="dettaglio"></param>
private void showDetail(string dettaglio)
{
switch (dettaglio)
{
case "calendario":
mod_elencoDisp.Visible = true;
mod_elencoSquadre.Visible = false;
mod_elencoTipoInt.Visible = false;
mod_elencoZone.Visible = false;
break;
case "squadre":
mod_elencoDisp.Visible = false;
mod_elencoSquadre.Visible = true;
mod_elencoTipoInt.Visible = false;
mod_elencoZone.Visible = false;
break;
case "tipoInt":
mod_elencoDisp.Visible = false;
mod_elencoSquadre.Visible = false;
mod_elencoTipoInt.Visible = true;
mod_elencoZone.Visible = false;
break;
case "zone":
mod_elencoDisp.Visible = false;
mod_elencoSquadre.Visible = false;
mod_elencoTipoInt.Visible = false;
mod_elencoZone.Visible = true;
break;
default:
mod_elencoDisp.Visible = false;
mod_elencoSquadre.Visible = false;
mod_elencoTipoInt.Visible = false;
mod_elencoZone.Visible = false;
break;
}
}
/// <summary>
/// seleziona e mostra corretto tipo di anagrafica
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnElenco_Click(object sender, EventArgs e)
{
showDetail(((LinkButton)sender).CommandArgument);
}
}
}
+77 -7
View File
@@ -3,15 +3,85 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebSCR
{
public partial class Setup
{
namespace WebSCR {
public partial class Setup {
/// <summary>
/// btnSquadre 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 btnSquadre;
/// <summary>
/// btnTipoInt 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 btnTipoInt;
/// <summary>
/// btnZone 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 btnZone;
/// <summary>
/// btnCalendario 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 btnCalendario;
/// <summary>
/// mod_elencoDisp control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_elencoDisp mod_elencoDisp;
/// <summary>
/// mod_elencoSquadre control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_elencoSquadre mod_elencoSquadre;
/// <summary>
/// mod_elencoTipoInt control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_elencoTipoInt mod_elencoTipoInt;
/// <summary>
/// mod_elencoZone control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_elencoZone mod_elencoZone;
}
}
+32
View File
@@ -337,7 +337,11 @@
<Content Include="Setup.aspx" />
<Content Include="Squadre.aspx" />
<Content Include="UserAdmin.aspx" />
<Content Include="WebUserControls\mod_elencoDisp.ascx" />
<Content Include="WebUserControls\mod_elencoRichResetUtenti.ascx" />
<Content Include="WebUserControls\mod_elencoSquadre.ascx" />
<Content Include="WebUserControls\mod_elencoTipoInt.ascx" />
<Content Include="WebUserControls\mod_elencoZone.ascx" />
<Content Include="WebUserControls\mod_enrollByAuthKey.ascx" />
<Content Include="WebUserControls\mod_enrollByEmail.ascx" />
<Content Include="WebUserControls\mod_enrollByJumperAuthKey.ascx" />
@@ -446,6 +450,13 @@
<Compile Include="ViewSwitcher.ascx.designer.cs">
<DependentUpon>ViewSwitcher.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoDisp.ascx.cs">
<DependentUpon>mod_elencoDisp.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_elencoDisp.ascx.designer.cs">
<DependentUpon>mod_elencoDisp.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoRichResetUtenti.ascx.cs">
<DependentUpon>mod_elencoRichResetUtenti.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -453,6 +464,27 @@
<Compile Include="WebUserControls\mod_elencoRichResetUtenti.ascx.designer.cs">
<DependentUpon>mod_elencoRichResetUtenti.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoSquadre.ascx.cs">
<DependentUpon>mod_elencoSquadre.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_elencoSquadre.ascx.designer.cs">
<DependentUpon>mod_elencoSquadre.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoTipoInt.ascx.cs">
<DependentUpon>mod_elencoTipoInt.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_elencoTipoInt.ascx.designer.cs">
<DependentUpon>mod_elencoTipoInt.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoZone.ascx.cs">
<DependentUpon>mod_elencoZone.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_elencoZone.ascx.designer.cs">
<DependentUpon>mod_elencoZone.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_enrollByAuthKey.ascx.cs">
<DependentUpon>mod_enrollByAuthKey.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -0,0 +1,2 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoDisp.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoDisp" %>
elenco disponibilità
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_elencoDisp : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+17
View File
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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.WebUserControls
{
public partial class mod_elencoDisp
{
}
}
@@ -0,0 +1,2 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoSquadre.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoSquadre" %>
elenco squadre
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_elencoSquadre : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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.WebUserControls
{
public partial class mod_elencoSquadre
{
}
}
@@ -0,0 +1,2 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoTipoInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoTipoInt" %>
tipo intervento
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_elencoTipoInt : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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.WebUserControls
{
public partial class mod_elencoTipoInt
{
}
}
@@ -0,0 +1,2 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoZone.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoZone" %>
zone
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_elencoZone : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+17
View File
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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.WebUserControls
{
public partial class mod_elencoZone
{
}
}
+1 -1
View File
@@ -12,6 +12,6 @@
<%: DateTime.Now.ToString("ddd dd/MM/yyyy HH:mm:ss") %>
</div>
<div style="text-align: center; font-size: 1.2em; font-weight: 100; color: #507CD1;">
<%: pazienteSel %>
<%: ImpegnoSel %> | <%: ClienteSel %>
</div>
</div>
+18 -2
View File
@@ -12,9 +12,9 @@ namespace WebSCR.WebUserControls
public partial class mod_header : SteamWare.UserControl
{
/// <summary>
/// stringa del paziente selezionato
/// codice Impegno selezionato
/// </summary>
public string pazienteSel
public string ImpegnoSel
{
get
{
@@ -26,6 +26,22 @@ namespace WebSCR.WebUserControls
return answ;
}
}
/// <summary>
/// codice Cliente selezionato (dall'impegno)
/// </summary>
public string ClienteSel
{
get
{
string answ = "-";
if (memLayer.ML.isInSessionObject("Cliente"))
{
answ = memLayer.ML.StringSessionObj("Cliente");
}
return answ;
}
}
/// <summary>
/// caricamento pagina
/// </summary>
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.