diff --git a/PUB/PUB.csproj b/PUB/PUB.csproj
index fa5ce5e..fbaa22c 100644
--- a/PUB/PUB.csproj
+++ b/PUB/PUB.csproj
@@ -243,6 +243,7 @@
+
@@ -596,6 +597,13 @@
mod_enrollByJumperAuthKey.ascx
+
+ mod_ER_grid.ascx
+ ASPXCodeBehind
+
+
+ mod_ER_grid.ascx
+
mod_F2C.ascx
ASPXCodeBehind
diff --git a/PUB/WebUserContols/mod_ER_grid.ascx b/PUB/WebUserContols/mod_ER_grid.ascx
new file mode 100644
index 0000000..b84af4c
--- /dev/null
+++ b/PUB/WebUserContols/mod_ER_grid.ascx
@@ -0,0 +1,87 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_grid.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_grid" %>
+
+
+
+
+
+
+
+
+
+ No record found
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PUB/WebUserContols/mod_ER_grid.ascx.cs b/PUB/WebUserContols/mod_ER_grid.ascx.cs
new file mode 100644
index 0000000..33f6aad
--- /dev/null
+++ b/PUB/WebUserContols/mod_ER_grid.ascx.cs
@@ -0,0 +1,83 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace PUB.WebUserContols
+{
+ public partial class mod_ER_grid : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void lbtReset_Click(object sender, EventArgs e)
+ {
+ grViewElRich.EditIndex = -1;
+ grViewElRich.SelectedIndex = -1;
+ grViewElRich.DataBind();
+ }
+
+ protected void grViewElRich_RowEditing(object sender, GridViewEditEventArgs e)
+ {
+ // imposto selezione a riga in edit
+ grViewElRich.SelectedIndex = -1;
+ }
+
+ protected void grViewElRich_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
+ {
+ grViewElRich.EditIndex = -1;
+ }
+
+ protected void grViewElRich_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
+ {
+ grViewElRich.EditIndex = -1;
+ grViewElRich.SelectedIndex = -1;
+ }
+ ///
+ /// Gestione condominio
+ ///
+ public string idxCond
+ {
+ get
+ {
+ return hfCondominio.Value;
+ }
+ set
+ {
+ hfCondominio.Value = value;
+ }
+ }
+ ///
+ /// Min stato filtraggio
+ ///
+ public string StatoMin
+ {
+ get
+ {
+ return hfStatoMin.Value;
+ }
+ set
+ {
+ hfStatoMin.Value = value;
+ }
+ }
+ ///
+ /// Max stato filtraggio
+ ///
+ public string StatoMax
+ {
+ get
+ {
+ return hfStatoMax.Value;
+ }
+ set
+ {
+ hfStatoMax.Value = value;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/PUB/WebUserContols/mod_ER_grid.ascx.designer.cs b/PUB/WebUserContols/mod_ER_grid.ascx.designer.cs
new file mode 100644
index 0000000..41ea7e5
--- /dev/null
+++ b/PUB/WebUserContols/mod_ER_grid.ascx.designer.cs
@@ -0,0 +1,60 @@
+//------------------------------------------------------------------------------
+//
+// Codice generato da uno strumento.
+//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace PUB.WebUserContols {
+
+
+ public partial class mod_ER_grid {
+
+ ///
+ /// Controllo grViewElRich.
+ ///
+ ///
+ /// 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.GridView grViewElRich;
+
+ ///
+ /// Controllo odsElRich.
+ ///
+ ///
+ /// 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 odsElRich;
+
+ ///
+ /// Controllo hfCondominio.
+ ///
+ ///
+ /// 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.HiddenField hfCondominio;
+
+ ///
+ /// Controllo hfStatoMin.
+ ///
+ ///
+ /// 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.HiddenField hfStatoMin;
+
+ ///
+ /// Controllo hfStatoMax.
+ ///
+ ///
+ /// 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.HiddenField hfStatoMax;
+ }
+}
diff --git a/PUB/WebUserContols/mod_richiesteList.ascx b/PUB/WebUserContols/mod_richiesteList.ascx
index 9cf3195..0e07f21 100644
--- a/PUB/WebUserContols/mod_richiesteList.ascx
+++ b/PUB/WebUserContols/mod_richiesteList.ascx
@@ -1,4 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_richiesteList.ascx.cs" Inherits="PUB.WebUserContols.mod_richiesteList" %>
+<%@ Register Src="~/WebUserContols/mod_ER_grid.ascx" TagPrefix="uc1" TagName="mod_ER_grid" %>
+
-
-
-
-
-
-
-
-
- <%--
-
-
-
-
- --%>
-
- No record found
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
- Primo intervento
- Primo intervento
diff --git a/PUB/WebUserContols/mod_richiesteList.ascx.cs b/PUB/WebUserContols/mod_richiesteList.ascx.cs
index 7d397ac..f6f0b22 100644
--- a/PUB/WebUserContols/mod_richiesteList.ascx.cs
+++ b/PUB/WebUserContols/mod_richiesteList.ascx.cs
@@ -18,13 +18,23 @@ namespace PUB.WebUserContols
// preseleziono filtro stati da msotrare...
ddlStatoMin.SelectedValue = memLayer.ML.CRS("minStatoER");
ddlStatoMax.SelectedValue = memLayer.ML.CRS("maxStatoER");
+ // salvo le selezioni...
+ saveSelections();
}
}
+ private void saveSelections()
+ {
+ mod_ER_grid.idxCond = ddlCondominio.SelectedValue;
+ mod_ER_grid.StatoMin = ddlStatoMin.SelectedValue;
+ mod_ER_grid.StatoMax = ddlStatoMax.SelectedValue;
+ }
+
protected void ddlCondominio_SelectedIndexChanged(object sender, EventArgs e)
{
// se la selezione c'è --> permetto AGGIUNGI
lbtAddNew.Visible = (ddlCondominio.SelectedIndex > 0);
+ saveSelections();
}
protected void lbtAddNew_Click(object sender, EventArgs e)
@@ -57,6 +67,7 @@ namespace PUB.WebUserContols
{
ddlFornitore.Items.Clear();
ddlFornitore.DataBind();
+ saveSelections();
}
protected void chkShowAll_CheckedChanged(object sender, EventArgs e)
@@ -89,28 +100,14 @@ namespace PUB.WebUserContols
Response.Redirect(devicesAuthProxy.pagCorrente);
}
- protected void lbtReset_Click(object sender, EventArgs e)
+ protected void ddlStatoMin_SelectedIndexChanged(object sender, EventArgs e)
{
- grViewElRich.EditIndex = -1;
- grViewElRich.SelectedIndex = -1;
- grViewElRich.DataBind();
+ saveSelections();
}
- protected void grViewElRich_RowEditing(object sender, GridViewEditEventArgs e)
+ protected void ddlStatoMax_SelectedIndexChanged(object sender, EventArgs e)
{
- // imposto selezione a riga in edit
- grViewElRich.SelectedIndex = -1;
- }
-
- protected void grViewElRich_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
- {
- grViewElRich.EditIndex = -1;
- }
-
- protected void grViewElRich_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
- {
- grViewElRich.EditIndex = -1;
- grViewElRich.SelectedIndex = -1;
+ saveSelections();
}
}
}
\ No newline at end of file
diff --git a/PUB/WebUserContols/mod_richiesteList.ascx.designer.cs b/PUB/WebUserContols/mod_richiesteList.ascx.designer.cs
index 18978e3..eef1159 100644
--- a/PUB/WebUserContols/mod_richiesteList.ascx.designer.cs
+++ b/PUB/WebUserContols/mod_richiesteList.ascx.designer.cs
@@ -175,21 +175,12 @@ namespace PUB.WebUserContols {
protected global::System.Web.UI.WebControls.DropDownList ddlStatoMax;
///
- /// Controllo grViewElRich.
+ /// Controllo mod_ER_grid.
///
///
/// 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.GridView grViewElRich;
-
- ///
- /// Controllo odsElRich.
- ///
- ///
- /// 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 odsElRich;
+ protected global::PUB.WebUserContols.mod_ER_grid mod_ER_grid;
}
}