diff --git a/.vs/WebSCR/v14/.suo b/.vs/WebSCR/v14/.suo index 0a62306..59224c1 100644 Binary files a/.vs/WebSCR/v14/.suo and b/.vs/WebSCR/v14/.suo differ diff --git a/WebSCR/WebUserControls/mod_giornataASSD.ascx b/WebSCR/WebUserControls/mod_giornataASSD.ascx index 1d6c649..1e84882 100644 --- a/WebSCR/WebUserControls/mod_giornataASSD.ascx +++ b/WebSCR/WebUserControls/mod_giornataASSD.ascx @@ -4,11 +4,26 @@ - +
- <%# Eval("DescrSquadra") %> + + <%# Eval("DescrSquadra") %> +
+
+ +
+
+
+
+ + + +
+
+ + <%# Eval("DescrSquadra") %>
diff --git a/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs b/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs index e1f2b0d..b5c95dc 100644 --- a/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs +++ b/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs @@ -11,7 +11,6 @@ namespace WebSCR.WebUserControls { protected void Page_Load(object sender, EventArgs e) { - } /// @@ -49,6 +48,18 @@ namespace WebSCR.WebUserControls hfSlot.Value = value; } } - + public bool editMode + { + get + { + return repShow.Visible; + + } + set + { + repShow.Visible = !value; + repEdit.Visible = value; + } + } } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs b/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs index 199511c..8d7eec5 100644 --- a/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs @@ -31,13 +31,22 @@ namespace WebSCR.WebUserControls { protected global::System.Web.UI.WebControls.HiddenField hfSlot; /// - /// repSquadre control. + /// repShow control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Repeater repSquadre; + protected global::System.Web.UI.WebControls.Repeater repShow; + + /// + /// repEdit control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Repeater repEdit; /// /// odsSquadre control. diff --git a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx index 5f3ad59..d1c8368 100644 --- a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx +++ b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx @@ -20,13 +20,13 @@
- MATTINA - + MATTINA +

- POMERIGGIO - + POMERIGGIO +
@@ -37,17 +37,16 @@
-
-

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