-
DATA - SLOT
-
Torna a schema SETTIMANALE
-
-
+
+
+
+
Torna a schema SETTIMANALE
-
diff --git a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs
index 511e831..b8d0dc4 100644
--- a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs
+++ b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs
@@ -53,32 +53,30 @@ namespace WebSCR.WebUserControls
protected void lbtEditMat_Click(object sender, EventArgs e)
{
- // salvo data
+ // sistemo dati x dettaglio giorno
LinkButton lbt = (LinkButton)sender;
DateTime data = Convert.ToDateTime(lbt.CommandArgument);
- hfDataSel.Value = data.ToShortDateString();
- // salva slot
- hfSlot.Value = "MAT";
- // sistemo dati x dettaglio giorno
+ string slot = "MAT";
+ showEditMode(data, slot);
+ }
+
+ private void showEditMode(DateTime data, string slot)
+ {
mod_giornataASSD.DataRif = data;
- mod_giornataASSD.Slot = "MAT";
+ mod_giornataASSD.Slot = slot;
+ lblData.Text = data.ToString("ddd dd/MM");
+ lblSlot.Text = slot;
// update visualizzazione
fixVisibility(true);
}
protected void lbtEditPom_Click(object sender, EventArgs e)
{
- // salvo data
+ // sistemo dati x dettaglio giorno
LinkButton lbt = (LinkButton)sender;
DateTime data = Convert.ToDateTime(lbt.CommandArgument);
- hfDataSel.Value = data.ToShortDateString();
- // salva slot
- hfSlot.Value = "POM";
- // sistemo dati x dettaglio giorno
- mod_giornataASSD.DataRif = data;
- mod_giornataASSD.Slot = "POM";
- // update visualizzazione
- fixVisibility(true);
+ string slot = "POM";
+ showEditMode(data, slot);
}
protected void lbCancel_Click(object sender, EventArgs e)
diff --git a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs
index 08df7f3..a507e7b 100644
--- a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs
+++ b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs
@@ -66,6 +66,24 @@ namespace WebSCR.WebUserControls {
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEdit;
+ ///
+ /// lblData control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblData;
+
+ ///
+ /// lblSlot control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblSlot;
+
///
/// lbCancel control.
///
@@ -83,32 +101,5 @@ namespace WebSCR.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::WebSCR.WebUserControls.mod_giornataASSD mod_giornataASSD;
-
- ///
- /// GridView1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.GridView GridView1;
-
- ///
- /// hfDataSel control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.HiddenField hfDataSel;
-
- ///
- /// hfSlot control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.HiddenField hfSlot;
}
}
diff --git a/WebSCR/bin/SteamWare.dll b/WebSCR/bin/SteamWare.dll
index 10f36a3..e39fa6a 100644
Binary files a/WebSCR/bin/SteamWare.dll and b/WebSCR/bin/SteamWare.dll differ
diff --git a/WebSCR/bin/WebSCR.dll b/WebSCR/bin/WebSCR.dll
index 6e6e1a2..779e2a9 100644
Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ
diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll
index dd73bee..0a23211 100644
Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ
diff --git a/WebSCR_data/bin/Debug/SteamWare.dll b/WebSCR_data/bin/Debug/SteamWare.dll
index 10f36a3..e39fa6a 100644
Binary files a/WebSCR_data/bin/Debug/SteamWare.dll and b/WebSCR_data/bin/Debug/SteamWare.dll differ
diff --git a/WebSCR_data/bin/Debug/WebSCR_data.dll b/WebSCR_data/bin/Debug/WebSCR_data.dll
index dd73bee..0a23211 100644
Binary files a/WebSCR_data/bin/Debug/WebSCR_data.dll and b/WebSCR_data/bin/Debug/WebSCR_data.dll differ
diff --git a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache
index 2fb84b0..6d8a41a 100644
Binary files a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache and b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache differ
diff --git a/WebSCR_data/obj/Debug/WebSCR_data.dll b/WebSCR_data/obj/Debug/WebSCR_data.dll
index dd73bee..0a23211 100644
Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ