diff --git a/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.cs b/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.cs
index 7acb208..7bf163a 100644
--- a/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.cs
+++ b/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.cs
@@ -11,6 +11,23 @@ namespace WebSCR.WebUserControls
{
public partial class mod_gestIntSquadra : System.Web.UI.UserControl
{
+ public event EventHandler eh_update;
+ ///
+ /// solleva evento selezione data
+ ///
+ protected void reportEvent()
+ {
+ // evento!
+ if (eh_update != null)
+ {
+ eh_update(this, new EventArgs());
+ }
+ }
+ ///
+ /// load pagina
+ ///
+ ///
+ ///
protected void Page_Load(object sender, EventArgs e)
{
fixVisibility();
@@ -29,6 +46,34 @@ namespace WebSCR.WebUserControls
return answ;
}
}
+ protected double latitude
+ {
+ get
+ {
+ double answ = 0;
+ try
+ {
+ answ = Convert.ToDouble(hLat.Value.Replace(".",","));
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ protected double longitude
+ {
+ get
+ {
+ double answ = 0;
+ try
+ {
+ answ = Convert.ToDouble(hLon.Value.Replace(".", ","));
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
///
/// sistemo visibilità buttons
///
@@ -63,24 +108,36 @@ namespace WebSCR.WebUserControls
}
}
+
+ //protected void btnLoad_Click(object sender, EventArgs e)
+ //{
+ // lblCoord.Text = string.Format("Lat: {0}, Lon: {1}", hLat.Value, hLon.Value);
+ //}
+
protected void lbInizioInt_Click(object sender, EventArgs e)
{
- //DtProxy.man.taImp.recStartInt(IdxImpegno, DateTime.Now, 0, 0);
+ DtProxy.man.taImp.recStartInt(IdxImpegno, DateTime.Now, latitude, longitude);
+ fixVisibility();
+ reportEvent();
}
protected void lbFineInt_Click(object sender, EventArgs e)
{
-
+ DtProxy.man.taImp.recFineInt(IdxImpegno, DateTime.Now, latitude, longitude);
+ fixVisibility();
+ reportEvent();
}
protected void lbNoteInt_Click(object sender, EventArgs e)
{
-
+ fixVisibility();
+ reportEvent();
}
protected void lbFileInt_Click(object sender, EventArgs e)
{
-
+ fixVisibility();
+ reportEvent();
}
}
}
\ No newline at end of file
diff --git a/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.designer.cs b/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.designer.cs
index 0fed111..8b84152 100644
--- a/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.designer.cs
+++ b/WebSCR/WebUserControls/mod_gestIntSquadra.ascx.designer.cs
@@ -12,6 +12,24 @@ namespace WebSCR.WebUserControls {
public partial class mod_gestIntSquadra {
+ ///
+ /// hLat control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hLat;
+
+ ///
+ /// hLon control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hLon;
+
///
/// lbInizioInt control.
///
diff --git a/WebSCR/WebUserControls/mod_header.ascx b/WebSCR/WebUserControls/mod_header.ascx
index d015caa..376af43 100644
--- a/WebSCR/WebUserControls/mod_header.ascx
+++ b/WebSCR/WebUserControls/mod_header.ascx
@@ -24,18 +24,5 @@
<%: DataSel %> | <%: ClienteSel %> | <%: SquadraSel %>