diff --git a/GPW_Smart/WebUserControls/mod_attivitaIns.ascx b/GPW_Smart/WebUserControls/mod_attivitaIns.ascx
index b86ac42..1b3554e 100644
--- a/GPW_Smart/WebUserControls/mod_attivitaIns.ascx
+++ b/GPW_Smart/WebUserControls/mod_attivitaIns.ascx
@@ -1,5 +1,8 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_attivitaIns.ascx.cs" Inherits="GPW.WebUserControls.mod_attivitaIns" %>
<%@ Register Src="mod_dateTimeJQM.ascx" TagName="mod_dateTimeJQM" TagPrefix="uc1" %>
+
+
+
-
-
+
+
+
-
-
+
+<%--
--%>
+
-
- <%----%>
-
-
+
+ <%----%>
+
+
\ No newline at end of file
diff --git a/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.cs b/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.cs
index 6ff3858..c6cddf0 100644
--- a/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.cs
+++ b/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.cs
@@ -1,111 +1,62 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
namespace GPW.WebUserControls
{
- public partial class mod_dateTimeJQM : System.Web.UI.UserControl
+ public partial class mod_dateTimeJQM : System.Web.UI.UserControl
+ {
+ ///
+ /// avvio pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
{
- ///
- /// avvio pagina
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- // cambio il target x il popup che mostrerà il selettore calendario...
- hlPUCal.NavigateUrl = string.Format("#{0}", popupBasic.UniqueID).Replace("$", "_");
- }
- ///
- /// Valore di arrotondamento x selettore minuti
- ///
- public int snapMinuti
- {
- get
- {
- int answ = 5;
- try
- {
- answ = Convert.ToInt32(lblSnapMin.Text);
- }
- catch
- { }
- return answ;
- }
- set
- {
- lblSnapMin.Text = value.ToString();
- }
- }
- ///
- /// valore datetime selezionato!
- ///
- public DateTime valoreDateTime
- {
- get
- {
- DateTime answ = DateTime.Now;
- try
- {
- int oreSel = Convert.ToInt32(ddlOra.SelectedValue);
- int minSel = Convert.ToInt32(ddlMin.SelectedValue);
- answ = Convert.ToDateTime(lblDataRif.Text).AddHours(oreSel).AddMinutes(minSel);
- }
- catch
- { }
- return answ;
- }
- set
- {
- lblDataRif.Text = value.Date.ToShortDateString();
- ddlOra.SelectedValue = value.Hour.ToString();
- ddlMin.SelectedValue = value.Minute.ToString();
- }
- }
- ///
- /// stringa data
- ///
- public string lblabelData
- {
- get
- {
- return lblData.Text;
- }
- set
- {
- lblData.Text = value;
- }
- }
- ///
- /// stringa ora
- ///
- public string lblabelOra
- {
- get
- {
- return lblOra.Text;
- }
- set
- {
- lblOra.Text = value;
- }
- }
-
-
- ///
- /// aggiorno data selezionata!
- ///
- ///
- ///
- protected void calDataRif_SelectionChanged(object sender, EventArgs e)
- {
- // recupero ore e minuti...
- int oreSel = Convert.ToInt32(ddlOra.SelectedValue);
- int minSel = Convert.ToInt32(ddlMin.SelectedValue);
- valoreDateTime = calDataRif.SelectedDate.AddHours(oreSel).AddMinutes(minSel);
- }
}
+ ///
+ /// Valore di arrotondamento x selettore minuti
+ ///
+ public int snapMinuti
+ {
+ get
+ {
+ int answ = 5;
+ try
+ {
+ answ = Convert.ToInt32(lblSnapMin.Text);
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ lblSnapMin.Text = value.ToString();
+ }
+ }
+ ///
+ /// valore datetime selezionato!
+ ///
+ public DateTime valoreDateTime
+ {
+ get
+ {
+ DateTime answ = DateTime.Now;
+ try
+ {
+ int oreSel = Convert.ToInt32(ddlOra.SelectedValue);
+ int minSel = Convert.ToInt32(ddlMin.SelectedValue);
+ answ = Convert.ToDateTime(txtData.Text).AddHours(oreSel).AddMinutes(minSel);
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ txtData.Text = value.Date.ToString("yyyy-MM-dd");
+ ddlOra.SelectedValue = value.Hour.ToString();
+ ddlMin.SelectedValue = value.Minute.ToString();
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.designer.cs b/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.designer.cs
index 730a7eb..b6ab13c 100644
--- a/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.designer.cs
+++ b/GPW_Smart/WebUserControls/mod_dateTimeJQM.ascx.designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
namespace GPW.WebUserControls {
@@ -13,101 +13,56 @@ namespace GPW.WebUserControls {
public partial class mod_dateTimeJQM {
///
- /// lblData control.
+ /// Controllo txtData.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// 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.Label lblData;
+ protected global::System.Web.UI.WebControls.TextBox txtData;
///
- /// hlPUCal control.
+ /// Controllo ddlOra.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.HyperLink hlPUCal;
-
- ///
- /// lblDataRif control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblDataRif;
-
- ///
- /// popupBasic control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Panel popupBasic;
-
- ///
- /// calDataRif control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Calendar calDataRif;
-
- ///
- /// lblOra control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblOra;
-
- ///
- /// ddlOra control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// 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 ddlOra;
///
- /// ddlMin control.
+ /// Controllo ddlMin.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// 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 ddlMin;
///
- /// odsOra control.
+ /// Controllo odsOra.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// 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 odsOra;
///
- /// odsMin control.
+ /// Controllo odsMin.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// 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 odsMin;
///
- /// lblSnapMin control.
+ /// Controllo lblSnapMin.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// 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.Label lblSnapMin;
}