47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace PUB.WebUserContols
|
|
{
|
|
public partial class mod_ER_sospesi : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
// salvo le selezioni...
|
|
saveSelections();
|
|
}
|
|
mod_ER_grid.eh_selCond += Mod_ER_grid_eh_selCond;
|
|
mod_ER_selCondominio.eh_selected += Mod_ER_selCondominio_eh_selected;
|
|
}
|
|
private void Mod_ER_selCondominio_eh_selected(object sender, EventArgs e)
|
|
{
|
|
saveSelections();
|
|
}
|
|
private void Mod_ER_grid_eh_selCond(object sender, EventArgs e)
|
|
{
|
|
// recupero evento tipizzato
|
|
SelCondEventArgs ce = (SelCondEventArgs)e;
|
|
// imposto!
|
|
try
|
|
{
|
|
mod_ER_selCondominio.condSelected = ce.idxCond.ToString();
|
|
}
|
|
catch
|
|
{ }
|
|
saveSelections();
|
|
}
|
|
|
|
private void saveSelections()
|
|
{
|
|
mod_ER_grid.idxCond = mod_ER_selCondominio.condSelected;
|
|
}
|
|
|
|
protected void lbtResetCond_Click(object sender, EventArgs e)
|
|
{
|
|
mod_ER_selCondominio.condSelected = "0";
|
|
saveSelections();
|
|
}
|
|
}
|
|
} |