diff --git a/WebSCR.v11.suo b/WebSCR.v11.suo index 5db5d3d..c5c7780 100644 Binary files a/WebSCR.v11.suo and b/WebSCR.v11.suo differ diff --git a/WebSCR/WebUserControls/mod_elencoTipoInt.ascx b/WebSCR/WebUserControls/mod_elencoTipoInt.ascx index bede4b4..1a224fa 100644 --- a/WebSCR/WebUserControls/mod_elencoTipoInt.ascx +++ b/WebSCR/WebUserControls/mod_elencoTipoInt.ascx @@ -1,2 +1,110 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoTipoInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoTipoInt" %> -tipo intervento \ No newline at end of file + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.cs b/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.cs index 91db4ca..5463e7f 100644 --- a/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.cs +++ b/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using WebSCR_data; namespace WebSCR.WebUserControls { @@ -13,5 +14,26 @@ namespace WebSCR.WebUserControls { } + + protected void grView_RowCommand(object sender, GridViewCommandEventArgs e) + { + + } + + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + } + /// + /// crea nuovo record squadre + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + // creo novo record e vado in editing... + DtProxy.man.taAC.InsertQuery(" -ND", "Inserire Descrizione", 0, 1, false, false, false); + grView.EditIndex = 0; + grView.DataBind(); + } } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.designer.cs b/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.designer.cs index 3f7441c..4efac34 100644 --- a/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_elencoTipoInt.ascx.designer.cs @@ -3,15 +3,40 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace WebSCR.WebUserControls -{ - - - public partial class mod_elencoTipoInt - { +namespace WebSCR.WebUserControls { + + + public partial class mod_elencoTipoInt { + + /// + /// txtSearch control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSearch; + + /// + /// 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_elencoZone.ascx b/WebSCR/WebUserControls/mod_elencoZone.ascx index 5fc4648..42f4f50 100644 --- a/WebSCR/WebUserControls/mod_elencoZone.ascx +++ b/WebSCR/WebUserControls/mod_elencoZone.ascx @@ -44,7 +44,6 @@ - diff --git a/WebSCR/bin/SteamWare.dll b/WebSCR/bin/SteamWare.dll index 9191a71..8ed6cf4 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 af7d6c3..bd9dca5 100644 Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll index 9bde196..ba457ff 100644 Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ diff --git a/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache b/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache index a9512a3..b890672 100644 Binary files a/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache and b/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache differ diff --git a/WebSCR/obj/Debug/WebSCR.dll b/WebSCR/obj/Debug/WebSCR.dll index af7d6c3..bd9dca5 100644 Binary files a/WebSCR/obj/Debug/WebSCR.dll and b/WebSCR/obj/Debug/WebSCR.dll differ diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs index 944b0e6..0b63f31 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -28,6 +28,8 @@ namespace WebSCR_data { private AnagZoneDataTable tableAnagZone; + private AnagTipoConsegneDataTable tableAnagTipoConsegne; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -62,6 +64,9 @@ namespace WebSCR_data { if ((ds.Tables["AnagZone"] != null)) { base.Tables.Add(new AnagZoneDataTable(ds.Tables["AnagZone"])); } + if ((ds.Tables["AnagTipoConsegne"] != null)) { + base.Tables.Add(new AnagTipoConsegneDataTable(ds.Tables["AnagTipoConsegne"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -100,6 +105,16 @@ namespace WebSCR_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagTipoConsegneDataTable AnagTipoConsegne { + get { + return this.tableAnagTipoConsegne; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -173,6 +188,9 @@ namespace WebSCR_data { if ((ds.Tables["AnagZone"] != null)) { base.Tables.Add(new AnagZoneDataTable(ds.Tables["AnagZone"])); } + if ((ds.Tables["AnagTipoConsegne"] != null)) { + base.Tables.Add(new AnagTipoConsegneDataTable(ds.Tables["AnagTipoConsegne"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -218,6 +236,12 @@ namespace WebSCR_data { this.tableAnagZone.InitVars(); } } + this.tableAnagTipoConsegne = ((AnagTipoConsegneDataTable)(base.Tables["AnagTipoConsegne"])); + if ((initTable == true)) { + if ((this.tableAnagTipoConsegne != null)) { + this.tableAnagTipoConsegne.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -232,6 +256,8 @@ namespace WebSCR_data { base.Tables.Add(this.tableAnagSquadre); this.tableAnagZone = new AnagZoneDataTable(); base.Tables.Add(this.tableAnagZone); + this.tableAnagTipoConsegne = new AnagTipoConsegneDataTable(); + base.Tables.Add(this.tableAnagTipoConsegne); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -246,6 +272,12 @@ namespace WebSCR_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagTipoConsegne() { + 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) { @@ -307,6 +339,9 @@ namespace WebSCR_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void AnagZoneRowChangeEventHandler(object sender, AnagZoneRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagTipoConsegneRowChangeEventHandler(object sender, AnagTipoConsegneRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -964,6 +999,356 @@ namespace WebSCR_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagTipoConsegneDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodConsegna; + + private global::System.Data.DataColumn columnDescrConsegna; + + private global::System.Data.DataColumn columnMinutiStd; + + private global::System.Data.DataColumn columnNumOp; + + private global::System.Data.DataColumn columnElettrod; + + private global::System.Data.DataColumn columnClima; + + private global::System.Data.DataColumn columnInform; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoConsegneDataTable() { + this.TableName = "AnagTipoConsegne"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagTipoConsegneDataTable(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 AnagTipoConsegneDataTable(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 CodConsegnaColumn { + get { + return this.columnCodConsegna; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrConsegnaColumn { + get { + return this.columnDescrConsegna; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MinutiStdColumn { + get { + return this.columnMinutiStd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumOpColumn { + get { + return this.columnNumOp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ElettrodColumn { + get { + return this.columnElettrod; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ClimaColumn { + get { + return this.columnClima; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InformColumn { + get { + return this.columnInform; + } + } + + [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 AnagTipoConsegneRow this[int index] { + get { + return ((AnagTipoConsegneRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoConsegneRowChangeEventHandler AnagTipoConsegneRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoConsegneRowChangeEventHandler AnagTipoConsegneRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoConsegneRowChangeEventHandler AnagTipoConsegneRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoConsegneRowChangeEventHandler AnagTipoConsegneRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagTipoConsegneRow(AnagTipoConsegneRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoConsegneRow AddAnagTipoConsegneRow(string CodConsegna, string DescrConsegna, int MinutiStd, int NumOp, bool Elettrod, bool Clima, bool Inform) { + AnagTipoConsegneRow rowAnagTipoConsegneRow = ((AnagTipoConsegneRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodConsegna, + DescrConsegna, + MinutiStd, + NumOp, + Elettrod, + Clima, + Inform}; + rowAnagTipoConsegneRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagTipoConsegneRow); + return rowAnagTipoConsegneRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoConsegneRow FindByCodConsegna(string CodConsegna) { + return ((AnagTipoConsegneRow)(this.Rows.Find(new object[] { + CodConsegna}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagTipoConsegneDataTable cln = ((AnagTipoConsegneDataTable)(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 AnagTipoConsegneDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodConsegna = base.Columns["CodConsegna"]; + this.columnDescrConsegna = base.Columns["DescrConsegna"]; + this.columnMinutiStd = base.Columns["MinutiStd"]; + this.columnNumOp = base.Columns["NumOp"]; + this.columnElettrod = base.Columns["Elettrod"]; + this.columnClima = base.Columns["Clima"]; + this.columnInform = base.Columns["Inform"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnCodConsegna = new global::System.Data.DataColumn("CodConsegna", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodConsegna); + this.columnDescrConsegna = new global::System.Data.DataColumn("DescrConsegna", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrConsegna); + this.columnMinutiStd = new global::System.Data.DataColumn("MinutiStd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinutiStd); + this.columnNumOp = new global::System.Data.DataColumn("NumOp", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumOp); + this.columnElettrod = new global::System.Data.DataColumn("Elettrod", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnElettrod); + this.columnClima = new global::System.Data.DataColumn("Clima", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnClima); + this.columnInform = new global::System.Data.DataColumn("Inform", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInform); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodConsegna}, true)); + this.columnCodConsegna.AllowDBNull = false; + this.columnCodConsegna.Unique = true; + this.columnCodConsegna.MaxLength = 50; + this.columnDescrConsegna.AllowDBNull = false; + this.columnDescrConsegna.MaxLength = 250; + this.columnMinutiStd.AllowDBNull = false; + this.columnNumOp.AllowDBNull = false; + this.columnElettrod.AllowDBNull = false; + this.columnClima.AllowDBNull = false; + this.columnInform.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoConsegneRow NewAnagTipoConsegneRow() { + return ((AnagTipoConsegneRow)(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 AnagTipoConsegneRow(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(AnagTipoConsegneRow); + } + + [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.AnagTipoConsegneRowChanged != null)) { + this.AnagTipoConsegneRowChanged(this, new AnagTipoConsegneRowChangeEvent(((AnagTipoConsegneRow)(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.AnagTipoConsegneRowChanging != null)) { + this.AnagTipoConsegneRowChanging(this, new AnagTipoConsegneRowChangeEvent(((AnagTipoConsegneRow)(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.AnagTipoConsegneRowDeleted != null)) { + this.AnagTipoConsegneRowDeleted(this, new AnagTipoConsegneRowChangeEvent(((AnagTipoConsegneRow)(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.AnagTipoConsegneRowDeleting != null)) { + this.AnagTipoConsegneRowDeleting(this, new AnagTipoConsegneRowChangeEvent(((AnagTipoConsegneRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagTipoConsegneRow(AnagTipoConsegneRow 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 = "AnagTipoConsegneDataTable"; + 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. /// @@ -1166,6 +1551,98 @@ namespace WebSCR_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagTipoConsegneRow : global::System.Data.DataRow { + + private AnagTipoConsegneDataTable tableAnagTipoConsegne; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagTipoConsegneRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagTipoConsegne = ((AnagTipoConsegneDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodConsegna { + get { + return ((string)(this[this.tableAnagTipoConsegne.CodConsegnaColumn])); + } + set { + this[this.tableAnagTipoConsegne.CodConsegnaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescrConsegna { + get { + return ((string)(this[this.tableAnagTipoConsegne.DescrConsegnaColumn])); + } + set { + this[this.tableAnagTipoConsegne.DescrConsegnaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MinutiStd { + get { + return ((int)(this[this.tableAnagTipoConsegne.MinutiStdColumn])); + } + set { + this[this.tableAnagTipoConsegne.MinutiStdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumOp { + get { + return ((int)(this[this.tableAnagTipoConsegne.NumOpColumn])); + } + set { + this[this.tableAnagTipoConsegne.NumOpColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Elettrod { + get { + return ((bool)(this[this.tableAnagTipoConsegne.ElettrodColumn])); + } + set { + this[this.tableAnagTipoConsegne.ElettrodColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Clima { + get { + return ((bool)(this[this.tableAnagTipoConsegne.ClimaColumn])); + } + set { + this[this.tableAnagTipoConsegne.ClimaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Inform { + get { + return ((bool)(this[this.tableAnagTipoConsegne.InformColumn])); + } + set { + this[this.tableAnagTipoConsegne.InformColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -1233,6 +1710,40 @@ namespace WebSCR_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagTipoConsegneRowChangeEvent : global::System.EventArgs { + + private AnagTipoConsegneRow 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 AnagTipoConsegneRowChangeEvent(AnagTipoConsegneRow 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 AnagTipoConsegneRow 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 { @@ -2352,6 +2863,586 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon } } + /// + ///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 AnagTipoConsegneTableAdapter : 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 AnagTipoConsegneTableAdapter() { + 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 = "AnagTipoConsegne"; + tableMapping.ColumnMappings.Add("CodConsegna", "CodConsegna"); + tableMapping.ColumnMappings.Add("DescrConsegna", "DescrConsegna"); + tableMapping.ColumnMappings.Add("MinutiStd", "MinutiStd"); + tableMapping.ColumnMappings.Add("NumOp", "NumOp"); + tableMapping.ColumnMappings.Add("Elettrod", "Elettrod"); + tableMapping.ColumnMappings.Add("Clima", "Clima"); + tableMapping.ColumnMappings.Add("Inform", "Inform"); + 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].[AnagTipoConsegne] WHERE (([CodConsegna] = @Original_CodConsegna) AND ([DescrConsegna] = @Original_DescrConsegna) AND ([MinutiStd] = @Original_MinutiStd) AND ([NumOp] = @Original_NumOp) AND ([Elettrod] = @Original_Elettrod) AND ([Clima] = @Original_Clima) AND ([Inform] = @Original_Inform))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodConsegna", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrConsegna", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinutiStd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinutiStd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumOp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumOp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Elettrod", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Elettrod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Clima", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clima", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Inform", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inform", 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].[AnagTipoConsegne] ([CodConsegna], [DescrConsegna], [MinutiStd], [NumOp], [Elettrod], [Clima], [Inform]) VALUES (@CodConsegna, @DescrConsegna, @MinutiStd, @NumOp, @Elettrod, @Clima, @Inform); +SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM AnagTipoConsegne WHERE (CodConsegna = @CodConsegna)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodConsegna", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrConsegna", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinutiStd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinutiStd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumOp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumOp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Elettrod", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Elettrod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clima", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inform", 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].[AnagTipoConsegne] SET [CodConsegna] = @CodConsegna, [DescrConsegna] = @DescrConsegna, [MinutiStd] = @MinutiStd, [NumOp] = @NumOp, [Elettrod] = @Elettrod, [Clima] = @Clima, [Inform] = @Inform WHERE (([CodConsegna] = @Original_CodConsegna) AND ([DescrConsegna] = @Original_DescrConsegna) AND ([MinutiStd] = @Original_MinutiStd) AND ([NumOp] = @Original_NumOp) AND ([Elettrod] = @Original_Elettrod) AND ([Clima] = @Original_Clima) AND ([Inform] = @Original_Inform)); +SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM AnagTipoConsegne WHERE (CodConsegna = @CodConsegna)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodConsegna", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrConsegna", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinutiStd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinutiStd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumOp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumOp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Elettrod", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Elettrod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clima", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inform", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodConsegna", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrConsegna", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrConsegna", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinutiStd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinutiStd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumOp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumOp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Elettrod", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Elettrod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Clima", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clima", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Inform", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Inform", 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[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM" + + " dbo.AnagTipoConsegne"; + 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_AC_DeleteQuery"; + 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("@Original_CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_AC_InsertQuery"; + 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("@CodConsegna", 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("@DescrConsegna", global::System.Data.SqlDbType.NVarChar, 250, 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("@MinutiStd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumOp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Elettrod", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_AC_UpdateQuery"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrConsegna", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinutiStd", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumOp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Elettrod", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodConsegna", 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.AnagTipoConsegneDataTable 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.AnagTipoConsegneDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.AnagTipoConsegneDataTable dataTable = new DS_Applicazione.AnagTipoConsegneDataTable(); + 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.AnagTipoConsegneDataTable 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, "AnagTipoConsegne"); + } + + [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_CodConsegna, string Original_DescrConsegna, int Original_MinutiStd, int Original_NumOp, bool Original_Elettrod, bool Original_Clima, bool Original_Inform) { + if ((Original_CodConsegna == null)) { + throw new global::System.ArgumentNullException("Original_CodConsegna"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodConsegna)); + } + if ((Original_DescrConsegna == null)) { + throw new global::System.ArgumentNullException("Original_DescrConsegna"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_DescrConsegna)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_MinutiStd)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_NumOp)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((bool)(Original_Elettrod)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_Clima)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_Inform)); + 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 CodConsegna, string DescrConsegna, int MinutiStd, int NumOp, bool Elettrod, bool Clima, bool Inform) { + if ((CodConsegna == null)) { + throw new global::System.ArgumentNullException("CodConsegna"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodConsegna)); + } + if ((DescrConsegna == null)) { + throw new global::System.ArgumentNullException("DescrConsegna"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrConsegna)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(MinutiStd)); + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(NumOp)); + this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(Elettrod)); + this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(Clima)); + this.Adapter.InsertCommand.Parameters[6].Value = ((bool)(Inform)); + 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 CodConsegna, string DescrConsegna, int MinutiStd, int NumOp, bool Elettrod, bool Clima, bool Inform, string Original_CodConsegna, string Original_DescrConsegna, int Original_MinutiStd, int Original_NumOp, bool Original_Elettrod, bool Original_Clima, bool Original_Inform) { + if ((CodConsegna == null)) { + throw new global::System.ArgumentNullException("CodConsegna"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodConsegna)); + } + if ((DescrConsegna == null)) { + throw new global::System.ArgumentNullException("DescrConsegna"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrConsegna)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(MinutiStd)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(NumOp)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(Elettrod)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(Clima)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((bool)(Inform)); + if ((Original_CodConsegna == null)) { + throw new global::System.ArgumentNullException("Original_CodConsegna"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodConsegna)); + } + if ((Original_DescrConsegna == null)) { + throw new global::System.ArgumentNullException("Original_DescrConsegna"); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_DescrConsegna)); + } + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_MinutiStd)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_NumOp)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_Elettrod)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((bool)(Original_Clima)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Original_Inform)); + 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 DescrConsegna, int MinutiStd, int NumOp, bool Elettrod, bool Clima, bool Inform, string Original_CodConsegna, string Original_DescrConsegna, int Original_MinutiStd, int Original_NumOp, bool Original_Elettrod, bool Original_Clima, bool Original_Inform) { + return this.Update(Original_CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform, Original_CodConsegna, Original_DescrConsegna, Original_MinutiStd, Original_NumOp, Original_Elettrod, Original_Clima, Original_Inform); + } + + [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, false)] + public virtual int DeleteQuery(string Original_CodConsegna) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_CodConsegna == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodConsegna)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] + public virtual int InsertQuery(string CodConsegna, string DescrConsegna, global::System.Nullable MinutiStd, global::System.Nullable NumOp, global::System.Nullable Elettrod, global::System.Nullable Clima, global::System.Nullable Inform) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((CodConsegna == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodConsegna)); + } + if ((DescrConsegna == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(DescrConsegna)); + } + if ((MinutiStd.HasValue == true)) { + command.Parameters[3].Value = ((int)(MinutiStd.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((NumOp.HasValue == true)) { + command.Parameters[4].Value = ((int)(NumOp.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Elettrod.HasValue == true)) { + command.Parameters[5].Value = ((bool)(Elettrod.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Clima.HasValue == true)) { + command.Parameters[6].Value = ((bool)(Clima.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Inform.HasValue == true)) { + command.Parameters[7].Value = ((bool)(Inform.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int UpdateQuery(string CodConsegna, string DescrConsegna, global::System.Nullable MinutiStd, global::System.Nullable NumOp, global::System.Nullable Elettrod, global::System.Nullable Clima, global::System.Nullable Inform, string Original_CodConsegna) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((CodConsegna == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodConsegna)); + } + if ((DescrConsegna == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(DescrConsegna)); + } + if ((MinutiStd.HasValue == true)) { + command.Parameters[3].Value = ((int)(MinutiStd.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((NumOp.HasValue == true)) { + command.Parameters[4].Value = ((int)(NumOp.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Elettrod.HasValue == true)) { + command.Parameters[5].Value = ((bool)(Elettrod.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Clima.HasValue == true)) { + command.Parameters[6].Value = ((bool)(Clima.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Inform.HasValue == true)) { + command.Parameters[7].Value = ((bool)(Inform.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Original_CodConsegna == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(Original_CodConsegna)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -2368,6 +3459,8 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon private AnagZoneTableAdapter _anagZoneTableAdapter; + private AnagTipoConsegneTableAdapter _anagTipoConsegneTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -2411,6 +3504,20 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon } } + [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 AnagTipoConsegneTableAdapter AnagTipoConsegneTableAdapter { + get { + return this._anagTipoConsegneTableAdapter; + } + set { + this._anagTipoConsegneTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -2438,6 +3545,10 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon && (this._anagZoneTableAdapter.Connection != null))) { return this._anagZoneTableAdapter.Connection; } + if (((this._anagTipoConsegneTableAdapter != null) + && (this._anagTipoConsegneTableAdapter.Connection != null))) { + return this._anagTipoConsegneTableAdapter.Connection; + } return null; } set { @@ -2457,6 +3568,9 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon if ((this._anagZoneTableAdapter != null)) { count = (count + 1); } + if ((this._anagTipoConsegneTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -2486,6 +3600,15 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon allChangedRows.AddRange(updatedRows); } } + if ((this._anagTipoConsegneTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoConsegne.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagTipoConsegneTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -2512,6 +3635,14 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon allAddedRows.AddRange(addedRows); } } + if ((this._anagTipoConsegneTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagTipoConsegne.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagTipoConsegneTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -2522,6 +3653,14 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon [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._anagTipoConsegneTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoConsegne.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagTipoConsegneTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._anagZoneTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagZone.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -2587,6 +3726,11 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._anagTipoConsegneTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagTipoConsegneTableAdapter.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" + @@ -2637,6 +3781,15 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon adaptersWithAcceptChangesDuringUpdate.Add(this._anagZoneTableAdapter.Adapter); } } + if ((this._anagTipoConsegneTableAdapter != null)) { + revertConnections.Add(this._anagTipoConsegneTableAdapter, this._anagTipoConsegneTableAdapter.Connection); + this._anagTipoConsegneTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagTipoConsegneTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagTipoConsegneTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagTipoConsegneTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagTipoConsegneTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -2703,6 +3856,10 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon this._anagZoneTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagZoneTableAdapter])); this._anagZoneTableAdapter.Transaction = null; } + if ((this._anagTipoConsegneTableAdapter != null)) { + this._anagTipoConsegneTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTipoConsegneTableAdapter])); + this._anagTipoConsegneTableAdapter.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 4071327..66fadc2 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -231,6 +231,126 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon + + + + + + DELETE FROM [dbo].[AnagTipoConsegne] WHERE (([CodConsegna] = @Original_CodConsegna) AND ([DescrConsegna] = @Original_DescrConsegna) AND ([MinutiStd] = @Original_MinutiStd) AND ([NumOp] = @Original_NumOp) AND ([Elettrod] = @Original_Elettrod) AND ([Clima] = @Original_Clima) AND ([Inform] = @Original_Inform)) + + + + + + + + + + + + + + INSERT INTO [dbo].[AnagTipoConsegne] ([CodConsegna], [DescrConsegna], [MinutiStd], [NumOp], [Elettrod], [Clima], [Inform]) VALUES (@CodConsegna, @DescrConsegna, @MinutiStd, @NumOp, @Elettrod, @Clima, @Inform); +SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM AnagTipoConsegne WHERE (CodConsegna = @CodConsegna) + + + + + + + + + + + + + + SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM dbo.AnagTipoConsegne + + + + + + UPDATE [dbo].[AnagTipoConsegne] SET [CodConsegna] = @CodConsegna, [DescrConsegna] = @DescrConsegna, [MinutiStd] = @MinutiStd, [NumOp] = @NumOp, [Elettrod] = @Elettrod, [Clima] = @Clima, [Inform] = @Inform WHERE (([CodConsegna] = @Original_CodConsegna) AND ([DescrConsegna] = @Original_DescrConsegna) AND ([MinutiStd] = @Original_MinutiStd) AND ([NumOp] = @Original_NumOp) AND ([Elettrod] = @Original_Elettrod) AND ([Clima] = @Original_Clima) AND ([Inform] = @Original_Inform)); +SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM AnagTipoConsegne WHERE (CodConsegna = @CodConsegna) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_AC_DeleteQuery + + + + + + + + + + + dbo.stp_AC_InsertQuery + + + + + + + + + + + + + + + + + dbo.stp_AC_UpdateQuery + + + + + + + + + + + + + + + + @@ -292,6 +412,31 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon + + + + + + + + + + + + + + + + + + + + + + + + + @@ -302,5 +447,9 @@ SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZon + + + + \ No newline at end of file diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss index 7c9b7be..4548e99 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -6,8 +6,9 @@ --> - - + + + \ No newline at end of file diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs index 87710fc..fea092d 100644 --- a/WebSCR_data/DtProxy.cs +++ b/WebSCR_data/DtProxy.cs @@ -29,6 +29,7 @@ namespace WebSCR_data taVRF = new DS_ApplicazioneTableAdapters.VisRelazFinTableAdapter(); taRepVis = new DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter(); #endif + taAC = new DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter(); taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter(); taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter(); taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter(); @@ -48,6 +49,7 @@ namespace WebSCR_data taVRF.Connection.ConnectionString = connStr; taRepVis.Connection.ConnectionString = connStr; #endif + taAC.Connection.ConnectionString = connStr; taAS.Connection.ConnectionString = connStr; taAZ.Connection.ConnectionString = connStr; taFile.Connection.ConnectionString = connStrFiles; @@ -65,6 +67,7 @@ namespace WebSCR_data public DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter taRepVis; #endif + public DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter taAC; public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS; public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ; public DS_UtilityTableAdapters.tblFilesTableAdapter taFile; diff --git a/WebSCR_data/bin/Debug/SteamWare.dll b/WebSCR_data/bin/Debug/SteamWare.dll index 9191a71..8ed6cf4 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 9bde196..ba457ff 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 acaedb0..8d19242 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 ed8e5da..d52bf43 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 9bde196..ba457ff 100644 Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ