diff --git a/.vs/WebSCR/v14/.suo b/.vs/WebSCR/v14/.suo index e6228ba..0a62306 100644 Binary files a/.vs/WebSCR/v14/.suo and b/.vs/WebSCR/v14/.suo differ diff --git a/WebSCR/WebSCR.csproj b/WebSCR/WebSCR.csproj index d38479a..3ba12e2 100644 --- a/WebSCR/WebSCR.csproj +++ b/WebSCR/WebSCR.csproj @@ -396,6 +396,7 @@ + @@ -620,6 +621,13 @@ mod_cronologico.ascx + + mod_dettASSD.ascx + ASPXCodeBehind + + + mod_dettASSD.ascx + mod_dettInt.ascx ASPXCodeBehind diff --git a/WebSCR/WebUserControls/mod_dettASSD.ascx b/WebSCR/WebUserControls/mod_dettASSD.ascx new file mode 100644 index 0000000..6530490 --- /dev/null +++ b/WebSCR/WebUserControls/mod_dettASSD.ascx @@ -0,0 +1,19 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettASSD" %> + + + + + <%# Eval("CognomeNome") %> |  + + + + + + + + + + + + + diff --git a/WebSCR/WebUserControls/mod_dettASSD.ascx.cs b/WebSCR/WebUserControls/mod_dettASSD.ascx.cs new file mode 100644 index 0000000..1d288c6 --- /dev/null +++ b/WebSCR/WebUserControls/mod_dettASSD.ascx.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebSCR.WebUserControls +{ + public partial class mod_dettASSD : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + repMatr.DataBind(); + } + /// + /// data di riferimento scelta + /// + public DateTime DataRif + { + get + { + DateTime answ = DateTime.Now; + try + { + answ = Convert.ToDateTime(hfDataRif.Value); + } + catch + { } + return answ; + } + set + { + hfDataRif.Value = value.ToShortDateString(); + //repMatr.DataBind(); + } + } + /// + /// slot impostato + /// + public string Slot + { + get + { + return hfSlot.Value; + } + set + { + hfSlot.Value = value; + //repMatr.DataBind(); + } + } + /// + /// CodSquadra impostata + /// + public string CodSquadra + { + get + { + return hfCodSquadra.Value; + } + set + { + hfCodSquadra.Value = value; + //repMatr.DataBind(); + } + } + } +} \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_dettASSD.ascx.designer.cs b/WebSCR/WebUserControls/mod_dettASSD.ascx.designer.cs new file mode 100644 index 0000000..7cfb3a0 --- /dev/null +++ b/WebSCR/WebUserControls/mod_dettASSD.ascx.designer.cs @@ -0,0 +1,60 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebSCR.WebUserControls { + + + public partial class mod_dettASSD { + + /// + /// repMatr control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Repeater repMatr; + + /// + /// odsDip control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsDip; + + /// + /// hfDataRif control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfDataRif; + + /// + /// 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; + + /// + /// hfCodSquadra control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfCodSquadra; + } +} diff --git a/WebSCR/WebUserControls/mod_giornataASSD.ascx b/WebSCR/WebUserControls/mod_giornataASSD.ascx index 3938d10..1d6c649 100644 --- a/WebSCR/WebUserControls/mod_giornataASSD.ascx +++ b/WebSCR/WebUserControls/mod_giornataASSD.ascx @@ -1,6 +1,24 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_giornataASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_giornataASSD" %> +<%@ Register Src="~/WebUserControls/mod_dettASSD.ascx" TagPrefix="uc1" TagName="mod_dettASSD" %> + - - + + +
+
+ <%# Eval("DescrSquadra") %> +
+
+ +
+
+
+
+ + + + + + diff --git a/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs b/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs index 831a8ba..e1f2b0d 100644 --- a/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs +++ b/WebSCR/WebUserControls/mod_giornataASSD.ascx.cs @@ -17,7 +17,7 @@ namespace WebSCR.WebUserControls /// /// data di riferimento scelta /// - public DateTime dataRif + public DateTime DataRif { get { @@ -33,13 +33,12 @@ namespace WebSCR.WebUserControls set { hfDataRif.Value = value.ToShortDateString(); - lblData.Text = value.ToShortDateString(); } } /// /// slot impostato /// - public string slot + public string Slot { get { @@ -48,7 +47,6 @@ namespace WebSCR.WebUserControls set { hfSlot.Value = value; - lblSlot.Text = value; } } diff --git a/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs b/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs index e0b8e78..199511c 100644 --- a/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_giornataASSD.ascx.designer.cs @@ -31,21 +31,21 @@ namespace WebSCR.WebUserControls { protected global::System.Web.UI.WebControls.HiddenField hfSlot; /// - /// lblData control. + /// repSquadre control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label lblData; + protected global::System.Web.UI.WebControls.Repeater repSquadre; /// - /// lblSlot control. + /// odsSquadre control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label lblSlot; + protected global::System.Web.UI.WebControls.ObjectDataSource odsSquadre; } } diff --git a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx index ad62c3f..5f3ad59 100644 --- a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx +++ b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx @@ -15,16 +15,18 @@
-
+
-
- +
+ MATTINA +

-
- +
+ POMERIGGIO +
@@ -34,4 +36,18 @@ +
+
+

DATA - SLOT

+ Torna a schema SETTIMANALE +
+ +
+
+
+ + + +
+
diff --git a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs index 3a19bde..511e831 100644 --- a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs +++ b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using WebSCR_data; namespace WebSCR.WebUserControls { @@ -11,9 +12,22 @@ namespace WebSCR.WebUserControls { protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + fixVisibility(false); + } //aggancio modifica data e salvo... mod_selData.eh_update += Mod_selData_eh_update; } + /// + /// determina visibilità controlli + /// + /// + private void fixVisibility(bool showDet) + { + repWeek.Visible = !showDet; + divEdit.Visible = showDet; + } private void Mod_selData_eh_update(object sender, EventArgs e) { @@ -23,11 +37,53 @@ namespace WebSCR.WebUserControls protected void lbtClonaPrev_Click(object sender, EventArgs e) { // chiamo stored x clonare da sett prec + DtProxy.man.taASSD.clonePrevWeek(mod_selData.dateSel); + // refresh + repWeek.DataBind(); } protected void lbtInitWeek_Click(object sender, EventArgs e) { // chiamo stored x inserire missing + DtProxy.man.taASSD.insMiss(mod_selData.dateSel); + + // refresh + repWeek.DataBind(); + } + + protected void lbtEditMat_Click(object sender, EventArgs e) + { + // salvo data + LinkButton lbt = (LinkButton)sender; + DateTime data = Convert.ToDateTime(lbt.CommandArgument); + hfDataSel.Value = data.ToShortDateString(); + // salva slot + hfSlot.Value = "MAT"; + // sistemo dati x dettaglio giorno + mod_giornataASSD.DataRif = data; + mod_giornataASSD.Slot = "MAT"; + // update visualizzazione + fixVisibility(true); + } + + protected void lbtEditPom_Click(object sender, EventArgs e) + { + // salvo data + 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); + } + + protected void lbCancel_Click(object sender, EventArgs e) + { + fixVisibility(false); } } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs index 2354150..08df7f3 100644 --- a/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_schemaSettASSD.ascx.designer.cs @@ -56,5 +56,59 @@ namespace WebSCR.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsSettimana; + + /// + /// divEdit control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEdit; + + /// + /// lbCancel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbCancel; + + /// + /// mod_giornataASSD control. + /// + /// + /// Auto-generated field. + /// 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 79143eb..10f36a3 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 36bf108..6e6e1a2 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 4f4415a..dd73bee 100644 Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ diff --git a/WebSCR/obj/Debug/WebSCR.csproj.FileListAbsolute.txt b/WebSCR/obj/Debug/WebSCR.csproj.FileListAbsolute.txt index 17852a6..bd3eac3 100644 --- a/WebSCR/obj/Debug/WebSCR.csproj.FileListAbsolute.txt +++ b/WebSCR/obj/Debug/WebSCR.csproj.FileListAbsolute.txt @@ -27,6 +27,7 @@ C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\W C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.dll C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.pdb C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\bin\DayPilot.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\SteamWare.dll C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\NLog.config C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebSCR.dll.config C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebSCR.dll @@ -40,7 +41,6 @@ C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSC C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\Newtonsoft.Json.dll C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\NLog.dll C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\NLog.Web.dll -C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\SteamWare.dll C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\System.Web.Optimization.dll C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebGrease.dll C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\WebSCR\WebSCR\bin\WebSCR_data.dll diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs index 94fd7c7..ce3a45c 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -54,6 +54,8 @@ namespace WebSCR_data { private v_resImpDataTable tablev_resImp; + private AssegnSlotSquadreDipDataTable tableAssegnSlotSquadreDip; + private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre; private global::System.Data.DataRelation relationFK_AssegnSquadre_Disponibilita; @@ -133,6 +135,9 @@ namespace WebSCR_data { if ((ds.Tables["v_resImp"] != null)) { base.Tables.Add(new v_resImpDataTable(ds.Tables["v_resImp"])); } + if ((ds.Tables["AssegnSlotSquadreDip"] != null)) { + base.Tables.Add(new AssegnSlotSquadreDipDataTable(ds.Tables["AssegnSlotSquadreDip"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -301,6 +306,16 @@ namespace WebSCR_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AssegnSlotSquadreDipDataTable AssegnSlotSquadreDip { + get { + return this.tableAssegnSlotSquadreDip; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -413,6 +428,9 @@ namespace WebSCR_data { if ((ds.Tables["v_resImp"] != null)) { base.Tables.Add(new v_resImpDataTable(ds.Tables["v_resImp"])); } + if ((ds.Tables["AssegnSlotSquadreDip"] != null)) { + base.Tables.Add(new AssegnSlotSquadreDipDataTable(ds.Tables["AssegnSlotSquadreDip"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -536,6 +554,12 @@ namespace WebSCR_data { this.tablev_resImp.InitVars(); } } + this.tableAssegnSlotSquadreDip = ((AssegnSlotSquadreDipDataTable)(base.Tables["AssegnSlotSquadreDip"])); + if ((initTable == true)) { + if ((this.tableAssegnSlotSquadreDip != null)) { + this.tableAssegnSlotSquadreDip.InitVars(); + } + } this.relationFK_Disponibilita_AnagSquadre = this.Relations["FK_Disponibilita_AnagSquadre"]; this.relationFK_AssegnSquadre_Disponibilita = this.Relations["FK_AssegnSquadre_Disponibilita"]; this.relationFK_AssegnSquadre_Dipendenti = this.Relations["FK_AssegnSquadre_Dipendenti"]; @@ -579,6 +603,8 @@ namespace WebSCR_data { base.Tables.Add(this.tableDipendenti); this.tablev_resImp = new v_resImpDataTable(); base.Tables.Add(this.tablev_resImp); + this.tableAssegnSlotSquadreDip = new AssegnSlotSquadreDipDataTable(); + base.Tables.Add(this.tableAssegnSlotSquadreDip); this.relationFK_Disponibilita_AnagSquadre = new global::System.Data.DataRelation("FK_Disponibilita_AnagSquadre", new global::System.Data.DataColumn[] { this.tableAnagSquadre.CodSquadraColumn}, new global::System.Data.DataColumn[] { this.tableDisponibilita.CodSquadraColumn}, false); @@ -685,6 +711,12 @@ namespace WebSCR_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAssegnSlotSquadreDip() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -785,6 +817,9 @@ namespace WebSCR_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_resImpRowChangeEventHandler(object sender, v_resImpRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AssegnSlotSquadreDipRowChangeEventHandler(object sender, AssegnSlotSquadreDipRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -6720,6 +6755,365 @@ namespace WebSCR_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AssegnSlotSquadreDipDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnData; + + private global::System.Data.DataColumn columnSlot; + + private global::System.Data.DataColumn columnCodSquadra; + + private global::System.Data.DataColumn columnMatr; + + private global::System.Data.DataColumn columnDescrSquadra; + + private global::System.Data.DataColumn columnCognomeNome; + + private global::System.Data.DataColumn columnCssColor; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipDataTable() { + this.TableName = "AssegnSlotSquadreDip"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AssegnSlotSquadreDipDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AssegnSlotSquadreDipDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataColumn { + get { + return this.columnData; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SlotColumn { + get { + return this.columnSlot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodSquadraColumn { + get { + return this.columnCodSquadra; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrColumn { + get { + return this.columnMatr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrSquadraColumn { + get { + return this.columnDescrSquadra; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CognomeNomeColumn { + get { + return this.columnCognomeNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CssColorColumn { + get { + return this.columnCssColor; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipRow this[int index] { + get { + return ((AssegnSlotSquadreDipRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSlotSquadreDipRowChangeEventHandler AssegnSlotSquadreDipRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAssegnSlotSquadreDipRow(AssegnSlotSquadreDipRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipRow AddAssegnSlotSquadreDipRow(System.DateTime Data, string Slot, string CodSquadra, string Matr, string DescrSquadra, string CognomeNome, string CssColor) { + AssegnSlotSquadreDipRow rowAssegnSlotSquadreDipRow = ((AssegnSlotSquadreDipRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + Data, + Slot, + CodSquadra, + Matr, + DescrSquadra, + CognomeNome, + CssColor}; + rowAssegnSlotSquadreDipRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAssegnSlotSquadreDipRow); + return rowAssegnSlotSquadreDipRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipRow FindByDataSlotCodSquadraMatr(System.DateTime Data, string Slot, string CodSquadra, string Matr) { + return ((AssegnSlotSquadreDipRow)(this.Rows.Find(new object[] { + Data, + Slot, + CodSquadra, + Matr}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AssegnSlotSquadreDipDataTable cln = ((AssegnSlotSquadreDipDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AssegnSlotSquadreDipDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnData = base.Columns["Data"]; + this.columnSlot = base.Columns["Slot"]; + this.columnCodSquadra = base.Columns["CodSquadra"]; + this.columnMatr = base.Columns["Matr"]; + this.columnDescrSquadra = base.Columns["DescrSquadra"]; + this.columnCognomeNome = base.Columns["CognomeNome"]; + this.columnCssColor = base.Columns["CssColor"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnData = new global::System.Data.DataColumn("Data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnData); + this.columnSlot = new global::System.Data.DataColumn("Slot", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSlot); + this.columnCodSquadra = new global::System.Data.DataColumn("CodSquadra", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodSquadra); + this.columnMatr = new global::System.Data.DataColumn("Matr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatr); + this.columnDescrSquadra = new global::System.Data.DataColumn("DescrSquadra", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrSquadra); + this.columnCognomeNome = new global::System.Data.DataColumn("CognomeNome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognomeNome); + this.columnCssColor = new global::System.Data.DataColumn("CssColor", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCssColor); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnData, + this.columnSlot, + this.columnCodSquadra, + this.columnMatr}, true)); + this.columnData.AllowDBNull = false; + this.columnSlot.AllowDBNull = false; + this.columnSlot.MaxLength = 50; + this.columnCodSquadra.AllowDBNull = false; + this.columnCodSquadra.MaxLength = 50; + this.columnMatr.AllowDBNull = false; + this.columnMatr.MaxLength = 50; + this.columnDescrSquadra.ReadOnly = true; + this.columnDescrSquadra.Caption = "CognomeNome"; + this.columnDescrSquadra.MaxLength = 101; + this.columnCognomeNome.ReadOnly = true; + this.columnCognomeNome.MaxLength = 101; + this.columnCssColor.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipRow NewAssegnSlotSquadreDipRow() { + return ((AssegnSlotSquadreDipRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AssegnSlotSquadreDipRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AssegnSlotSquadreDipRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AssegnSlotSquadreDipRowChanged != null)) { + this.AssegnSlotSquadreDipRowChanged(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AssegnSlotSquadreDipRowChanging != null)) { + this.AssegnSlotSquadreDipRowChanging(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AssegnSlotSquadreDipRowDeleted != null)) { + this.AssegnSlotSquadreDipRowDeleted(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AssegnSlotSquadreDipRowDeleting != null)) { + this.AssegnSlotSquadreDipRowDeleting(this, new AssegnSlotSquadreDipRowChangeEvent(((AssegnSlotSquadreDipRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAssegnSlotSquadreDipRow(AssegnSlotSquadreDipRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Applicazione ds = new DS_Applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AssegnSlotSquadreDipDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -9609,6 +10003,149 @@ namespace WebSCR_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class AssegnSlotSquadreDipRow : global::System.Data.DataRow { + + private AssegnSlotSquadreDipDataTable tableAssegnSlotSquadreDip; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AssegnSlotSquadreDipRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAssegnSlotSquadreDip = ((AssegnSlotSquadreDipDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime Data { + get { + return ((global::System.DateTime)(this[this.tableAssegnSlotSquadreDip.DataColumn])); + } + set { + this[this.tableAssegnSlotSquadreDip.DataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Slot { + get { + return ((string)(this[this.tableAssegnSlotSquadreDip.SlotColumn])); + } + set { + this[this.tableAssegnSlotSquadreDip.SlotColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodSquadra { + get { + return ((string)(this[this.tableAssegnSlotSquadreDip.CodSquadraColumn])); + } + set { + this[this.tableAssegnSlotSquadreDip.CodSquadraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Matr { + get { + return ((string)(this[this.tableAssegnSlotSquadreDip.MatrColumn])); + } + set { + this[this.tableAssegnSlotSquadreDip.MatrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescrSquadra { + get { + try { + return ((string)(this[this.tableAssegnSlotSquadreDip.DescrSquadraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrSquadra\' in table \'AssegnSlotSquadreDip\' is DBNull.", e); + } + } + set { + this[this.tableAssegnSlotSquadreDip.DescrSquadraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CognomeNome { + get { + try { + return ((string)(this[this.tableAssegnSlotSquadreDip.CognomeNomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CognomeNome\' in table \'AssegnSlotSquadreDip\' is DBNull.", e); + } + } + set { + this[this.tableAssegnSlotSquadreDip.CognomeNomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CssColor { + get { + try { + return ((string)(this[this.tableAssegnSlotSquadreDip.CssColorColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CssColor\' in table \'AssegnSlotSquadreDip\' is DBNull.", e); + } + } + set { + this[this.tableAssegnSlotSquadreDip.CssColorColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrSquadraNull() { + return this.IsNull(this.tableAssegnSlotSquadreDip.DescrSquadraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrSquadraNull() { + this[this.tableAssegnSlotSquadreDip.DescrSquadraColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCognomeNomeNull() { + return this.IsNull(this.tableAssegnSlotSquadreDip.CognomeNomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCognomeNomeNull() { + this[this.tableAssegnSlotSquadreDip.CognomeNomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCssColorNull() { + return this.IsNull(this.tableAssegnSlotSquadreDip.CssColorColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCssColorNull() { + this[this.tableAssegnSlotSquadreDip.CssColorColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -10118,6 +10655,40 @@ namespace WebSCR_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AssegnSlotSquadreDipRowChangeEvent : global::System.EventArgs { + + private AssegnSlotSquadreDipRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipRowChangeEvent(AssegnSlotSquadreDipRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace WebSCR_data.DS_ApplicazioneTableAdapters { @@ -16604,6 +17175,314 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)"; } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AssegnSlotSquadreDipTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSlotSquadreDipTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AssegnSlotSquadreDip"; + tableMapping.ColumnMappings.Add("Data", "Data"); + tableMapping.ColumnMappings.Add("Slot", "Slot"); + tableMapping.ColumnMappings.Add("CodSquadra", "CodSquadra"); + tableMapping.ColumnMappings.Add("Matr", "Matr"); + tableMapping.ColumnMappings.Add("DescrSquadra", "DescrSquadra"); + tableMapping.ColumnMappings.Add("CognomeNome", "CognomeNome"); + tableMapping.ColumnMappings.Add("CssColor", "CssColor"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::WebSCR_data.Properties.Settings.Default.WebSCRConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM v_ASSD"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ASSD_clonePrevWeek"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_ASSD_getByDateSlot"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSquadra", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Slot", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_ASS_getByDateSlot"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Slot", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_ASSD_insMiss"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 16, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Applicazione.AssegnSlotSquadreDipDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable = new DS_Applicazione.AssegnSlotSquadreDipDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.AssegnSlotSquadreDipDataTable getBySlotSq(string CodSquadra, global::System.Nullable Data, string Slot) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((CodSquadra == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodSquadra)); + } + if ((Data.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Data.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Slot == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Slot)); + } + DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable = new DS_Applicazione.AssegnSlotSquadreDipDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.AssegnSlotSquadreDipDataTable getSquadre_byDateSlot(global::System.Nullable Data, string Slot) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((Data.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Data.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Slot == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Slot)); + } + DS_Applicazione.AssegnSlotSquadreDipDataTable dataTable = new DS_Applicazione.AssegnSlotSquadreDipDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int clonePrevWeek(global::System.Nullable Data) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Data.HasValue == true)) { + command.Parameters[1].Value = ((System.DateTime)(Data.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int insMiss(global::System.Nullable Data) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((Data.HasValue == true)) { + command.Parameters[1].Value = ((System.DateTime)(Data.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index ed75b4e..65124b2 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -1339,6 +1339,76 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr) + + + + + + SELECT * FROM v_ASSD + + + + + + + + + + + + + + + + + + + dbo.stp_ASSD_clonePrevWeek + + + + + + + + + + + dbo.stp_ASSD_getByDateSlot + + + + + + + + + + + + + dbo.stp_ASS_getByDateSlot + + + + + + + + + + + + dbo.stp_ASSD_insMiss + + + + + + + + + @@ -2068,6 +2138,55 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2131,6 +2250,13 @@ 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 d351adc..faa216d 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -4,26 +4,27 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + 765 @@ -35,7 +36,7 @@ - + 707 @@ -47,7 +48,7 @@ - + 422 diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs index d2530e4..3c4b331 100644 --- a/WebSCR_data/DtProxy.cs +++ b/WebSCR_data/DtProxy.cs @@ -26,6 +26,7 @@ namespace WebSCR_data taAC = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter(); taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter(); taAsSq = new DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter(); + taASSD = new DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter(); taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter(); taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter(); taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter(); @@ -48,6 +49,7 @@ namespace WebSCR_data taAC.Connection.ConnectionString = connStr; taAS.Connection.ConnectionString = connStr; taAsSq.Connection.ConnectionString = connStr; + taASSD.Connection.ConnectionString = connStr; taAZ.Connection.ConnectionString = connStr; taImp.Connection.ConnectionString = connStr; taDetImp.Connection.ConnectionString = connStr; @@ -68,6 +70,7 @@ namespace WebSCR_data public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS; public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ; public DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter taAsSq; + public DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter taASSD; public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp; public DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter taDetImp; public DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter taVcz; diff --git a/WebSCR_data/bin/Debug/SteamWare.dll b/WebSCR_data/bin/Debug/SteamWare.dll index 79143eb..10f36a3 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 4f4415a..dd73bee 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 e789ece..d7f6db0 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 51ffade..2fb84b0 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 4f4415a..dd73bee 100644 Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ