+
+
+ textbox x selezionare...
+
+
+ GridView:
+
+ Permetto di inserire uno o + task
+
+ selettore testuale x ADD
+
+ elenco task inseriti (gridview) che aggiornano i totali del tempi impegni (togliere da colonna fisica e fare solo calcolata?)
+
+
diff --git a/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs b/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs
new file mode 100644
index 0000000..0c33498
--- /dev/null
+++ b/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs
@@ -0,0 +1,59 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using WebSCR_data;
+
+namespace WebSCR.WebUserControls
+{
+ public partial class mod_dettImpegno : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ doUpdate();
+ }
+
+ private void doUpdate()
+ {
+ // imposto data ed ora da valori in querystring...
+ int idxImpegno = 0;
+ try
+ {
+ idxImpegno = Convert.ToInt32(qsVal("IdxImpegno"));
+ }
+ catch
+ { }
+ if (idxImpegno < 0)
+ {
+ // creo un impegno NUOVO nel primo slot libero...
+ }
+
+ if (idxImpegno > 0)
+ {
+ DS_Applicazione.ImpegniRow riga = DtProxy.man.taImp.getByKey(idxImpegno)[0];
+ txtDataFrom.Text = string.Format("{0:yyyy-MM-dd}", riga.DataOra);
+ ddlOrario.DataBind();
+ ddlOrario.SelectedValue = string.Format("{0:HH:mm:ss}", riga.DataOra);
+ ddlSquadra.SelectedValue = riga.CodSquadra;
+ }
+ }
+ ///