46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
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 Clienti : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
mod_DocIntCli.Visible = false;
|
|
}
|
|
mod_elencoClienti.eh_selCliente += mod_elencoClienti_eh_selCliente;
|
|
mod_DocIntCli.eh_return += mod_DocIntCli_eh_return;
|
|
}
|
|
|
|
void mod_DocIntCli_eh_return(object sender, EventArgs e)
|
|
{
|
|
toggleControls();
|
|
}
|
|
/// <summary>
|
|
/// selezionato un cliente...
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
void mod_elencoClienti_eh_selCliente(object sender, EventArgs e)
|
|
{
|
|
toggleControls();
|
|
}
|
|
/// <summary>
|
|
/// effettua toggle su visibilità controlli
|
|
/// </summary>
|
|
private void toggleControls()
|
|
{
|
|
// la visibilità dell vista dett doc clienti è a questo punto come l'elenco clienti
|
|
mod_DocIntCli.Visible = mod_elencoClienti.Visible;
|
|
// cambio visibilità elenco clienti
|
|
mod_elencoClienti.Visible = !mod_elencoClienti.Visible;
|
|
}
|
|
}
|
|
} |