diff --git a/PUB/WebUserContols/mod_ER_conclusi.ascx b/PUB/WebUserContols/mod_ER_conclusi.ascx
index 9c84cc1..9430d56 100644
--- a/PUB/WebUserContols/mod_ER_conclusi.ascx
+++ b/PUB/WebUserContols/mod_ER_conclusi.ascx
@@ -1,22 +1,12 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_conclusi.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_conclusi" %>
<%@ Register Src="~/WebUserContols/mod_ER_grid.ascx" TagPrefix="uc1" TagName="mod_ER_grid" %>
+<%@ Register Src="~/WebUserContols/mod_ER_selCondominio.ascx" TagPrefix="uc1" TagName="mod_ER_selCondominio" %>
+
Elenco degli interventi conclusi
diff --git a/PUB/WebUserContols/mod_ER_conclusi.ascx.cs b/PUB/WebUserContols/mod_ER_conclusi.ascx.cs
index 828815f..b327a6e 100644
--- a/PUB/WebUserContols/mod_ER_conclusi.ascx.cs
+++ b/PUB/WebUserContols/mod_ER_conclusi.ascx.cs
@@ -1,9 +1,5 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
using System.Web.UI;
-using System.Web.UI.WebControls;
namespace PUB.WebUserContols
{
@@ -17,8 +13,12 @@ namespace PUB.WebUserContols
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
@@ -26,7 +26,7 @@ namespace PUB.WebUserContols
// imposto!
try
{
- ddlCondominio.SelectedValue = ce.idxCond.ToString();
+ mod_ER_selCondominio.condSelected = ce.idxCond.ToString();
}
catch
{ }
@@ -35,18 +35,12 @@ namespace PUB.WebUserContols
private void saveSelections()
{
- mod_ER_grid.idxCond = ddlCondominio.SelectedValue;
- }
-
- protected void ddlCondominio_SelectedIndexChanged(object sender, EventArgs e)
- {
- saveSelections();
+ mod_ER_grid.idxCond = mod_ER_selCondominio.condSelected;
}
protected void lbtResetCond_Click(object sender, EventArgs e)
{
- ddlCondominio.SelectedIndex = 0;
- ddlCondominio.DataBind();
+ mod_ER_selCondominio.condSelected = "0";
saveSelections();
}
}
diff --git a/PUB/WebUserContols/mod_ER_conclusi.ascx.designer.cs b/PUB/WebUserContols/mod_ER_conclusi.ascx.designer.cs
index f08494d..428aca7 100644
--- a/PUB/WebUserContols/mod_ER_conclusi.ascx.designer.cs
+++ b/PUB/WebUserContols/mod_ER_conclusi.ascx.designer.cs
@@ -13,31 +13,13 @@ namespace PUB.WebUserContols {
public partial class mod_ER_conclusi {
///
- /// Controllo lbtResetCond.
+ /// Controllo mod_ER_selCondominio.
///
///
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
- protected global::System.Web.UI.WebControls.LinkButton lbtResetCond;
-
- ///
- /// Controllo ddlCondominio.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.DropDownList ddlCondominio;
-
- ///
- /// Controllo odsCondomini.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource odsCondomini;
+ protected global::PUB.WebUserContols.mod_ER_selCondominio mod_ER_selCondominio;
///
/// Controllo mod_ER_grid.
diff --git a/PUB/WebUserContols/mod_ER_inCorso.ascx.cs b/PUB/WebUserContols/mod_ER_inCorso.ascx.cs
index 3609a29..b604c57 100644
--- a/PUB/WebUserContols/mod_ER_inCorso.ascx.cs
+++ b/PUB/WebUserContols/mod_ER_inCorso.ascx.cs
@@ -1,9 +1,5 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
using System.Web.UI;
-using System.Web.UI.WebControls;
namespace PUB.WebUserContols
{
@@ -42,10 +38,6 @@ namespace PUB.WebUserContols
mod_ER_grid.idxCond = mod_ER_selCondominio.condSelected;
}
- protected void ddlCondominio_SelectedIndexChanged(object sender, EventArgs e)
- {
- saveSelections();
- }
protected void lbtResetCond_Click(object sender, EventArgs e)
{
mod_ER_selCondominio.condSelected = "0";