diff --git a/.vs/WebSCR/v14/.suo b/.vs/WebSCR/v14/.suo index 757a1ab..44079c8 100644 Binary files a/.vs/WebSCR/v14/.suo and b/.vs/WebSCR/v14/.suo differ diff --git a/WebSCR/Menu.aspx b/WebSCR/Menu.aspx index cb0c507..870e6e3 100644 --- a/WebSCR/Menu.aspx +++ b/WebSCR/Menu.aspx @@ -1,16 +1,19 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="Menu.aspx.cs" Inherits="WebSCR.Menu" %> <%@ Register Src="~/WebUserControls/mod_squadre.ascx" TagPrefix="uc1" TagName="mod_squadre" %> +<%@ Register Src="~/WebUserControls/mod_AssSquadra.ascx" TagPrefix="uc1" TagName="mod_AssSquadra" %> +
+
- +
diff --git a/WebSCR/Menu.aspx.cs b/WebSCR/Menu.aspx.cs index 8425e18..5c13bc3 100644 --- a/WebSCR/Menu.aspx.cs +++ b/WebSCR/Menu.aspx.cs @@ -15,6 +15,7 @@ namespace WebSCR if (!Page.IsPostBack) { mod_squadre.Visible = false; + mod_AssSquadra.Visible = false; } } @@ -42,7 +43,7 @@ namespace WebSCR protected void lbComponiSquadra_Click(object sender, EventArgs e) { - + mod_AssSquadra.Visible = true; } } } \ No newline at end of file diff --git a/WebSCR/Menu.aspx.designer.cs b/WebSCR/Menu.aspx.designer.cs index a4a106b..cb82243 100644 --- a/WebSCR/Menu.aspx.designer.cs +++ b/WebSCR/Menu.aspx.designer.cs @@ -21,6 +21,15 @@ namespace WebSCR { /// protected global::WebSCR.WebUserControls.mod_squadre mod_squadre; + /// + /// mod_AssSquadra control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebSCR.WebUserControls.mod_AssSquadra mod_AssSquadra; + /// /// lbSetSquadra control. /// diff --git a/WebSCR/Web.config b/WebSCR/Web.config index 3ee99d0..5610bf2 100644 --- a/WebSCR/Web.config +++ b/WebSCR/Web.config @@ -39,7 +39,7 @@ - + diff --git a/WebSCR/WebSCR.csproj b/WebSCR/WebSCR.csproj index 2905d27..f3705e9 100644 --- a/WebSCR/WebSCR.csproj +++ b/WebSCR/WebSCR.csproj @@ -370,6 +370,7 @@ + @@ -535,6 +536,13 @@ ViewSwitcher.ascx + + mod_AssSquadra.ascx + ASPXCodeBehind + + + mod_AssSquadra.ascx + mod_consegne.ascx ASPXCodeBehind diff --git a/WebSCR/WebUserControls/mod_AssSquadra.ascx b/WebSCR/WebUserControls/mod_AssSquadra.ascx new file mode 100644 index 0000000..cfe63a7 --- /dev/null +++ b/WebSCR/WebUserControls/mod_AssSquadra.ascx @@ -0,0 +1,60 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_AssSquadra.ascx.cs" Inherits="WebSCR.WebUserControls.mod_AssSquadra" %> +<%@ Register Src="~/WebUserControls/mod_selData.ascx" TagPrefix="uc1" TagName="mod_selData" %> + + +
+ +
+
+ + +
+
+ +
+
+
+
+ + +
+
+ Aggiungi +
+
+
+
+
+
+ + + + + + + + + + + + + + Nessun record + + + + + + + + + + + + + + + +
+
+
diff --git a/WebSCR/WebUserControls/mod_AssSquadra.ascx.cs b/WebSCR/WebUserControls/mod_AssSquadra.ascx.cs new file mode 100644 index 0000000..0c3c17d --- /dev/null +++ b/WebSCR/WebUserControls/mod_AssSquadra.ascx.cs @@ -0,0 +1,37 @@ +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_AssSquadra : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + /// + /// inserimento associazione user/squadra + /// + /// + /// + protected void btnDoInsert_Click(object sender, EventArgs e) + { + DtProxy.man.taAsSq.insertQuery(ddlSquadre.SelectedValue, mod_selData.dateSel, ddlDip.SelectedValue); + grView.DataBind(); + } + + protected void ddlSquadre_SelectedIndexChanged(object sender, EventArgs e) + { + grView.DataBind(); + } + + protected void ddlDip_SelectedIndexChanged(object sender, EventArgs e) + { + } + } +} \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_AssSquadra.ascx.designer.cs b/WebSCR/WebUserControls/mod_AssSquadra.ascx.designer.cs new file mode 100644 index 0000000..e916202 --- /dev/null +++ b/WebSCR/WebUserControls/mod_AssSquadra.ascx.designer.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// 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_AssSquadra { + + /// + /// ddlSquadre control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlSquadre; + + /// + /// odsSquadre control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsSquadre; + + /// + /// mod_selData control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebSCR.WebUserControls.mod_selData mod_selData; + + /// + /// ddlDip control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlDip; + + /// + /// 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; + + /// + /// btnDoInsert control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton btnDoInsert; + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/WebSCR/WebUserControls/mod_pianificazione.ascx.cs b/WebSCR/WebUserControls/mod_pianificazione.ascx.cs index aa78d63..161d41e 100644 --- a/WebSCR/WebUserControls/mod_pianificazione.ascx.cs +++ b/WebSCR/WebUserControls/mod_pianificazione.ascx.cs @@ -73,12 +73,16 @@ namespace WebSCR.WebUserControls mod_giornata.Visible = false; mod_dettInt.Visible = false; mod_impegno.Visible = false; + mod_fileImpegno.Visible = false; + mod_fileUpload.Visible = false; if (qsVal("Data") != "") { if (qsVal("IdxImpegno") != "") { mod_impegno.Visible = true; mod_dettInt.Visible = true; + mod_fileImpegno.Visible = true; + mod_fileUpload.Visible = true; } else { diff --git a/WebSCR/WebUserControls/mod_selData.ascx.cs b/WebSCR/WebUserControls/mod_selData.ascx.cs index 05d6f19..1b599c8 100644 --- a/WebSCR/WebUserControls/mod_selData.ascx.cs +++ b/WebSCR/WebUserControls/mod_selData.ascx.cs @@ -39,5 +39,13 @@ namespace WebSCR.WebUserControls // ricarico! Response.Redirect(devicesAuthProxy.pagCorrente); } + + public DateTime dateSel + { + get + { + return Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif")); + } + } } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_squadre.ascx.cs b/WebSCR/WebUserControls/mod_squadre.ascx.cs index 7922cd2..71b4494 100644 --- a/WebSCR/WebUserControls/mod_squadre.ascx.cs +++ b/WebSCR/WebUserControls/mod_squadre.ascx.cs @@ -47,7 +47,7 @@ namespace WebSCR.WebUserControls memLayer.ML.setCookieVal("CodSquadra", riga.CodSquadra, DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra"))); memLayer.ML.setCookieVal("SquadraCurr", riga.DescrSquadra, DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra"))); memLayer.ML.setCookieVal("DataRif", DateTime.Now.ToString("yyyy-MM-dd"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra"))); - memLayer.ML.setCookieVal("NumGg", memLayer.ML.CRI("NumGg"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra"))); + memLayer.ML.setCookieVal("NumGg", memLayer.ML.CRS("NumGg"), DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra"))); memLayer.ML.setCookieVal("RecAgeDd", "1000", DateTime.Now.AddMinutes(memLayer.ML.confReadInt("minCookieSquadra"))); // ricarico! Response.Redirect(devicesAuthProxy.pagCorrente); diff --git a/WebSCR/bin/NLog.dll b/WebSCR/bin/NLog.dll index 6730265..064bc61 100644 Binary files a/WebSCR/bin/NLog.dll and b/WebSCR/bin/NLog.dll differ diff --git a/WebSCR/bin/SteamWare.dll b/WebSCR/bin/SteamWare.dll index 31e929c..a675e30 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 5492602..24a88d8 100644 Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ diff --git a/WebSCR/bin/WebSCR.dll.config b/WebSCR/bin/WebSCR.dll.config index 4bf1164..5610bf2 100644 --- a/WebSCR/bin/WebSCR.dll.config +++ b/WebSCR/bin/WebSCR.dll.config @@ -38,6 +38,8 @@ + + diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll index 671aea2..58a9090 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 e0f27e9..7a247fa 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -48,8 +48,16 @@ namespace WebSCR_data { private DB2_DOCSDataTable tableDB2_DOCS; + private AssegnSquadreDataTable tableAssegnSquadre; + + private DipendentiDataTable tableDipendenti; + private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre; + private global::System.Data.DataRelation relationFK_AssegnSquadre_Disponibilita; + + private global::System.Data.DataRelation relationFK_AssegnSquadre_Dipendenti; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -114,6 +122,12 @@ namespace WebSCR_data { if ((ds.Tables["DB2_DOCS"] != null)) { base.Tables.Add(new DB2_DOCSDataTable(ds.Tables["DB2_DOCS"])); } + if ((ds.Tables["AssegnSquadre"] != null)) { + base.Tables.Add(new AssegnSquadreDataTable(ds.Tables["AssegnSquadre"])); + } + if ((ds.Tables["Dipendenti"] != null)) { + base.Tables.Add(new DipendentiDataTable(ds.Tables["Dipendenti"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -252,6 +266,26 @@ 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 AssegnSquadreDataTable AssegnSquadre { + get { + return this.tableAssegnSquadre; + } + } + + [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 DipendentiDataTable Dipendenti { + get { + return this.tableDipendenti; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -355,6 +389,12 @@ namespace WebSCR_data { if ((ds.Tables["DB2_DOCS"] != null)) { base.Tables.Add(new DB2_DOCSDataTable(ds.Tables["DB2_DOCS"])); } + if ((ds.Tables["AssegnSquadre"] != null)) { + base.Tables.Add(new AssegnSquadreDataTable(ds.Tables["AssegnSquadre"])); + } + if ((ds.Tables["Dipendenti"] != null)) { + base.Tables.Add(new DipendentiDataTable(ds.Tables["Dipendenti"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -460,7 +500,21 @@ namespace WebSCR_data { this.tableDB2_DOCS.InitVars(); } } + this.tableAssegnSquadre = ((AssegnSquadreDataTable)(base.Tables["AssegnSquadre"])); + if ((initTable == true)) { + if ((this.tableAssegnSquadre != null)) { + this.tableAssegnSquadre.InitVars(); + } + } + this.tableDipendenti = ((DipendentiDataTable)(base.Tables["Dipendenti"])); + if ((initTable == true)) { + if ((this.tableDipendenti != null)) { + this.tableDipendenti.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"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -495,10 +549,24 @@ namespace WebSCR_data { base.Tables.Add(this.tablev_clientiZone); this.tableDB2_DOCS = new DB2_DOCSDataTable(); base.Tables.Add(this.tableDB2_DOCS); + this.tableAssegnSquadre = new AssegnSquadreDataTable(); + base.Tables.Add(this.tableAssegnSquadre); + this.tableDipendenti = new DipendentiDataTable(); + base.Tables.Add(this.tableDipendenti); 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); this.Relations.Add(this.relationFK_Disponibilita_AnagSquadre); + this.relationFK_AssegnSquadre_Disponibilita = new global::System.Data.DataRelation("FK_AssegnSquadre_Disponibilita", new global::System.Data.DataColumn[] { + this.tableDisponibilita.DataColumn, + this.tableDisponibilita.CodSquadraColumn}, new global::System.Data.DataColumn[] { + this.tableAssegnSquadre.DataFromColumn, + this.tableAssegnSquadre.CodSquadraColumn}, false); + this.Relations.Add(this.relationFK_AssegnSquadre_Disponibilita); + this.relationFK_AssegnSquadre_Dipendenti = new global::System.Data.DataRelation("FK_AssegnSquadre_Dipendenti", new global::System.Data.DataColumn[] { + this.tableDipendenti.MatrColumn}, new global::System.Data.DataColumn[] { + this.tableAssegnSquadre.MatrColumn}, false); + this.Relations.Add(this.relationFK_AssegnSquadre_Dipendenti); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -573,6 +641,18 @@ namespace WebSCR_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAssegnSquadre() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDipendenti() { + 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) { @@ -664,6 +744,12 @@ namespace WebSCR_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void DB2_DOCSRowChangeEventHandler(object sender, DB2_DOCSRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AssegnSquadreRowChangeEventHandler(object sender, AssegnSquadreRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DipendentiRowChangeEventHandler(object sender, DipendentiRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -5562,6 +5648,639 @@ namespace WebSCR_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AssegnSquadreDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnDataFrom; + + private global::System.Data.DataColumn columnCodSquadra; + + private global::System.Data.DataColumn columnMatr; + + private global::System.Data.DataColumn columnDataTo; + + private global::System.Data.DataColumn columnCognomeNome; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSquadreDataTable() { + this.TableName = "AssegnSquadre"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AssegnSquadreDataTable(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 AssegnSquadreDataTable(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 DataFromColumn { + get { + return this.columnDataFrom; + } + } + + [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 DataToColumn { + get { + return this.columnDataTo; + } + } + + [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")] + [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 AssegnSquadreRow this[int index] { + get { + return ((AssegnSquadreRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSquadreRowChangeEventHandler AssegnSquadreRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSquadreRowChangeEventHandler AssegnSquadreRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSquadreRowChangeEventHandler AssegnSquadreRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AssegnSquadreRowChangeEventHandler AssegnSquadreRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAssegnSquadreRow(AssegnSquadreRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSquadreRow AddAssegnSquadreRow(System.DateTime DataFrom, string CodSquadra, DipendentiRow parentDipendentiRowByFK_AssegnSquadre_Dipendenti, System.DateTime DataTo, string CognomeNome) { + AssegnSquadreRow rowAssegnSquadreRow = ((AssegnSquadreRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + DataFrom, + CodSquadra, + null, + DataTo, + CognomeNome}; + if ((parentDipendentiRowByFK_AssegnSquadre_Dipendenti != null)) { + columnValuesArray[2] = parentDipendentiRowByFK_AssegnSquadre_Dipendenti[0]; + } + rowAssegnSquadreRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAssegnSquadreRow); + return rowAssegnSquadreRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSquadreRow FindByDataFromCodSquadraMatr(System.DateTime DataFrom, string CodSquadra, string Matr) { + return ((AssegnSquadreRow)(this.Rows.Find(new object[] { + DataFrom, + 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() { + AssegnSquadreDataTable cln = ((AssegnSquadreDataTable)(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 AssegnSquadreDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnDataFrom = base.Columns["DataFrom"]; + this.columnCodSquadra = base.Columns["CodSquadra"]; + this.columnMatr = base.Columns["Matr"]; + this.columnDataTo = base.Columns["DataTo"]; + this.columnCognomeNome = base.Columns["CognomeNome"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnDataFrom = new global::System.Data.DataColumn("DataFrom", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataFrom); + 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.columnDataTo = new global::System.Data.DataColumn("DataTo", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataTo); + this.columnCognomeNome = new global::System.Data.DataColumn("CognomeNome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognomeNome); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnDataFrom, + this.columnCodSquadra, + this.columnMatr}, true)); + this.columnDataFrom.AllowDBNull = false; + this.columnCodSquadra.AllowDBNull = false; + this.columnCodSquadra.MaxLength = 50; + this.columnMatr.AllowDBNull = false; + this.columnMatr.MaxLength = 50; + this.columnCognomeNome.ReadOnly = true; + this.columnCognomeNome.MaxLength = 101; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSquadreRow NewAssegnSquadreRow() { + return ((AssegnSquadreRow)(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 AssegnSquadreRow(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(AssegnSquadreRow); + } + + [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.AssegnSquadreRowChanged != null)) { + this.AssegnSquadreRowChanged(this, new AssegnSquadreRowChangeEvent(((AssegnSquadreRow)(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.AssegnSquadreRowChanging != null)) { + this.AssegnSquadreRowChanging(this, new AssegnSquadreRowChangeEvent(((AssegnSquadreRow)(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.AssegnSquadreRowDeleted != null)) { + this.AssegnSquadreRowDeleted(this, new AssegnSquadreRowChangeEvent(((AssegnSquadreRow)(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.AssegnSquadreRowDeleting != null)) { + this.AssegnSquadreRowDeleting(this, new AssegnSquadreRowChangeEvent(((AssegnSquadreRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAssegnSquadreRow(AssegnSquadreRow 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 = "AssegnSquadreDataTable"; + 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 the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DipendentiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnMatr; + + private global::System.Data.DataColumn columnCognome; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnCognomeNome; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiDataTable() { + this.TableName = "Dipendenti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DipendentiDataTable(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 DipendentiDataTable(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 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 CognomeColumn { + get { + return this.columnCognome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [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")] + [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 DipendentiRow this[int index] { + get { + return ((DipendentiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDipendentiRow(DipendentiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow AddDipendentiRow(string Matr, string Cognome, string Nome, string CognomeNome) { + DipendentiRow rowDipendentiRow = ((DipendentiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + Matr, + Cognome, + Nome, + CognomeNome}; + rowDipendentiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDipendentiRow); + return rowDipendentiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow FindByMatr(string Matr) { + return ((DipendentiRow)(this.Rows.Find(new object[] { + 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() { + DipendentiDataTable cln = ((DipendentiDataTable)(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 DipendentiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnMatr = base.Columns["Matr"]; + this.columnCognome = base.Columns["Cognome"]; + this.columnNome = base.Columns["Nome"]; + this.columnCognomeNome = base.Columns["CognomeNome"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnMatr = new global::System.Data.DataColumn("Matr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatr); + this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognome); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnCognomeNome = new global::System.Data.DataColumn("CognomeNome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognomeNome); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnMatr}, true)); + this.columnMatr.AllowDBNull = false; + this.columnMatr.Unique = true; + this.columnMatr.MaxLength = 50; + this.columnCognome.AllowDBNull = false; + this.columnCognome.MaxLength = 50; + this.columnNome.AllowDBNull = false; + this.columnNome.MaxLength = 50; + this.columnCognomeNome.ReadOnly = true; + this.columnCognomeNome.MaxLength = 101; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow NewDipendentiRow() { + return ((DipendentiRow)(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 DipendentiRow(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(DipendentiRow); + } + + [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.DipendentiRowChanged != null)) { + this.DipendentiRowChanged(this, new DipendentiRowChangeEvent(((DipendentiRow)(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.DipendentiRowChanging != null)) { + this.DipendentiRowChanging(this, new DipendentiRowChangeEvent(((DipendentiRow)(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.DipendentiRowDeleted != null)) { + this.DipendentiRowDeleted(this, new DipendentiRowChangeEvent(((DipendentiRow)(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.DipendentiRowDeleting != null)) { + this.DipendentiRowDeleting(this, new DipendentiRowChangeEvent(((DipendentiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDipendentiRow(DipendentiRow 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 = "DipendentiDataTable"; + 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. /// @@ -7144,6 +7863,17 @@ namespace WebSCR_data { public void SetMinDispNull() { this[this.tableDisponibilita.MinDispColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSquadreRow[] GetAssegnSquadreRows() { + if ((this.Table.ChildRelations["FK_AssegnSquadre_Disponibilita"] == null)) { + return new AssegnSquadreRow[0]; + } + else { + return ((AssegnSquadreRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AssegnSquadre_Disponibilita"]))); + } + } } /// @@ -8034,6 +8764,219 @@ namespace WebSCR_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class AssegnSquadreRow : global::System.Data.DataRow { + + private AssegnSquadreDataTable tableAssegnSquadre; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AssegnSquadreRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAssegnSquadre = ((AssegnSquadreDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataFrom { + get { + return ((global::System.DateTime)(this[this.tableAssegnSquadre.DataFromColumn])); + } + set { + this[this.tableAssegnSquadre.DataFromColumn] = 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.tableAssegnSquadre.CodSquadraColumn])); + } + set { + this[this.tableAssegnSquadre.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.tableAssegnSquadre.MatrColumn])); + } + set { + this[this.tableAssegnSquadre.MatrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataTo { + get { + try { + return ((global::System.DateTime)(this[this.tableAssegnSquadre.DataToColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataTo\' in table \'AssegnSquadre\' is DBNull.", e); + } + } + set { + this[this.tableAssegnSquadre.DataToColumn] = 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.tableAssegnSquadre.CognomeNomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CognomeNome\' in table \'AssegnSquadre\' is DBNull.", e); + } + } + set { + this[this.tableAssegnSquadre.CognomeNomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DisponibilitaRow DisponibilitaRowParent { + get { + return ((DisponibilitaRow)(this.GetParentRow(this.Table.ParentRelations["FK_AssegnSquadre_Disponibilita"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_AssegnSquadre_Disponibilita"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow DipendentiRow { + get { + return ((DipendentiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AssegnSquadre_Dipendenti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_AssegnSquadre_Dipendenti"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataToNull() { + return this.IsNull(this.tableAssegnSquadre.DataToColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataToNull() { + this[this.tableAssegnSquadre.DataToColumn] = 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.tableAssegnSquadre.CognomeNomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCognomeNomeNull() { + this[this.tableAssegnSquadre.CognomeNomeColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DipendentiRow : global::System.Data.DataRow { + + private DipendentiDataTable tableDipendenti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DipendentiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDipendenti = ((DipendentiDataTable)(this.Table)); + } + + [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.tableDipendenti.MatrColumn])); + } + set { + this[this.tableDipendenti.MatrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Cognome { + get { + return ((string)(this[this.tableDipendenti.CognomeColumn])); + } + set { + this[this.tableDipendenti.CognomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + return ((string)(this[this.tableDipendenti.NomeColumn])); + } + set { + this[this.tableDipendenti.NomeColumn] = 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.tableDipendenti.CognomeNomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CognomeNome\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.CognomeNomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCognomeNomeNull() { + return this.IsNull(this.tableDipendenti.CognomeNomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCognomeNomeNull() { + this[this.tableDipendenti.CognomeNomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AssegnSquadreRow[] GetAssegnSquadreRows() { + if ((this.Table.ChildRelations["FK_AssegnSquadre_Dipendenti"] == null)) { + return new AssegnSquadreRow[0]; + } + else { + return ((AssegnSquadreRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AssegnSquadre_Dipendenti"]))); + } + } + } + /// ///Row event argument class /// @@ -8441,6 +9384,74 @@ namespace WebSCR_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AssegnSquadreRowChangeEvent : global::System.EventArgs { + + private AssegnSquadreRow 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 AssegnSquadreRowChangeEvent(AssegnSquadreRow 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 AssegnSquadreRow 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; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DipendentiRowChangeEvent : global::System.EventArgs { + + private DipendentiRow 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 DipendentiRowChangeEvent(DipendentiRow 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 DipendentiRow 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 { @@ -13903,6 +14914,641 @@ FROM raw.DB2_DOCS"; } } + /// + ///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 AssegnSquadreTableAdapter : 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 AssegnSquadreTableAdapter() { + 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 = "AssegnSquadre"; + tableMapping.ColumnMappings.Add("DataFrom", "DataFrom"); + tableMapping.ColumnMappings.Add("CodSquadra", "CodSquadra"); + tableMapping.ColumnMappings.Add("Matr", "Matr"); + tableMapping.ColumnMappings.Add("DataTo", "DataTo"); + tableMapping.ColumnMappings.Add("CognomeNome", "CognomeNome"); + 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[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT DataFrom, CodSquadra, Matr, DataTo, CognomeNome\r\nFROM v_" + + "AssSqDip"; + 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_AsSq_GetByCodSqData"; + 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("@CodSquadra", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_AsSq_insert"; + 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("@Matr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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.AssegnSquadreDataTable 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.AssegnSquadreDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.AssegnSquadreDataTable dataTable = new DS_Applicazione.AssegnSquadreDataTable(); + 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.AssegnSquadreDataTable GetByCodSqData(string CodSquadra, global::System.Nullable Data) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + 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; + } + DS_Applicazione.AssegnSquadreDataTable dataTable = new DS_Applicazione.AssegnSquadreDataTable(); + 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 insertQuery(string CodSquadra, global::System.Nullable Data, string Matr) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((CodSquadra == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodSquadra)); + } + if ((Data.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Data.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Matr == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Matr)); + } + 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; + } + } + + /// + ///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 DipendentiTableAdapter : 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 DipendentiTableAdapter() { + 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 = "Dipendenti"; + tableMapping.ColumnMappings.Add("Matr", "Matr"); + tableMapping.ColumnMappings.Add("Cognome", "Cognome"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("CognomeNome", "CognomeNome"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Dipendenti] WHERE (([Matr] = @Original_Matr) AND ([Cognome] = " + + "@Original_Cognome) AND ([Nome] = @Original_Nome) AND ([CognomeNome] = @Original_" + + "CognomeNome))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Matr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CognomeNome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CognomeNome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Dipendenti] ([Matr], [Cognome], [Nome]) VALUES (@Matr, @Cognom" + + "e, @Nome);\r\nSELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr " + + "= @Matr)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Dipendenti] SET [Matr] = @Matr, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([Matr] = @Original_Matr) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([CognomeNome] = @Original_CognomeNome)); +SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Matr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CognomeNome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CognomeNome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [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[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.Dipendenti"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [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.DipendentiDataTable 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.DipendentiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.DipendentiDataTable dataTable = new DS_Applicazione.DipendentiDataTable(); + 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 Update(DS_Applicazione.DipendentiDataTable dataTable) { + return this.Adapter.Update(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 Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "Dipendenti"); + } + + [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 Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [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 Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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.Delete, true)] + public virtual int Delete(string Original_Matr, string Original_Cognome, string Original_Nome, string Original_CognomeNome) { + if ((Original_Matr == null)) { + throw new global::System.ArgumentNullException("Original_Matr"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Matr)); + } + if ((Original_Cognome == null)) { + throw new global::System.ArgumentNullException("Original_Cognome"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Cognome)); + } + if ((Original_Nome == null)) { + throw new global::System.ArgumentNullException("Original_Nome"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Nome)); + } + if ((Original_CognomeNome == null)) { + throw new global::System.ArgumentNullException("Original_CognomeNome"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CognomeNome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [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.Insert, true)] + public virtual int Insert(string Matr, string Cognome, string Nome) { + if ((Matr == null)) { + throw new global::System.ArgumentNullException("Matr"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Matr)); + } + if ((Cognome == null)) { + throw new global::System.ArgumentNullException("Cognome"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cognome)); + } + if ((Nome == null)) { + throw new global::System.ArgumentNullException("Nome"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update(string Matr, string Cognome, string Nome, string Original_Matr, string Original_Cognome, string Original_Nome, string Original_CognomeNome) { + if ((Matr == null)) { + throw new global::System.ArgumentNullException("Matr"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Matr)); + } + if ((Cognome == null)) { + throw new global::System.ArgumentNullException("Cognome"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cognome)); + } + if ((Nome == null)) { + throw new global::System.ArgumentNullException("Nome"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome)); + } + if ((Original_Matr == null)) { + throw new global::System.ArgumentNullException("Original_Matr"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Matr)); + } + if ((Original_Cognome == null)) { + throw new global::System.ArgumentNullException("Original_Cognome"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Cognome)); + } + if ((Original_Nome == null)) { + throw new global::System.ArgumentNullException("Original_Nome"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Nome)); + } + if ((Original_CognomeNome == null)) { + throw new global::System.ArgumentNullException("Original_CognomeNome"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CognomeNome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [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.Update, true)] + public virtual int Update(string Cognome, string Nome, string Original_Matr, string Original_Cognome, string Original_Nome, string Original_CognomeNome) { + return this.Update(Original_Matr, Cognome, Nome, Original_Matr, Original_Cognome, Original_Nome, Original_CognomeNome); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -13925,6 +15571,8 @@ FROM raw.DB2_DOCS"; private DisponibilitaTableAdapter _disponibilitaTableAdapter; + private DipendentiTableAdapter _dipendentiTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -14010,6 +15658,20 @@ FROM raw.DB2_DOCS"; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public DipendentiTableAdapter DipendentiTableAdapter { + get { + return this._dipendentiTableAdapter; + } + set { + this._dipendentiTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -14049,6 +15711,10 @@ FROM raw.DB2_DOCS"; && (this._disponibilitaTableAdapter.Connection != null))) { return this._disponibilitaTableAdapter.Connection; } + if (((this._dipendentiTableAdapter != null) + && (this._dipendentiTableAdapter.Connection != null))) { + return this._dipendentiTableAdapter.Connection; + } return null; } set { @@ -14077,6 +15743,9 @@ FROM raw.DB2_DOCS"; if ((this._disponibilitaTableAdapter != null)) { count = (count + 1); } + if ((this._dipendentiTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -14097,6 +15766,24 @@ FROM raw.DB2_DOCS"; allChangedRows.AddRange(updatedRows); } } + if ((this._disponibilitaTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._disponibilitaTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._dipendentiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._dipendentiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._anagZoneTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagZone.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -14124,15 +15811,6 @@ FROM raw.DB2_DOCS"; allChangedRows.AddRange(updatedRows); } } - if ((this._disponibilitaTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._disponibilitaTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } return result; } @@ -14151,6 +15829,22 @@ FROM raw.DB2_DOCS"; allAddedRows.AddRange(addedRows); } } + if ((this._disponibilitaTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._disponibilitaTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._dipendentiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._dipendentiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._anagZoneTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagZone.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -14175,14 +15869,6 @@ FROM raw.DB2_DOCS"; allAddedRows.AddRange(addedRows); } } - if ((this._disponibilitaTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._disponibilitaTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } return result; } @@ -14193,14 +15879,6 @@ FROM raw.DB2_DOCS"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._disponibilitaTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._disponibilitaTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._anagClientiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -14225,6 +15903,22 @@ FROM raw.DB2_DOCS"; allChangedRows.AddRange(deletedRows); } } + if ((this._dipendentiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Dipendenti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._dipendentiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._disponibilitaTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._disponibilitaTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._anagSquadreTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagSquadre.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -14297,6 +15991,11 @@ FROM raw.DB2_DOCS"; throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._dipendentiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._dipendentiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -14374,6 +16073,15 @@ FROM raw.DB2_DOCS"; adaptersWithAcceptChangesDuringUpdate.Add(this._disponibilitaTableAdapter.Adapter); } } + if ((this._dipendentiTableAdapter != null)) { + revertConnections.Add(this._dipendentiTableAdapter, this._dipendentiTableAdapter.Connection); + this._dipendentiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._dipendentiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._dipendentiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._dipendentiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._dipendentiTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -14452,6 +16160,10 @@ FROM raw.DB2_DOCS"; this._disponibilitaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._disponibilitaTableAdapter])); this._disponibilitaTableAdapter.Transaction = null; } + if ((this._dipendentiTableAdapter != null)) { + this._dipendentiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._dipendentiTableAdapter])); + this._dipendentiTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index 13a4624..5cd695a 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -1146,6 +1146,109 @@ FROM raw.DB2_DOCS + + + + + + SELECT DataFrom, CodSquadra, Matr, DataTo, CognomeNome +FROM v_AssSqDip + + + + + + + + + + + + + + + + + dbo.stp_AsSq_GetByCodSqData + + + + + + + + + + + + dbo.stp_AsSq_insert + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Dipendenti] WHERE (([Matr] = @Original_Matr) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([CognomeNome] = @Original_CognomeNome)) + + + + + + + + + + + INSERT INTO [dbo].[Dipendenti] ([Matr], [Cognome], [Nome]) VALUES (@Matr, @Cognome, @Nome); +SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr) + + + + + + + + + + SELECT * FROM dbo.Dipendenti + + + + + + UPDATE [dbo].[Dipendenti] SET [Matr] = @Matr, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([Matr] = @Original_Matr) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome) AND ([CognomeNome] = @Original_CognomeNome)); +SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr) + + + + + + + + + + + + + + + + + + + + + @@ -1154,7 +1257,7 @@ FROM raw.DB2_DOCS - + @@ -1186,7 +1289,7 @@ FROM raw.DB2_DOCS - + @@ -1222,7 +1325,7 @@ FROM raw.DB2_DOCS - + @@ -1247,7 +1350,7 @@ FROM raw.DB2_DOCS - + @@ -1331,7 +1434,7 @@ FROM raw.DB2_DOCS - + @@ -1469,7 +1572,7 @@ FROM raw.DB2_DOCS - + @@ -1479,7 +1582,7 @@ FROM raw.DB2_DOCS - + @@ -1495,7 +1598,7 @@ FROM raw.DB2_DOCS - + @@ -1525,7 +1628,7 @@ FROM raw.DB2_DOCS - + @@ -1542,7 +1645,7 @@ FROM raw.DB2_DOCS - + @@ -1577,7 +1680,7 @@ FROM raw.DB2_DOCS - + @@ -1632,7 +1735,7 @@ FROM raw.DB2_DOCS - + @@ -1778,6 +1881,69 @@ FROM raw.DB2_DOCS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1827,10 +1993,22 @@ FROM raw.DB2_DOCS + + + + + + + + + + - + + + \ No newline at end of file diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss index 85e85df..57a64ed 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -4,23 +4,25 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - + + + + + + + + + + + + + + - + 765 @@ -32,5 +34,29 @@ + + + + 707 + 868 + + + 609 + 868 + + + + + + + 422 + 667 + + + 422 + 730 + + + \ No newline at end of file diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs index ccc7251..5c80f56 100644 --- a/WebSCR_data/DtProxy.cs +++ b/WebSCR_data/DtProxy.cs @@ -25,6 +25,7 @@ namespace WebSCR_data taATC = new DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter(); taAC = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter(); taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter(); + taAsSq = new DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter(); taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter(); taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter(); taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter(); @@ -45,6 +46,7 @@ namespace WebSCR_data taATC.Connection.ConnectionString = connStr; taAC.Connection.ConnectionString = connStr; taAS.Connection.ConnectionString = connStr; + taAsSq.Connection.ConnectionString = connStr; taAZ.Connection.ConnectionString = connStr; taImp.Connection.ConnectionString = connStr; taDetImp.Connection.ConnectionString = connStr; @@ -63,6 +65,7 @@ namespace WebSCR_data public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAC; public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS; public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ; + public DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter taAsSq; 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 31e929c..a675e30 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 671aea2..58a9090 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 7313133..de35ad7 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 c29c457..61fd05a 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 671aea2..58a9090 100644 Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ