diff --git a/PUB/WebUserContols/mod_ER_grid.ascx b/PUB/WebUserContols/mod_ER_grid.ascx index 7c53ccb..655a056 100644 --- a/PUB/WebUserContols/mod_ER_grid.ascx +++ b/PUB/WebUserContols/mod_ER_grid.ascx @@ -1,5 +1,6 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_grid.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_grid" %> + @@ -35,31 +36,29 @@
- - -
-
+ + + +
-
+
- () -
-
+ ()
-
+
-
-
+ +
@@ -80,19 +79,15 @@
- () -
-
+ ()
- Messaggio - + Messaggio
- Note - + Note
@@ -102,13 +97,7 @@

- -
- - - - - +
diff --git a/PUB/WebUserContols/mod_ER_grid.ascx.cs b/PUB/WebUserContols/mod_ER_grid.ascx.cs index 33f6aad..2e78afd 100644 --- a/PUB/WebUserContols/mod_ER_grid.ascx.cs +++ b/PUB/WebUserContols/mod_ER_grid.ascx.cs @@ -9,9 +9,10 @@ namespace PUB.WebUserContols { public partial class mod_ER_grid : System.Web.UI.UserControl { + public event EventHandler eh_selCond; + protected void Page_Load(object sender, EventArgs e) { - } protected void lbtReset_Click(object sender, EventArgs e) @@ -79,5 +80,27 @@ namespace PUB.WebUserContols hfStatoMax.Value = value; } } + /// + /// Selezionato un condominio --> riporto selezione + /// + /// + /// + protected void lbtSelCond_Click(object sender, EventArgs e) + { + LinkButton lb = (LinkButton)sender; + int idxCond = 0; + int.TryParse(lb.CommandArgument, out idxCond); + // sollevo evento selezione condominio... + eh_selCond?.Invoke(this, new SelCondEventArgs(idxCond)); + } + } + /// + /// Evento parametrico sel condominio + /// + public class SelCondEventArgs : EventArgs + { + public SelCondEventArgs(int newIdxCond) + { idxCond = newIdxCond; } + public int idxCond { get; set; } } } \ No newline at end of file diff --git a/PUB/WebUserContols/mod_ER_richieste.ascx b/PUB/WebUserContols/mod_ER_richieste.ascx index 783647a..317cb27 100644 --- a/PUB/WebUserContols/mod_ER_richieste.ascx +++ b/PUB/WebUserContols/mod_ER_richieste.ascx @@ -8,14 +8,19 @@
Richieste
- - - - - - - - +
+
+ +
+ + + + + + + + +
Apri nuova » diff --git a/PUB/WebUserContols/mod_ER_richieste.ascx.cs b/PUB/WebUserContols/mod_ER_richieste.ascx.cs index 1c9eb9b..0a61ff0 100644 --- a/PUB/WebUserContols/mod_ER_richieste.ascx.cs +++ b/PUB/WebUserContols/mod_ER_richieste.ascx.cs @@ -18,6 +18,21 @@ namespace PUB.WebUserContols // salvo le selezioni... saveSelections(); } + mod_ER_grid.eh_selCond += Mod_ER_grid_eh_selCond; + } + + private void Mod_ER_grid_eh_selCond(object sender, EventArgs e) + { + // recupero evento tipizzato + SelCondEventArgs ce = (SelCondEventArgs)e; + // imposto! + try + { + ddlCondominio.SelectedValue = ce.idxCond.ToString(); + } + catch + { } + saveSelections(); } private void saveSelections() @@ -94,5 +109,12 @@ namespace PUB.WebUserContols DtProxy.man.taElRich.InsertQuery(idxCond, idxForn, DateTime.Now, codCollab, txtContatto.Text.Trim(), txtTelefono.Text.Trim(), txtMessaggio.Text.Trim()); Response.Redirect(devicesAuthProxy.pagCorrente); } + + protected void lbtResetCond_Click(object sender, EventArgs e) + { + ddlCondominio.SelectedIndex = 0; + ddlCondominio.DataBind(); + saveSelections(); + } } } \ No newline at end of file diff --git a/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs b/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs index f082a09..4252fa0 100644 --- a/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs +++ b/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs @@ -12,6 +12,15 @@ namespace PUB.WebUserContols { public partial class mod_ER_richieste { + /// + /// Controllo lbtResetCond. + /// + /// + /// 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. ///