diff --git a/.vs/WebSCR/v14/.suo b/.vs/WebSCR/v14/.suo index 4d16256..d337d0e 100644 Binary files a/.vs/WebSCR/v14/.suo and b/.vs/WebSCR/v14/.suo differ diff --git a/WebSCR/WebUserControls/mod_impegno.ascx b/WebSCR/WebUserControls/mod_impegno.ascx index cd5826b..268ee82 100644 --- a/WebSCR/WebUserControls/mod_impegno.ascx +++ b/WebSCR/WebUserControls/mod_impegno.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_impegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_impegno" %> - +
@@ -17,7 +17,7 @@
-
+
@@ -26,24 +26,29 @@
+
+ +
+ +
-
+
- +
- +
- -
- -
-
- -
- + + + + + + + +
@@ -133,7 +138,7 @@
-
+
@@ -142,24 +147,29 @@
+
+ +
+ +
-
+
- +
- +
- -
- -
-
- -
- + + + + + + + +
@@ -230,7 +240,7 @@
- +
diff --git a/WebSCR/WebUserControls/mod_impegno.ascx.cs b/WebSCR/WebUserControls/mod_impegno.ascx.cs index 4ad0f0b..0c7dd07 100644 --- a/WebSCR/WebUserControls/mod_impegno.ascx.cs +++ b/WebSCR/WebUserControls/mod_impegno.ascx.cs @@ -11,6 +11,20 @@ namespace WebSCR.WebUserControls { public partial class mod_impegno : System.Web.UI.UserControl { + /// + /// evento errore in update + /// + public event EventHandler eh_errUpd; + /// + /// sollevo evento selezione /deselezione + /// + protected void raiseEventErrUpd() + { + if (eh_errUpd != null) + { + eh_errUpd(this, new EventArgs()); + } + } protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) @@ -79,5 +93,16 @@ namespace WebSCR.WebUserControls memLayer.ML.setSessionVal("errorMess", "Record Eliminato"); Response.Redirect(SteamWare.devicesAuthProxy.pagCorrente); } + + protected void frmViewImpegni_ItemUpdating(object sender, FormViewUpdateEventArgs e) + { + // controllo, SE avesse selezionato ND NON permetto salvataggio e blocco + if (e.NewValues["RitUsato"].ToString() == "-1") + { + e.Cancel = true; + memLayer.ML.setSessionVal("errorMess", "ERRORE: va specificato Si/no per ritiro usato"); + raiseEventErrUpd(); + } + } } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_pianificazione.ascx.cs b/WebSCR/WebUserControls/mod_pianificazione.ascx.cs index caf22bf..af4a4f6 100644 --- a/WebSCR/WebUserControls/mod_pianificazione.ascx.cs +++ b/WebSCR/WebUserControls/mod_pianificazione.ascx.cs @@ -35,6 +35,12 @@ namespace WebSCR.WebUserControls mod_filtroZona.eh_selIndir += mod_filtroZona_eh_selIndir; mod_filtroPeriodo.eh_selData += mod_filtroPeriodo_eh_selData; mod_dettInt.eh_update += mod_dettInt_eh_update; + mod_impegno.eh_errUpd += Mod_impegno_eh_errUpd; + } + + private void Mod_impegno_eh_errUpd(object sender, EventArgs e) + { + lblWarning.Text = errorMess; } /// diff --git a/WebSCR/bin/SteamWare.dll b/WebSCR/bin/SteamWare.dll index 2019290..2124124 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 caf8a18..820a19e 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 f92349c..0ffb07f 100644 Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs index 7238f02..a1abf6a 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -2753,7 +2753,7 @@ namespace WebSCR_data { string RifOC, string UrlDoc, int NumOp, - bool RitUsato, + int RitUsato, bool Ascensore, int PianoCons, string UserMod, @@ -2938,7 +2938,7 @@ namespace WebSCR_data { base.Columns.Add(this.columnUrlDoc); this.columnNumOp = new global::System.Data.DataColumn("NumOp", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumOp); - this.columnRitUsato = new global::System.Data.DataColumn("RitUsato", typeof(bool), null, global::System.Data.MappingType.Element); + this.columnRitUsato = new global::System.Data.DataColumn("RitUsato", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnRitUsato); this.columnAscensore = new global::System.Data.DataColumn("Ascensore", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnAscensore); @@ -7255,9 +7255,9 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool RitUsato { + public int RitUsato { get { - return ((bool)(this[this.tableImpegni.RitUsatoColumn])); + return ((int)(this[this.tableImpegni.RitUsatoColumn])); } set { this[this.tableImpegni.RitUsatoColumn] = value; diff --git a/WebSCR_data/DS_Applicazione.cs b/WebSCR_data/DS_Applicazione.cs new file mode 100644 index 0000000..27c57ce --- /dev/null +++ b/WebSCR_data/DS_Applicazione.cs @@ -0,0 +1,16 @@ +namespace WebSCR_data +{ +} + +namespace WebSCR_data { + + + public partial class DS_Applicazione { + } +} +namespace WebSCR_data { + + + public partial class DS_Applicazione { + } +} diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index a04568a..58e6a71 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -1586,7 +1586,7 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr) - + diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss index 6130362..7d9798b 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -4,13 +4,13 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + diff --git a/WebSCR_data/WebSCR_data.csproj b/WebSCR_data/WebSCR_data.csproj index afc6f6b..ae44665 100644 --- a/WebSCR_data/WebSCR_data.csproj +++ b/WebSCR_data/WebSCR_data.csproj @@ -38,6 +38,9 @@ + + DS_Applicazione.xsd + True True diff --git a/WebSCR_data/bin/Debug/SteamWare.dll b/WebSCR_data/bin/Debug/SteamWare.dll index 2019290..2124124 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 f92349c..0ffb07f 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/TempPE/DS_Applicazione.Designer.cs.dll b/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll index 3990613..d4904e9 100644 Binary files a/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache index 3a76f14..835ee8e 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 f92349c..0ffb07f 100644 Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ