diff --git a/GMW/GMW/Web.config b/GMW/GMW/Web.config index e5c55d63..74b297d1 100644 --- a/GMW/GMW/Web.config +++ b/GMW/GMW/Web.config @@ -62,7 +62,7 @@ - + @@ -112,6 +112,7 @@ + @@ -154,6 +155,7 @@ + diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx index 14ea418a..6d0f4885 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx @@ -6,21 +6,25 @@ <%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc3" %> <%@ Register Src="mod_nuovaListaPrelievo.ascx" TagName="mod_nuovaListaPrelievo" TagPrefix="uc4" %> - +
- - - - - - - +
+ +
+
+ + + + + + +
@@ -121,8 +125,8 @@ + Visible='<%# iniziaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png" + Enabled="false" OnClick="imgIniziaLista_Click" /> @@ -136,8 +140,8 @@ + Visible='<%# completaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png" + Enabled="false" OnClick="imgCompletaLista_Click" /> @@ -172,9 +176,10 @@ - - - + + + diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs index 2c91e883..a2fef9c7 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4927 +// Runtime Version:2.0.50727.4952 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/GMW/GMW/WebUserControls/mod_labConsUdc.ascx b/GMW/GMW/WebUserControls/mod_labConsUdc.ascx index 616e9bb7..761b3f56 100644 --- a/GMW/GMW/WebUserControls/mod_labConsUdc.ascx +++ b/GMW/GMW/WebUserControls/mod_labConsUdc.ascx @@ -5,15 +5,25 @@ <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
- -
- +
+
+ +
+
+ +
+
+
+ +
+ +
-
+
@@ -36,14 +46,6 @@
-
-
- -
-
- -
-
+ /// btnSendAs400 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnSendAs400; + + /// + /// lblLastUpdateAs400 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblLastUpdateAs400; + /// /// lblBarcodeConsumoUdcMP control. /// @@ -67,24 +85,6 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource odsDestinatario; - /// - /// btnSendAs400 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button btnSendAs400; - - /// - /// lblLastUpdateAs400 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblLastUpdateAs400; - /// /// grView control. /// diff --git a/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs index a82f5971..603825fc 100644 --- a/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_periodoAnalisi.ascx.cs @@ -23,6 +23,32 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl setIntervallo(); setDurataMin(); } + /// + /// definisce se sia da mostrare il selettore delle ore nel controllo + /// + protected bool mostraSelOra + { + get + { + bool answ = false; + if (memLayer.ML.isInSessionObject("mostraSelOra")) + { + answ = memLayer.ML.BoolSessionObj("mostraSelOra"); + } + else + { + // leggo da sessione e salvo... + try + { + answ = memLayer.ML.confReadBool("mostraSelOra"); + } + catch + { } + memLayer.ML.setSessionVal("mostraSelOra", answ); + } + return answ; + } + } /// /// gestione del selettore rapido dell'intervallo temporale... @@ -90,6 +116,16 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl ddlOraInizio.SelectedValue = _intervallo.inizio.Hour.ToString("00"); txtFine.Text = _intervallo.fine.ToShortDateString(); ddlOraFine.SelectedValue = _intervallo.fine.Hour.ToString("00"); + if (mostraSelOra) + { + ddlOraInizio.Visible = true; + ddlOraFine.Visible = true; + } + else + { + ddlOraInizio.Visible = false; + ddlOraFine.Visible = false; + } } private void setIntervallo() diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 53ba501f..194fbfba 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll index 2391a2e8..949e6978 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/bin/SteamWare.dll b/GMW/GMW/bin/SteamWare.dll index 7f885998..78620e0d 100644 Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ diff --git a/GMW/GMW/mazzAppSettings.config b/GMW/GMW/mazzAppSettings.config index d868f0ef..d840e796 100644 --- a/GMW/GMW/mazzAppSettings.config +++ b/GMW/GMW/mazzAppSettings.config @@ -7,7 +7,7 @@ - + @@ -100,6 +100,7 @@ + diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll index 53ba501f..194fbfba 100644 Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache index dd55e152..bc8b0ba7 100644 Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_Term/Web.config b/GMW/GMW_Term/Web.config index 869936b5..b1a2e138 100644 --- a/GMW/GMW_Term/Web.config +++ b/GMW/GMW_Term/Web.config @@ -58,7 +58,7 @@ - + diff --git a/GMW/GMW_Term/mazzAppSettings.config b/GMW/GMW_Term/mazzAppSettings.config index 90f41396..5a40d8e2 100644 --- a/GMW/GMW_Term/mazzAppSettings.config +++ b/GMW/GMW_Term/mazzAppSettings.config @@ -7,7 +7,7 @@ - + diff --git a/GMW/GMW_Term_installer/GMW_Term_installer.vdproj b/GMW/GMW_Term_installer/GMW_Term_installer.vdproj index dbc79a14..c966e86e 100644 --- a/GMW/GMW_Term_installer/GMW_Term_installer.vdproj +++ b/GMW/GMW_Term_installer/GMW_Term_installer.vdproj @@ -330,14 +330,14 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:GMW_Term" - "ProductCode" = "8:{52061C1D-DFC5-419A-ABBE-A415A30E8D94}" - "PackageCode" = "8:{FC2D8483-5BBD-4483-9F7E-4F9748CC7C24}" + "ProductCode" = "8:{8C924F61-B7F4-4841-B69F-72D6ED58A69C}" + "PackageCode" = "8:{BE80EE80-1B85-4D1C-87AA-4F8C3F30C017}" "UpgradeCode" = "8:{B348C50D-8DAD-4430-AEF0-60800C94CB78}" "RestartWWWService" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.337" + "ProductVersion" = "8:1.0.355" "Manufacturer" = "8:SteamWare s.r.l." "ARPHELPTELEPHONE" = "8:+39-035460560" "ARPHELPLINK" = "8:http://www.steamware.net" diff --git a/GMW/GMW_WS/Web.config b/GMW/GMW_WS/Web.config index 629ee026..30db1230 100644 --- a/GMW/GMW_WS/Web.config +++ b/GMW/GMW_WS/Web.config @@ -88,7 +88,7 @@ - + diff --git a/GMW/GMW_WS/mazzAppSettings.config b/GMW/GMW_WS/mazzAppSettings.config index 203d727e..60e6906f 100644 --- a/GMW/GMW_WS/mazzAppSettings.config +++ b/GMW/GMW_WS/mazzAppSettings.config @@ -6,7 +6,7 @@ - + diff --git a/GMW/GMW_WS_installer/GMW_WS_installer.vdproj b/GMW/GMW_WS_installer/GMW_WS_installer.vdproj index b8aca189..d96c0756 100644 --- a/GMW/GMW_WS_installer/GMW_WS_installer.vdproj +++ b/GMW/GMW_WS_installer/GMW_WS_installer.vdproj @@ -344,14 +344,14 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:GMW_WS" - "ProductCode" = "8:{E7F7B0FF-B447-4DFF-B1A8-C7898773591D}" - "PackageCode" = "8:{F09F29AB-CCC8-4A27-81ED-8D9384842D1F}" + "ProductCode" = "8:{9CF04931-4EED-4879-B429-62793B64CCC3}" + "PackageCode" = "8:{2C2BEE56-24B8-482D-9D56-06FD5162373E}" "UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}" "RestartWWWService" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.337" + "ProductVersion" = "8:1.0.355" "Manufacturer" = "8:SteamWare s.r.l." "ARPHELPTELEPHONE" = "8:+39-035460560" "ARPHELPLINK" = "8:http://www.steamware.net" diff --git a/GMW/GMW_data/DS_DataMatrix.Designer.cs b/GMW/GMW_data/DS_DataMatrix.Designer.cs new file mode 100644 index 00000000..79f4f060 --- /dev/null +++ b/GMW/GMW_data/DS_DataMatrix.Designer.cs @@ -0,0 +1,2870 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4952 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace GMW_data { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DS_DataMatrix")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DS_DataMatrix : global::System.Data.DataSet { + + private PezziProdottiDataTable tablePezziProdotti; + + private PezziGitterboxDataTable tablePezziGitterbox; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public DS_DataMatrix() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected DS_DataMatrix(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["PezziProdotti"] != null)) { + base.Tables.Add(new PezziProdottiDataTable(ds.Tables["PezziProdotti"])); + } + if ((ds.Tables["PezziGitterbox"] != null)) { + base.Tables.Add(new PezziGitterboxDataTable(ds.Tables["PezziGitterbox"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public PezziProdottiDataTable PezziProdotti { + get { + return this.tablePezziProdotti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public PezziGitterboxDataTable PezziGitterbox { + get { + return this.tablePezziGitterbox; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataSet Clone() { + DS_DataMatrix cln = ((DS_DataMatrix)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["PezziProdotti"] != null)) { + base.Tables.Add(new PezziProdottiDataTable(ds.Tables["PezziProdotti"])); + } + if ((ds.Tables["PezziGitterbox"] != null)) { + base.Tables.Add(new PezziGitterboxDataTable(ds.Tables["PezziGitterbox"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars(bool initTable) { + this.tablePezziProdotti = ((PezziProdottiDataTable)(base.Tables["PezziProdotti"])); + if ((initTable == true)) { + if ((this.tablePezziProdotti != null)) { + this.tablePezziProdotti.InitVars(); + } + } + this.tablePezziGitterbox = ((PezziGitterboxDataTable)(base.Tables["PezziGitterbox"])); + if ((initTable == true)) { + if ((this.tablePezziGitterbox != null)) { + this.tablePezziGitterbox.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.DataSetName = "DS_DataMatrix"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DS_DataMatrix.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tablePezziProdotti = new PezziProdottiDataTable(); + base.Tables.Add(this.tablePezziProdotti); + this.tablePezziGitterbox = new PezziGitterboxDataTable(); + base.Tables.Add(this.tablePezziGitterbox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializePezziProdotti() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializePezziGitterbox() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DS_DataMatrix ds = new DS_DataMatrix(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + 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; + } + + public delegate void PezziProdottiRowChangeEventHandler(object sender, PezziProdottiRowChangeEvent e); + + public delegate void PezziGitterboxRowChangeEventHandler(object sender, PezziGitterboxRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class PezziProdottiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodDataMatrix; + + private global::System.Data.DataColumn columnNumConchiglia; + + private global::System.Data.DataColumn columnCodScarto; + + private global::System.Data.DataColumn columnCodMacchina; + + private global::System.Data.DataColumn columnNumForno; + + private global::System.Data.DataColumn columnInizioIniezione; + + private global::System.Data.DataColumn columnFineIniezione; + + private global::System.Data.DataColumn columnNumColata; + + private global::System.Data.DataColumn columnNumDisegno; + + private global::System.Data.DataColumn columnEsponenteDisegno; + + private global::System.Data.DataColumn columnPezziProdNote; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiDataTable() { + this.TableName = "PezziProdotti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal PezziProdottiDataTable(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()] + protected PezziProdottiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodDataMatrixColumn { + get { + return this.columnCodDataMatrix; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn NumConchigliaColumn { + get { + return this.columnNumConchiglia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodScartoColumn { + get { + return this.columnCodScarto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodMacchinaColumn { + get { + return this.columnCodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn NumFornoColumn { + get { + return this.columnNumForno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn InizioIniezioneColumn { + get { + return this.columnInizioIniezione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn FineIniezioneColumn { + get { + return this.columnFineIniezione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn NumColataColumn { + get { + return this.columnNumColata; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn NumDisegnoColumn { + get { + return this.columnNumDisegno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn EsponenteDisegnoColumn { + get { + return this.columnEsponenteDisegno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn PezziProdNoteColumn { + get { + return this.columnPezziProdNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiRow this[int index] { + get { + return ((PezziProdottiRow)(this.Rows[index])); + } + } + + public event PezziProdottiRowChangeEventHandler PezziProdottiRowChanging; + + public event PezziProdottiRowChangeEventHandler PezziProdottiRowChanged; + + public event PezziProdottiRowChangeEventHandler PezziProdottiRowDeleting; + + public event PezziProdottiRowChangeEventHandler PezziProdottiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddPezziProdottiRow(PezziProdottiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiRow AddPezziProdottiRow(decimal CodDataMatrix, int NumConchiglia, string CodScarto, string CodMacchina, byte NumForno, System.DateTime InizioIniezione, System.DateTime FineIniezione, decimal NumColata, decimal NumDisegno, byte EsponenteDisegno, string PezziProdNote) { + PezziProdottiRow rowPezziProdottiRow = ((PezziProdottiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodDataMatrix, + NumConchiglia, + CodScarto, + CodMacchina, + NumForno, + InizioIniezione, + FineIniezione, + NumColata, + NumDisegno, + EsponenteDisegno, + PezziProdNote}; + rowPezziProdottiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowPezziProdottiRow); + return rowPezziProdottiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiRow FindByCodDataMatrix(decimal CodDataMatrix) { + return ((PezziProdottiRow)(this.Rows.Find(new object[] { + CodDataMatrix}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + PezziProdottiDataTable cln = ((PezziProdottiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new PezziProdottiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodDataMatrix = base.Columns["CodDataMatrix"]; + this.columnNumConchiglia = base.Columns["NumConchiglia"]; + this.columnCodScarto = base.Columns["CodScarto"]; + this.columnCodMacchina = base.Columns["CodMacchina"]; + this.columnNumForno = base.Columns["NumForno"]; + this.columnInizioIniezione = base.Columns["InizioIniezione"]; + this.columnFineIniezione = base.Columns["FineIniezione"]; + this.columnNumColata = base.Columns["NumColata"]; + this.columnNumDisegno = base.Columns["NumDisegno"]; + this.columnEsponenteDisegno = base.Columns["EsponenteDisegno"]; + this.columnPezziProdNote = base.Columns["PezziProdNote"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodDataMatrix = new global::System.Data.DataColumn("CodDataMatrix", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodDataMatrix); + this.columnNumConchiglia = new global::System.Data.DataColumn("NumConchiglia", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumConchiglia); + this.columnCodScarto = new global::System.Data.DataColumn("CodScarto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodScarto); + this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMacchina); + this.columnNumForno = new global::System.Data.DataColumn("NumForno", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumForno); + this.columnInizioIniezione = new global::System.Data.DataColumn("InizioIniezione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioIniezione); + this.columnFineIniezione = new global::System.Data.DataColumn("FineIniezione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFineIniezione); + this.columnNumColata = new global::System.Data.DataColumn("NumColata", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumColata); + this.columnNumDisegno = new global::System.Data.DataColumn("NumDisegno", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumDisegno); + this.columnEsponenteDisegno = new global::System.Data.DataColumn("EsponenteDisegno", typeof(byte), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEsponenteDisegno); + this.columnPezziProdNote = new global::System.Data.DataColumn("PezziProdNote", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziProdNote); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodDataMatrix}, true)); + this.columnCodDataMatrix.AllowDBNull = false; + this.columnCodDataMatrix.Unique = true; + this.columnCodScarto.MaxLength = 2; + this.columnCodMacchina.MaxLength = 2; + this.columnPezziProdNote.MaxLength = 131; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiRow NewPezziProdottiRow() { + return ((PezziProdottiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new PezziProdottiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(PezziProdottiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.PezziProdottiRowChanged != null)) { + this.PezziProdottiRowChanged(this, new PezziProdottiRowChangeEvent(((PezziProdottiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.PezziProdottiRowChanging != null)) { + this.PezziProdottiRowChanging(this, new PezziProdottiRowChangeEvent(((PezziProdottiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.PezziProdottiRowDeleted != null)) { + this.PezziProdottiRowDeleted(this, new PezziProdottiRowChangeEvent(((PezziProdottiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.PezziProdottiRowDeleting != null)) { + this.PezziProdottiRowDeleting(this, new PezziProdottiRowChangeEvent(((PezziProdottiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemovePezziProdottiRow(PezziProdottiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_DataMatrix ds = new DS_DataMatrix(); + 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 = "PezziProdottiDataTable"; + 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class PezziGitterboxDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodDataMatrix; + + private global::System.Data.DataColumn columnCodGitterbox; + + private global::System.Data.DataColumn columnInizioPreparazione; + + private global::System.Data.DataColumn columnFinePreparazione; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxDataTable() { + this.TableName = "PezziGitterbox"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal PezziGitterboxDataTable(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()] + protected PezziGitterboxDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodDataMatrixColumn { + get { + return this.columnCodDataMatrix; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodGitterboxColumn { + get { + return this.columnCodGitterbox; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn InizioPreparazioneColumn { + get { + return this.columnInizioPreparazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn FinePreparazioneColumn { + get { + return this.columnFinePreparazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxRow this[int index] { + get { + return ((PezziGitterboxRow)(this.Rows[index])); + } + } + + public event PezziGitterboxRowChangeEventHandler PezziGitterboxRowChanging; + + public event PezziGitterboxRowChangeEventHandler PezziGitterboxRowChanged; + + public event PezziGitterboxRowChangeEventHandler PezziGitterboxRowDeleting; + + public event PezziGitterboxRowChangeEventHandler PezziGitterboxRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddPezziGitterboxRow(PezziGitterboxRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxRow AddPezziGitterboxRow(decimal CodDataMatrix, string CodGitterbox, System.DateTime InizioPreparazione, System.DateTime FinePreparazione) { + PezziGitterboxRow rowPezziGitterboxRow = ((PezziGitterboxRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodDataMatrix, + CodGitterbox, + InizioPreparazione, + FinePreparazione}; + rowPezziGitterboxRow.ItemArray = columnValuesArray; + this.Rows.Add(rowPezziGitterboxRow); + return rowPezziGitterboxRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxRow FindByCodDataMatrix(decimal CodDataMatrix) { + return ((PezziGitterboxRow)(this.Rows.Find(new object[] { + CodDataMatrix}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + PezziGitterboxDataTable cln = ((PezziGitterboxDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new PezziGitterboxDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodDataMatrix = base.Columns["CodDataMatrix"]; + this.columnCodGitterbox = base.Columns["CodGitterbox"]; + this.columnInizioPreparazione = base.Columns["InizioPreparazione"]; + this.columnFinePreparazione = base.Columns["FinePreparazione"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodDataMatrix = new global::System.Data.DataColumn("CodDataMatrix", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodDataMatrix); + this.columnCodGitterbox = new global::System.Data.DataColumn("CodGitterbox", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodGitterbox); + this.columnInizioPreparazione = new global::System.Data.DataColumn("InizioPreparazione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioPreparazione); + this.columnFinePreparazione = new global::System.Data.DataColumn("FinePreparazione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFinePreparazione); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodDataMatrix}, true)); + this.columnCodDataMatrix.AllowDBNull = false; + this.columnCodDataMatrix.Unique = true; + this.columnCodGitterbox.AllowDBNull = false; + this.columnCodGitterbox.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxRow NewPezziGitterboxRow() { + return ((PezziGitterboxRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new PezziGitterboxRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(PezziGitterboxRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.PezziGitterboxRowChanged != null)) { + this.PezziGitterboxRowChanged(this, new PezziGitterboxRowChangeEvent(((PezziGitterboxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.PezziGitterboxRowChanging != null)) { + this.PezziGitterboxRowChanging(this, new PezziGitterboxRowChangeEvent(((PezziGitterboxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.PezziGitterboxRowDeleted != null)) { + this.PezziGitterboxRowDeleted(this, new PezziGitterboxRowChangeEvent(((PezziGitterboxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.PezziGitterboxRowDeleting != null)) { + this.PezziGitterboxRowDeleting(this, new PezziGitterboxRowChangeEvent(((PezziGitterboxRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemovePezziGitterboxRow(PezziGitterboxRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_DataMatrix ds = new DS_DataMatrix(); + 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 = "PezziGitterboxDataTable"; + 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. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class PezziProdottiRow : global::System.Data.DataRow { + + private PezziProdottiDataTable tablePezziProdotti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal PezziProdottiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablePezziProdotti = ((PezziProdottiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal CodDataMatrix { + get { + return ((decimal)(this[this.tablePezziProdotti.CodDataMatrixColumn])); + } + set { + this[this.tablePezziProdotti.CodDataMatrixColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int NumConchiglia { + get { + try { + return ((int)(this[this.tablePezziProdotti.NumConchigliaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumConchiglia\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.NumConchigliaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodScarto { + get { + try { + return ((string)(this[this.tablePezziProdotti.CodScartoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodScarto\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.CodScartoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodMacchina { + get { + try { + return ((string)(this[this.tablePezziProdotti.CodMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.CodMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public byte NumForno { + get { + try { + return ((byte)(this[this.tablePezziProdotti.NumFornoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumForno\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.NumFornoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime InizioIniezione { + get { + try { + return ((global::System.DateTime)(this[this.tablePezziProdotti.InizioIniezioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InizioIniezione\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.InizioIniezioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime FineIniezione { + get { + try { + return ((global::System.DateTime)(this[this.tablePezziProdotti.FineIniezioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FineIniezione\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.FineIniezioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal NumColata { + get { + try { + return ((decimal)(this[this.tablePezziProdotti.NumColataColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumColata\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.NumColataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal NumDisegno { + get { + try { + return ((decimal)(this[this.tablePezziProdotti.NumDisegnoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumDisegno\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.NumDisegnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public byte EsponenteDisegno { + get { + try { + return ((byte)(this[this.tablePezziProdotti.EsponenteDisegnoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'EsponenteDisegno\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.EsponenteDisegnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string PezziProdNote { + get { + try { + return ((string)(this[this.tablePezziProdotti.PezziProdNoteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziProdNote\' in table \'PezziProdotti\' is DBNull.", e); + } + } + set { + this[this.tablePezziProdotti.PezziProdNoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsNumConchigliaNull() { + return this.IsNull(this.tablePezziProdotti.NumConchigliaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetNumConchigliaNull() { + this[this.tablePezziProdotti.NumConchigliaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodScartoNull() { + return this.IsNull(this.tablePezziProdotti.CodScartoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodScartoNull() { + this[this.tablePezziProdotti.CodScartoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodMacchinaNull() { + return this.IsNull(this.tablePezziProdotti.CodMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodMacchinaNull() { + this[this.tablePezziProdotti.CodMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsNumFornoNull() { + return this.IsNull(this.tablePezziProdotti.NumFornoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetNumFornoNull() { + this[this.tablePezziProdotti.NumFornoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsInizioIniezioneNull() { + return this.IsNull(this.tablePezziProdotti.InizioIniezioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetInizioIniezioneNull() { + this[this.tablePezziProdotti.InizioIniezioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsFineIniezioneNull() { + return this.IsNull(this.tablePezziProdotti.FineIniezioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetFineIniezioneNull() { + this[this.tablePezziProdotti.FineIniezioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsNumColataNull() { + return this.IsNull(this.tablePezziProdotti.NumColataColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetNumColataNull() { + this[this.tablePezziProdotti.NumColataColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsNumDisegnoNull() { + return this.IsNull(this.tablePezziProdotti.NumDisegnoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetNumDisegnoNull() { + this[this.tablePezziProdotti.NumDisegnoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsEsponenteDisegnoNull() { + return this.IsNull(this.tablePezziProdotti.EsponenteDisegnoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetEsponenteDisegnoNull() { + this[this.tablePezziProdotti.EsponenteDisegnoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsPezziProdNoteNull() { + return this.IsNull(this.tablePezziProdotti.PezziProdNoteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetPezziProdNoteNull() { + this[this.tablePezziProdotti.PezziProdNoteColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class PezziGitterboxRow : global::System.Data.DataRow { + + private PezziGitterboxDataTable tablePezziGitterbox; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal PezziGitterboxRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablePezziGitterbox = ((PezziGitterboxDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal CodDataMatrix { + get { + return ((decimal)(this[this.tablePezziGitterbox.CodDataMatrixColumn])); + } + set { + this[this.tablePezziGitterbox.CodDataMatrixColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodGitterbox { + get { + return ((string)(this[this.tablePezziGitterbox.CodGitterboxColumn])); + } + set { + this[this.tablePezziGitterbox.CodGitterboxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime InizioPreparazione { + get { + try { + return ((global::System.DateTime)(this[this.tablePezziGitterbox.InizioPreparazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InizioPreparazione\' in table \'PezziGitterbox\' is DBNull.", e); + } + } + set { + this[this.tablePezziGitterbox.InizioPreparazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime FinePreparazione { + get { + try { + return ((global::System.DateTime)(this[this.tablePezziGitterbox.FinePreparazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FinePreparazione\' in table \'PezziGitterbox\' is DBNull.", e); + } + } + set { + this[this.tablePezziGitterbox.FinePreparazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsInizioPreparazioneNull() { + return this.IsNull(this.tablePezziGitterbox.InizioPreparazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetInizioPreparazioneNull() { + this[this.tablePezziGitterbox.InizioPreparazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsFinePreparazioneNull() { + return this.IsNull(this.tablePezziGitterbox.FinePreparazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetFinePreparazioneNull() { + this[this.tablePezziGitterbox.FinePreparazioneColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class PezziProdottiRowChangeEvent : global::System.EventArgs { + + private PezziProdottiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiRowChangeEvent(PezziProdottiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziProdottiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class PezziGitterboxRowChangeEvent : global::System.EventArgs { + + private PezziGitterboxRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxRowChangeEvent(PezziGitterboxRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public PezziGitterboxRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace GMW_data.DS_DataMatrixTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class PezziProdottiTableAdapter : 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()] + public PezziProdottiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 = "PezziProdotti"; + tableMapping.ColumnMappings.Add("CodDataMatrix", "CodDataMatrix"); + tableMapping.ColumnMappings.Add("NumConchiglia", "NumConchiglia"); + tableMapping.ColumnMappings.Add("CodScarto", "CodScarto"); + tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); + tableMapping.ColumnMappings.Add("NumForno", "NumForno"); + tableMapping.ColumnMappings.Add("InizioIniezione", "InizioIniezione"); + tableMapping.ColumnMappings.Add("FineIniezione", "FineIniezione"); + tableMapping.ColumnMappings.Add("NumColata", "NumColata"); + tableMapping.ColumnMappings.Add("NumDisegno", "NumDisegno"); + tableMapping.ColumnMappings.Add("EsponenteDisegno", "EsponenteDisegno"); + tableMapping.ColumnMappings.Add("PezziProdNote", "PezziProdNote"); + 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].[PezziProdotti] WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ((@IsNull_NumConchiglia = 1 AND [NumConchiglia] IS NULL) OR ([NumConchiglia] = @Original_NumConchiglia)) AND ((@IsNull_CodScarto = 1 AND [CodScarto] IS NULL) OR ([CodScarto] = @Original_CodScarto)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_NumForno = 1 AND [NumForno] IS NULL) OR ([NumForno] = @Original_NumForno)) AND ((@IsNull_InizioIniezione = 1 AND [InizioIniezione] IS NULL) OR ([InizioIniezione] = @Original_InizioIniezione)) AND ((@IsNull_FineIniezione = 1 AND [FineIniezione] IS NULL) OR ([FineIniezione] = @Original_FineIniezione)) AND ((@IsNull_NumColata = 1 AND [NumColata] IS NULL) OR ([NumColata] = @Original_NumColata)) AND ((@IsNull_NumDisegno = 1 AND [NumDisegno] IS NULL) OR ([NumDisegno] = @Original_NumDisegno)) AND ((@IsNull_EsponenteDisegno = 1 AND [EsponenteDisegno] IS NULL) OR ([EsponenteDisegno] = @Original_EsponenteDisegno)) AND ((@IsNull_PezziProdNote = 1 AND [PezziProdNote] IS NULL) OR ([PezziProdNote] = @Original_PezziProdNote)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodScarto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScarto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScarto", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScarto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumForno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumForno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumForno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumForno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumColata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumColata", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumColata", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 8, 0, "NumColata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EsponenteDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PezziProdNote", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProdNote", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PezziProdNote", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProdNote", 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].[PezziProdotti] ([CodDataMatrix], [NumConchiglia], [CodScarto], [CodMacchina], [NumForno], [InizioIniezione], [FineIniezione], [NumColata], [NumDisegno], [EsponenteDisegno], [PezziProdNote]) VALUES (@CodDataMatrix, @NumConchiglia, @CodScarto, @CodMacchina, @NumForno, @InizioIniezione, @FineIniezione, @NumColata, @NumDisegno, @EsponenteDisegno, @PezziProdNote); +SELECT CodDataMatrix, NumConchiglia, CodScarto, CodMacchina, NumForno, InizioIniezione, FineIniezione, NumColata, NumDisegno, EsponenteDisegno, PezziProdNote FROM PezziProdotti WHERE (CodDataMatrix = @CodDataMatrix)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScarto", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScarto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumForno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumForno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumColata", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 8, 0, "NumColata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PezziProdNote", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProdNote", 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].[PezziProdotti] SET [CodDataMatrix] = @CodDataMatrix, [NumConchiglia" + + "] = @NumConchiglia, [CodScarto] = @CodScarto, [CodMacchina] = @CodMacchina, [Num" + + "Forno] = @NumForno, [InizioIniezione] = @InizioIniezione, [FineIniezione] = @Fin" + + "eIniezione, [NumColata] = @NumColata, [NumDisegno] = @NumDisegno, [EsponenteDise" + + "gno] = @EsponenteDisegno, [PezziProdNote] = @PezziProdNote WHERE (([CodDataMatri" + + "x] = @Original_CodDataMatrix) AND ((@IsNull_NumConchiglia = 1 AND [NumConchiglia" + + "] IS NULL) OR ([NumConchiglia] = @Original_NumConchiglia)) AND ((@IsNull_CodScar" + + "to = 1 AND [CodScarto] IS NULL) OR ([CodScarto] = @Original_CodScarto)) AND ((@I" + + "sNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_C" + + "odMacchina)) AND ((@IsNull_NumForno = 1 AND [NumForno] IS NULL) OR ([NumForno] =" + + " @Original_NumForno)) AND ((@IsNull_InizioIniezione = 1 AND [InizioIniezione] IS" + + " NULL) OR ([InizioIniezione] = @Original_InizioIniezione)) AND ((@IsNull_FineIni" + + "ezione = 1 AND [FineIniezione] IS NULL) OR ([FineIniezione] = @Original_FineInie" + + "zione)) AND ((@IsNull_NumColata = 1 AND [NumColata] IS NULL) OR ([NumColata] = @" + + "Original_NumColata)) AND ((@IsNull_NumDisegno = 1 AND [NumDisegno] IS NULL) OR (" + + "[NumDisegno] = @Original_NumDisegno)) AND ((@IsNull_EsponenteDisegno = 1 AND [Es" + + "ponenteDisegno] IS NULL) OR ([EsponenteDisegno] = @Original_EsponenteDisegno)) A" + + "ND ((@IsNull_PezziProdNote = 1 AND [PezziProdNote] IS NULL) OR ([PezziProdNote] " + + "= @Original_PezziProdNote)));\r\nSELECT CodDataMatrix, NumConchiglia, CodScarto, C" + + "odMacchina, NumForno, InizioIniezione, FineIniezione, NumColata, NumDisegno, Esp" + + "onenteDisegno, PezziProdNote FROM PezziProdotti WHERE (CodDataMatrix = @CodDataM" + + "atrix)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScarto", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScarto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumForno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumForno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumColata", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 8, 0, "NumColata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PezziProdNote", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProdNote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumConchiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumConchiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodScarto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScarto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScarto", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScarto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumForno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumForno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumForno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumForno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineIniezione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineIniezione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineIniezione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumColata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumColata", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumColata", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 8, 0, "NumColata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDisegno", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 7, 0, "NumDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EsponenteDisegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EsponenteDisegno", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EsponenteDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PezziProdNote", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProdNote", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PezziProdNote", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProdNote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.SP_produzioneConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 CodDataMatrix, NumConchiglia, CodScarto, CodMacchina, NumForno, InizioInie" + + "zione, FineIniezione, NumColata, NumDisegno, EsponenteDisegno, PezziProdNote FRO" + + "M dbo.PezziProdotti"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_DataMatrix.PezziProdottiDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_DataMatrix.PezziProdottiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_DataMatrix.PezziProdottiDataTable dataTable = new DS_DataMatrix.PezziProdottiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DataMatrix.PezziProdottiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DataMatrix dataSet) { + return this.Adapter.Update(dataSet, "PezziProdotti"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(decimal Original_CodDataMatrix, global::System.Nullable Original_NumConchiglia, string Original_CodScarto, string Original_CodMacchina, global::System.Nullable Original_NumForno, global::System.Nullable Original_InizioIniezione, global::System.Nullable Original_FineIniezione, global::System.Nullable Original_NumColata, global::System.Nullable Original_NumDisegno, global::System.Nullable Original_EsponenteDisegno, string Original_PezziProdNote) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((decimal)(Original_CodDataMatrix)); + if ((Original_NumConchiglia.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_NumConchiglia.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_CodScarto == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodScarto)); + } + if ((Original_CodMacchina == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodMacchina)); + } + if ((Original_NumForno.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((byte)(Original_NumForno.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_InizioIniezione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_InizioIniezione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Original_FineIniezione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_FineIniezione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((Original_NumColata.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((decimal)(Original_NumColata.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((Original_NumDisegno.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[16].Value = ((decimal)(Original_NumDisegno.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((Original_EsponenteDisegno.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[18].Value = ((byte)(Original_EsponenteDisegno.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((Original_PezziProdNote == null)) { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_PezziProdNote)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(decimal CodDataMatrix, global::System.Nullable NumConchiglia, string CodScarto, string CodMacchina, global::System.Nullable NumForno, global::System.Nullable InizioIniezione, global::System.Nullable FineIniezione, global::System.Nullable NumColata, global::System.Nullable NumDisegno, global::System.Nullable EsponenteDisegno, string PezziProdNote) { + this.Adapter.InsertCommand.Parameters[0].Value = ((decimal)(CodDataMatrix)); + if ((NumConchiglia.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(NumConchiglia.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CodScarto == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodScarto)); + } + if ((CodMacchina == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodMacchina)); + } + if ((NumForno.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[4].Value = ((byte)(NumForno.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((InizioIniezione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(InizioIniezione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((FineIniezione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(FineIniezione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((NumColata.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(NumColata.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((NumDisegno.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((decimal)(NumDisegno.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((EsponenteDisegno.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((byte)(EsponenteDisegno.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((PezziProdNote == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(PezziProdNote)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + decimal CodDataMatrix, + global::System.Nullable NumConchiglia, + string CodScarto, + string CodMacchina, + global::System.Nullable NumForno, + global::System.Nullable InizioIniezione, + global::System.Nullable FineIniezione, + global::System.Nullable NumColata, + global::System.Nullable NumDisegno, + global::System.Nullable EsponenteDisegno, + string PezziProdNote, + decimal Original_CodDataMatrix, + global::System.Nullable Original_NumConchiglia, + string Original_CodScarto, + string Original_CodMacchina, + global::System.Nullable Original_NumForno, + global::System.Nullable Original_InizioIniezione, + global::System.Nullable Original_FineIniezione, + global::System.Nullable Original_NumColata, + global::System.Nullable Original_NumDisegno, + global::System.Nullable Original_EsponenteDisegno, + string Original_PezziProdNote) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((decimal)(CodDataMatrix)); + if ((NumConchiglia.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(NumConchiglia.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CodScarto == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodScarto)); + } + if ((CodMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodMacchina)); + } + if ((NumForno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((byte)(NumForno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((InizioIniezione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(InizioIniezione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((FineIniezione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(FineIniezione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((NumColata.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(NumColata.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((NumDisegno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(NumDisegno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((EsponenteDisegno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((byte)(EsponenteDisegno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((PezziProdNote == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(PezziProdNote)); + } + this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(Original_CodDataMatrix)); + if ((Original_NumConchiglia.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_NumConchiglia.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_CodScarto == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_CodScarto)); + } + if ((Original_CodMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_CodMacchina)); + } + if ((Original_NumForno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((byte)(Original_NumForno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((Original_InizioIniezione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_InizioIniezione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_FineIniezione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_FineIniezione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((Original_NumColata.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((decimal)(Original_NumColata.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((Original_NumDisegno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((decimal)(Original_NumDisegno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + if ((Original_EsponenteDisegno.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((byte)(Original_EsponenteDisegno.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; + } + if ((Original_PezziProdNote == null)) { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_PezziProdNote)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + global::System.Nullable NumConchiglia, + string CodScarto, + string CodMacchina, + global::System.Nullable NumForno, + global::System.Nullable InizioIniezione, + global::System.Nullable FineIniezione, + global::System.Nullable NumColata, + global::System.Nullable NumDisegno, + global::System.Nullable EsponenteDisegno, + string PezziProdNote, + decimal Original_CodDataMatrix, + global::System.Nullable Original_NumConchiglia, + string Original_CodScarto, + string Original_CodMacchina, + global::System.Nullable Original_NumForno, + global::System.Nullable Original_InizioIniezione, + global::System.Nullable Original_FineIniezione, + global::System.Nullable Original_NumColata, + global::System.Nullable Original_NumDisegno, + global::System.Nullable Original_EsponenteDisegno, + string Original_PezziProdNote) { + return this.Update(Original_CodDataMatrix, NumConchiglia, CodScarto, CodMacchina, NumForno, InizioIniezione, FineIniezione, NumColata, NumDisegno, EsponenteDisegno, PezziProdNote, Original_CodDataMatrix, Original_NumConchiglia, Original_CodScarto, Original_CodMacchina, Original_NumForno, Original_InizioIniezione, Original_FineIniezione, Original_NumColata, Original_NumDisegno, Original_EsponenteDisegno, Original_PezziProdNote); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class PezziGitterboxTableAdapter : 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()] + public PezziGitterboxTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 = "PezziGitterbox"; + tableMapping.ColumnMappings.Add("CodDataMatrix", "CodDataMatrix"); + tableMapping.ColumnMappings.Add("CodGitterbox", "CodGitterbox"); + tableMapping.ColumnMappings.Add("InizioPreparazione", "InizioPreparazione"); + tableMapping.ColumnMappings.Add("FinePreparazione", "FinePreparazione"); + 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].[PezziGitterbox] WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ([CodGitterbox] = @Original_CodGitterbox) AND ((@IsNull_InizioPreparazione = 1 AND [InizioPreparazione] IS NULL) OR ([InizioPreparazione] = @Original_InizioPreparazione)) AND ((@IsNull_FinePreparazione = 1 AND [FinePreparazione] IS NULL) OR ([FinePreparazione] = @Original_FinePreparazione)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioPreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FinePreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", 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].[PezziGitterbox] ([CodDataMatrix], [CodGitterbox], [InizioPreparazione], [FinePreparazione]) VALUES (@CodDataMatrix, @CodGitterbox, @InizioPreparazione, @FinePreparazione); +SELECT CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione FROM PezziGitterbox WHERE (CodDataMatrix = @CodDataMatrix)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", 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].[PezziGitterbox] SET [CodDataMatrix] = @CodDataMatrix, [CodGitterbox] = @CodGitterbox, [InizioPreparazione] = @InizioPreparazione, [FinePreparazione] = @FinePreparazione WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ([CodGitterbox] = @Original_CodGitterbox) AND ((@IsNull_InizioPreparazione = 1 AND [InizioPreparazione] IS NULL) OR ([InizioPreparazione] = @Original_InizioPreparazione)) AND ((@IsNull_FinePreparazione = 1 AND [FinePreparazione] IS NULL) OR ([FinePreparazione] = @Original_FinePreparazione))); +SELECT CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione FROM PezziGitterbox WHERE (CodDataMatrix = @CodDataMatrix)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDataMatrix", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 23, 0, "CodDataMatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGitterbox", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGitterbox", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioPreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioPreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioPreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FinePreparazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FinePreparazione", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FinePreparazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.SP_produzioneConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione FROM dbo" + + ".PezziGitterbox"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_DataMatrix.PezziGitterboxDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_DataMatrix.PezziGitterboxDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_DataMatrix.PezziGitterboxDataTable dataTable = new DS_DataMatrix.PezziGitterboxDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DataMatrix.PezziGitterboxDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DataMatrix dataSet) { + return this.Adapter.Update(dataSet, "PezziGitterbox"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(decimal Original_CodDataMatrix, string Original_CodGitterbox, global::System.Nullable Original_InizioPreparazione, global::System.Nullable Original_FinePreparazione) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((decimal)(Original_CodDataMatrix)); + if ((Original_CodGitterbox == null)) { + throw new global::System.ArgumentNullException("Original_CodGitterbox"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodGitterbox)); + } + if ((Original_InizioPreparazione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_InizioPreparazione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_FinePreparazione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_FinePreparazione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(decimal CodDataMatrix, string CodGitterbox, global::System.Nullable InizioPreparazione, global::System.Nullable FinePreparazione) { + this.Adapter.InsertCommand.Parameters[0].Value = ((decimal)(CodDataMatrix)); + if ((CodGitterbox == null)) { + throw new global::System.ArgumentNullException("CodGitterbox"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodGitterbox)); + } + if ((InizioPreparazione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioPreparazione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((FinePreparazione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(FinePreparazione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(decimal CodDataMatrix, string CodGitterbox, global::System.Nullable InizioPreparazione, global::System.Nullable FinePreparazione, decimal Original_CodDataMatrix, string Original_CodGitterbox, global::System.Nullable Original_InizioPreparazione, global::System.Nullable Original_FinePreparazione) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((decimal)(CodDataMatrix)); + if ((CodGitterbox == null)) { + throw new global::System.ArgumentNullException("CodGitterbox"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodGitterbox)); + } + if ((InizioPreparazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioPreparazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((FinePreparazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(FinePreparazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(Original_CodDataMatrix)); + if ((Original_CodGitterbox == null)) { + throw new global::System.ArgumentNullException("Original_CodGitterbox"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodGitterbox)); + } + if ((Original_InizioPreparazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_InizioPreparazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Original_FinePreparazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_FinePreparazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string CodGitterbox, global::System.Nullable InizioPreparazione, global::System.Nullable FinePreparazione, decimal Original_CodDataMatrix, string Original_CodGitterbox, global::System.Nullable Original_InizioPreparazione, global::System.Nullable Original_FinePreparazione) { + return this.Update(Original_CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione, Original_CodDataMatrix, Original_CodGitterbox, Original_InizioPreparazione, Original_FinePreparazione); + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private PezziProdottiTableAdapter _pezziProdottiTableAdapter; + + private PezziGitterboxTableAdapter _pezziGitterboxTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + + "", "System.Drawing.Design.UITypeEditor")] + public PezziProdottiTableAdapter PezziProdottiTableAdapter { + get { + return this._pezziProdottiTableAdapter; + } + set { + this._pezziProdottiTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + + "", "System.Drawing.Design.UITypeEditor")] + public PezziGitterboxTableAdapter PezziGitterboxTableAdapter { + get { + return this._pezziGitterboxTableAdapter; + } + set { + this._pezziGitterboxTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._pezziProdottiTableAdapter != null) + && (this._pezziProdottiTableAdapter.Connection != null))) { + return this._pezziProdottiTableAdapter.Connection; + } + if (((this._pezziGitterboxTableAdapter != null) + && (this._pezziGitterboxTableAdapter.Connection != null))) { + return this._pezziGitterboxTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._pezziProdottiTableAdapter != null)) { + count = (count + 1); + } + if ((this._pezziGitterboxTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateUpdatedRows(DS_DataMatrix dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._pezziGitterboxTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.PezziGitterbox.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._pezziGitterboxTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._pezziProdottiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.PezziProdotti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._pezziProdottiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateInsertedRows(DS_DataMatrix dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._pezziGitterboxTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.PezziGitterbox.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._pezziGitterboxTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._pezziProdottiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.PezziProdotti.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._pezziProdottiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateDeletedRows(DS_DataMatrix dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._pezziProdottiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.PezziProdotti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._pezziProdottiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._pezziGitterboxTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.PezziGitterbox.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._pezziGitterboxTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual int UpdateAll(DS_DataMatrix dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._pezziProdottiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._pezziProdottiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._pezziGitterboxTableAdapter != null) + && (this.MatchTableAdapterConnection(this._pezziGitterboxTableAdapter.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" + + "ger TableAdapter property to a valid TableAdapter instance."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._pezziProdottiTableAdapter != null)) { + revertConnections.Add(this._pezziProdottiTableAdapter, this._pezziProdottiTableAdapter.Connection); + this._pezziProdottiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._pezziProdottiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._pezziProdottiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._pezziProdottiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._pezziProdottiTableAdapter.Adapter); + } + } + if ((this._pezziGitterboxTableAdapter != null)) { + revertConnections.Add(this._pezziGitterboxTableAdapter, this._pezziGitterboxTableAdapter.Connection); + this._pezziGitterboxTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._pezziGitterboxTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._pezziGitterboxTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._pezziGitterboxTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._pezziGitterboxTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._pezziProdottiTableAdapter != null)) { + this._pezziProdottiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._pezziProdottiTableAdapter])); + this._pezziProdottiTableAdapter.Transaction = null; + } + if ((this._pezziGitterboxTableAdapter != null)) { + this._pezziGitterboxTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._pezziGitterboxTableAdapter])); + this._pezziGitterboxTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool IsChildAndParent(global::System.Data.DataRow child, global::System.Data.DataRow parent) { + global::System.Diagnostics.Debug.Assert((child != null)); + global::System.Diagnostics.Debug.Assert((parent != null)); + global::System.Data.DataRow newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((newParent != null) + && ((object.ReferenceEquals(newParent, child) == false) + && (object.ReferenceEquals(newParent, parent) == false))); + ) { + newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + if ((newParent == null)) { + for (newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); ((newParent != null) + && ((object.ReferenceEquals(newParent, child) == false) + && (object.ReferenceEquals(newParent, parent) == false))); + ) { + newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + if (object.ReferenceEquals(newParent, parent)) { + return true; + } + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + // Is row1 the child or grandchild of row2 + if (this.IsChildAndParent(row1, row2)) { + return this._childFirst; + } + + // Is row2 the child or grandchild of row1 + if (this.IsChildAndParent(row2, row1)) { + return (-1 * this._childFirst); + } + return 0; + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/GMW/GMW_data/DS_DataMatrix.xsc b/GMW/GMW_data/DS_DataMatrix.xsc new file mode 100644 index 00000000..551fc56f --- /dev/null +++ b/GMW/GMW_data/DS_DataMatrix.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_DataMatrix.xsd b/GMW/GMW_data/DS_DataMatrix.xsd new file mode 100644 index 00000000..1226763d --- /dev/null +++ b/GMW/GMW_data/DS_DataMatrix.xsd @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + DELETE FROM [dbo].[PezziProdotti] WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ((@IsNull_NumConchiglia = 1 AND [NumConchiglia] IS NULL) OR ([NumConchiglia] = @Original_NumConchiglia)) AND ((@IsNull_CodScarto = 1 AND [CodScarto] IS NULL) OR ([CodScarto] = @Original_CodScarto)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_NumForno = 1 AND [NumForno] IS NULL) OR ([NumForno] = @Original_NumForno)) AND ((@IsNull_InizioIniezione = 1 AND [InizioIniezione] IS NULL) OR ([InizioIniezione] = @Original_InizioIniezione)) AND ((@IsNull_FineIniezione = 1 AND [FineIniezione] IS NULL) OR ([FineIniezione] = @Original_FineIniezione)) AND ((@IsNull_NumColata = 1 AND [NumColata] IS NULL) OR ([NumColata] = @Original_NumColata)) AND ((@IsNull_NumDisegno = 1 AND [NumDisegno] IS NULL) OR ([NumDisegno] = @Original_NumDisegno)) AND ((@IsNull_EsponenteDisegno = 1 AND [EsponenteDisegno] IS NULL) OR ([EsponenteDisegno] = @Original_EsponenteDisegno)) AND ((@IsNull_PezziProdNote = 1 AND [PezziProdNote] IS NULL) OR ([PezziProdNote] = @Original_PezziProdNote))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[PezziProdotti] ([CodDataMatrix], [NumConchiglia], [CodScarto], [CodMacchina], [NumForno], [InizioIniezione], [FineIniezione], [NumColata], [NumDisegno], [EsponenteDisegno], [PezziProdNote]) VALUES (@CodDataMatrix, @NumConchiglia, @CodScarto, @CodMacchina, @NumForno, @InizioIniezione, @FineIniezione, @NumColata, @NumDisegno, @EsponenteDisegno, @PezziProdNote); +SELECT CodDataMatrix, NumConchiglia, CodScarto, CodMacchina, NumForno, InizioIniezione, FineIniezione, NumColata, NumDisegno, EsponenteDisegno, PezziProdNote FROM PezziProdotti WHERE (CodDataMatrix = @CodDataMatrix) + + + + + + + + + + + + + + + + + + SELECT CodDataMatrix, NumConchiglia, CodScarto, CodMacchina, NumForno, InizioIniezione, FineIniezione, NumColata, NumDisegno, EsponenteDisegno, PezziProdNote FROM dbo.PezziProdotti + + + + + + UPDATE [dbo].[PezziProdotti] SET [CodDataMatrix] = @CodDataMatrix, [NumConchiglia] = @NumConchiglia, [CodScarto] = @CodScarto, [CodMacchina] = @CodMacchina, [NumForno] = @NumForno, [InizioIniezione] = @InizioIniezione, [FineIniezione] = @FineIniezione, [NumColata] = @NumColata, [NumDisegno] = @NumDisegno, [EsponenteDisegno] = @EsponenteDisegno, [PezziProdNote] = @PezziProdNote WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ((@IsNull_NumConchiglia = 1 AND [NumConchiglia] IS NULL) OR ([NumConchiglia] = @Original_NumConchiglia)) AND ((@IsNull_CodScarto = 1 AND [CodScarto] IS NULL) OR ([CodScarto] = @Original_CodScarto)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_NumForno = 1 AND [NumForno] IS NULL) OR ([NumForno] = @Original_NumForno)) AND ((@IsNull_InizioIniezione = 1 AND [InizioIniezione] IS NULL) OR ([InizioIniezione] = @Original_InizioIniezione)) AND ((@IsNull_FineIniezione = 1 AND [FineIniezione] IS NULL) OR ([FineIniezione] = @Original_FineIniezione)) AND ((@IsNull_NumColata = 1 AND [NumColata] IS NULL) OR ([NumColata] = @Original_NumColata)) AND ((@IsNull_NumDisegno = 1 AND [NumDisegno] IS NULL) OR ([NumDisegno] = @Original_NumDisegno)) AND ((@IsNull_EsponenteDisegno = 1 AND [EsponenteDisegno] IS NULL) OR ([EsponenteDisegno] = @Original_EsponenteDisegno)) AND ((@IsNull_PezziProdNote = 1 AND [PezziProdNote] IS NULL) OR ([PezziProdNote] = @Original_PezziProdNote))); +SELECT CodDataMatrix, NumConchiglia, CodScarto, CodMacchina, NumForno, InizioIniezione, FineIniezione, NumColata, NumDisegno, EsponenteDisegno, PezziProdNote FROM PezziProdotti WHERE (CodDataMatrix = @CodDataMatrix) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[PezziGitterbox] WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ([CodGitterbox] = @Original_CodGitterbox) AND ((@IsNull_InizioPreparazione = 1 AND [InizioPreparazione] IS NULL) OR ([InizioPreparazione] = @Original_InizioPreparazione)) AND ((@IsNull_FinePreparazione = 1 AND [FinePreparazione] IS NULL) OR ([FinePreparazione] = @Original_FinePreparazione))) + + + + + + + + + + + + + INSERT INTO [dbo].[PezziGitterbox] ([CodDataMatrix], [CodGitterbox], [InizioPreparazione], [FinePreparazione]) VALUES (@CodDataMatrix, @CodGitterbox, @InizioPreparazione, @FinePreparazione); +SELECT CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione FROM PezziGitterbox WHERE (CodDataMatrix = @CodDataMatrix) + + + + + + + + + + + SELECT CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione FROM dbo.PezziGitterbox + + + + + + UPDATE [dbo].[PezziGitterbox] SET [CodDataMatrix] = @CodDataMatrix, [CodGitterbox] = @CodGitterbox, [InizioPreparazione] = @InizioPreparazione, [FinePreparazione] = @FinePreparazione WHERE (([CodDataMatrix] = @Original_CodDataMatrix) AND ([CodGitterbox] = @Original_CodGitterbox) AND ((@IsNull_InizioPreparazione = 1 AND [InizioPreparazione] IS NULL) OR ([InizioPreparazione] = @Original_InizioPreparazione)) AND ((@IsNull_FinePreparazione = 1 AND [FinePreparazione] IS NULL) OR ([FinePreparazione] = @Original_FinePreparazione))); +SELECT CodDataMatrix, CodGitterbox, InizioPreparazione, FinePreparazione FROM PezziGitterbox WHERE (CodDataMatrix = @CodDataMatrix) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_DataMatrix.xss b/GMW/GMW_data/DS_DataMatrix.xss new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/GMW/GMW_data/DS_DataMatrix.xss @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/GMW/GMW_data/DS_Odette.Designer.cs b/GMW/GMW_data/DS_Odette.Designer.cs new file mode 100644 index 00000000..069f5c3a --- /dev/null +++ b/GMW/GMW_data/DS_Odette.Designer.cs @@ -0,0 +1,4343 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4952 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace GMW_data { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DS_Odette")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DS_Odette : global::System.Data.DataSet { + + private OdetteDataTable tableOdette; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public DS_Odette() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected DS_Odette(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["Odette"] != null)) { + base.Tables.Add(new OdetteDataTable(ds.Tables["Odette"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public OdetteDataTable Odette { + get { + return this.tableOdette; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataSet Clone() { + DS_Odette cln = ((DS_Odette)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["Odette"] != null)) { + base.Tables.Add(new OdetteDataTable(ds.Tables["Odette"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars(bool initTable) { + this.tableOdette = ((OdetteDataTable)(base.Tables["Odette"])); + if ((initTable == true)) { + if ((this.tableOdette != null)) { + this.tableOdette.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.DataSetName = "DS_Odette"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DS_Odette.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableOdette = new OdetteDataTable(); + base.Tables.Add(this.tableOdette); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeOdette() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DS_Odette ds = new DS_Odette(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + 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; + } + + public delegate void OdetteRowChangeEventHandler(object sender, OdetteRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class OdetteDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCampoUDC; + + private global::System.Data.DataColumn columnCampo1_1; + + private global::System.Data.DataColumn columnCampo1_2; + + private global::System.Data.DataColumn columnCampo1_3; + + private global::System.Data.DataColumn columnCampo1_4; + + private global::System.Data.DataColumn columnCampo1_5; + + private global::System.Data.DataColumn columnCampo2_1; + + private global::System.Data.DataColumn columnCampo2_2; + + private global::System.Data.DataColumn columnCampo2_3; + + private global::System.Data.DataColumn columnCampo2_4; + + private global::System.Data.DataColumn columnCampo2_5; + + private global::System.Data.DataColumn columnCampo3_1; + + private global::System.Data.DataColumn columnCampo3_2; + + private global::System.Data.DataColumn columnCampo3_3; + + private global::System.Data.DataColumn columnCampo3_4; + + private global::System.Data.DataColumn columnCampo3_5; + + private global::System.Data.DataColumn columnCampo4_1; + + private global::System.Data.DataColumn columnCampo4_2; + + private global::System.Data.DataColumn columnCampo4_3; + + private global::System.Data.DataColumn columnCampo4_4; + + private global::System.Data.DataColumn columnCampo4_5; + + private global::System.Data.DataColumn columnCampo5_1; + + private global::System.Data.DataColumn columnCampo5_2; + + private global::System.Data.DataColumn columnCampo5_3; + + private global::System.Data.DataColumn columnCampo5_4; + + private global::System.Data.DataColumn columnCampo5_5; + + private global::System.Data.DataColumn columnCampo6_1; + + private global::System.Data.DataColumn columnCampo6_2; + + private global::System.Data.DataColumn columnCampo6_3; + + private global::System.Data.DataColumn columnCampo6_4; + + private global::System.Data.DataColumn columnCampo6_5; + + private global::System.Data.DataColumn columnCampo7_1; + + private global::System.Data.DataColumn columnCampo7_2; + + private global::System.Data.DataColumn columnCampo7_3; + + private global::System.Data.DataColumn columnCampo7_4; + + private global::System.Data.DataColumn columnCampo7_5; + + private global::System.Data.DataColumn columnCampo8_1; + + private global::System.Data.DataColumn columnCampo8_2; + + private global::System.Data.DataColumn columnCampo8_3; + + private global::System.Data.DataColumn columnCampo8_4; + + private global::System.Data.DataColumn columnCampo8_5; + + private global::System.Data.DataColumn columnCampo9_1; + + private global::System.Data.DataColumn columnCampo9_2; + + private global::System.Data.DataColumn columnCampo9_3; + + private global::System.Data.DataColumn columnCampo9_4; + + private global::System.Data.DataColumn columnCampo9_5; + + private global::System.Data.DataColumn columnCampo10_1; + + private global::System.Data.DataColumn columnCampo10_2; + + private global::System.Data.DataColumn columnCampo10_3; + + private global::System.Data.DataColumn columnCampo10_4; + + private global::System.Data.DataColumn columnCampo10_5; + + private global::System.Data.DataColumn columnCampo11_1_1; + + private global::System.Data.DataColumn columnCampo11_1_2; + + private global::System.Data.DataColumn columnCampo11_1_3; + + private global::System.Data.DataColumn columnCampo11_1_4; + + private global::System.Data.DataColumn columnCampo11_1_5; + + private global::System.Data.DataColumn columnCampo11_2_1; + + private global::System.Data.DataColumn columnCampo11_2_2; + + private global::System.Data.DataColumn columnCampo11_2_3; + + private global::System.Data.DataColumn columnCampo11_2_4; + + private global::System.Data.DataColumn columnCampo11_2_5; + + private global::System.Data.DataColumn columnCampo12_1; + + private global::System.Data.DataColumn columnCampo12_2; + + private global::System.Data.DataColumn columnCampo12_3; + + private global::System.Data.DataColumn columnCampo12_4; + + private global::System.Data.DataColumn columnCampo12_5; + + private global::System.Data.DataColumn columnCampo13_1; + + private global::System.Data.DataColumn columnCampo13_2; + + private global::System.Data.DataColumn columnCampo13_3; + + private global::System.Data.DataColumn columnCampo13_4; + + private global::System.Data.DataColumn columnCampo13_5; + + private global::System.Data.DataColumn columnCampo14_1; + + private global::System.Data.DataColumn columnCampo14_2; + + private global::System.Data.DataColumn columnCampo14_3; + + private global::System.Data.DataColumn columnCampo14_4; + + private global::System.Data.DataColumn columnCampo14_5; + + private global::System.Data.DataColumn columnCampo15_1; + + private global::System.Data.DataColumn columnCampo15_2; + + private global::System.Data.DataColumn columnCampo15_3; + + private global::System.Data.DataColumn columnCampo15_4; + + private global::System.Data.DataColumn columnCampo15_5; + + private global::System.Data.DataColumn columnCampo16_1; + + private global::System.Data.DataColumn columnCampo16_2; + + private global::System.Data.DataColumn columnCampo16_3; + + private global::System.Data.DataColumn columnCampo16_4; + + private global::System.Data.DataColumn columnCampo16_5; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public OdetteDataTable() { + this.TableName = "Odette"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal OdetteDataTable(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()] + protected OdetteDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CampoUDCColumn { + get { + return this.columnCampoUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo1_1Column { + get { + return this.columnCampo1_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo1_2Column { + get { + return this.columnCampo1_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo1_3Column { + get { + return this.columnCampo1_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo1_4Column { + get { + return this.columnCampo1_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo1_5Column { + get { + return this.columnCampo1_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo2_1Column { + get { + return this.columnCampo2_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo2_2Column { + get { + return this.columnCampo2_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo2_3Column { + get { + return this.columnCampo2_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo2_4Column { + get { + return this.columnCampo2_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo2_5Column { + get { + return this.columnCampo2_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo3_1Column { + get { + return this.columnCampo3_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo3_2Column { + get { + return this.columnCampo3_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo3_3Column { + get { + return this.columnCampo3_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo3_4Column { + get { + return this.columnCampo3_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo3_5Column { + get { + return this.columnCampo3_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo4_1Column { + get { + return this.columnCampo4_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo4_2Column { + get { + return this.columnCampo4_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo4_3Column { + get { + return this.columnCampo4_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo4_4Column { + get { + return this.columnCampo4_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo4_5Column { + get { + return this.columnCampo4_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo5_1Column { + get { + return this.columnCampo5_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo5_2Column { + get { + return this.columnCampo5_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo5_3Column { + get { + return this.columnCampo5_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo5_4Column { + get { + return this.columnCampo5_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo5_5Column { + get { + return this.columnCampo5_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo6_1Column { + get { + return this.columnCampo6_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo6_2Column { + get { + return this.columnCampo6_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo6_3Column { + get { + return this.columnCampo6_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo6_4Column { + get { + return this.columnCampo6_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo6_5Column { + get { + return this.columnCampo6_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo7_1Column { + get { + return this.columnCampo7_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo7_2Column { + get { + return this.columnCampo7_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo7_3Column { + get { + return this.columnCampo7_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo7_4Column { + get { + return this.columnCampo7_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo7_5Column { + get { + return this.columnCampo7_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo8_1Column { + get { + return this.columnCampo8_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo8_2Column { + get { + return this.columnCampo8_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo8_3Column { + get { + return this.columnCampo8_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo8_4Column { + get { + return this.columnCampo8_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo8_5Column { + get { + return this.columnCampo8_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo9_1Column { + get { + return this.columnCampo9_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo9_2Column { + get { + return this.columnCampo9_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo9_3Column { + get { + return this.columnCampo9_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo9_4Column { + get { + return this.columnCampo9_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo9_5Column { + get { + return this.columnCampo9_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo10_1Column { + get { + return this.columnCampo10_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo10_2Column { + get { + return this.columnCampo10_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo10_3Column { + get { + return this.columnCampo10_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo10_4Column { + get { + return this.columnCampo10_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo10_5Column { + get { + return this.columnCampo10_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_1_1Column { + get { + return this.columnCampo11_1_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_1_2Column { + get { + return this.columnCampo11_1_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_1_3Column { + get { + return this.columnCampo11_1_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_1_4Column { + get { + return this.columnCampo11_1_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_1_5Column { + get { + return this.columnCampo11_1_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_2_1Column { + get { + return this.columnCampo11_2_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_2_2Column { + get { + return this.columnCampo11_2_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_2_3Column { + get { + return this.columnCampo11_2_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_2_4Column { + get { + return this.columnCampo11_2_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo11_2_5Column { + get { + return this.columnCampo11_2_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo12_1Column { + get { + return this.columnCampo12_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo12_2Column { + get { + return this.columnCampo12_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo12_3Column { + get { + return this.columnCampo12_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo12_4Column { + get { + return this.columnCampo12_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo12_5Column { + get { + return this.columnCampo12_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo13_1Column { + get { + return this.columnCampo13_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo13_2Column { + get { + return this.columnCampo13_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo13_3Column { + get { + return this.columnCampo13_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo13_4Column { + get { + return this.columnCampo13_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo13_5Column { + get { + return this.columnCampo13_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo14_1Column { + get { + return this.columnCampo14_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo14_2Column { + get { + return this.columnCampo14_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo14_3Column { + get { + return this.columnCampo14_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo14_4Column { + get { + return this.columnCampo14_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo14_5Column { + get { + return this.columnCampo14_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo15_1Column { + get { + return this.columnCampo15_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo15_2Column { + get { + return this.columnCampo15_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo15_3Column { + get { + return this.columnCampo15_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo15_4Column { + get { + return this.columnCampo15_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo15_5Column { + get { + return this.columnCampo15_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo16_1Column { + get { + return this.columnCampo16_1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo16_2Column { + get { + return this.columnCampo16_2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo16_3Column { + get { + return this.columnCampo16_3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo16_4Column { + get { + return this.columnCampo16_4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Campo16_5Column { + get { + return this.columnCampo16_5; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public OdetteRow this[int index] { + get { + return ((OdetteRow)(this.Rows[index])); + } + } + + public event OdetteRowChangeEventHandler OdetteRowChanging; + + public event OdetteRowChangeEventHandler OdetteRowChanged; + + public event OdetteRowChangeEventHandler OdetteRowDeleting; + + public event OdetteRowChangeEventHandler OdetteRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddOdetteRow(OdetteRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public OdetteRow AddOdetteRow( + string CampoUDC, + string Campo1_1, + string Campo1_2, + string Campo1_3, + string Campo1_4, + string Campo1_5, + string Campo2_1, + string Campo2_2, + string Campo2_3, + string Campo2_4, + string Campo2_5, + string Campo3_1, + string Campo3_2, + string Campo3_3, + string Campo3_4, + string Campo3_5, + string Campo4_1, + string Campo4_2, + string Campo4_3, + string Campo4_4, + string Campo4_5, + string Campo5_1, + string Campo5_2, + string Campo5_3, + string Campo5_4, + string Campo5_5, + string Campo6_1, + string Campo6_2, + string Campo6_3, + string Campo6_4, + string Campo6_5, + string Campo7_1, + string Campo7_2, + string Campo7_3, + string Campo7_4, + string Campo7_5, + string Campo8_1, + string Campo8_2, + string Campo8_3, + string Campo8_4, + string Campo8_5, + string Campo9_1, + string Campo9_2, + string Campo9_3, + string Campo9_4, + string Campo9_5, + string Campo10_1, + string Campo10_2, + string Campo10_3, + string Campo10_4, + string Campo10_5, + string Campo11_1_1, + string Campo11_1_2, + string Campo11_1_3, + string Campo11_1_4, + string Campo11_1_5, + string Campo11_2_1, + string Campo11_2_2, + string Campo11_2_3, + string Campo11_2_4, + string Campo11_2_5, + string Campo12_1, + string Campo12_2, + string Campo12_3, + string Campo12_4, + string Campo12_5, + string Campo13_1, + string Campo13_2, + string Campo13_3, + string Campo13_4, + string Campo13_5, + string Campo14_1, + string Campo14_2, + string Campo14_3, + string Campo14_4, + string Campo14_5, + string Campo15_1, + string Campo15_2, + string Campo15_3, + string Campo15_4, + string Campo15_5, + string Campo16_1, + string Campo16_2, + string Campo16_3, + string Campo16_4, + string Campo16_5) { + OdetteRow rowOdetteRow = ((OdetteRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CampoUDC, + Campo1_1, + Campo1_2, + Campo1_3, + Campo1_4, + Campo1_5, + Campo2_1, + Campo2_2, + Campo2_3, + Campo2_4, + Campo2_5, + Campo3_1, + Campo3_2, + Campo3_3, + Campo3_4, + Campo3_5, + Campo4_1, + Campo4_2, + Campo4_3, + Campo4_4, + Campo4_5, + Campo5_1, + Campo5_2, + Campo5_3, + Campo5_4, + Campo5_5, + Campo6_1, + Campo6_2, + Campo6_3, + Campo6_4, + Campo6_5, + Campo7_1, + Campo7_2, + Campo7_3, + Campo7_4, + Campo7_5, + Campo8_1, + Campo8_2, + Campo8_3, + Campo8_4, + Campo8_5, + Campo9_1, + Campo9_2, + Campo9_3, + Campo9_4, + Campo9_5, + Campo10_1, + Campo10_2, + Campo10_3, + Campo10_4, + Campo10_5, + Campo11_1_1, + Campo11_1_2, + Campo11_1_3, + Campo11_1_4, + Campo11_1_5, + Campo11_2_1, + Campo11_2_2, + Campo11_2_3, + Campo11_2_4, + Campo11_2_5, + Campo12_1, + Campo12_2, + Campo12_3, + Campo12_4, + Campo12_5, + Campo13_1, + Campo13_2, + Campo13_3, + Campo13_4, + Campo13_5, + Campo14_1, + Campo14_2, + Campo14_3, + Campo14_4, + Campo14_5, + Campo15_1, + Campo15_2, + Campo15_3, + Campo15_4, + Campo15_5, + Campo16_1, + Campo16_2, + Campo16_3, + Campo16_4, + Campo16_5}; + rowOdetteRow.ItemArray = columnValuesArray; + this.Rows.Add(rowOdetteRow); + return rowOdetteRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + OdetteDataTable cln = ((OdetteDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new OdetteDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCampoUDC = base.Columns["CampoUDC"]; + this.columnCampo1_1 = base.Columns["Campo1_1"]; + this.columnCampo1_2 = base.Columns["Campo1_2"]; + this.columnCampo1_3 = base.Columns["Campo1_3"]; + this.columnCampo1_4 = base.Columns["Campo1_4"]; + this.columnCampo1_5 = base.Columns["Campo1_5"]; + this.columnCampo2_1 = base.Columns["Campo2_1"]; + this.columnCampo2_2 = base.Columns["Campo2_2"]; + this.columnCampo2_3 = base.Columns["Campo2_3"]; + this.columnCampo2_4 = base.Columns["Campo2_4"]; + this.columnCampo2_5 = base.Columns["Campo2_5"]; + this.columnCampo3_1 = base.Columns["Campo3_1"]; + this.columnCampo3_2 = base.Columns["Campo3_2"]; + this.columnCampo3_3 = base.Columns["Campo3_3"]; + this.columnCampo3_4 = base.Columns["Campo3_4"]; + this.columnCampo3_5 = base.Columns["Campo3_5"]; + this.columnCampo4_1 = base.Columns["Campo4_1"]; + this.columnCampo4_2 = base.Columns["Campo4_2"]; + this.columnCampo4_3 = base.Columns["Campo4_3"]; + this.columnCampo4_4 = base.Columns["Campo4_4"]; + this.columnCampo4_5 = base.Columns["Campo4_5"]; + this.columnCampo5_1 = base.Columns["Campo5_1"]; + this.columnCampo5_2 = base.Columns["Campo5_2"]; + this.columnCampo5_3 = base.Columns["Campo5_3"]; + this.columnCampo5_4 = base.Columns["Campo5_4"]; + this.columnCampo5_5 = base.Columns["Campo5_5"]; + this.columnCampo6_1 = base.Columns["Campo6_1"]; + this.columnCampo6_2 = base.Columns["Campo6_2"]; + this.columnCampo6_3 = base.Columns["Campo6_3"]; + this.columnCampo6_4 = base.Columns["Campo6_4"]; + this.columnCampo6_5 = base.Columns["Campo6_5"]; + this.columnCampo7_1 = base.Columns["Campo7_1"]; + this.columnCampo7_2 = base.Columns["Campo7_2"]; + this.columnCampo7_3 = base.Columns["Campo7_3"]; + this.columnCampo7_4 = base.Columns["Campo7_4"]; + this.columnCampo7_5 = base.Columns["Campo7_5"]; + this.columnCampo8_1 = base.Columns["Campo8_1"]; + this.columnCampo8_2 = base.Columns["Campo8_2"]; + this.columnCampo8_3 = base.Columns["Campo8_3"]; + this.columnCampo8_4 = base.Columns["Campo8_4"]; + this.columnCampo8_5 = base.Columns["Campo8_5"]; + this.columnCampo9_1 = base.Columns["Campo9_1"]; + this.columnCampo9_2 = base.Columns["Campo9_2"]; + this.columnCampo9_3 = base.Columns["Campo9_3"]; + this.columnCampo9_4 = base.Columns["Campo9_4"]; + this.columnCampo9_5 = base.Columns["Campo9_5"]; + this.columnCampo10_1 = base.Columns["Campo10_1"]; + this.columnCampo10_2 = base.Columns["Campo10_2"]; + this.columnCampo10_3 = base.Columns["Campo10_3"]; + this.columnCampo10_4 = base.Columns["Campo10_4"]; + this.columnCampo10_5 = base.Columns["Campo10_5"]; + this.columnCampo11_1_1 = base.Columns["Campo11_1_1"]; + this.columnCampo11_1_2 = base.Columns["Campo11_1_2"]; + this.columnCampo11_1_3 = base.Columns["Campo11_1_3"]; + this.columnCampo11_1_4 = base.Columns["Campo11_1_4"]; + this.columnCampo11_1_5 = base.Columns["Campo11_1_5"]; + this.columnCampo11_2_1 = base.Columns["Campo11_2_1"]; + this.columnCampo11_2_2 = base.Columns["Campo11_2_2"]; + this.columnCampo11_2_3 = base.Columns["Campo11_2_3"]; + this.columnCampo11_2_4 = base.Columns["Campo11_2_4"]; + this.columnCampo11_2_5 = base.Columns["Campo11_2_5"]; + this.columnCampo12_1 = base.Columns["Campo12_1"]; + this.columnCampo12_2 = base.Columns["Campo12_2"]; + this.columnCampo12_3 = base.Columns["Campo12_3"]; + this.columnCampo12_4 = base.Columns["Campo12_4"]; + this.columnCampo12_5 = base.Columns["Campo12_5"]; + this.columnCampo13_1 = base.Columns["Campo13_1"]; + this.columnCampo13_2 = base.Columns["Campo13_2"]; + this.columnCampo13_3 = base.Columns["Campo13_3"]; + this.columnCampo13_4 = base.Columns["Campo13_4"]; + this.columnCampo13_5 = base.Columns["Campo13_5"]; + this.columnCampo14_1 = base.Columns["Campo14_1"]; + this.columnCampo14_2 = base.Columns["Campo14_2"]; + this.columnCampo14_3 = base.Columns["Campo14_3"]; + this.columnCampo14_4 = base.Columns["Campo14_4"]; + this.columnCampo14_5 = base.Columns["Campo14_5"]; + this.columnCampo15_1 = base.Columns["Campo15_1"]; + this.columnCampo15_2 = base.Columns["Campo15_2"]; + this.columnCampo15_3 = base.Columns["Campo15_3"]; + this.columnCampo15_4 = base.Columns["Campo15_4"]; + this.columnCampo15_5 = base.Columns["Campo15_5"]; + this.columnCampo16_1 = base.Columns["Campo16_1"]; + this.columnCampo16_2 = base.Columns["Campo16_2"]; + this.columnCampo16_3 = base.Columns["Campo16_3"]; + this.columnCampo16_4 = base.Columns["Campo16_4"]; + this.columnCampo16_5 = base.Columns["Campo16_5"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCampoUDC = new global::System.Data.DataColumn("CampoUDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampoUDC); + this.columnCampo1_1 = new global::System.Data.DataColumn("Campo1_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo1_1); + this.columnCampo1_2 = new global::System.Data.DataColumn("Campo1_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo1_2); + this.columnCampo1_3 = new global::System.Data.DataColumn("Campo1_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo1_3); + this.columnCampo1_4 = new global::System.Data.DataColumn("Campo1_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo1_4); + this.columnCampo1_5 = new global::System.Data.DataColumn("Campo1_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo1_5); + this.columnCampo2_1 = new global::System.Data.DataColumn("Campo2_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo2_1); + this.columnCampo2_2 = new global::System.Data.DataColumn("Campo2_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo2_2); + this.columnCampo2_3 = new global::System.Data.DataColumn("Campo2_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo2_3); + this.columnCampo2_4 = new global::System.Data.DataColumn("Campo2_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo2_4); + this.columnCampo2_5 = new global::System.Data.DataColumn("Campo2_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo2_5); + this.columnCampo3_1 = new global::System.Data.DataColumn("Campo3_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo3_1); + this.columnCampo3_2 = new global::System.Data.DataColumn("Campo3_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo3_2); + this.columnCampo3_3 = new global::System.Data.DataColumn("Campo3_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo3_3); + this.columnCampo3_4 = new global::System.Data.DataColumn("Campo3_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo3_4); + this.columnCampo3_5 = new global::System.Data.DataColumn("Campo3_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo3_5); + this.columnCampo4_1 = new global::System.Data.DataColumn("Campo4_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo4_1); + this.columnCampo4_2 = new global::System.Data.DataColumn("Campo4_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo4_2); + this.columnCampo4_3 = new global::System.Data.DataColumn("Campo4_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo4_3); + this.columnCampo4_4 = new global::System.Data.DataColumn("Campo4_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo4_4); + this.columnCampo4_5 = new global::System.Data.DataColumn("Campo4_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo4_5); + this.columnCampo5_1 = new global::System.Data.DataColumn("Campo5_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo5_1); + this.columnCampo5_2 = new global::System.Data.DataColumn("Campo5_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo5_2); + this.columnCampo5_3 = new global::System.Data.DataColumn("Campo5_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo5_3); + this.columnCampo5_4 = new global::System.Data.DataColumn("Campo5_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo5_4); + this.columnCampo5_5 = new global::System.Data.DataColumn("Campo5_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo5_5); + this.columnCampo6_1 = new global::System.Data.DataColumn("Campo6_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo6_1); + this.columnCampo6_2 = new global::System.Data.DataColumn("Campo6_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo6_2); + this.columnCampo6_3 = new global::System.Data.DataColumn("Campo6_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo6_3); + this.columnCampo6_4 = new global::System.Data.DataColumn("Campo6_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo6_4); + this.columnCampo6_5 = new global::System.Data.DataColumn("Campo6_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo6_5); + this.columnCampo7_1 = new global::System.Data.DataColumn("Campo7_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo7_1); + this.columnCampo7_2 = new global::System.Data.DataColumn("Campo7_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo7_2); + this.columnCampo7_3 = new global::System.Data.DataColumn("Campo7_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo7_3); + this.columnCampo7_4 = new global::System.Data.DataColumn("Campo7_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo7_4); + this.columnCampo7_5 = new global::System.Data.DataColumn("Campo7_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo7_5); + this.columnCampo8_1 = new global::System.Data.DataColumn("Campo8_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo8_1); + this.columnCampo8_2 = new global::System.Data.DataColumn("Campo8_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo8_2); + this.columnCampo8_3 = new global::System.Data.DataColumn("Campo8_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo8_3); + this.columnCampo8_4 = new global::System.Data.DataColumn("Campo8_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo8_4); + this.columnCampo8_5 = new global::System.Data.DataColumn("Campo8_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo8_5); + this.columnCampo9_1 = new global::System.Data.DataColumn("Campo9_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo9_1); + this.columnCampo9_2 = new global::System.Data.DataColumn("Campo9_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo9_2); + this.columnCampo9_3 = new global::System.Data.DataColumn("Campo9_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo9_3); + this.columnCampo9_4 = new global::System.Data.DataColumn("Campo9_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo9_4); + this.columnCampo9_5 = new global::System.Data.DataColumn("Campo9_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo9_5); + this.columnCampo10_1 = new global::System.Data.DataColumn("Campo10_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo10_1); + this.columnCampo10_2 = new global::System.Data.DataColumn("Campo10_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo10_2); + this.columnCampo10_3 = new global::System.Data.DataColumn("Campo10_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo10_3); + this.columnCampo10_4 = new global::System.Data.DataColumn("Campo10_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo10_4); + this.columnCampo10_5 = new global::System.Data.DataColumn("Campo10_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo10_5); + this.columnCampo11_1_1 = new global::System.Data.DataColumn("Campo11_1_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_1_1); + this.columnCampo11_1_2 = new global::System.Data.DataColumn("Campo11_1_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_1_2); + this.columnCampo11_1_3 = new global::System.Data.DataColumn("Campo11_1_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_1_3); + this.columnCampo11_1_4 = new global::System.Data.DataColumn("Campo11_1_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_1_4); + this.columnCampo11_1_5 = new global::System.Data.DataColumn("Campo11_1_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_1_5); + this.columnCampo11_2_1 = new global::System.Data.DataColumn("Campo11_2_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_2_1); + this.columnCampo11_2_2 = new global::System.Data.DataColumn("Campo11_2_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_2_2); + this.columnCampo11_2_3 = new global::System.Data.DataColumn("Campo11_2_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_2_3); + this.columnCampo11_2_4 = new global::System.Data.DataColumn("Campo11_2_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_2_4); + this.columnCampo11_2_5 = new global::System.Data.DataColumn("Campo11_2_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo11_2_5); + this.columnCampo12_1 = new global::System.Data.DataColumn("Campo12_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo12_1); + this.columnCampo12_2 = new global::System.Data.DataColumn("Campo12_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo12_2); + this.columnCampo12_3 = new global::System.Data.DataColumn("Campo12_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo12_3); + this.columnCampo12_4 = new global::System.Data.DataColumn("Campo12_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo12_4); + this.columnCampo12_5 = new global::System.Data.DataColumn("Campo12_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo12_5); + this.columnCampo13_1 = new global::System.Data.DataColumn("Campo13_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo13_1); + this.columnCampo13_2 = new global::System.Data.DataColumn("Campo13_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo13_2); + this.columnCampo13_3 = new global::System.Data.DataColumn("Campo13_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo13_3); + this.columnCampo13_4 = new global::System.Data.DataColumn("Campo13_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo13_4); + this.columnCampo13_5 = new global::System.Data.DataColumn("Campo13_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo13_5); + this.columnCampo14_1 = new global::System.Data.DataColumn("Campo14_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo14_1); + this.columnCampo14_2 = new global::System.Data.DataColumn("Campo14_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo14_2); + this.columnCampo14_3 = new global::System.Data.DataColumn("Campo14_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo14_3); + this.columnCampo14_4 = new global::System.Data.DataColumn("Campo14_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo14_4); + this.columnCampo14_5 = new global::System.Data.DataColumn("Campo14_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo14_5); + this.columnCampo15_1 = new global::System.Data.DataColumn("Campo15_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo15_1); + this.columnCampo15_2 = new global::System.Data.DataColumn("Campo15_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo15_2); + this.columnCampo15_3 = new global::System.Data.DataColumn("Campo15_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo15_3); + this.columnCampo15_4 = new global::System.Data.DataColumn("Campo15_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo15_4); + this.columnCampo15_5 = new global::System.Data.DataColumn("Campo15_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo15_5); + this.columnCampo16_1 = new global::System.Data.DataColumn("Campo16_1", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo16_1); + this.columnCampo16_2 = new global::System.Data.DataColumn("Campo16_2", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo16_2); + this.columnCampo16_3 = new global::System.Data.DataColumn("Campo16_3", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo16_3); + this.columnCampo16_4 = new global::System.Data.DataColumn("Campo16_4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo16_4); + this.columnCampo16_5 = new global::System.Data.DataColumn("Campo16_5", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCampo16_5); + this.columnCampoUDC.AllowDBNull = false; + this.columnCampoUDC.MaxLength = 10; + this.columnCampo1_1.AllowDBNull = false; + this.columnCampo1_1.MaxLength = 8; + this.columnCampo1_2.AllowDBNull = false; + this.columnCampo1_2.MaxLength = 8; + this.columnCampo1_3.AllowDBNull = false; + this.columnCampo1_3.MaxLength = 8; + this.columnCampo1_4.AllowDBNull = false; + this.columnCampo1_4.MaxLength = 8; + this.columnCampo1_5.AllowDBNull = false; + this.columnCampo1_5.MaxLength = 8; + this.columnCampo2_1.AllowDBNull = false; + this.columnCampo2_1.MaxLength = 8; + this.columnCampo2_2.AllowDBNull = false; + this.columnCampo2_2.MaxLength = 8; + this.columnCampo2_3.AllowDBNull = false; + this.columnCampo2_3.MaxLength = 8; + this.columnCampo2_4.AllowDBNull = false; + this.columnCampo2_4.MaxLength = 8; + this.columnCampo2_5.AllowDBNull = false; + this.columnCampo2_5.MaxLength = 8; + this.columnCampo3_1.AllowDBNull = false; + this.columnCampo3_1.MaxLength = 8; + this.columnCampo3_2.AllowDBNull = false; + this.columnCampo3_2.MaxLength = 8; + this.columnCampo3_3.AllowDBNull = false; + this.columnCampo3_3.MaxLength = 8; + this.columnCampo3_4.AllowDBNull = false; + this.columnCampo3_4.MaxLength = 8; + this.columnCampo3_5.AllowDBNull = false; + this.columnCampo3_5.MaxLength = 8; + this.columnCampo4_1.AllowDBNull = false; + this.columnCampo4_1.MaxLength = 8; + this.columnCampo4_2.AllowDBNull = false; + this.columnCampo4_2.MaxLength = 8; + this.columnCampo4_3.AllowDBNull = false; + this.columnCampo4_3.MaxLength = 8; + this.columnCampo4_4.AllowDBNull = false; + this.columnCampo4_4.MaxLength = 8; + this.columnCampo4_5.AllowDBNull = false; + this.columnCampo4_5.MaxLength = 8; + this.columnCampo5_1.AllowDBNull = false; + this.columnCampo5_1.MaxLength = 8; + this.columnCampo5_2.AllowDBNull = false; + this.columnCampo5_2.MaxLength = 8; + this.columnCampo5_3.AllowDBNull = false; + this.columnCampo5_3.MaxLength = 8; + this.columnCampo5_4.AllowDBNull = false; + this.columnCampo5_4.MaxLength = 8; + this.columnCampo5_5.AllowDBNull = false; + this.columnCampo5_5.MaxLength = 8; + this.columnCampo6_1.AllowDBNull = false; + this.columnCampo6_1.MaxLength = 8; + this.columnCampo6_2.AllowDBNull = false; + this.columnCampo6_2.MaxLength = 8; + this.columnCampo6_3.AllowDBNull = false; + this.columnCampo6_3.MaxLength = 8; + this.columnCampo6_4.AllowDBNull = false; + this.columnCampo6_4.MaxLength = 8; + this.columnCampo6_5.AllowDBNull = false; + this.columnCampo6_5.MaxLength = 8; + this.columnCampo7_1.AllowDBNull = false; + this.columnCampo7_1.MaxLength = 8; + this.columnCampo7_2.AllowDBNull = false; + this.columnCampo7_2.MaxLength = 8; + this.columnCampo7_3.AllowDBNull = false; + this.columnCampo7_3.MaxLength = 8; + this.columnCampo7_4.AllowDBNull = false; + this.columnCampo7_4.MaxLength = 8; + this.columnCampo7_5.AllowDBNull = false; + this.columnCampo7_5.MaxLength = 8; + this.columnCampo8_1.AllowDBNull = false; + this.columnCampo8_1.MaxLength = 8; + this.columnCampo8_2.AllowDBNull = false; + this.columnCampo8_2.MaxLength = 8; + this.columnCampo8_3.AllowDBNull = false; + this.columnCampo8_3.MaxLength = 8; + this.columnCampo8_4.AllowDBNull = false; + this.columnCampo8_4.MaxLength = 8; + this.columnCampo8_5.AllowDBNull = false; + this.columnCampo8_5.MaxLength = 8; + this.columnCampo9_1.AllowDBNull = false; + this.columnCampo9_1.MaxLength = 8; + this.columnCampo9_2.AllowDBNull = false; + this.columnCampo9_2.MaxLength = 8; + this.columnCampo9_3.AllowDBNull = false; + this.columnCampo9_3.MaxLength = 8; + this.columnCampo9_4.AllowDBNull = false; + this.columnCampo9_4.MaxLength = 8; + this.columnCampo9_5.AllowDBNull = false; + this.columnCampo9_5.MaxLength = 8; + this.columnCampo10_1.AllowDBNull = false; + this.columnCampo10_1.MaxLength = 9; + this.columnCampo10_2.AllowDBNull = false; + this.columnCampo10_2.MaxLength = 9; + this.columnCampo10_3.AllowDBNull = false; + this.columnCampo10_3.MaxLength = 9; + this.columnCampo10_4.AllowDBNull = false; + this.columnCampo10_4.MaxLength = 9; + this.columnCampo10_5.AllowDBNull = false; + this.columnCampo10_5.MaxLength = 9; + this.columnCampo11_1_1.AllowDBNull = false; + this.columnCampo11_1_1.MaxLength = 11; + this.columnCampo11_1_2.AllowDBNull = false; + this.columnCampo11_1_2.MaxLength = 11; + this.columnCampo11_1_3.AllowDBNull = false; + this.columnCampo11_1_3.MaxLength = 11; + this.columnCampo11_1_4.AllowDBNull = false; + this.columnCampo11_1_4.MaxLength = 11; + this.columnCampo11_1_5.AllowDBNull = false; + this.columnCampo11_1_5.MaxLength = 11; + this.columnCampo11_2_1.AllowDBNull = false; + this.columnCampo11_2_1.MaxLength = 11; + this.columnCampo11_2_2.AllowDBNull = false; + this.columnCampo11_2_2.MaxLength = 11; + this.columnCampo11_2_3.AllowDBNull = false; + this.columnCampo11_2_3.MaxLength = 11; + this.columnCampo11_2_4.AllowDBNull = false; + this.columnCampo11_2_4.MaxLength = 11; + this.columnCampo11_2_5.AllowDBNull = false; + this.columnCampo11_2_5.MaxLength = 11; + this.columnCampo12_1.AllowDBNull = false; + this.columnCampo12_1.MaxLength = 9; + this.columnCampo12_2.AllowDBNull = false; + this.columnCampo12_2.MaxLength = 9; + this.columnCampo12_3.AllowDBNull = false; + this.columnCampo12_3.MaxLength = 9; + this.columnCampo12_4.AllowDBNull = false; + this.columnCampo12_4.MaxLength = 9; + this.columnCampo12_5.AllowDBNull = false; + this.columnCampo12_5.MaxLength = 9; + this.columnCampo13_1.AllowDBNull = false; + this.columnCampo13_1.MaxLength = 9; + this.columnCampo13_2.AllowDBNull = false; + this.columnCampo13_2.MaxLength = 9; + this.columnCampo13_3.AllowDBNull = false; + this.columnCampo13_3.MaxLength = 9; + this.columnCampo13_4.AllowDBNull = false; + this.columnCampo13_4.MaxLength = 9; + this.columnCampo13_5.AllowDBNull = false; + this.columnCampo13_5.MaxLength = 9; + this.columnCampo14_1.AllowDBNull = false; + this.columnCampo14_1.MaxLength = 9; + this.columnCampo14_2.AllowDBNull = false; + this.columnCampo14_2.MaxLength = 9; + this.columnCampo14_3.AllowDBNull = false; + this.columnCampo14_3.MaxLength = 9; + this.columnCampo14_4.AllowDBNull = false; + this.columnCampo14_4.MaxLength = 9; + this.columnCampo14_5.AllowDBNull = false; + this.columnCampo14_5.MaxLength = 9; + this.columnCampo15_1.AllowDBNull = false; + this.columnCampo15_1.MaxLength = 9; + this.columnCampo15_2.AllowDBNull = false; + this.columnCampo15_2.MaxLength = 9; + this.columnCampo15_3.AllowDBNull = false; + this.columnCampo15_3.MaxLength = 9; + this.columnCampo15_4.AllowDBNull = false; + this.columnCampo15_4.MaxLength = 9; + this.columnCampo15_5.AllowDBNull = false; + this.columnCampo15_5.MaxLength = 9; + this.columnCampo16_1.AllowDBNull = false; + this.columnCampo16_1.MaxLength = 9; + this.columnCampo16_2.AllowDBNull = false; + this.columnCampo16_2.MaxLength = 9; + this.columnCampo16_3.AllowDBNull = false; + this.columnCampo16_3.MaxLength = 9; + this.columnCampo16_4.AllowDBNull = false; + this.columnCampo16_4.MaxLength = 9; + this.columnCampo16_5.AllowDBNull = false; + this.columnCampo16_5.MaxLength = 9; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public OdetteRow NewOdetteRow() { + return ((OdetteRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new OdetteRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(OdetteRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.OdetteRowChanged != null)) { + this.OdetteRowChanged(this, new OdetteRowChangeEvent(((OdetteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.OdetteRowChanging != null)) { + this.OdetteRowChanging(this, new OdetteRowChangeEvent(((OdetteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.OdetteRowDeleted != null)) { + this.OdetteRowDeleted(this, new OdetteRowChangeEvent(((OdetteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.OdetteRowDeleting != null)) { + this.OdetteRowDeleting(this, new OdetteRowChangeEvent(((OdetteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveOdetteRow(OdetteRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_Odette ds = new DS_Odette(); + 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 = "OdetteDataTable"; + 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. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class OdetteRow : global::System.Data.DataRow { + + private OdetteDataTable tableOdette; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal OdetteRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableOdette = ((OdetteDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CampoUDC { + get { + return ((string)(this[this.tableOdette.CampoUDCColumn])); + } + set { + this[this.tableOdette.CampoUDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo1_1 { + get { + return ((string)(this[this.tableOdette.Campo1_1Column])); + } + set { + this[this.tableOdette.Campo1_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo1_2 { + get { + return ((string)(this[this.tableOdette.Campo1_2Column])); + } + set { + this[this.tableOdette.Campo1_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo1_3 { + get { + return ((string)(this[this.tableOdette.Campo1_3Column])); + } + set { + this[this.tableOdette.Campo1_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo1_4 { + get { + return ((string)(this[this.tableOdette.Campo1_4Column])); + } + set { + this[this.tableOdette.Campo1_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo1_5 { + get { + return ((string)(this[this.tableOdette.Campo1_5Column])); + } + set { + this[this.tableOdette.Campo1_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo2_1 { + get { + return ((string)(this[this.tableOdette.Campo2_1Column])); + } + set { + this[this.tableOdette.Campo2_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo2_2 { + get { + return ((string)(this[this.tableOdette.Campo2_2Column])); + } + set { + this[this.tableOdette.Campo2_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo2_3 { + get { + return ((string)(this[this.tableOdette.Campo2_3Column])); + } + set { + this[this.tableOdette.Campo2_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo2_4 { + get { + return ((string)(this[this.tableOdette.Campo2_4Column])); + } + set { + this[this.tableOdette.Campo2_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo2_5 { + get { + return ((string)(this[this.tableOdette.Campo2_5Column])); + } + set { + this[this.tableOdette.Campo2_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo3_1 { + get { + return ((string)(this[this.tableOdette.Campo3_1Column])); + } + set { + this[this.tableOdette.Campo3_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo3_2 { + get { + return ((string)(this[this.tableOdette.Campo3_2Column])); + } + set { + this[this.tableOdette.Campo3_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo3_3 { + get { + return ((string)(this[this.tableOdette.Campo3_3Column])); + } + set { + this[this.tableOdette.Campo3_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo3_4 { + get { + return ((string)(this[this.tableOdette.Campo3_4Column])); + } + set { + this[this.tableOdette.Campo3_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo3_5 { + get { + return ((string)(this[this.tableOdette.Campo3_5Column])); + } + set { + this[this.tableOdette.Campo3_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo4_1 { + get { + return ((string)(this[this.tableOdette.Campo4_1Column])); + } + set { + this[this.tableOdette.Campo4_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo4_2 { + get { + return ((string)(this[this.tableOdette.Campo4_2Column])); + } + set { + this[this.tableOdette.Campo4_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo4_3 { + get { + return ((string)(this[this.tableOdette.Campo4_3Column])); + } + set { + this[this.tableOdette.Campo4_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo4_4 { + get { + return ((string)(this[this.tableOdette.Campo4_4Column])); + } + set { + this[this.tableOdette.Campo4_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo4_5 { + get { + return ((string)(this[this.tableOdette.Campo4_5Column])); + } + set { + this[this.tableOdette.Campo4_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo5_1 { + get { + return ((string)(this[this.tableOdette.Campo5_1Column])); + } + set { + this[this.tableOdette.Campo5_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo5_2 { + get { + return ((string)(this[this.tableOdette.Campo5_2Column])); + } + set { + this[this.tableOdette.Campo5_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo5_3 { + get { + return ((string)(this[this.tableOdette.Campo5_3Column])); + } + set { + this[this.tableOdette.Campo5_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo5_4 { + get { + return ((string)(this[this.tableOdette.Campo5_4Column])); + } + set { + this[this.tableOdette.Campo5_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo5_5 { + get { + return ((string)(this[this.tableOdette.Campo5_5Column])); + } + set { + this[this.tableOdette.Campo5_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo6_1 { + get { + return ((string)(this[this.tableOdette.Campo6_1Column])); + } + set { + this[this.tableOdette.Campo6_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo6_2 { + get { + return ((string)(this[this.tableOdette.Campo6_2Column])); + } + set { + this[this.tableOdette.Campo6_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo6_3 { + get { + return ((string)(this[this.tableOdette.Campo6_3Column])); + } + set { + this[this.tableOdette.Campo6_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo6_4 { + get { + return ((string)(this[this.tableOdette.Campo6_4Column])); + } + set { + this[this.tableOdette.Campo6_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo6_5 { + get { + return ((string)(this[this.tableOdette.Campo6_5Column])); + } + set { + this[this.tableOdette.Campo6_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo7_1 { + get { + return ((string)(this[this.tableOdette.Campo7_1Column])); + } + set { + this[this.tableOdette.Campo7_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo7_2 { + get { + return ((string)(this[this.tableOdette.Campo7_2Column])); + } + set { + this[this.tableOdette.Campo7_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo7_3 { + get { + return ((string)(this[this.tableOdette.Campo7_3Column])); + } + set { + this[this.tableOdette.Campo7_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo7_4 { + get { + return ((string)(this[this.tableOdette.Campo7_4Column])); + } + set { + this[this.tableOdette.Campo7_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo7_5 { + get { + return ((string)(this[this.tableOdette.Campo7_5Column])); + } + set { + this[this.tableOdette.Campo7_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo8_1 { + get { + return ((string)(this[this.tableOdette.Campo8_1Column])); + } + set { + this[this.tableOdette.Campo8_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo8_2 { + get { + return ((string)(this[this.tableOdette.Campo8_2Column])); + } + set { + this[this.tableOdette.Campo8_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo8_3 { + get { + return ((string)(this[this.tableOdette.Campo8_3Column])); + } + set { + this[this.tableOdette.Campo8_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo8_4 { + get { + return ((string)(this[this.tableOdette.Campo8_4Column])); + } + set { + this[this.tableOdette.Campo8_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo8_5 { + get { + return ((string)(this[this.tableOdette.Campo8_5Column])); + } + set { + this[this.tableOdette.Campo8_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo9_1 { + get { + return ((string)(this[this.tableOdette.Campo9_1Column])); + } + set { + this[this.tableOdette.Campo9_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo9_2 { + get { + return ((string)(this[this.tableOdette.Campo9_2Column])); + } + set { + this[this.tableOdette.Campo9_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo9_3 { + get { + return ((string)(this[this.tableOdette.Campo9_3Column])); + } + set { + this[this.tableOdette.Campo9_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo9_4 { + get { + return ((string)(this[this.tableOdette.Campo9_4Column])); + } + set { + this[this.tableOdette.Campo9_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo9_5 { + get { + return ((string)(this[this.tableOdette.Campo9_5Column])); + } + set { + this[this.tableOdette.Campo9_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo10_1 { + get { + return ((string)(this[this.tableOdette.Campo10_1Column])); + } + set { + this[this.tableOdette.Campo10_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo10_2 { + get { + return ((string)(this[this.tableOdette.Campo10_2Column])); + } + set { + this[this.tableOdette.Campo10_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo10_3 { + get { + return ((string)(this[this.tableOdette.Campo10_3Column])); + } + set { + this[this.tableOdette.Campo10_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo10_4 { + get { + return ((string)(this[this.tableOdette.Campo10_4Column])); + } + set { + this[this.tableOdette.Campo10_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo10_5 { + get { + return ((string)(this[this.tableOdette.Campo10_5Column])); + } + set { + this[this.tableOdette.Campo10_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_1_1 { + get { + return ((string)(this[this.tableOdette.Campo11_1_1Column])); + } + set { + this[this.tableOdette.Campo11_1_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_1_2 { + get { + return ((string)(this[this.tableOdette.Campo11_1_2Column])); + } + set { + this[this.tableOdette.Campo11_1_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_1_3 { + get { + return ((string)(this[this.tableOdette.Campo11_1_3Column])); + } + set { + this[this.tableOdette.Campo11_1_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_1_4 { + get { + return ((string)(this[this.tableOdette.Campo11_1_4Column])); + } + set { + this[this.tableOdette.Campo11_1_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_1_5 { + get { + return ((string)(this[this.tableOdette.Campo11_1_5Column])); + } + set { + this[this.tableOdette.Campo11_1_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_2_1 { + get { + return ((string)(this[this.tableOdette.Campo11_2_1Column])); + } + set { + this[this.tableOdette.Campo11_2_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_2_2 { + get { + return ((string)(this[this.tableOdette.Campo11_2_2Column])); + } + set { + this[this.tableOdette.Campo11_2_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_2_3 { + get { + return ((string)(this[this.tableOdette.Campo11_2_3Column])); + } + set { + this[this.tableOdette.Campo11_2_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_2_4 { + get { + return ((string)(this[this.tableOdette.Campo11_2_4Column])); + } + set { + this[this.tableOdette.Campo11_2_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo11_2_5 { + get { + return ((string)(this[this.tableOdette.Campo11_2_5Column])); + } + set { + this[this.tableOdette.Campo11_2_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo12_1 { + get { + return ((string)(this[this.tableOdette.Campo12_1Column])); + } + set { + this[this.tableOdette.Campo12_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo12_2 { + get { + return ((string)(this[this.tableOdette.Campo12_2Column])); + } + set { + this[this.tableOdette.Campo12_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo12_3 { + get { + return ((string)(this[this.tableOdette.Campo12_3Column])); + } + set { + this[this.tableOdette.Campo12_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo12_4 { + get { + return ((string)(this[this.tableOdette.Campo12_4Column])); + } + set { + this[this.tableOdette.Campo12_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo12_5 { + get { + return ((string)(this[this.tableOdette.Campo12_5Column])); + } + set { + this[this.tableOdette.Campo12_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo13_1 { + get { + return ((string)(this[this.tableOdette.Campo13_1Column])); + } + set { + this[this.tableOdette.Campo13_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo13_2 { + get { + return ((string)(this[this.tableOdette.Campo13_2Column])); + } + set { + this[this.tableOdette.Campo13_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo13_3 { + get { + return ((string)(this[this.tableOdette.Campo13_3Column])); + } + set { + this[this.tableOdette.Campo13_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo13_4 { + get { + return ((string)(this[this.tableOdette.Campo13_4Column])); + } + set { + this[this.tableOdette.Campo13_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo13_5 { + get { + return ((string)(this[this.tableOdette.Campo13_5Column])); + } + set { + this[this.tableOdette.Campo13_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo14_1 { + get { + return ((string)(this[this.tableOdette.Campo14_1Column])); + } + set { + this[this.tableOdette.Campo14_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo14_2 { + get { + return ((string)(this[this.tableOdette.Campo14_2Column])); + } + set { + this[this.tableOdette.Campo14_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo14_3 { + get { + return ((string)(this[this.tableOdette.Campo14_3Column])); + } + set { + this[this.tableOdette.Campo14_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo14_4 { + get { + return ((string)(this[this.tableOdette.Campo14_4Column])); + } + set { + this[this.tableOdette.Campo14_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo14_5 { + get { + return ((string)(this[this.tableOdette.Campo14_5Column])); + } + set { + this[this.tableOdette.Campo14_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo15_1 { + get { + return ((string)(this[this.tableOdette.Campo15_1Column])); + } + set { + this[this.tableOdette.Campo15_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo15_2 { + get { + return ((string)(this[this.tableOdette.Campo15_2Column])); + } + set { + this[this.tableOdette.Campo15_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo15_3 { + get { + return ((string)(this[this.tableOdette.Campo15_3Column])); + } + set { + this[this.tableOdette.Campo15_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo15_4 { + get { + return ((string)(this[this.tableOdette.Campo15_4Column])); + } + set { + this[this.tableOdette.Campo15_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo15_5 { + get { + return ((string)(this[this.tableOdette.Campo15_5Column])); + } + set { + this[this.tableOdette.Campo15_5Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo16_1 { + get { + return ((string)(this[this.tableOdette.Campo16_1Column])); + } + set { + this[this.tableOdette.Campo16_1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo16_2 { + get { + return ((string)(this[this.tableOdette.Campo16_2Column])); + } + set { + this[this.tableOdette.Campo16_2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo16_3 { + get { + return ((string)(this[this.tableOdette.Campo16_3Column])); + } + set { + this[this.tableOdette.Campo16_3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo16_4 { + get { + return ((string)(this[this.tableOdette.Campo16_4Column])); + } + set { + this[this.tableOdette.Campo16_4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Campo16_5 { + get { + return ((string)(this[this.tableOdette.Campo16_5Column])); + } + set { + this[this.tableOdette.Campo16_5Column] = value; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class OdetteRowChangeEvent : global::System.EventArgs { + + private OdetteRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public OdetteRowChangeEvent(OdetteRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public OdetteRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace GMW_data.DS_OdetteTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class OdetteTableAdapter : 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()] + public OdetteTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 = "Odette"; + tableMapping.ColumnMappings.Add("CampoUDC", "CampoUDC"); + tableMapping.ColumnMappings.Add("Campo1_1", "Campo1_1"); + tableMapping.ColumnMappings.Add("Campo1_2", "Campo1_2"); + tableMapping.ColumnMappings.Add("Campo1_3", "Campo1_3"); + tableMapping.ColumnMappings.Add("Campo1_4", "Campo1_4"); + tableMapping.ColumnMappings.Add("Campo1_5", "Campo1_5"); + tableMapping.ColumnMappings.Add("Campo2_1", "Campo2_1"); + tableMapping.ColumnMappings.Add("Campo2_2", "Campo2_2"); + tableMapping.ColumnMappings.Add("Campo2_3", "Campo2_3"); + tableMapping.ColumnMappings.Add("Campo2_4", "Campo2_4"); + tableMapping.ColumnMappings.Add("Campo2_5", "Campo2_5"); + tableMapping.ColumnMappings.Add("Campo3_1", "Campo3_1"); + tableMapping.ColumnMappings.Add("Campo3_2", "Campo3_2"); + tableMapping.ColumnMappings.Add("Campo3_3", "Campo3_3"); + tableMapping.ColumnMappings.Add("Campo3_4", "Campo3_4"); + tableMapping.ColumnMappings.Add("Campo3_5", "Campo3_5"); + tableMapping.ColumnMappings.Add("Campo4_1", "Campo4_1"); + tableMapping.ColumnMappings.Add("Campo4_2", "Campo4_2"); + tableMapping.ColumnMappings.Add("Campo4_3", "Campo4_3"); + tableMapping.ColumnMappings.Add("Campo4_4", "Campo4_4"); + tableMapping.ColumnMappings.Add("Campo4_5", "Campo4_5"); + tableMapping.ColumnMappings.Add("Campo5_1", "Campo5_1"); + tableMapping.ColumnMappings.Add("Campo5_2", "Campo5_2"); + tableMapping.ColumnMappings.Add("Campo5_3", "Campo5_3"); + tableMapping.ColumnMappings.Add("Campo5_4", "Campo5_4"); + tableMapping.ColumnMappings.Add("Campo5_5", "Campo5_5"); + tableMapping.ColumnMappings.Add("Campo6_1", "Campo6_1"); + tableMapping.ColumnMappings.Add("Campo6_2", "Campo6_2"); + tableMapping.ColumnMappings.Add("Campo6_3", "Campo6_3"); + tableMapping.ColumnMappings.Add("Campo6_4", "Campo6_4"); + tableMapping.ColumnMappings.Add("Campo6_5", "Campo6_5"); + tableMapping.ColumnMappings.Add("Campo7_1", "Campo7_1"); + tableMapping.ColumnMappings.Add("Campo7_2", "Campo7_2"); + tableMapping.ColumnMappings.Add("Campo7_3", "Campo7_3"); + tableMapping.ColumnMappings.Add("Campo7_4", "Campo7_4"); + tableMapping.ColumnMappings.Add("Campo7_5", "Campo7_5"); + tableMapping.ColumnMappings.Add("Campo8_1", "Campo8_1"); + tableMapping.ColumnMappings.Add("Campo8_2", "Campo8_2"); + tableMapping.ColumnMappings.Add("Campo8_3", "Campo8_3"); + tableMapping.ColumnMappings.Add("Campo8_4", "Campo8_4"); + tableMapping.ColumnMappings.Add("Campo8_5", "Campo8_5"); + tableMapping.ColumnMappings.Add("Campo9_1", "Campo9_1"); + tableMapping.ColumnMappings.Add("Campo9_2", "Campo9_2"); + tableMapping.ColumnMappings.Add("Campo9_3", "Campo9_3"); + tableMapping.ColumnMappings.Add("Campo9_4", "Campo9_4"); + tableMapping.ColumnMappings.Add("Campo9_5", "Campo9_5"); + tableMapping.ColumnMappings.Add("Campo10_1", "Campo10_1"); + tableMapping.ColumnMappings.Add("Campo10_2", "Campo10_2"); + tableMapping.ColumnMappings.Add("Campo10_3", "Campo10_3"); + tableMapping.ColumnMappings.Add("Campo10_4", "Campo10_4"); + tableMapping.ColumnMappings.Add("Campo10_5", "Campo10_5"); + tableMapping.ColumnMappings.Add("Campo11_1_1", "Campo11_1_1"); + tableMapping.ColumnMappings.Add("Campo11_1_2", "Campo11_1_2"); + tableMapping.ColumnMappings.Add("Campo11_1_3", "Campo11_1_3"); + tableMapping.ColumnMappings.Add("Campo11_1_4", "Campo11_1_4"); + tableMapping.ColumnMappings.Add("Campo11_1_5", "Campo11_1_5"); + tableMapping.ColumnMappings.Add("Campo11_2_1", "Campo11_2_1"); + tableMapping.ColumnMappings.Add("Campo11_2_2", "Campo11_2_2"); + tableMapping.ColumnMappings.Add("Campo11_2_3", "Campo11_2_3"); + tableMapping.ColumnMappings.Add("Campo11_2_4", "Campo11_2_4"); + tableMapping.ColumnMappings.Add("Campo11_2_5", "Campo11_2_5"); + tableMapping.ColumnMappings.Add("Campo12_1", "Campo12_1"); + tableMapping.ColumnMappings.Add("Campo12_2", "Campo12_2"); + tableMapping.ColumnMappings.Add("Campo12_3", "Campo12_3"); + tableMapping.ColumnMappings.Add("Campo12_4", "Campo12_4"); + tableMapping.ColumnMappings.Add("Campo12_5", "Campo12_5"); + tableMapping.ColumnMappings.Add("Campo13_1", "Campo13_1"); + tableMapping.ColumnMappings.Add("Campo13_2", "Campo13_2"); + tableMapping.ColumnMappings.Add("Campo13_3", "Campo13_3"); + tableMapping.ColumnMappings.Add("Campo13_4", "Campo13_4"); + tableMapping.ColumnMappings.Add("Campo13_5", "Campo13_5"); + tableMapping.ColumnMappings.Add("Campo14_1", "Campo14_1"); + tableMapping.ColumnMappings.Add("Campo14_2", "Campo14_2"); + tableMapping.ColumnMappings.Add("Campo14_3", "Campo14_3"); + tableMapping.ColumnMappings.Add("Campo14_4", "Campo14_4"); + tableMapping.ColumnMappings.Add("Campo14_5", "Campo14_5"); + tableMapping.ColumnMappings.Add("Campo15_1", "Campo15_1"); + tableMapping.ColumnMappings.Add("Campo15_2", "Campo15_2"); + tableMapping.ColumnMappings.Add("Campo15_3", "Campo15_3"); + tableMapping.ColumnMappings.Add("Campo15_4", "Campo15_4"); + tableMapping.ColumnMappings.Add("Campo15_5", "Campo15_5"); + tableMapping.ColumnMappings.Add("Campo16_1", "Campo16_1"); + tableMapping.ColumnMappings.Add("Campo16_2", "Campo16_2"); + tableMapping.ColumnMappings.Add("Campo16_3", "Campo16_3"); + tableMapping.ColumnMappings.Add("Campo16_4", "Campo16_4"); + tableMapping.ColumnMappings.Add("Campo16_5", "Campo16_5"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Odette] ([CampoUDC], [Campo1_1], [Campo1_2], [Campo1_3], [Camp" + + "o1_4], [Campo1_5], [Campo2_1], [Campo2_2], [Campo2_3], [Campo2_4], [Campo2_5], [" + + "Campo3_1], [Campo3_2], [Campo3_3], [Campo3_4], [Campo3_5], [Campo4_1], [Campo4_2" + + "], [Campo4_3], [Campo4_4], [Campo4_5], [Campo5_1], [Campo5_2], [Campo5_3], [Camp" + + "o5_4], [Campo5_5], [Campo6_1], [Campo6_2], [Campo6_3], [Campo6_4], [Campo6_5], [" + + "Campo7_1], [Campo7_2], [Campo7_3], [Campo7_4], [Campo7_5], [Campo8_1], [Campo8_2" + + "], [Campo8_3], [Campo8_4], [Campo8_5], [Campo9_1], [Campo9_2], [Campo9_3], [Camp" + + "o9_4], [Campo9_5], [Campo10_1], [Campo10_2], [Campo10_3], [Campo10_4], [Campo10_" + + "5], [Campo11_1_1], [Campo11_1_2], [Campo11_1_3], [Campo11_1_4], [Campo11_1_5], [" + + "Campo11_2_1], [Campo11_2_2], [Campo11_2_3], [Campo11_2_4], [Campo11_2_5], [Campo" + + "12_1], [Campo12_2], [Campo12_3], [Campo12_4], [Campo12_5], [Campo13_1], [Campo13" + + "_2], [Campo13_3], [Campo13_4], [Campo13_5], [Campo14_1], [Campo14_2], [Campo14_3" + + "], [Campo14_4], [Campo14_5], [Campo15_1], [Campo15_2], [Campo15_3], [Campo15_4]," + + " [Campo15_5], [Campo16_1], [Campo16_2], [Campo16_3], [Campo16_4], [Campo16_5]) V" + + "ALUES (@CampoUDC, @Campo1_1, @Campo1_2, @Campo1_3, @Campo1_4, @Campo1_5, @Campo2" + + "_1, @Campo2_2, @Campo2_3, @Campo2_4, @Campo2_5, @Campo3_1, @Campo3_2, @Campo3_3," + + " @Campo3_4, @Campo3_5, @Campo4_1, @Campo4_2, @Campo4_3, @Campo4_4, @Campo4_5, @C" + + "ampo5_1, @Campo5_2, @Campo5_3, @Campo5_4, @Campo5_5, @Campo6_1, @Campo6_2, @Camp" + + "o6_3, @Campo6_4, @Campo6_5, @Campo7_1, @Campo7_2, @Campo7_3, @Campo7_4, @Campo7_" + + "5, @Campo8_1, @Campo8_2, @Campo8_3, @Campo8_4, @Campo8_5, @Campo9_1, @Campo9_2, " + + "@Campo9_3, @Campo9_4, @Campo9_5, @Campo10_1, @Campo10_2, @Campo10_3, @Campo10_4," + + " @Campo10_5, @Campo11_1_1, @Campo11_1_2, @Campo11_1_3, @Campo11_1_4, @Campo11_1_" + + "5, @Campo11_2_1, @Campo11_2_2, @Campo11_2_3, @Campo11_2_4, @Campo11_2_5, @Campo1" + + "2_1, @Campo12_2, @Campo12_3, @Campo12_4, @Campo12_5, @Campo13_1, @Campo13_2, @Ca" + + "mpo13_3, @Campo13_4, @Campo13_5, @Campo14_1, @Campo14_2, @Campo14_3, @Campo14_4," + + " @Campo14_5, @Campo15_1, @Campo15_2, @Campo15_3, @Campo15_4, @Campo15_5, @Campo1" + + "6_1, @Campo16_2, @Campo16_3, @Campo16_4, @Campo16_5)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CampoUDC", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CampoUDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo1_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo1_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo1_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo1_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo1_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo1_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo1_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo1_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo1_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo1_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo2_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo2_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo2_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo2_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo2_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo2_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo2_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo2_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo2_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo2_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo3_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo3_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo3_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo3_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo3_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo3_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo3_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo3_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo3_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo3_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo4_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo4_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo4_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo4_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo4_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo4_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo4_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo4_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo4_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo4_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo5_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo5_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo5_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo5_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo5_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo5_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo5_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo5_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo5_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo5_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo6_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo6_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo6_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo6_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo6_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo6_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo6_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo6_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo6_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo6_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo7_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo7_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo7_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo7_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo7_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo7_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo7_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo7_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo7_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo7_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo8_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo8_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo8_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo8_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo8_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo8_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo8_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo8_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo8_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo8_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo9_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo9_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo9_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo9_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo9_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo9_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo9_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo9_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo9_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo9_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo10_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo10_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo10_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo10_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo10_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo10_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo10_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo10_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo10_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo10_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_1_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_1_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_1_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_1_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_1_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_1_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_1_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_1_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_1_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_1_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_2_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_2_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_2_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_2_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_2_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_2_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_2_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_2_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo11_2_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo11_2_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo12_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo12_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo12_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo12_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo12_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo12_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo12_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo12_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo12_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo12_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo13_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo13_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo13_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo13_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo13_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo13_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo13_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo13_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo13_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo13_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo14_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo14_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo14_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo14_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo14_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo14_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo14_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo14_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo14_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo14_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo15_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo15_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo15_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo15_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo15_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo15_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo15_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo15_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo15_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo15_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo16_1", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo16_1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo16_2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo16_2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo16_3", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo16_3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo16_4", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo16_4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campo16_5", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campo16_5", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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 CampoUDC, Campo1_1, Campo1_2, Campo1_3, Campo1_4, Campo1_5, Campo2_1, Campo2_2, Campo2_3, Campo2_4, Campo2_5, Campo3_1, Campo3_2, Campo3_3, Campo3_4, Campo3_5, Campo4_1, Campo4_2, Campo4_3, Campo4_4, Campo4_5, Campo5_1, Campo5_2, Campo5_3, Campo5_4, Campo5_5, Campo6_1, Campo6_2, Campo6_3, Campo6_4, Campo6_5, Campo7_1, Campo7_2, Campo7_3, Campo7_4, Campo7_5, Campo8_1, Campo8_2, Campo8_3, Campo8_4, Campo8_5, Campo9_1, Campo9_2, Campo9_3, Campo9_4, Campo9_5, Campo10_1, Campo10_2, Campo10_3, Campo10_4, Campo10_5, Campo11_1_1, Campo11_1_2, Campo11_1_3, Campo11_1_4, Campo11_1_5, Campo11_2_1, Campo11_2_2, Campo11_2_3, Campo11_2_4, Campo11_2_5, Campo12_1, Campo12_2, Campo12_3, Campo12_4, Campo12_5, Campo13_1, Campo13_2, Campo13_3, Campo13_4, Campo13_5, Campo14_1, Campo14_2, Campo14_3, Campo14_4, Campo14_5, Campo15_1, Campo15_2, Campo15_3, Campo15_4, Campo15_5, Campo16_1, Campo16_2, Campo16_3, Campo16_4, Campo16_5 FROM dbo.Odette"; + 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_ODETTE_getByUDC"; + 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("@UDC", global::System.Data.SqlDbType.NVarChar, 10, 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_ODETTE_updateLingua"; + 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("@UDC", global::System.Data.SqlDbType.NVarChar, 10, 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("@Campo1_1", 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("@Campo2_1", 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("@Campo3_1", 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("@Campo4_1", 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("@Campo5_1", 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("@Campo6_1", 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("@Campo7_1", 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("@Campo8_1", 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("@Campo9_1", 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("@Campo10_1", 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("@Campo11_1_1", 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("@Campo11_2_1", 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("@Campo12_1", 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("@Campo13_1", 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("@Campo14_1", 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("@Campo15_1", 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("@Campo16_1", 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Odette.OdetteDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Odette.OdetteDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Odette.OdetteDataTable dataTable = new DS_Odette.OdetteDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Odette.OdetteDataTable getByUdc(string UDC) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); + } + DS_Odette.OdetteDataTable dataTable = new DS_Odette.OdetteDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Odette.OdetteDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Odette dataSet) { + return this.Adapter.Update(dataSet, "Odette"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert( + string CampoUDC, + string Campo1_1, + string Campo1_2, + string Campo1_3, + string Campo1_4, + string Campo1_5, + string Campo2_1, + string Campo2_2, + string Campo2_3, + string Campo2_4, + string Campo2_5, + string Campo3_1, + string Campo3_2, + string Campo3_3, + string Campo3_4, + string Campo3_5, + string Campo4_1, + string Campo4_2, + string Campo4_3, + string Campo4_4, + string Campo4_5, + string Campo5_1, + string Campo5_2, + string Campo5_3, + string Campo5_4, + string Campo5_5, + string Campo6_1, + string Campo6_2, + string Campo6_3, + string Campo6_4, + string Campo6_5, + string Campo7_1, + string Campo7_2, + string Campo7_3, + string Campo7_4, + string Campo7_5, + string Campo8_1, + string Campo8_2, + string Campo8_3, + string Campo8_4, + string Campo8_5, + string Campo9_1, + string Campo9_2, + string Campo9_3, + string Campo9_4, + string Campo9_5, + string Campo10_1, + string Campo10_2, + string Campo10_3, + string Campo10_4, + string Campo10_5, + string Campo11_1_1, + string Campo11_1_2, + string Campo11_1_3, + string Campo11_1_4, + string Campo11_1_5, + string Campo11_2_1, + string Campo11_2_2, + string Campo11_2_3, + string Campo11_2_4, + string Campo11_2_5, + string Campo12_1, + string Campo12_2, + string Campo12_3, + string Campo12_4, + string Campo12_5, + string Campo13_1, + string Campo13_2, + string Campo13_3, + string Campo13_4, + string Campo13_5, + string Campo14_1, + string Campo14_2, + string Campo14_3, + string Campo14_4, + string Campo14_5, + string Campo15_1, + string Campo15_2, + string Campo15_3, + string Campo15_4, + string Campo15_5, + string Campo16_1, + string Campo16_2, + string Campo16_3, + string Campo16_4, + string Campo16_5) { + if ((CampoUDC == null)) { + throw new global::System.ArgumentNullException("CampoUDC"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CampoUDC)); + } + if ((Campo1_1 == null)) { + throw new global::System.ArgumentNullException("Campo1_1"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Campo1_1)); + } + if ((Campo1_2 == null)) { + throw new global::System.ArgumentNullException("Campo1_2"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Campo1_2)); + } + if ((Campo1_3 == null)) { + throw new global::System.ArgumentNullException("Campo1_3"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Campo1_3)); + } + if ((Campo1_4 == null)) { + throw new global::System.ArgumentNullException("Campo1_4"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Campo1_4)); + } + if ((Campo1_5 == null)) { + throw new global::System.ArgumentNullException("Campo1_5"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Campo1_5)); + } + if ((Campo2_1 == null)) { + throw new global::System.ArgumentNullException("Campo2_1"); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Campo2_1)); + } + if ((Campo2_2 == null)) { + throw new global::System.ArgumentNullException("Campo2_2"); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Campo2_2)); + } + if ((Campo2_3 == null)) { + throw new global::System.ArgumentNullException("Campo2_3"); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Campo2_3)); + } + if ((Campo2_4 == null)) { + throw new global::System.ArgumentNullException("Campo2_4"); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Campo2_4)); + } + if ((Campo2_5 == null)) { + throw new global::System.ArgumentNullException("Campo2_5"); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Campo2_5)); + } + if ((Campo3_1 == null)) { + throw new global::System.ArgumentNullException("Campo3_1"); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Campo3_1)); + } + if ((Campo3_2 == null)) { + throw new global::System.ArgumentNullException("Campo3_2"); + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Campo3_2)); + } + if ((Campo3_3 == null)) { + throw new global::System.ArgumentNullException("Campo3_3"); + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(Campo3_3)); + } + if ((Campo3_4 == null)) { + throw new global::System.ArgumentNullException("Campo3_4"); + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(Campo3_4)); + } + if ((Campo3_5 == null)) { + throw new global::System.ArgumentNullException("Campo3_5"); + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = ((string)(Campo3_5)); + } + if ((Campo4_1 == null)) { + throw new global::System.ArgumentNullException("Campo4_1"); + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = ((string)(Campo4_1)); + } + if ((Campo4_2 == null)) { + throw new global::System.ArgumentNullException("Campo4_2"); + } + else { + this.Adapter.InsertCommand.Parameters[17].Value = ((string)(Campo4_2)); + } + if ((Campo4_3 == null)) { + throw new global::System.ArgumentNullException("Campo4_3"); + } + else { + this.Adapter.InsertCommand.Parameters[18].Value = ((string)(Campo4_3)); + } + if ((Campo4_4 == null)) { + throw new global::System.ArgumentNullException("Campo4_4"); + } + else { + this.Adapter.InsertCommand.Parameters[19].Value = ((string)(Campo4_4)); + } + if ((Campo4_5 == null)) { + throw new global::System.ArgumentNullException("Campo4_5"); + } + else { + this.Adapter.InsertCommand.Parameters[20].Value = ((string)(Campo4_5)); + } + if ((Campo5_1 == null)) { + throw new global::System.ArgumentNullException("Campo5_1"); + } + else { + this.Adapter.InsertCommand.Parameters[21].Value = ((string)(Campo5_1)); + } + if ((Campo5_2 == null)) { + throw new global::System.ArgumentNullException("Campo5_2"); + } + else { + this.Adapter.InsertCommand.Parameters[22].Value = ((string)(Campo5_2)); + } + if ((Campo5_3 == null)) { + throw new global::System.ArgumentNullException("Campo5_3"); + } + else { + this.Adapter.InsertCommand.Parameters[23].Value = ((string)(Campo5_3)); + } + if ((Campo5_4 == null)) { + throw new global::System.ArgumentNullException("Campo5_4"); + } + else { + this.Adapter.InsertCommand.Parameters[24].Value = ((string)(Campo5_4)); + } + if ((Campo5_5 == null)) { + throw new global::System.ArgumentNullException("Campo5_5"); + } + else { + this.Adapter.InsertCommand.Parameters[25].Value = ((string)(Campo5_5)); + } + if ((Campo6_1 == null)) { + throw new global::System.ArgumentNullException("Campo6_1"); + } + else { + this.Adapter.InsertCommand.Parameters[26].Value = ((string)(Campo6_1)); + } + if ((Campo6_2 == null)) { + throw new global::System.ArgumentNullException("Campo6_2"); + } + else { + this.Adapter.InsertCommand.Parameters[27].Value = ((string)(Campo6_2)); + } + if ((Campo6_3 == null)) { + throw new global::System.ArgumentNullException("Campo6_3"); + } + else { + this.Adapter.InsertCommand.Parameters[28].Value = ((string)(Campo6_3)); + } + if ((Campo6_4 == null)) { + throw new global::System.ArgumentNullException("Campo6_4"); + } + else { + this.Adapter.InsertCommand.Parameters[29].Value = ((string)(Campo6_4)); + } + if ((Campo6_5 == null)) { + throw new global::System.ArgumentNullException("Campo6_5"); + } + else { + this.Adapter.InsertCommand.Parameters[30].Value = ((string)(Campo6_5)); + } + if ((Campo7_1 == null)) { + throw new global::System.ArgumentNullException("Campo7_1"); + } + else { + this.Adapter.InsertCommand.Parameters[31].Value = ((string)(Campo7_1)); + } + if ((Campo7_2 == null)) { + throw new global::System.ArgumentNullException("Campo7_2"); + } + else { + this.Adapter.InsertCommand.Parameters[32].Value = ((string)(Campo7_2)); + } + if ((Campo7_3 == null)) { + throw new global::System.ArgumentNullException("Campo7_3"); + } + else { + this.Adapter.InsertCommand.Parameters[33].Value = ((string)(Campo7_3)); + } + if ((Campo7_4 == null)) { + throw new global::System.ArgumentNullException("Campo7_4"); + } + else { + this.Adapter.InsertCommand.Parameters[34].Value = ((string)(Campo7_4)); + } + if ((Campo7_5 == null)) { + throw new global::System.ArgumentNullException("Campo7_5"); + } + else { + this.Adapter.InsertCommand.Parameters[35].Value = ((string)(Campo7_5)); + } + if ((Campo8_1 == null)) { + throw new global::System.ArgumentNullException("Campo8_1"); + } + else { + this.Adapter.InsertCommand.Parameters[36].Value = ((string)(Campo8_1)); + } + if ((Campo8_2 == null)) { + throw new global::System.ArgumentNullException("Campo8_2"); + } + else { + this.Adapter.InsertCommand.Parameters[37].Value = ((string)(Campo8_2)); + } + if ((Campo8_3 == null)) { + throw new global::System.ArgumentNullException("Campo8_3"); + } + else { + this.Adapter.InsertCommand.Parameters[38].Value = ((string)(Campo8_3)); + } + if ((Campo8_4 == null)) { + throw new global::System.ArgumentNullException("Campo8_4"); + } + else { + this.Adapter.InsertCommand.Parameters[39].Value = ((string)(Campo8_4)); + } + if ((Campo8_5 == null)) { + throw new global::System.ArgumentNullException("Campo8_5"); + } + else { + this.Adapter.InsertCommand.Parameters[40].Value = ((string)(Campo8_5)); + } + if ((Campo9_1 == null)) { + throw new global::System.ArgumentNullException("Campo9_1"); + } + else { + this.Adapter.InsertCommand.Parameters[41].Value = ((string)(Campo9_1)); + } + if ((Campo9_2 == null)) { + throw new global::System.ArgumentNullException("Campo9_2"); + } + else { + this.Adapter.InsertCommand.Parameters[42].Value = ((string)(Campo9_2)); + } + if ((Campo9_3 == null)) { + throw new global::System.ArgumentNullException("Campo9_3"); + } + else { + this.Adapter.InsertCommand.Parameters[43].Value = ((string)(Campo9_3)); + } + if ((Campo9_4 == null)) { + throw new global::System.ArgumentNullException("Campo9_4"); + } + else { + this.Adapter.InsertCommand.Parameters[44].Value = ((string)(Campo9_4)); + } + if ((Campo9_5 == null)) { + throw new global::System.ArgumentNullException("Campo9_5"); + } + else { + this.Adapter.InsertCommand.Parameters[45].Value = ((string)(Campo9_5)); + } + if ((Campo10_1 == null)) { + throw new global::System.ArgumentNullException("Campo10_1"); + } + else { + this.Adapter.InsertCommand.Parameters[46].Value = ((string)(Campo10_1)); + } + if ((Campo10_2 == null)) { + throw new global::System.ArgumentNullException("Campo10_2"); + } + else { + this.Adapter.InsertCommand.Parameters[47].Value = ((string)(Campo10_2)); + } + if ((Campo10_3 == null)) { + throw new global::System.ArgumentNullException("Campo10_3"); + } + else { + this.Adapter.InsertCommand.Parameters[48].Value = ((string)(Campo10_3)); + } + if ((Campo10_4 == null)) { + throw new global::System.ArgumentNullException("Campo10_4"); + } + else { + this.Adapter.InsertCommand.Parameters[49].Value = ((string)(Campo10_4)); + } + if ((Campo10_5 == null)) { + throw new global::System.ArgumentNullException("Campo10_5"); + } + else { + this.Adapter.InsertCommand.Parameters[50].Value = ((string)(Campo10_5)); + } + if ((Campo11_1_1 == null)) { + throw new global::System.ArgumentNullException("Campo11_1_1"); + } + else { + this.Adapter.InsertCommand.Parameters[51].Value = ((string)(Campo11_1_1)); + } + if ((Campo11_1_2 == null)) { + throw new global::System.ArgumentNullException("Campo11_1_2"); + } + else { + this.Adapter.InsertCommand.Parameters[52].Value = ((string)(Campo11_1_2)); + } + if ((Campo11_1_3 == null)) { + throw new global::System.ArgumentNullException("Campo11_1_3"); + } + else { + this.Adapter.InsertCommand.Parameters[53].Value = ((string)(Campo11_1_3)); + } + if ((Campo11_1_4 == null)) { + throw new global::System.ArgumentNullException("Campo11_1_4"); + } + else { + this.Adapter.InsertCommand.Parameters[54].Value = ((string)(Campo11_1_4)); + } + if ((Campo11_1_5 == null)) { + throw new global::System.ArgumentNullException("Campo11_1_5"); + } + else { + this.Adapter.InsertCommand.Parameters[55].Value = ((string)(Campo11_1_5)); + } + if ((Campo11_2_1 == null)) { + throw new global::System.ArgumentNullException("Campo11_2_1"); + } + else { + this.Adapter.InsertCommand.Parameters[56].Value = ((string)(Campo11_2_1)); + } + if ((Campo11_2_2 == null)) { + throw new global::System.ArgumentNullException("Campo11_2_2"); + } + else { + this.Adapter.InsertCommand.Parameters[57].Value = ((string)(Campo11_2_2)); + } + if ((Campo11_2_3 == null)) { + throw new global::System.ArgumentNullException("Campo11_2_3"); + } + else { + this.Adapter.InsertCommand.Parameters[58].Value = ((string)(Campo11_2_3)); + } + if ((Campo11_2_4 == null)) { + throw new global::System.ArgumentNullException("Campo11_2_4"); + } + else { + this.Adapter.InsertCommand.Parameters[59].Value = ((string)(Campo11_2_4)); + } + if ((Campo11_2_5 == null)) { + throw new global::System.ArgumentNullException("Campo11_2_5"); + } + else { + this.Adapter.InsertCommand.Parameters[60].Value = ((string)(Campo11_2_5)); + } + if ((Campo12_1 == null)) { + throw new global::System.ArgumentNullException("Campo12_1"); + } + else { + this.Adapter.InsertCommand.Parameters[61].Value = ((string)(Campo12_1)); + } + if ((Campo12_2 == null)) { + throw new global::System.ArgumentNullException("Campo12_2"); + } + else { + this.Adapter.InsertCommand.Parameters[62].Value = ((string)(Campo12_2)); + } + if ((Campo12_3 == null)) { + throw new global::System.ArgumentNullException("Campo12_3"); + } + else { + this.Adapter.InsertCommand.Parameters[63].Value = ((string)(Campo12_3)); + } + if ((Campo12_4 == null)) { + throw new global::System.ArgumentNullException("Campo12_4"); + } + else { + this.Adapter.InsertCommand.Parameters[64].Value = ((string)(Campo12_4)); + } + if ((Campo12_5 == null)) { + throw new global::System.ArgumentNullException("Campo12_5"); + } + else { + this.Adapter.InsertCommand.Parameters[65].Value = ((string)(Campo12_5)); + } + if ((Campo13_1 == null)) { + throw new global::System.ArgumentNullException("Campo13_1"); + } + else { + this.Adapter.InsertCommand.Parameters[66].Value = ((string)(Campo13_1)); + } + if ((Campo13_2 == null)) { + throw new global::System.ArgumentNullException("Campo13_2"); + } + else { + this.Adapter.InsertCommand.Parameters[67].Value = ((string)(Campo13_2)); + } + if ((Campo13_3 == null)) { + throw new global::System.ArgumentNullException("Campo13_3"); + } + else { + this.Adapter.InsertCommand.Parameters[68].Value = ((string)(Campo13_3)); + } + if ((Campo13_4 == null)) { + throw new global::System.ArgumentNullException("Campo13_4"); + } + else { + this.Adapter.InsertCommand.Parameters[69].Value = ((string)(Campo13_4)); + } + if ((Campo13_5 == null)) { + throw new global::System.ArgumentNullException("Campo13_5"); + } + else { + this.Adapter.InsertCommand.Parameters[70].Value = ((string)(Campo13_5)); + } + if ((Campo14_1 == null)) { + throw new global::System.ArgumentNullException("Campo14_1"); + } + else { + this.Adapter.InsertCommand.Parameters[71].Value = ((string)(Campo14_1)); + } + if ((Campo14_2 == null)) { + throw new global::System.ArgumentNullException("Campo14_2"); + } + else { + this.Adapter.InsertCommand.Parameters[72].Value = ((string)(Campo14_2)); + } + if ((Campo14_3 == null)) { + throw new global::System.ArgumentNullException("Campo14_3"); + } + else { + this.Adapter.InsertCommand.Parameters[73].Value = ((string)(Campo14_3)); + } + if ((Campo14_4 == null)) { + throw new global::System.ArgumentNullException("Campo14_4"); + } + else { + this.Adapter.InsertCommand.Parameters[74].Value = ((string)(Campo14_4)); + } + if ((Campo14_5 == null)) { + throw new global::System.ArgumentNullException("Campo14_5"); + } + else { + this.Adapter.InsertCommand.Parameters[75].Value = ((string)(Campo14_5)); + } + if ((Campo15_1 == null)) { + throw new global::System.ArgumentNullException("Campo15_1"); + } + else { + this.Adapter.InsertCommand.Parameters[76].Value = ((string)(Campo15_1)); + } + if ((Campo15_2 == null)) { + throw new global::System.ArgumentNullException("Campo15_2"); + } + else { + this.Adapter.InsertCommand.Parameters[77].Value = ((string)(Campo15_2)); + } + if ((Campo15_3 == null)) { + throw new global::System.ArgumentNullException("Campo15_3"); + } + else { + this.Adapter.InsertCommand.Parameters[78].Value = ((string)(Campo15_3)); + } + if ((Campo15_4 == null)) { + throw new global::System.ArgumentNullException("Campo15_4"); + } + else { + this.Adapter.InsertCommand.Parameters[79].Value = ((string)(Campo15_4)); + } + if ((Campo15_5 == null)) { + throw new global::System.ArgumentNullException("Campo15_5"); + } + else { + this.Adapter.InsertCommand.Parameters[80].Value = ((string)(Campo15_5)); + } + if ((Campo16_1 == null)) { + throw new global::System.ArgumentNullException("Campo16_1"); + } + else { + this.Adapter.InsertCommand.Parameters[81].Value = ((string)(Campo16_1)); + } + if ((Campo16_2 == null)) { + throw new global::System.ArgumentNullException("Campo16_2"); + } + else { + this.Adapter.InsertCommand.Parameters[82].Value = ((string)(Campo16_2)); + } + if ((Campo16_3 == null)) { + throw new global::System.ArgumentNullException("Campo16_3"); + } + else { + this.Adapter.InsertCommand.Parameters[83].Value = ((string)(Campo16_3)); + } + if ((Campo16_4 == null)) { + throw new global::System.ArgumentNullException("Campo16_4"); + } + else { + this.Adapter.InsertCommand.Parameters[84].Value = ((string)(Campo16_4)); + } + if ((Campo16_5 == null)) { + throw new global::System.ArgumentNullException("Campo16_5"); + } + else { + this.Adapter.InsertCommand.Parameters[85].Value = ((string)(Campo16_5)); + } + 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateLingua( + string UDC, + string Campo1_1, + string Campo2_1, + string Campo3_1, + string Campo4_1, + string Campo5_1, + string Campo6_1, + string Campo7_1, + string Campo8_1, + string Campo9_1, + string Campo10_1, + string Campo11_1_1, + string Campo11_2_1, + string Campo12_1, + string Campo13_1, + string Campo14_1, + string Campo15_1, + string Campo16_1) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((UDC == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(UDC)); + } + if ((Campo1_1 == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Campo1_1)); + } + if ((Campo2_1 == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Campo2_1)); + } + if ((Campo3_1 == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Campo3_1)); + } + if ((Campo4_1 == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Campo4_1)); + } + if ((Campo5_1 == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(Campo5_1)); + } + if ((Campo6_1 == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(Campo6_1)); + } + if ((Campo7_1 == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(Campo7_1)); + } + if ((Campo8_1 == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } + else { + command.Parameters[9].Value = ((string)(Campo8_1)); + } + if ((Campo9_1 == null)) { + command.Parameters[10].Value = global::System.DBNull.Value; + } + else { + command.Parameters[10].Value = ((string)(Campo9_1)); + } + if ((Campo10_1 == null)) { + command.Parameters[11].Value = global::System.DBNull.Value; + } + else { + command.Parameters[11].Value = ((string)(Campo10_1)); + } + if ((Campo11_1_1 == null)) { + command.Parameters[12].Value = global::System.DBNull.Value; + } + else { + command.Parameters[12].Value = ((string)(Campo11_1_1)); + } + if ((Campo11_2_1 == null)) { + command.Parameters[13].Value = global::System.DBNull.Value; + } + else { + command.Parameters[13].Value = ((string)(Campo11_2_1)); + } + if ((Campo12_1 == null)) { + command.Parameters[14].Value = global::System.DBNull.Value; + } + else { + command.Parameters[14].Value = ((string)(Campo12_1)); + } + if ((Campo13_1 == null)) { + command.Parameters[15].Value = global::System.DBNull.Value; + } + else { + command.Parameters[15].Value = ((string)(Campo13_1)); + } + if ((Campo14_1 == null)) { + command.Parameters[16].Value = global::System.DBNull.Value; + } + else { + command.Parameters[16].Value = ((string)(Campo14_1)); + } + if ((Campo15_1 == null)) { + command.Parameters[17].Value = global::System.DBNull.Value; + } + else { + command.Parameters[17].Value = ((string)(Campo15_1)); + } + if ((Campo16_1 == null)) { + command.Parameters[18].Value = global::System.DBNull.Value; + } + else { + command.Parameters[18].Value = ((string)(Campo16_1)); + } + 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 + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private OdetteTableAdapter _odetteTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + + "", "System.Drawing.Design.UITypeEditor")] + public OdetteTableAdapter OdetteTableAdapter { + get { + return this._odetteTableAdapter; + } + set { + this._odetteTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._odetteTableAdapter != null) + && (this._odetteTableAdapter.Connection != null))) { + return this._odetteTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._odetteTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateUpdatedRows(DS_Odette dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._odetteTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Odette.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._odetteTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateInsertedRows(DS_Odette dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._odetteTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Odette.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._odetteTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateDeletedRows(DS_Odette dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._odetteTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Odette.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._odetteTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual int UpdateAll(DS_Odette dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._odetteTableAdapter != null) + && (this.MatchTableAdapterConnection(this._odetteTableAdapter.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" + + "ger TableAdapter property to a valid TableAdapter instance."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._odetteTableAdapter != null)) { + revertConnections.Add(this._odetteTableAdapter, this._odetteTableAdapter.Connection); + this._odetteTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._odetteTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._odetteTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._odetteTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._odetteTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._odetteTableAdapter != null)) { + this._odetteTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._odetteTableAdapter])); + this._odetteTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool IsChildAndParent(global::System.Data.DataRow child, global::System.Data.DataRow parent) { + global::System.Diagnostics.Debug.Assert((child != null)); + global::System.Diagnostics.Debug.Assert((parent != null)); + global::System.Data.DataRow newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((newParent != null) + && ((object.ReferenceEquals(newParent, child) == false) + && (object.ReferenceEquals(newParent, parent) == false))); + ) { + newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + if ((newParent == null)) { + for (newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); ((newParent != null) + && ((object.ReferenceEquals(newParent, child) == false) + && (object.ReferenceEquals(newParent, parent) == false))); + ) { + newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + if (object.ReferenceEquals(newParent, parent)) { + return true; + } + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + // Is row1 the child or grandchild of row2 + if (this.IsChildAndParent(row1, row2)) { + return this._childFirst; + } + + // Is row2 the child or grandchild of row1 + if (this.IsChildAndParent(row2, row1)) { + return (-1 * this._childFirst); + } + return 0; + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/GMW/GMW_data/DS_Odette.xsc b/GMW/GMW_data/DS_Odette.xsc new file mode 100644 index 00000000..551fc56f --- /dev/null +++ b/GMW/GMW_data/DS_Odette.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_Odette.xsd b/GMW/GMW_data/DS_Odette.xsd new file mode 100644 index 00000000..794d1958 --- /dev/null +++ b/GMW/GMW_data/DS_Odette.xsd @@ -0,0 +1,863 @@ + + + + + + + + + + + + + + + INSERT INTO [dbo].[Odette] ([CampoUDC], [Campo1_1], [Campo1_2], [Campo1_3], [Campo1_4], [Campo1_5], [Campo2_1], [Campo2_2], [Campo2_3], [Campo2_4], [Campo2_5], [Campo3_1], [Campo3_2], [Campo3_3], [Campo3_4], [Campo3_5], [Campo4_1], [Campo4_2], [Campo4_3], [Campo4_4], [Campo4_5], [Campo5_1], [Campo5_2], [Campo5_3], [Campo5_4], [Campo5_5], [Campo6_1], [Campo6_2], [Campo6_3], [Campo6_4], [Campo6_5], [Campo7_1], [Campo7_2], [Campo7_3], [Campo7_4], [Campo7_5], [Campo8_1], [Campo8_2], [Campo8_3], [Campo8_4], [Campo8_5], [Campo9_1], [Campo9_2], [Campo9_3], [Campo9_4], [Campo9_5], [Campo10_1], [Campo10_2], [Campo10_3], [Campo10_4], [Campo10_5], [Campo11_1_1], [Campo11_1_2], [Campo11_1_3], [Campo11_1_4], [Campo11_1_5], [Campo11_2_1], [Campo11_2_2], [Campo11_2_3], [Campo11_2_4], [Campo11_2_5], [Campo12_1], [Campo12_2], [Campo12_3], [Campo12_4], [Campo12_5], [Campo13_1], [Campo13_2], [Campo13_3], [Campo13_4], [Campo13_5], [Campo14_1], [Campo14_2], [Campo14_3], [Campo14_4], [Campo14_5], [Campo15_1], [Campo15_2], [Campo15_3], [Campo15_4], [Campo15_5], [Campo16_1], [Campo16_2], [Campo16_3], [Campo16_4], [Campo16_5]) VALUES (@CampoUDC, @Campo1_1, @Campo1_2, @Campo1_3, @Campo1_4, @Campo1_5, @Campo2_1, @Campo2_2, @Campo2_3, @Campo2_4, @Campo2_5, @Campo3_1, @Campo3_2, @Campo3_3, @Campo3_4, @Campo3_5, @Campo4_1, @Campo4_2, @Campo4_3, @Campo4_4, @Campo4_5, @Campo5_1, @Campo5_2, @Campo5_3, @Campo5_4, @Campo5_5, @Campo6_1, @Campo6_2, @Campo6_3, @Campo6_4, @Campo6_5, @Campo7_1, @Campo7_2, @Campo7_3, @Campo7_4, @Campo7_5, @Campo8_1, @Campo8_2, @Campo8_3, @Campo8_4, @Campo8_5, @Campo9_1, @Campo9_2, @Campo9_3, @Campo9_4, @Campo9_5, @Campo10_1, @Campo10_2, @Campo10_3, @Campo10_4, @Campo10_5, @Campo11_1_1, @Campo11_1_2, @Campo11_1_3, @Campo11_1_4, @Campo11_1_5, @Campo11_2_1, @Campo11_2_2, @Campo11_2_3, @Campo11_2_4, @Campo11_2_5, @Campo12_1, @Campo12_2, @Campo12_3, @Campo12_4, @Campo12_5, @Campo13_1, @Campo13_2, @Campo13_3, @Campo13_4, @Campo13_5, @Campo14_1, @Campo14_2, @Campo14_3, @Campo14_4, @Campo14_5, @Campo15_1, @Campo15_2, @Campo15_3, @Campo15_4, @Campo15_5, @Campo16_1, @Campo16_2, @Campo16_3, @Campo16_4, @Campo16_5) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT CampoUDC, Campo1_1, Campo1_2, Campo1_3, Campo1_4, Campo1_5, Campo2_1, Campo2_2, Campo2_3, Campo2_4, Campo2_5, Campo3_1, Campo3_2, Campo3_3, Campo3_4, Campo3_5, Campo4_1, Campo4_2, Campo4_3, Campo4_4, Campo4_5, Campo5_1, Campo5_2, Campo5_3, Campo5_4, Campo5_5, Campo6_1, Campo6_2, Campo6_3, Campo6_4, Campo6_5, Campo7_1, Campo7_2, Campo7_3, Campo7_4, Campo7_5, Campo8_1, Campo8_2, Campo8_3, Campo8_4, Campo8_5, Campo9_1, Campo9_2, Campo9_3, Campo9_4, Campo9_5, Campo10_1, Campo10_2, Campo10_3, Campo10_4, Campo10_5, Campo11_1_1, Campo11_1_2, Campo11_1_3, Campo11_1_4, Campo11_1_5, Campo11_2_1, Campo11_2_2, Campo11_2_3, Campo11_2_4, Campo11_2_5, Campo12_1, Campo12_2, Campo12_3, Campo12_4, Campo12_5, Campo13_1, Campo13_2, Campo13_3, Campo13_4, Campo13_5, Campo14_1, Campo14_2, Campo14_3, Campo14_4, Campo14_5, Campo15_1, Campo15_2, Campo15_3, Campo15_4, Campo15_5, Campo16_1, Campo16_2, Campo16_3, Campo16_4, Campo16_5 FROM dbo.Odette + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ODETTE_getByUDC + + + + + + + + + + + dbo.stp_ODETTE_updateLingua + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_Odette.xss b/GMW/GMW_data/DS_Odette.xss new file mode 100644 index 00000000..9a9bf69d --- /dev/null +++ b/GMW/GMW_data/DS_Odette.xss @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DataMatrix.cs b/GMW/GMW_data/DataMatrix.cs new file mode 100644 index 00000000..ff1dfca5 --- /dev/null +++ b/GMW/GMW_data/DataMatrix.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using SteamWare; + +namespace GMW_data +{ + /// + /// fa da proxy singleton x gli oggetti legati ai DATAMATRIX + /// + public class DataMatrix + { + #region area table adapters + + public DS_DataMatrixTableAdapters.PezziProdottiTableAdapter taPezziDM; + public DS_DataMatrixTableAdapters.PezziGitterboxTableAdapter taPezziGitterbox; + + /// + /// init dei table adapters + /// + protected void initTA() + { + taPezziDM = new GMW_data.DS_DataMatrixTableAdapters.PezziProdottiTableAdapter(); + taPezziGitterbox = new GMW_data.DS_DataMatrixTableAdapters.PezziGitterboxTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + protected virtual void setupConnectionStringBase() + { + string connString = memLayer.ML.confReadString("SP_produzioneConnectionString"); + // connections strings del db + taPezziDM.Connection.ConnectionString = connString; + taPezziGitterbox.Connection.ConnectionString = connString; + } + #endregion + + protected DataMatrix() + { + initTA(); + setupConnectionStringBase(); + } + + + public static DataMatrix mgr = new DataMatrix(); + } +} diff --git a/GMW/GMW_data/DataProxy.cs b/GMW/GMW_data/DataProxy.cs index d0203c78..1c755d75 100644 --- a/GMW/GMW_data/DataProxy.cs +++ b/GMW/GMW_data/DataProxy.cs @@ -59,24 +59,25 @@ namespace GMW_data /// protected virtual void setupConnectionStringBase() { + string connString = memLayer.ML.confReadString("GMWConnectionString"); // connections strings del db - taAnagImp.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagBil.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taTipoDich.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taStatiProd.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagImballi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taArtInProd.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taRelazUDC.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagCS.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagClienti.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagOperatore.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagParticolari.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagFamiglie.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taSogg2Oper.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taPrtCart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taPrtCartMP.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taSpecPart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); + taAnagImp.Connection.ConnectionString = connString; + taAnagBil.Connection.ConnectionString = connString; + taCartellini.Connection.ConnectionString = connString; + taTipoDich.Connection.ConnectionString = connString; + taStatiProd.Connection.ConnectionString = connString; + taAnagImballi.Connection.ConnectionString = connString; + taArtInProd.Connection.ConnectionString = connString; + taRelazUDC.Connection.ConnectionString = connString; + taAnagCS.Connection.ConnectionString = connString; + taAnagClienti.Connection.ConnectionString = connString; + taAnagOperatore.Connection.ConnectionString = connString; + taAnagParticolari.Connection.ConnectionString = connString; + taAnagFamiglie.Connection.ConnectionString = connString; + taSogg2Oper.Connection.ConnectionString = connString; + taPrtCart.Connection.ConnectionString = connString; + taPrtCartMP.Connection.ConnectionString = connString; + taSpecPart.Connection.ConnectionString = connString; } #endregion diff --git a/GMW/GMW_data/GMW_data.csproj b/GMW/GMW_data/GMW_data.csproj index f31c6e16..36861514 100644 --- a/GMW/GMW_data/GMW_data.csproj +++ b/GMW/GMW_data/GMW_data.csproj @@ -48,6 +48,7 @@ + DS_Applicazione.xsd @@ -58,6 +59,11 @@ True DS_Applicazione.xsd + + True + True + DS_DataMatrix.xsd + DS_magazzino.xsd Component @@ -67,6 +73,11 @@ True DS_magazzino.xsd + + True + True + DS_Odette.xsd + True True @@ -78,6 +89,7 @@ DS_Utility.xsd + True @@ -124,6 +136,17 @@ DS_Applicazione.xsd + + DS_DataMatrix.xsd + + + Designer + MSDataSetGenerator + DS_DataMatrix.Designer.cs + + + DS_DataMatrix.xsd + DS_magazzino.xsd @@ -135,6 +158,17 @@ DS_magazzino.xsd + + DS_Odette.xsd + + + Designer + MSDataSetGenerator + DS_Odette.Designer.cs + + + DS_Odette.xsd + DS_SM.xsd diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs index 13d7e2f7..bdc5b19c 100644 --- a/GMW/GMW_data/MagClass.cs +++ b/GMW/GMW_data/MagClass.cs @@ -73,30 +73,30 @@ namespace GMW_data /// protected virtual void setupConnectionStringBase() { + string connString = memLayer.ML.confReadString("GMWConnectionString"); // connections del db - - taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taTipoCella.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taPosUdcCorr.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taPosUdcStorico.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taMagOverw.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taDettMagPart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taDettUDC.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taElencoListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taElencoCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taRigheListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taStatoCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taRapQual.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taRQ_sunto.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taPosizDelib.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagPart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); - taAnagPos.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); + taAnagMag.Connection.ConnectionString = connString; + taBlocchi.Connection.ConnectionString = connString; + taCelle.Connection.ConnectionString = connString; + taTipoCella.Connection.ConnectionString = connString; + taCartellini.Connection.ConnectionString = connString; + taPosUdcCorr.Connection.ConnectionString = connString; + taPosUdcStorico.Connection.ConnectionString = connString; + taMagOverw.Connection.ConnectionString = connString; + taDettMagPart.Connection.ConnectionString = connString; + taDettUDC.Connection.ConnectionString = connString; + taElencoListePrelievo.Connection.ConnectionString = connString; + taElencoCartellini.Connection.ConnectionString = connString; + taRigheListePrelievo.Connection.ConnectionString = connString; + taTipoListaPrelievo.Connection.ConnectionString = connString; + taVParticolariOverwiew.Connection.ConnectionString = connString; + taPartExpFig.Connection.ConnectionString = connString; + taStatoCelle.Connection.ConnectionString = connString; + taRapQual.Connection.ConnectionString = connString; + taRQ_sunto.Connection.ConnectionString = connString; + taPosizDelib.Connection.ConnectionString = connString; + taAnagPart.Connection.ConnectionString = connString; + taAnagPos.Connection.ConnectionString = connString; } #endregion diff --git a/GMW/GMW_data/Odette.cs b/GMW/GMW_data/Odette.cs new file mode 100644 index 00000000..2395f775 --- /dev/null +++ b/GMW/GMW_data/Odette.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using SteamWare; + + +namespace GMW_data +{ + /// + /// fa da proxy singleton x gli oggetti legati ai cartellini ODETTE + /// + public class Odette + { + #region area table adapters + + public DS_OdetteTableAdapters.OdetteTableAdapter taOdette; + + /// + /// init dei table adapters + /// + protected void initTA() + { + taOdette = new GMW_data.DS_OdetteTableAdapters.OdetteTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + protected virtual void setupConnectionStringBase() + { + string connString = memLayer.ML.confReadString("GMWConnectionString"); + // connections strings del db + taOdette.Connection.ConnectionString = connString; + } + #endregion + + protected Odette() + { + initTA(); + setupConnectionStringBase(); + } + + + public static Odette mgr = new Odette(); + /// + /// wrapper traduzione + /// + /// + /// + /// + public string traduci(string lemma, string lingua) + { + return user_std.UtSn.Traduci(lemma,lingua); + } + + /// + /// carica le label di lingua su un etichetta odette (che deve già esistere) + /// + /// + /// + /// + public bool caricaEtichetteLinguaPerOdette(string UDC, string lingua) + { + bool answ = false; + // controllo se etichetta odette esiste... + if (taOdette.getByUdc(UDC).Rows.Count > 0) + { + // carico le mie labels tradotte... + string Campo1_1 = traduci("Campo1_1", lingua); + string Campo2_1 = traduci("Campo2_1", lingua); + string Campo3_1 = traduci("Campo3_1", lingua); + string Campo4_1 = traduci("Campo4_1", lingua); + string Campo5_1 = traduci("Campo5_1", lingua); + string Campo6_1 = traduci("Campo6_1", lingua); + string Campo7_1 = traduci("Campo7_1", lingua); + string Campo8_1 = traduci("Campo8_1", lingua); + string Campo9_1 = traduci("Campo9_1", lingua); + string Campo10_1 = traduci("Campo10_1", lingua); + string Campo11_1_1 = traduci("Campo11_1_1", lingua); + string Campo11_2_1 = traduci("Campo11_2_1", lingua); + string Campo12_1 = traduci("Campo12_1", lingua); + string Campo13_1 = traduci("Campo13_1", lingua); + string Campo14_1 = traduci("Campo14_1", lingua); + string Campo15_1 = traduci("Campo15_1", lingua); + string Campo16_1 = traduci("Campo16_1", lingua); + // effettuo update! + taOdette.updateLingua(UDC, Campo1_1, Campo2_1, Campo3_1, Campo4_1, Campo5_1, Campo6_1, Campo7_1, Campo8_1, Campo9_1, Campo10_1, Campo11_1_1, Campo11_2_1, Campo12_1, Campo13_1, Campo14_1, Campo15_1, Campo16_1); + } + else + { + logger.lg.scriviLog(string.Format("Attenzione! etichetta odette non trovata per l'UDC {0}", UDC), tipoLog.ERROR); + } + + return answ; + } + + } +} diff --git a/GMW/GMW_data/Properties/Settings.Designer.cs b/GMW/GMW_data/Properties/Settings.Designer.cs index ba45f169..a95198d3 100644 --- a/GMW/GMW_data/Properties/Settings.Designer.cs +++ b/GMW/GMW_data/Properties/Settings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4927 +// Runtime Version:2.0.50727.4952 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -33,5 +33,16 @@ namespace GMW_data.Properties { return ((string)(this["GMWConnectionString"])); } } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=SP_produzione;Persist Security" + + " Info=True;User ID=sa;Password=keyhammer")] + public string SP_produzioneConnectionString { + get { + return ((string)(this["SP_produzioneConnectionString"])); + } + } } } diff --git a/GMW/GMW_data/Properties/Settings.settings b/GMW/GMW_data/Properties/Settings.settings index 552a17ff..237cb63a 100644 --- a/GMW/GMW_data/Properties/Settings.settings +++ b/GMW/GMW_data/Properties/Settings.settings @@ -10,5 +10,13 @@ </SerializableConnectionString> Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer + \ No newline at end of file diff --git a/GMW/GMW_data/SqlScripts/GMW_00345.sql b/GMW/GMW_data/SqlScripts/GMW_00345.sql index db179155..2cc2587f 100644 --- a/GMW/GMW_data/SqlScripts/GMW_00345.sql +++ b/GMW/GMW_data/SqlScripts/GMW_00345.sql @@ -80,6 +80,201 @@ AS RETURN +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*************************************** +* STORED stp_prtCartMatPrimaByUDC +* +* ottiene il record del Cartellino Materia Prima dato l'UDC richiesto x la sstampa +* +****************************************/ +alter PROCEDURE stp_prtCartMatPrimaByUDC +( + @UDC VARCHAR(50) +) +AS +SELECT + RQ.nRapQual, + RQ.DataRapQual, + RQ.ProgUDC, + RQ.CodFor, + RQ.DestTerz, + RQ.CodLega, + RQ.DataPrelFus, + RQ.TurnoPrelFus, + RQ.Qta, + RQ.DestLega, + RQ.LegaScaric, + RQ.BenesQual, + RQ.UDC, + Fo.DescFornitore, + Fo.DescFornitore2, + Le.CodLega AS CodLega2, + Le.DescLega, + Le.DescLega2 +FROM RilPro.RapQual AS RQ +LEFT JOIN RilPro.AnagFornitori AS Fo + ON RQ.CodFor = Fo.CodFornitore +LEFT JOIN RilPro.AnagLeghe Le + ON RQ.CodLega = 'L' + Le.CodLega +WHERE RQ.UDC = RTRIM(@UDC) -- 'UB31000000001' +RETURN +go + +commit +go + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*************************************** +* STORED stp_rappQualConsumabili +* +* Ottiene l'elenco dei record di rapp qualità (e quindi degli UDC) di AS non ancora consumati per range di data di approvazione +* +* Steamware, S.E.L. +* mod: 2010.10.05 +* +****************************************/ +alter PROCEDURE stp_rappQualConsumabili +( + @dataFrom DATETIME, + @dataTo DATETIME +) + +AS + -- restituisce le righe richieste + SELECT nRapQual, DataRapQual, ProgUDC, CodFor, DestTerz, CodLega, DataPrelFus, TurnoPrelFus, Qta, DestLega, LegaScaric, BenesQual, UDC + FROM RilPro.RapQual + WHERE ((DataPrelFus IS NULL) OR (DataPrelFus = 0)) AND -- condizione sul NON aver fatto ancora il prelievo + ((DataRapQual >= dbo.dateToAsFormat(@dataFrom)) AND (DataRapQual < dbo.dateToAsFormat(@dataTo))) -- cond data RQ + AND (ISNULL(UDC,'') <>'') -- non nullo UDC, quindi stampati... + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +-- Batch submitted through debugger: GMW_00290.sql|183|0|C:\Users\RottGian\AppData\Local\Temp\2\Temp1_GMW_00290.zip\GMW_00290.sql + +/*************************************** +* STORED stp_selDestListePrelByConditio +* +* Ottiene i destinatari delle liste di prelievo data la condizione indicata +* +* Steamware, S.E.L. +* mod: 2010.11.02 +* +****************************************/ +alter PROCEDURE stp_selDestListePrelByConditio +( + @conditio NVARCHAR(20) +) +AS + +IF (@conditio='01-PreFus') +BEGIN + SELECT CAST('*' AS NVARCHAR(6)) AS value, CAST('*' AS NVARCHAR(50)) AS label, '01-PreFus' AS conditio +END + +ELSE IF (@conditio='02-PreCli') +BEGIN + SELECT CAST(CodCliente AS NVARCHAR(6)) AS value, CAST(CodCliente AS NVARCHAR(6)) +'- ' +CAST(RagSociale AS NVARCHAR(50)) AS label, '02-PreCli' AS conditio + FROM RilPro.AnagClienti + ORDER BY label +END + +ELSE +BEGIN + SELECT CAST(CodTerzista AS NVARCHAR(6)) AS value, CAST(CodTerzista AS NVARCHAR(6))+ '- '+CAST(DescTerzista AS NVARCHAR(50)) AS label, '03-TerWip' AS conditio + FROM RilPro.AnagDepositi + ORDER BY label +END + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +-- Batch submitted through debugger: GMW_00290.sql|183|0|C:\Users\RottGian\AppData\Local\Temp\2\Temp1_GMW_00290.zip\GMW_00290.sql + +/*************************************** +* STORED stp_selDestListePrelByConditio +* +* Ottiene i destinatari delle liste di prelievo data la condizione indicata +* +* Steamware, S.E.L. +* mod: 2010.11.02 +* +****************************************/ +alter PROCEDURE stp_selDestListePrelByConditio +( + @conditio NVARCHAR(20) +) +AS + +IF (@conditio='01-PreFus') +BEGIN + SELECT CAST('*' AS NVARCHAR(6)) AS value, CAST('*' AS NVARCHAR(50)) AS label, '01-PreFus' AS conditio +END + +ELSE IF (@conditio='02-PreCli') +BEGIN + SELECT CAST(CodCliente AS NVARCHAR(6)) AS value, CAST(CodCliente AS NVARCHAR(6)) +'- ' +CAST(RagSociale AS NVARCHAR(50)) AS label, '02-PreCli' AS conditio + FROM RilPro.AnagClienti + ORDER BY label +END + +ELSE +BEGIN + SELECT CAST(CodTerzista AS NVARCHAR(6)) AS value, CAST(CodTerzista AS NVARCHAR(6))+ '- '+CAST(DescTerzista AS NVARCHAR(50)) AS label, '03-TerWip' AS conditio + FROM RilPro.AnagDepositi + ORDER BY label +END + +RETURN +go + +commit +go + + + diff --git a/GMW/GMW_data/SqlScripts/GMW_00350.sql b/GMW/GMW_data/SqlScripts/GMW_00350.sql index f3b560d3..73b73962 100644 --- a/GMW/GMW_data/SqlScripts/GMW_00350.sql +++ b/GMW/GMW_data/SqlScripts/GMW_00350.sql @@ -44,6 +44,80 @@ RETURN +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*************************************** +* STORED stp_rappQualSuntoGetByDataRange +* +* Ottiene l'elenco dei record di rapp qualità di AS dato il range delle date +* +* Steamware, S.E.L. +* mod: 2010.09.29 +* +****************************************/ +alter PROCEDURE stp_rappQualSuntoGetByDataRange +( + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + -- restituisce le righe richieste + SELECT * + FROM v_RapQualSunto + WHERE (DataRapQual >= dbo.dateToAsFormat(@dataFrom)) AND (DataRapQual < dbo.dateToAsFormat(@dataTo)) + ORDER BY nRapQual +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*************************************** +* STORED stp_rappQualSuntoGetByDataRange +* +* Ottiene l'elenco dei record di rapp qualità di AS dato il range delle date +* +* Steamware, S.E.L. +* mod: 2010.09.29 +* +****************************************/ +alter PROCEDURE stp_rappQualSuntoGetByDataRange +( + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + -- restituisce le righe richieste + SELECT * + FROM v_RapQualSunto + WHERE (DataRapQual >= dbo.dateToAsFormat(@dataFrom)) AND (DataRapQual < dbo.dateToAsFormat(@dataTo)) + ORDER BY nRapQual +RETURN +go + +commit +go + + + + -- registro versione... diff --git a/GMW/GMW_data/SqlScripts/GMW_00360.sql b/GMW/GMW_data/SqlScripts/GMW_00360.sql new file mode 100644 index 00000000..3f7f34c9 --- /dev/null +++ b/GMW/GMW_data/SqlScripts/GMW_00360.sql @@ -0,0 +1,128 @@ +create table Odette( + CampoUDC varchar(10) not null constraint PK_Odette primary key, + Campo1_1 varchar(8) not null, + Campo1_2 varchar(8) not null, + Campo1_3 varchar(8) not null, + Campo1_4 varchar(8) not null, + Campo1_5 varchar(8) not null, + Campo2_1 varchar(8) not null, + Campo2_2 varchar(8) not null, + Campo2_3 varchar(8) not null, + Campo2_4 varchar(8) not null, + Campo2_5 varchar(8) not null, + Campo3_1 varchar(8) not null, + Campo3_2 varchar(8) not null, + Campo3_3 varchar(8) not null, + Campo3_4 varchar(8) not null, + Campo3_5 varchar(8) not null, + Campo4_1 varchar(8) not null, + Campo4_2 varchar(8) not null, + Campo4_3 varchar(8) not null, + Campo4_4 varchar(8) not null, + Campo4_5 varchar(8) not null, + Campo5_1 varchar(8) not null, + Campo5_2 varchar(8) not null, + Campo5_3 varchar(8) not null, + Campo5_4 varchar(8) not null, + Campo5_5 varchar(8) not null, + Campo6_1 varchar(8) not null, + Campo6_2 varchar(8) not null, + Campo6_3 varchar(8) not null, + Campo6_4 varchar(8) not null, + Campo6_5 varchar(8) not null, + Campo7_1 varchar(8) not null, + Campo7_2 varchar(8) not null, + Campo7_3 varchar(8) not null, + Campo7_4 varchar(8) not null, + Campo7_5 varchar(8) not null, + Campo8_1 varchar(8) not null, + Campo8_2 varchar(8) not null, + Campo8_3 varchar(8) not null, + Campo8_4 varchar(8) not null, + Campo8_5 varchar(8) not null, + Campo9_1 varchar(8) not null, + Campo9_2 varchar(8) not null, + Campo9_3 varchar(8) not null, + Campo9_4 varchar(8) not null, + Campo9_5 varchar(8) not null, + Campo10_1 varchar(9) not null, + Campo10_2 varchar(9) not null, + Campo10_3 varchar(9) not null, + Campo10_4 varchar(9) not null, + Campo10_5 varchar(9) not null, + Campo11_1_1 varchar(11) not null, + Campo11_1_2 varchar(11) not null, + Campo11_1_3 varchar(11) not null, + Campo11_1_4 varchar(11) not null, + Campo11_1_5 varchar(11) not null, + Campo11_2_1 varchar(11) not null, + Campo11_2_2 varchar(11) not null, + Campo11_2_3 varchar(11) not null, + Campo11_2_4 varchar(11) not null, + Campo11_2_5 varchar(11) not null, + Campo12_1 varchar(9) not null, + Campo12_2 varchar(9) not null, + Campo12_3 varchar(9) not null, + Campo12_4 varchar(9) not null, + Campo12_5 varchar(9) not null, + Campo13_1 varchar(9) not null, + Campo13_2 varchar(9) not null, + Campo13_3 varchar(9) not null, + Campo13_4 varchar(9) not null, + Campo13_5 varchar(9) not null, + Campo14_1 varchar(9) not null, + Campo14_2 varchar(9) not null, + Campo14_3 varchar(9) not null, + Campo14_4 varchar(9) not null, + Campo14_5 varchar(9) not null, + Campo15_1 varchar(9) not null, + Campo15_2 varchar(9) not null, + Campo15_3 varchar(9) not null, + Campo15_4 varchar(9) not null, + Campo15_5 varchar(9) not null, + Campo16_1 varchar(9) not null, + Campo16_2 varchar(9) not null, + Campo16_3 varchar(9) not null, + Campo16_4 varchar(9) not null, + Campo16_5 varchar(9) not null +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagTipoEvento + VALUES (N'MagPreGbox', N'Prelievo Gitterbox per cliente BMW') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.TipoListaPrelievo + VALUES (N'04-OdetSP', N'Lista Prelievo per Odette SP', N'LPO010101', N'MagPreGbox', 0) +go + +commit transaction +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(360, GETDATE()) +GO diff --git a/GMW/GMW_data/app.config b/GMW/GMW_data/app.config index c4f4ad38..69d734a8 100644 --- a/GMW/GMW_data/app.config +++ b/GMW/GMW_data/app.config @@ -6,5 +6,8 @@ + \ No newline at end of file diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll index 2391a2e8..949e6978 100644 Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll.config b/GMW/GMW_data/bin/Release/GMW_data.dll.config index c4f4ad38..69d734a8 100644 --- a/GMW/GMW_data/bin/Release/GMW_data.dll.config +++ b/GMW/GMW_data/bin/Release/GMW_data.dll.config @@ -6,5 +6,8 @@ + \ No newline at end of file diff --git a/GMW/GMW_data/bin/Release/SteamWare.dll b/GMW/GMW_data/bin/Release/SteamWare.dll index 7f885998..78620e0d 100644 Binary files a/GMW/GMW_data/bin/Release/SteamWare.dll and b/GMW/GMW_data/bin/Release/SteamWare.dll differ diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll index 2391a2e8..949e6978 100644 Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache index 83f250a1..4ae7350d 100644 Binary files a/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/obj/Release/TempPE/DS_DataMatrix.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_DataMatrix.Designer.cs.dll new file mode 100644 index 00000000..d39fdf63 Binary files /dev/null and b/GMW/GMW_data/obj/Release/TempPE/DS_DataMatrix.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Release/TempPE/DS_Odette.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_Odette.Designer.cs.dll new file mode 100644 index 00000000..f7b75282 Binary files /dev/null and b/GMW/GMW_data/obj/Release/TempPE/DS_Odette.Designer.cs.dll differ diff --git a/GMW/GMW_installer/GMW_installer.vdproj b/GMW/GMW_installer/GMW_installer.vdproj index 40b21dd6..38eaa7c8 100644 --- a/GMW/GMW_installer/GMW_installer.vdproj +++ b/GMW/GMW_installer/GMW_installer.vdproj @@ -349,14 +349,14 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:GMW" - "ProductCode" = "8:{AE1EBEAE-7281-48A7-AF60-0DB79B61424A}" - "PackageCode" = "8:{1E31AAA0-8666-4470-95A1-381A09FF377E}" + "ProductCode" = "8:{33571C57-DCDE-46D3-8BA4-37F8EB24358A}" + "PackageCode" = "8:{DAF22D52-4536-4384-B32C-352029F6C17C}" "UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}" "RestartWWWService" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.351" + "ProductVersion" = "8:1.0.355" "Manufacturer" = "8:SteamWare s.r.l." "ARPHELPTELEPHONE" = "8:+39-035460560" "ARPHELPLINK" = "8:http://www.steamware.net" diff --git a/GMW/GMW_installer/Release/GMW_installer.msi b/GMW/GMW_installer/Release/GMW_installer.msi index d0cb80ca..3880b920 100644 Binary files a/GMW/GMW_installer/Release/GMW_installer.msi and b/GMW/GMW_installer/Release/GMW_installer.msi differ