diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx
index 671116e..02ced2d 100644
--- a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx
+++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx
@@ -4,12 +4,19 @@
-
- -
+
+ No Record
-
-
-
+
+
+
+
+
+
+ <%----%>
+
+
+ <%----%>
@@ -18,4 +25,4 @@
-
\ No newline at end of file
+
diff --git a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs
index 86931a1..3af2c6e 100644
--- a/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs
+++ b/GPW_Admin/WebUserControls/cmp_tagUserPeriodo.ascx.cs
@@ -1,4 +1,5 @@
-using System;
+using GPW_data;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -10,8 +11,6 @@ namespace GPW_Admin.WebUserControls
public partial class cmp_tagUserPeriodo : BaseUserControl
{
- public event EventHandler eh_reportUpdate;
-
protected void Page_Load(object sender, EventArgs e)
{
@@ -45,17 +44,24 @@ namespace GPW_Admin.WebUserControls
///
public void reportUpdate()
{
- grView.SelectedIndex = -1;
- grView.DataBind();
- if (eh_reportUpdate != null)
- {
- eh_reportUpdate(this, new EventArgs());
- }
+ doUpdate();
+ raiseEvent();
}
public void doUpdate()
{
+ grView.SelectedIndex = -1;
grView.DataBind();
}
+
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // prendo riga selezionata
+ int idxTagDD = Convert.ToInt32(grView.SelectedDataKey["IdxTagDD"].ToString());
+ // eseguo toggle
+ DataProxy.DP.taListTDD.toggleActive(idxTagDD);
+ // aggiorno
+ reportUpdate();
+ }
}
}
\ No newline at end of file
diff --git a/GPW_Admin/WebUserControls/mod_tagMensili.ascx b/GPW_Admin/WebUserControls/mod_tagMensili.ascx
index 12c19f3..46b6875 100644
--- a/GPW_Admin/WebUserControls/mod_tagMensili.ascx
+++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx
@@ -31,9 +31,12 @@
-
+
+
+
+
-
+
diff --git a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs
index 18462cb..24b2b63 100644
--- a/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs
+++ b/GPW_Admin/WebUserControls/mod_tagMensili.ascx.cs
@@ -28,6 +28,8 @@ namespace GPW_Admin.WebUserControls
///
public void resetSelezione()
{
+ cmp_tagUserPeriodo.idxDip = -1;
+ cmp_tagUserPeriodo.doUpdate();
grView.SelectedIndex = -1;
grView.DataBind();
if (eh_resetSelezione != null)
@@ -40,16 +42,6 @@ namespace GPW_Admin.WebUserControls
#region Protected Methods
- ///
- /// reset della selezione
- ///
- ///
- ///
- protected void btnReset_Click(object sender, EventArgs e)
- {
- resetSelezione();
- }
-
///
/// elenco colonne del datagrid
///
@@ -94,50 +86,6 @@ namespace GPW_Admin.WebUserControls
}
}
-
- ///
- /// caricamento
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- grView.PageSize = utils.pageSize;
- if (!Page.IsPostBack)
- {
- filtroDip.ods = odsDip;
- memLayer.ML.emptySessionVal("idxDip_sel");
- filtroDip.reselFirst();
- }
- filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore);
- }
-
- #endregion Protected Methods
-
- #region Private Methods
-
- ///
- /// imposto ODS
- ///
- private void checkFixOds()
- {
- memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt);
- grView.DataBind();
- }
-
- ///
- /// seleziono
- ///
- ///
- ///
- private void filtroDip_eh_selValore(object sender, EventArgs e)
- {
- // imposto ods
- checkFixOds();
- }
-
- #endregion Private Methods
-
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
int anno = Convert.ToInt32(grView.SelectedDataKey["anno"].ToString());
@@ -169,5 +117,64 @@ namespace GPW_Admin.WebUserControls
DataProxy.DP.taTagMese.checkCreateByDipDate("BP", filtroDip.valoreInt, inizio, fine, 270);
doUpdate();
}
+
+ ///
+ /// reset della selezione
+ ///
+ ///
+ ///
+ protected void lbtReset_Click(object sender, EventArgs e)
+ {
+ resetSelezione();
+ }
+
+ ///
+ /// caricamento
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ grView.PageSize = utils.pageSize;
+ if (!Page.IsPostBack)
+ {
+ filtroDip.ods = odsDip;
+ memLayer.ML.emptySessionVal("idxDip_sel");
+ filtroDip.reselFirst();
+ }
+ filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore);
+ cmp_tagUserPeriodo.eh_doRefresh += Cmp_tagUserPeriodo_eh_doRefresh;
+ }
+
+ #endregion Protected Methods
+
+ #region Private Methods
+
+ ///
+ /// imposto ODS
+ ///
+ private void checkFixOds()
+ {
+ memLayer.ML.setSessionVal("idxDip_sel", filtroDip.valoreInt);
+ grView.DataBind();
+ }
+
+ private void Cmp_tagUserPeriodo_eh_doRefresh(object sender, EventArgs e)
+ {
+ doUpdate();
+ }
+
+ ///
+ /// seleziono
+ ///
+ ///
+ ///
+ private void filtroDip_eh_selValore(object sender, EventArgs e)
+ {
+ // imposto ods
+ checkFixOds();
+ }
+
+ #endregion Private Methods
}
}
\ No newline at end of file