diff --git a/GMW/GMW.sln b/GMW/GMW.sln index 9e5ab3e8..5b5f6975 100644 --- a/GMW/GMW.sln +++ b/GMW/GMW.sln @@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetDirPerm", "..\SetDirecto EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "IISConsoleVB", "..\IISCustomActionVB\IISConsoleVB\IISConsoleVB.vbproj", "{67AF6121-D250-44E3-9C4E-0FC36599AAE4}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GMW_Reports", "GMW_Reports\GMW_Reports.csproj", "{ADACC5A9-F45C-4659-9026-73E1E82517EF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -90,6 +92,18 @@ Global {67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Installer|Any CPU.ActiveCfg = Release|Any CPU {67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Installer|Any CPU.Build.0 = Release|Any CPU {67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Deploy|Any CPU.ActiveCfg = Debug|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Deploy|Any CPU.Build.0 = Debug|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_Offline|Any CPU.ActiveCfg = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_Offline|Any CPU.Build.0 = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_test|Any CPU.ActiveCfg = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer_test|Any CPU.Build.0 = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer|Any CPU.ActiveCfg = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Installer|Any CPU.Build.0 = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ADACC5A9-F45C-4659-9026-73E1E82517EF}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index 89ad41de..5bf5fe93 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -101,7 +101,7 @@ - + diff --git a/GMW/GMW/Reports/CartellinoTara.rdl b/GMW/GMW/Reports/CartellinoTara.rdl new file mode 100644 index 00000000..d0ae95f7 --- /dev/null +++ b/GMW/GMW/Reports/CartellinoTara.rdl @@ -0,0 +1,258 @@ + + + + + d9194145-aa70-4a36-8b7a-c929936f98f7 + + + + + + + + + 14.8cm + true + 21cm + 0.25cm + true + 0.5cm + 0.5cm + 0.5cm + 3255cde9-74a1-4005-8008-232d8355d769 + 21cm + + + + + CodCompany + System.String + + + ODP + System.String + + + UDC + System.String + + + Tara + System.Double + + + IdxStato + System.Int32 + + + Qta + System.Decimal + + + CodImballo + System.String + + + CreateDate + System.DateTime + + + ModDate + System.DateTime + + + + GMWConnectionString + dbo.stp_getStatoByUdc + true + + + GMWDataSet + stp_getStatoByUdc + + + + + GetData + + + + + 20cm + + 1cm + + + textbox1 + 12.69841cm + + 1 + true + 0.91429cm + CartellinoTara + + + GMWDataSet_stp_getStatoByUdc + 4cm + + + + + =Fields!UDC.Value + + + + + =Fields!UDC.Value + Ascending + + +
+ + + + + 3 + + + UDC + + true + ="*" & Fields!UDC.Value & "*" + + + + + 3.50781cm + + +
+
+
+ 19cm +
+ + + + + + + textbox4 + + true + Tara + + + + + + + Tara + + true + =Fields!Tara.Value & " Kg" + + + + + + + CreateDate + + true + =Fields!CreateDate.Value + + + + + 3.50781cm + + +
+ + + 6.31847cm + + + 6.36305cm + + + 6.31848cm + + + 7.01562cm + 0.5cm +
+
+ 13.5cm + + it-IT + 0.5cm + 14.8cm +
\ No newline at end of file diff --git a/GMW/GMW/WS/bilance.asmx.cs b/GMW/GMW/WS/bilance.asmx.cs index bc46f0c0..178551f0 100644 --- a/GMW/GMW/WS/bilance.asmx.cs +++ b/GMW/GMW/WS/bilance.asmx.cs @@ -11,7 +11,7 @@ namespace GMW.WS /// /// Summary description for bilance /// - [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.0.9.13")] + [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.0.9.14")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class bilance : System.Web.Services.WebService @@ -92,7 +92,7 @@ namespace GMW.WS /// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico) /// [WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")] - public GMW.Type.ArtInProd[] ArtInProd() + public GMW.Type.ArtInProd[] elencoArtInProd() { gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrProd()); return gestEl.elencoArtInProd; @@ -103,7 +103,7 @@ namespace GMW.WS /// CodImpianto come da anagrafica /// [WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")] - public GMW.Type.ArtInProd[] ArtInProd4Impianto(string CodImpianto) + public GMW.Type.ArtInProd[] elencoArtInProd4Impianto(string CodImpianto) { gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto)); return gestEl.elencoArtInProd; diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 946f8846..857b1730 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 97e34566..3129d247 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 395c14bb..54b7839a 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index 332256ee..20f247b9 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll index 946f8846..857b1730 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 42129678..88ebef06 100644 Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_Reports/CartellinoTara.rdlc b/GMW/GMW_Reports/CartellinoTara.rdlc new file mode 100644 index 00000000..d0ae95f7 --- /dev/null +++ b/GMW/GMW_Reports/CartellinoTara.rdlc @@ -0,0 +1,258 @@ + + + + + d9194145-aa70-4a36-8b7a-c929936f98f7 + + + + + + + + + 14.8cm + true + 21cm + 0.25cm + true + 0.5cm + 0.5cm + 0.5cm + 3255cde9-74a1-4005-8008-232d8355d769 + 21cm + + + + + CodCompany + System.String + + + ODP + System.String + + + UDC + System.String + + + Tara + System.Double + + + IdxStato + System.Int32 + + + Qta + System.Decimal + + + CodImballo + System.String + + + CreateDate + System.DateTime + + + ModDate + System.DateTime + + + + GMWConnectionString + dbo.stp_getStatoByUdc + true + + + GMWDataSet + stp_getStatoByUdc + + + + + GetData + + + + + 20cm + + 1cm + + + textbox1 + 12.69841cm + + 1 + true + 0.91429cm + CartellinoTara + + + GMWDataSet_stp_getStatoByUdc + 4cm + + + + + =Fields!UDC.Value + + + + + =Fields!UDC.Value + Ascending + + +
+ + + + + 3 + + + UDC + + true + ="*" & Fields!UDC.Value & "*" + + + + + 3.50781cm + + +
+
+
+ 19cm +
+ + + + + + + textbox4 + + true + Tara + + + + + + + Tara + + true + =Fields!Tara.Value & " Kg" + + + + + + + CreateDate + + true + =Fields!CreateDate.Value + + + + + 3.50781cm + + +
+ + + 6.31847cm + + + 6.36305cm + + + 6.31848cm + + + 7.01562cm + 0.5cm +
+
+ 13.5cm + + it-IT + 0.5cm + 14.8cm +
\ No newline at end of file diff --git a/GMW/GMW_Reports/Form1.Designer.cs b/GMW/GMW_Reports/Form1.Designer.cs new file mode 100644 index 00000000..aa0fbc2a --- /dev/null +++ b/GMW/GMW_Reports/Form1.Designer.cs @@ -0,0 +1,90 @@ +namespace GMW_Reports +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource(); + this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer(); + this.GMWDataSet = new GMW_Reports.GMWDataSet(); + this.stp_getStatoByUdcBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.tabStatoOdpUdcTableAdapter = new GMW_Reports.GMWDataSetTableAdapters.TabStatoOdpUdcTableAdapter(); + ((System.ComponentModel.ISupportInitialize)(this.GMWDataSet)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.stp_getStatoByUdcBindingSource)).BeginInit(); + this.SuspendLayout(); + // + // reportViewer1 + // + this.reportViewer1.Dock = System.Windows.Forms.DockStyle.Fill; + reportDataSource1.Name = "GMWDataSet_stp_getStatoByUdc"; + reportDataSource1.Value = this.stp_getStatoByUdcBindingSource; + this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1); + this.reportViewer1.LocalReport.ReportEmbeddedResource = "GMW_Reports.CartellinoTara.rdlc"; + this.reportViewer1.Location = new System.Drawing.Point(0, 0); + this.reportViewer1.Name = "reportViewer1"; + this.reportViewer1.Size = new System.Drawing.Size(682, 386); + this.reportViewer1.TabIndex = 0; + // + // GMWDataSet + // + this.GMWDataSet.DataSetName = "GMWDataSet"; + this.GMWDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // stp_getStatoByUdcBindingSource + // + this.stp_getStatoByUdcBindingSource.DataMember = "TabStatoOdpUdc"; + this.stp_getStatoByUdcBindingSource.DataSource = this.GMWDataSet; + // + // tabStatoOdpUdcTableAdapter + // + this.tabStatoOdpUdcTableAdapter.ClearBeforeFill = true; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(682, 386); + this.Controls.Add(this.reportViewer1); + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + ((System.ComponentModel.ISupportInitialize)(this.GMWDataSet)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.stp_getStatoByUdcBindingSource)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private Microsoft.Reporting.WinForms.ReportViewer reportViewer1; + private System.Windows.Forms.BindingSource stp_getStatoByUdcBindingSource; + private GMWDataSet GMWDataSet; + private GMW_Reports.GMWDataSetTableAdapters.TabStatoOdpUdcTableAdapter tabStatoOdpUdcTableAdapter; + } +} + diff --git a/GMW/GMW_Reports/Form1.cs b/GMW/GMW_Reports/Form1.cs new file mode 100644 index 00000000..9c6244cb --- /dev/null +++ b/GMW/GMW_Reports/Form1.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace GMW_Reports +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + // TODO: This line of code loads data into the 'GMWDataSet.TabStatoOdpUdc' table. You can move, or remove it, as needed. + this.tabStatoOdpUdcTableAdapter.Fill(this.GMWDataSet.TabStatoOdpUdc); + this.reportViewer1.RefreshReport(); + } + } +} \ No newline at end of file diff --git a/GMW/GMW_Reports/Form1.resx b/GMW/GMW_Reports/Form1.resx new file mode 100644 index 00000000..cba0334e --- /dev/null +++ b/GMW/GMW_Reports/Form1.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 142, 17 + + + 17, 17 + + + 375, 17 + + \ No newline at end of file diff --git a/GMW/GMW_Reports/GMWDataSet.Designer.cs b/GMW/GMW_Reports/GMWDataSet.Designer.cs new file mode 100644 index 00000000..49d155d4 --- /dev/null +++ b/GMW/GMW_Reports/GMWDataSet.Designer.cs @@ -0,0 +1,12363 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4927 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace GMW_Reports { + + + /// + ///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("GMWDataSet")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class GMWDataSet : global::System.Data.DataSet { + + private AnagArticoliDataTable tableAnagArticoli; + + private AnagBilanceDataTable tableAnagBilance; + + private AnagCompanyDataTable tableAnagCompany; + + private AnagImpiantiDataTable tableAnagImpianti; + + private AnagOdpDataTable tableAnagOdp; + + private AnagSitiDataTable tableAnagSiti; + + private AnagStatiDataTable tableAnagStati; + + private ContatoriUdcDataTable tableContatoriUdc; + + private Impianti2ArticoliDataTable tableImpianti2Articoli; + + private TabStatoOdpUdcDataTable tableTabStatoOdpUdc; + + private stp_getStatoByUdcDataTable tablestp_getStatoByUdc; + + private stp_insNewOdpUdcDataTable tablestp_insNewOdpUdc; + + private stp_updateByBilanciaDataTable tablestp_updateByBilancia; + + private global::System.Data.DataRelation relationFK_AnagBilance_AnagSiti; + + private global::System.Data.DataRelation relationFK_AnagImpianti_AnagSiti; + + private global::System.Data.DataRelation relationFK_AnagOdp_AnagCompany; + + private global::System.Data.DataRelation relationFK_AnagSiti_AnagCompany; + + private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli; + + private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti; + + private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagOdp; + + private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStati; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public GMWDataSet() { + 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 GMWDataSet(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["AnagArticoli"] != null)) { + base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"])); + } + if ((ds.Tables["AnagBilance"] != null)) { + base.Tables.Add(new AnagBilanceDataTable(ds.Tables["AnagBilance"])); + } + if ((ds.Tables["AnagCompany"] != null)) { + base.Tables.Add(new AnagCompanyDataTable(ds.Tables["AnagCompany"])); + } + if ((ds.Tables["AnagImpianti"] != null)) { + base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"])); + } + if ((ds.Tables["AnagOdp"] != null)) { + base.Tables.Add(new AnagOdpDataTable(ds.Tables["AnagOdp"])); + } + if ((ds.Tables["AnagSiti"] != null)) { + base.Tables.Add(new AnagSitiDataTable(ds.Tables["AnagSiti"])); + } + if ((ds.Tables["AnagStati"] != null)) { + base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"])); + } + if ((ds.Tables["ContatoriUdc"] != null)) { + base.Tables.Add(new ContatoriUdcDataTable(ds.Tables["ContatoriUdc"])); + } + if ((ds.Tables["Impianti2Articoli"] != null)) { + base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"])); + } + if ((ds.Tables["TabStatoOdpUdc"] != null)) { + base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"])); + } + if ((ds.Tables["stp_getStatoByUdc"] != null)) { + base.Tables.Add(new stp_getStatoByUdcDataTable(ds.Tables["stp_getStatoByUdc"])); + } + if ((ds.Tables["stp_insNewOdpUdc"] != null)) { + base.Tables.Add(new stp_insNewOdpUdcDataTable(ds.Tables["stp_insNewOdpUdc"])); + } + if ((ds.Tables["stp_updateByBilancia"] != null)) { + base.Tables.Add(new stp_updateByBilanciaDataTable(ds.Tables["stp_updateByBilancia"])); + } + 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 AnagArticoliDataTable AnagArticoli { + get { + return this.tableAnagArticoli; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagBilanceDataTable AnagBilance { + get { + return this.tableAnagBilance; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagCompanyDataTable AnagCompany { + get { + return this.tableAnagCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagImpiantiDataTable AnagImpianti { + get { + return this.tableAnagImpianti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagOdpDataTable AnagOdp { + get { + return this.tableAnagOdp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagSitiDataTable AnagSiti { + get { + return this.tableAnagSiti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagStatiDataTable AnagStati { + get { + return this.tableAnagStati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ContatoriUdcDataTable ContatoriUdc { + get { + return this.tableContatoriUdc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public Impianti2ArticoliDataTable Impianti2Articoli { + get { + return this.tableImpianti2Articoli; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TabStatoOdpUdcDataTable TabStatoOdpUdc { + get { + return this.tableTabStatoOdpUdc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_getStatoByUdcDataTable stp_getStatoByUdc { + get { + return this.tablestp_getStatoByUdc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_insNewOdpUdcDataTable stp_insNewOdpUdc { + get { + return this.tablestp_insNewOdpUdc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_updateByBilanciaDataTable stp_updateByBilancia { + get { + return this.tablestp_updateByBilancia; + } + } + + [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() { + GMWDataSet cln = ((GMWDataSet)(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["AnagArticoli"] != null)) { + base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"])); + } + if ((ds.Tables["AnagBilance"] != null)) { + base.Tables.Add(new AnagBilanceDataTable(ds.Tables["AnagBilance"])); + } + if ((ds.Tables["AnagCompany"] != null)) { + base.Tables.Add(new AnagCompanyDataTable(ds.Tables["AnagCompany"])); + } + if ((ds.Tables["AnagImpianti"] != null)) { + base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"])); + } + if ((ds.Tables["AnagOdp"] != null)) { + base.Tables.Add(new AnagOdpDataTable(ds.Tables["AnagOdp"])); + } + if ((ds.Tables["AnagSiti"] != null)) { + base.Tables.Add(new AnagSitiDataTable(ds.Tables["AnagSiti"])); + } + if ((ds.Tables["AnagStati"] != null)) { + base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"])); + } + if ((ds.Tables["ContatoriUdc"] != null)) { + base.Tables.Add(new ContatoriUdcDataTable(ds.Tables["ContatoriUdc"])); + } + if ((ds.Tables["Impianti2Articoli"] != null)) { + base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"])); + } + if ((ds.Tables["TabStatoOdpUdc"] != null)) { + base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"])); + } + if ((ds.Tables["stp_getStatoByUdc"] != null)) { + base.Tables.Add(new stp_getStatoByUdcDataTable(ds.Tables["stp_getStatoByUdc"])); + } + if ((ds.Tables["stp_insNewOdpUdc"] != null)) { + base.Tables.Add(new stp_insNewOdpUdcDataTable(ds.Tables["stp_insNewOdpUdc"])); + } + if ((ds.Tables["stp_updateByBilancia"] != null)) { + base.Tables.Add(new stp_updateByBilanciaDataTable(ds.Tables["stp_updateByBilancia"])); + } + 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.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"])); + if ((initTable == true)) { + if ((this.tableAnagArticoli != null)) { + this.tableAnagArticoli.InitVars(); + } + } + this.tableAnagBilance = ((AnagBilanceDataTable)(base.Tables["AnagBilance"])); + if ((initTable == true)) { + if ((this.tableAnagBilance != null)) { + this.tableAnagBilance.InitVars(); + } + } + this.tableAnagCompany = ((AnagCompanyDataTable)(base.Tables["AnagCompany"])); + if ((initTable == true)) { + if ((this.tableAnagCompany != null)) { + this.tableAnagCompany.InitVars(); + } + } + this.tableAnagImpianti = ((AnagImpiantiDataTable)(base.Tables["AnagImpianti"])); + if ((initTable == true)) { + if ((this.tableAnagImpianti != null)) { + this.tableAnagImpianti.InitVars(); + } + } + this.tableAnagOdp = ((AnagOdpDataTable)(base.Tables["AnagOdp"])); + if ((initTable == true)) { + if ((this.tableAnagOdp != null)) { + this.tableAnagOdp.InitVars(); + } + } + this.tableAnagSiti = ((AnagSitiDataTable)(base.Tables["AnagSiti"])); + if ((initTable == true)) { + if ((this.tableAnagSiti != null)) { + this.tableAnagSiti.InitVars(); + } + } + this.tableAnagStati = ((AnagStatiDataTable)(base.Tables["AnagStati"])); + if ((initTable == true)) { + if ((this.tableAnagStati != null)) { + this.tableAnagStati.InitVars(); + } + } + this.tableContatoriUdc = ((ContatoriUdcDataTable)(base.Tables["ContatoriUdc"])); + if ((initTable == true)) { + if ((this.tableContatoriUdc != null)) { + this.tableContatoriUdc.InitVars(); + } + } + this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(base.Tables["Impianti2Articoli"])); + if ((initTable == true)) { + if ((this.tableImpianti2Articoli != null)) { + this.tableImpianti2Articoli.InitVars(); + } + } + this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(base.Tables["TabStatoOdpUdc"])); + if ((initTable == true)) { + if ((this.tableTabStatoOdpUdc != null)) { + this.tableTabStatoOdpUdc.InitVars(); + } + } + this.tablestp_getStatoByUdc = ((stp_getStatoByUdcDataTable)(base.Tables["stp_getStatoByUdc"])); + if ((initTable == true)) { + if ((this.tablestp_getStatoByUdc != null)) { + this.tablestp_getStatoByUdc.InitVars(); + } + } + this.tablestp_insNewOdpUdc = ((stp_insNewOdpUdcDataTable)(base.Tables["stp_insNewOdpUdc"])); + if ((initTable == true)) { + if ((this.tablestp_insNewOdpUdc != null)) { + this.tablestp_insNewOdpUdc.InitVars(); + } + } + this.tablestp_updateByBilancia = ((stp_updateByBilanciaDataTable)(base.Tables["stp_updateByBilancia"])); + if ((initTable == true)) { + if ((this.tablestp_updateByBilancia != null)) { + this.tablestp_updateByBilancia.InitVars(); + } + } + this.relationFK_AnagBilance_AnagSiti = this.Relations["FK_AnagBilance_AnagSiti"]; + this.relationFK_AnagImpianti_AnagSiti = this.Relations["FK_AnagImpianti_AnagSiti"]; + this.relationFK_AnagOdp_AnagCompany = this.Relations["FK_AnagOdp_AnagCompany"]; + this.relationFK_AnagSiti_AnagCompany = this.Relations["FK_AnagSiti_AnagCompany"]; + this.relationFK_Impianti2Articoli_AnagArticoli = this.Relations["FK_Impianti2Articoli_AnagArticoli"]; + this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"]; + this.relationFK_TabStatoOdpUdc_AnagOdp = this.Relations["FK_TabStatoOdpUdc_AnagOdp"]; + this.relationFK_TabStatoOdpUdc_AnagStati = this.Relations["FK_TabStatoOdpUdc_AnagStati"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.DataSetName = "GMWDataSet"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/GMWDataSet.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableAnagArticoli = new AnagArticoliDataTable(); + base.Tables.Add(this.tableAnagArticoli); + this.tableAnagBilance = new AnagBilanceDataTable(); + base.Tables.Add(this.tableAnagBilance); + this.tableAnagCompany = new AnagCompanyDataTable(); + base.Tables.Add(this.tableAnagCompany); + this.tableAnagImpianti = new AnagImpiantiDataTable(); + base.Tables.Add(this.tableAnagImpianti); + this.tableAnagOdp = new AnagOdpDataTable(); + base.Tables.Add(this.tableAnagOdp); + this.tableAnagSiti = new AnagSitiDataTable(); + base.Tables.Add(this.tableAnagSiti); + this.tableAnagStati = new AnagStatiDataTable(); + base.Tables.Add(this.tableAnagStati); + this.tableContatoriUdc = new ContatoriUdcDataTable(); + base.Tables.Add(this.tableContatoriUdc); + this.tableImpianti2Articoli = new Impianti2ArticoliDataTable(); + base.Tables.Add(this.tableImpianti2Articoli); + this.tableTabStatoOdpUdc = new TabStatoOdpUdcDataTable(); + base.Tables.Add(this.tableTabStatoOdpUdc); + this.tablestp_getStatoByUdc = new stp_getStatoByUdcDataTable(); + base.Tables.Add(this.tablestp_getStatoByUdc); + this.tablestp_insNewOdpUdc = new stp_insNewOdpUdcDataTable(); + base.Tables.Add(this.tablestp_insNewOdpUdc); + this.tablestp_updateByBilancia = new stp_updateByBilanciaDataTable(); + base.Tables.Add(this.tablestp_updateByBilancia); + this.relationFK_AnagBilance_AnagSiti = new global::System.Data.DataRelation("FK_AnagBilance_AnagSiti", new global::System.Data.DataColumn[] { + this.tableAnagSiti.CodCompanyColumn, + this.tableAnagSiti.CodSitoColumn}, new global::System.Data.DataColumn[] { + this.tableAnagBilance.CodCompanyColumn, + this.tableAnagBilance.CodSitoColumn}, false); + this.Relations.Add(this.relationFK_AnagBilance_AnagSiti); + this.relationFK_AnagImpianti_AnagSiti = new global::System.Data.DataRelation("FK_AnagImpianti_AnagSiti", new global::System.Data.DataColumn[] { + this.tableAnagSiti.CodCompanyColumn, + this.tableAnagSiti.CodSitoColumn}, new global::System.Data.DataColumn[] { + this.tableAnagImpianti.CodCompanyColumn, + this.tableAnagImpianti.CodSitoColumn}, false); + this.Relations.Add(this.relationFK_AnagImpianti_AnagSiti); + this.relationFK_AnagOdp_AnagCompany = new global::System.Data.DataRelation("FK_AnagOdp_AnagCompany", new global::System.Data.DataColumn[] { + this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] { + this.tableAnagOdp.CodCompanyColumn}, false); + this.Relations.Add(this.relationFK_AnagOdp_AnagCompany); + this.relationFK_AnagSiti_AnagCompany = new global::System.Data.DataRelation("FK_AnagSiti_AnagCompany", new global::System.Data.DataColumn[] { + this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] { + this.tableAnagSiti.CodCompanyColumn}, false); + this.Relations.Add(this.relationFK_AnagSiti_AnagCompany); + this.relationFK_Impianti2Articoli_AnagArticoli = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli", new global::System.Data.DataColumn[] { + this.tableAnagArticoli.CodArticoloColumn}, new global::System.Data.DataColumn[] { + this.tableImpianti2Articoli.CodArticoloColumn}, false); + this.Relations.Add(this.relationFK_Impianti2Articoli_AnagArticoli); + this.relationFK_Impianti2Articoli_AnagImpianti = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagImpianti", new global::System.Data.DataColumn[] { + this.tableAnagImpianti.CodImpiantoColumn}, new global::System.Data.DataColumn[] { + this.tableImpianti2Articoli.CodImpiantoColumn}, false); + this.Relations.Add(this.relationFK_Impianti2Articoli_AnagImpianti); + this.relationFK_TabStatoOdpUdc_AnagOdp = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagOdp", new global::System.Data.DataColumn[] { + this.tableAnagOdp.CodCompanyColumn, + this.tableAnagOdp.ODPColumn}, new global::System.Data.DataColumn[] { + this.tableTabStatoOdpUdc.CodCompanyColumn, + this.tableTabStatoOdpUdc.ODPColumn}, false); + this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagOdp); + this.relationFK_TabStatoOdpUdc_AnagStati = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagStati", new global::System.Data.DataColumn[] { + this.tableAnagStati.IdxStatoColumn}, new global::System.Data.DataColumn[] { + this.tableTabStatoOdpUdc.IdxStatoColumn}, false); + this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStati); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagArticoli() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagBilance() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagCompany() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagImpianti() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagOdp() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagSiti() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagStati() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeContatoriUdc() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeImpianti2Articoli() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeTabStatoOdpUdc() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializestp_getStatoByUdc() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializestp_insNewOdpUdc() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializestp_updateByBilancia() { + 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) { + GMWDataSet ds = new GMWDataSet(); + 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 AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e); + + public delegate void AnagBilanceRowChangeEventHandler(object sender, AnagBilanceRowChangeEvent e); + + public delegate void AnagCompanyRowChangeEventHandler(object sender, AnagCompanyRowChangeEvent e); + + public delegate void AnagImpiantiRowChangeEventHandler(object sender, AnagImpiantiRowChangeEvent e); + + public delegate void AnagOdpRowChangeEventHandler(object sender, AnagOdpRowChangeEvent e); + + public delegate void AnagSitiRowChangeEventHandler(object sender, AnagSitiRowChangeEvent e); + + public delegate void AnagStatiRowChangeEventHandler(object sender, AnagStatiRowChangeEvent e); + + public delegate void ContatoriUdcRowChangeEventHandler(object sender, ContatoriUdcRowChangeEvent e); + + public delegate void Impianti2ArticoliRowChangeEventHandler(object sender, Impianti2ArticoliRowChangeEvent e); + + public delegate void TabStatoOdpUdcRowChangeEventHandler(object sender, TabStatoOdpUdcRowChangeEvent e); + + public delegate void stp_getStatoByUdcRowChangeEventHandler(object sender, stp_getStatoByUdcRowChangeEvent e); + + public delegate void stp_insNewOdpUdcRowChangeEventHandler(object sender, stp_insNewOdpUdcRowChangeEvent e); + + public delegate void stp_updateByBilanciaRowChangeEventHandler(object sender, stp_updateByBilanciaRowChangeEvent 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 AnagArticoliDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnDescrArticolo; + + private global::System.Data.DataColumn columnFigura; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliDataTable() { + this.TableName = "AnagArticoli"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagArticoliDataTable(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 AnagArticoliDataTable(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 CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrArticoloColumn { + get { + return this.columnDescrArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn FiguraColumn { + get { + return this.columnFigura; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRow this[int index] { + get { + return ((AnagArticoliRow)(this.Rows[index])); + } + } + + public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanging; + + public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanged; + + public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleting; + + public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagArticoliRow(AnagArticoliRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRow AddAnagArticoliRow(string CodArticolo, string DescrArticolo, string Figura) { + AnagArticoliRow rowAnagArticoliRow = ((AnagArticoliRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodArticolo, + DescrArticolo, + Figura}; + rowAnagArticoliRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagArticoliRow); + return rowAnagArticoliRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRow FindByCodArticolo(string CodArticolo) { + return ((AnagArticoliRow)(this.Rows.Find(new object[] { + CodArticolo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagArticoliDataTable cln = ((AnagArticoliDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagArticoliDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnDescrArticolo = base.Columns["DescrArticolo"]; + this.columnFigura = base.Columns["Figura"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnDescrArticolo = new global::System.Data.DataColumn("DescrArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrArticolo); + this.columnFigura = new global::System.Data.DataColumn("Figura", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFigura); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodArticolo}, true)); + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.Unique = true; + this.columnCodArticolo.MaxLength = 50; + this.columnDescrArticolo.MaxLength = 50; + this.columnFigura.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRow NewAnagArticoliRow() { + return ((AnagArticoliRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagArticoliRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagArticoliRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagArticoliRowChanged != null)) { + this.AnagArticoliRowChanged(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagArticoliRowChanging != null)) { + this.AnagArticoliRowChanging(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagArticoliRowDeleted != null)) { + this.AnagArticoliRowDeleted(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagArticoliRowDeleting != null)) { + this.AnagArticoliRowDeleting(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagArticoliRow(AnagArticoliRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagArticoliDataTable"; + 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 AnagBilanceDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodBilancia; + + private global::System.Data.DataColumn columnDescrImpianto; + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnCodSito; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceDataTable() { + this.TableName = "AnagBilance"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagBilanceDataTable(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 AnagBilanceDataTable(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 CodBilanciaColumn { + get { + return this.columnCodBilancia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrImpiantoColumn { + get { + return this.columnDescrImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodSitoColumn { + get { + return this.columnCodSito; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRow this[int index] { + get { + return ((AnagBilanceRow)(this.Rows[index])); + } + } + + public event AnagBilanceRowChangeEventHandler AnagBilanceRowChanging; + + public event AnagBilanceRowChangeEventHandler AnagBilanceRowChanged; + + public event AnagBilanceRowChangeEventHandler AnagBilanceRowDeleting; + + public event AnagBilanceRowChangeEventHandler AnagBilanceRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagBilanceRow(AnagBilanceRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRow AddAnagBilanceRow(string CodBilancia, string DescrImpianto, string CodCompany, string CodSito) { + AnagBilanceRow rowAnagBilanceRow = ((AnagBilanceRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodBilancia, + DescrImpianto, + CodCompany, + CodSito}; + rowAnagBilanceRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagBilanceRow); + return rowAnagBilanceRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRow FindByCodBilancia(string CodBilancia) { + return ((AnagBilanceRow)(this.Rows.Find(new object[] { + CodBilancia}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagBilanceDataTable cln = ((AnagBilanceDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagBilanceDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodBilancia = base.Columns["CodBilancia"]; + this.columnDescrImpianto = base.Columns["DescrImpianto"]; + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnCodSito = base.Columns["CodSito"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodBilancia = new global::System.Data.DataColumn("CodBilancia", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodBilancia); + this.columnDescrImpianto = new global::System.Data.DataColumn("DescrImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrImpianto); + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodSito); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodBilancia}, true)); + this.columnCodBilancia.AllowDBNull = false; + this.columnCodBilancia.Unique = true; + this.columnCodBilancia.MaxLength = 50; + this.columnDescrImpianto.MaxLength = 50; + this.columnCodCompany.MaxLength = 4; + this.columnCodSito.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRow NewAnagBilanceRow() { + return ((AnagBilanceRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagBilanceRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagBilanceRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagBilanceRowChanged != null)) { + this.AnagBilanceRowChanged(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagBilanceRowChanging != null)) { + this.AnagBilanceRowChanging(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagBilanceRowDeleted != null)) { + this.AnagBilanceRowDeleted(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagBilanceRowDeleting != null)) { + this.AnagBilanceRowDeleting(this, new AnagBilanceRowChangeEvent(((AnagBilanceRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagBilanceRow(AnagBilanceRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagBilanceDataTable"; + 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 AnagCompanyDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnDescrCompany; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyDataTable() { + this.TableName = "AnagCompany"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagCompanyDataTable(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 AnagCompanyDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrCompanyColumn { + get { + return this.columnDescrCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow this[int index] { + get { + return ((AnagCompanyRow)(this.Rows[index])); + } + } + + public event AnagCompanyRowChangeEventHandler AnagCompanyRowChanging; + + public event AnagCompanyRowChangeEventHandler AnagCompanyRowChanged; + + public event AnagCompanyRowChangeEventHandler AnagCompanyRowDeleting; + + public event AnagCompanyRowChangeEventHandler AnagCompanyRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagCompanyRow(AnagCompanyRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow AddAnagCompanyRow(string CodCompany, string DescrCompany) { + AnagCompanyRow rowAnagCompanyRow = ((AnagCompanyRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCompany, + DescrCompany}; + rowAnagCompanyRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagCompanyRow); + return rowAnagCompanyRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow FindByCodCompany(string CodCompany) { + return ((AnagCompanyRow)(this.Rows.Find(new object[] { + CodCompany}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagCompanyDataTable cln = ((AnagCompanyDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagCompanyDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnDescrCompany = base.Columns["DescrCompany"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnDescrCompany = new global::System.Data.DataColumn("DescrCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrCompany); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.Unique = true; + this.columnCodCompany.MaxLength = 4; + this.columnDescrCompany.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow NewAnagCompanyRow() { + return ((AnagCompanyRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagCompanyRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagCompanyRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagCompanyRowChanged != null)) { + this.AnagCompanyRowChanged(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagCompanyRowChanging != null)) { + this.AnagCompanyRowChanging(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagCompanyRowDeleted != null)) { + this.AnagCompanyRowDeleted(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagCompanyRowDeleting != null)) { + this.AnagCompanyRowDeleting(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagCompanyRow(AnagCompanyRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagCompanyDataTable"; + 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 AnagImpiantiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodImpianto; + + private global::System.Data.DataColumn columnDescrImpianto; + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnCodSito; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiDataTable() { + this.TableName = "AnagImpianti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagImpiantiDataTable(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 AnagImpiantiDataTable(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 CodImpiantoColumn { + get { + return this.columnCodImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrImpiantoColumn { + get { + return this.columnDescrImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodSitoColumn { + get { + return this.columnCodSito; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow this[int index] { + get { + return ((AnagImpiantiRow)(this.Rows[index])); + } + } + + public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanging; + + public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanged; + + public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleting; + + public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagImpiantiRow(AnagImpiantiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow AddAnagImpiantiRow(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito) { + AnagImpiantiRow rowAnagImpiantiRow = ((AnagImpiantiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodImpianto, + DescrImpianto, + CodCompany, + CodSito}; + rowAnagImpiantiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagImpiantiRow); + return rowAnagImpiantiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow FindByCodImpianto(string CodImpianto) { + return ((AnagImpiantiRow)(this.Rows.Find(new object[] { + CodImpianto}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagImpiantiDataTable cln = ((AnagImpiantiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagImpiantiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodImpianto = base.Columns["CodImpianto"]; + this.columnDescrImpianto = base.Columns["DescrImpianto"]; + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnCodSito = base.Columns["CodSito"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImpianto); + this.columnDescrImpianto = new global::System.Data.DataColumn("DescrImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrImpianto); + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodSito); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodImpianto}, true)); + this.columnCodImpianto.AllowDBNull = false; + this.columnCodImpianto.Unique = true; + this.columnCodImpianto.MaxLength = 50; + this.columnDescrImpianto.MaxLength = 50; + this.columnCodCompany.MaxLength = 4; + this.columnCodSito.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow NewAnagImpiantiRow() { + return ((AnagImpiantiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagImpiantiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagImpiantiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagImpiantiRowChanged != null)) { + this.AnagImpiantiRowChanged(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagImpiantiRowChanging != null)) { + this.AnagImpiantiRowChanging(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagImpiantiRowDeleted != null)) { + this.AnagImpiantiRowDeleted(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagImpiantiRowDeleting != null)) { + this.AnagImpiantiRowDeleting(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagImpiantiRow(AnagImpiantiRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagImpiantiDataTable"; + 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 AnagOdpDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnODP; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnCodDisegno; + + private global::System.Data.DataColumn columnEsponente; + + private global::System.Data.DataColumn columnMagazzino; + + private global::System.Data.DataColumn columnUbicazione; + + private global::System.Data.DataColumn columnCreateDate; + + private global::System.Data.DataColumn columnModDate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpDataTable() { + this.TableName = "AnagOdp"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagOdpDataTable(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 AnagOdpDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ODPColumn { + get { + return this.columnODP; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodDisegnoColumn { + get { + return this.columnCodDisegno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn EsponenteColumn { + get { + return this.columnEsponente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn MagazzinoColumn { + get { + return this.columnMagazzino; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn UbicazioneColumn { + get { + return this.columnUbicazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CreateDateColumn { + get { + return this.columnCreateDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ModDateColumn { + get { + return this.columnModDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow this[int index] { + get { + return ((AnagOdpRow)(this.Rows[index])); + } + } + + public event AnagOdpRowChangeEventHandler AnagOdpRowChanging; + + public event AnagOdpRowChangeEventHandler AnagOdpRowChanged; + + public event AnagOdpRowChangeEventHandler AnagOdpRowDeleting; + + public event AnagOdpRowChangeEventHandler AnagOdpRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagOdpRow(AnagOdpRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow AddAnagOdpRow(AnagCompanyRow parentAnagCompanyRowByFK_AnagOdp_AnagCompany, string ODP, string CodArticolo, string CodDisegno, string Esponente, string Magazzino, string Ubicazione, System.DateTime CreateDate, System.DateTime ModDate) { + AnagOdpRow rowAnagOdpRow = ((AnagOdpRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + ODP, + CodArticolo, + CodDisegno, + Esponente, + Magazzino, + Ubicazione, + CreateDate, + ModDate}; + if ((parentAnagCompanyRowByFK_AnagOdp_AnagCompany != null)) { + columnValuesArray[0] = parentAnagCompanyRowByFK_AnagOdp_AnagCompany[0]; + } + rowAnagOdpRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagOdpRow); + return rowAnagOdpRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow FindByCodCompanyODP(string CodCompany, string ODP) { + return ((AnagOdpRow)(this.Rows.Find(new object[] { + CodCompany, + ODP}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagOdpDataTable cln = ((AnagOdpDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagOdpDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnODP = base.Columns["ODP"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnCodDisegno = base.Columns["CodDisegno"]; + this.columnEsponente = base.Columns["Esponente"]; + this.columnMagazzino = base.Columns["Magazzino"]; + this.columnUbicazione = base.Columns["Ubicazione"]; + this.columnCreateDate = base.Columns["CreateDate"]; + this.columnModDate = base.Columns["ModDate"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnODP); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnCodDisegno = new global::System.Data.DataColumn("CodDisegno", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodDisegno); + this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEsponente); + this.columnMagazzino = new global::System.Data.DataColumn("Magazzino", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMagazzino); + this.columnUbicazione = new global::System.Data.DataColumn("Ubicazione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUbicazione); + this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreateDate); + this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModDate); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnODP}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 4; + this.columnODP.AllowDBNull = false; + this.columnODP.MaxLength = 20; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 20; + this.columnCodDisegno.AllowDBNull = false; + this.columnCodDisegno.MaxLength = 10; + this.columnEsponente.AllowDBNull = false; + this.columnEsponente.MaxLength = 20; + this.columnMagazzino.AllowDBNull = false; + this.columnMagazzino.MaxLength = 10; + this.columnUbicazione.AllowDBNull = false; + this.columnUbicazione.MaxLength = 10; + this.columnCreateDate.AllowDBNull = false; + this.columnModDate.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow NewAnagOdpRow() { + return ((AnagOdpRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagOdpRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagOdpRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagOdpRowChanged != null)) { + this.AnagOdpRowChanged(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagOdpRowChanging != null)) { + this.AnagOdpRowChanging(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagOdpRowDeleted != null)) { + this.AnagOdpRowDeleted(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagOdpRowDeleting != null)) { + this.AnagOdpRowDeleting(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagOdpRow(AnagOdpRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagOdpDataTable"; + 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 AnagSitiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnCodSito; + + private global::System.Data.DataColumn columnDescrSito; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiDataTable() { + this.TableName = "AnagSiti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagSitiDataTable(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 AnagSitiDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodSitoColumn { + get { + return this.columnCodSito; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrSitoColumn { + get { + return this.columnDescrSito; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow this[int index] { + get { + return ((AnagSitiRow)(this.Rows[index])); + } + } + + public event AnagSitiRowChangeEventHandler AnagSitiRowChanging; + + public event AnagSitiRowChangeEventHandler AnagSitiRowChanged; + + public event AnagSitiRowChangeEventHandler AnagSitiRowDeleting; + + public event AnagSitiRowChangeEventHandler AnagSitiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagSitiRow(AnagSitiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow AddAnagSitiRow(AnagCompanyRow parentAnagCompanyRowByFK_AnagSiti_AnagCompany, string CodSito, string DescrSito) { + AnagSitiRow rowAnagSitiRow = ((AnagSitiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + CodSito, + DescrSito}; + if ((parentAnagCompanyRowByFK_AnagSiti_AnagCompany != null)) { + columnValuesArray[0] = parentAnagCompanyRowByFK_AnagSiti_AnagCompany[0]; + } + rowAnagSitiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagSitiRow); + return rowAnagSitiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow FindByCodCompanyCodSito(string CodCompany, string CodSito) { + return ((AnagSitiRow)(this.Rows.Find(new object[] { + CodCompany, + CodSito}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagSitiDataTable cln = ((AnagSitiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagSitiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnCodSito = base.Columns["CodSito"]; + this.columnDescrSito = base.Columns["DescrSito"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodSito); + this.columnDescrSito = new global::System.Data.DataColumn("DescrSito", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrSito); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnCodSito}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 4; + this.columnCodSito.AllowDBNull = false; + this.columnCodSito.MaxLength = 10; + this.columnDescrSito.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow NewAnagSitiRow() { + return ((AnagSitiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagSitiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagSitiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagSitiRowChanged != null)) { + this.AnagSitiRowChanged(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagSitiRowChanging != null)) { + this.AnagSitiRowChanging(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagSitiRowDeleted != null)) { + this.AnagSitiRowDeleted(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagSitiRowDeleting != null)) { + this.AnagSitiRowDeleting(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagSitiRow(AnagSitiRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagSitiDataTable"; + 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 AnagStatiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnDescrStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiDataTable() { + this.TableName = "AnagStati"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagStatiDataTable(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 AnagStatiDataTable(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 IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrStatoColumn { + get { + return this.columnDescrStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRow this[int index] { + get { + return ((AnagStatiRow)(this.Rows[index])); + } + } + + public event AnagStatiRowChangeEventHandler AnagStatiRowChanging; + + public event AnagStatiRowChangeEventHandler AnagStatiRowChanged; + + public event AnagStatiRowChangeEventHandler AnagStatiRowDeleting; + + public event AnagStatiRowChangeEventHandler AnagStatiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagStatiRow(AnagStatiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRow AddAnagStatiRow(int IdxStato, string DescrStato) { + AnagStatiRow rowAnagStatiRow = ((AnagStatiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxStato, + DescrStato}; + rowAnagStatiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagStatiRow); + return rowAnagStatiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRow FindByIdxStato(int IdxStato) { + return ((AnagStatiRow)(this.Rows.Find(new object[] { + IdxStato}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagStatiDataTable cln = ((AnagStatiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagStatiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnDescrStato = base.Columns["DescrStato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnDescrStato = new global::System.Data.DataColumn("DescrStato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrStato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxStato}, true)); + this.columnIdxStato.AllowDBNull = false; + this.columnIdxStato.Unique = true; + this.columnDescrStato.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRow NewAnagStatiRow() { + return ((AnagStatiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagStatiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagStatiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagStatiRowChanged != null)) { + this.AnagStatiRowChanged(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagStatiRowChanging != null)) { + this.AnagStatiRowChanging(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagStatiRowDeleted != null)) { + this.AnagStatiRowDeleted(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagStatiRowDeleting != null)) { + this.AnagStatiRowDeleting(this, new AnagStatiRowChangeEvent(((AnagStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagStatiRow(AnagStatiRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "AnagStatiDataTable"; + 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 ContatoriUdcDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnFlusso; + + private global::System.Data.DataColumn columnAnno; + + private global::System.Data.DataColumn columnLastIdx; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcDataTable() { + this.TableName = "ContatoriUdc"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal ContatoriUdcDataTable(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 ContatoriUdcDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn FlussoColumn { + get { + return this.columnFlusso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn AnnoColumn { + get { + return this.columnAnno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn LastIdxColumn { + get { + return this.columnLastIdx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcRow this[int index] { + get { + return ((ContatoriUdcRow)(this.Rows[index])); + } + } + + public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowChanging; + + public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowChanged; + + public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowDeleting; + + public event ContatoriUdcRowChangeEventHandler ContatoriUdcRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddContatoriUdcRow(ContatoriUdcRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcRow AddContatoriUdcRow(string CodCompany, string Flusso, string Anno, int LastIdx) { + ContatoriUdcRow rowContatoriUdcRow = ((ContatoriUdcRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCompany, + Flusso, + Anno, + LastIdx}; + rowContatoriUdcRow.ItemArray = columnValuesArray; + this.Rows.Add(rowContatoriUdcRow); + return rowContatoriUdcRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcRow FindByCodCompanyFlussoAnno(string CodCompany, string Flusso, string Anno) { + return ((ContatoriUdcRow)(this.Rows.Find(new object[] { + CodCompany, + Flusso, + Anno}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + ContatoriUdcDataTable cln = ((ContatoriUdcDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new ContatoriUdcDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnFlusso = base.Columns["Flusso"]; + this.columnAnno = base.Columns["Anno"]; + this.columnLastIdx = base.Columns["LastIdx"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnFlusso = new global::System.Data.DataColumn("Flusso", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFlusso); + this.columnAnno = new global::System.Data.DataColumn("Anno", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAnno); + this.columnLastIdx = new global::System.Data.DataColumn("LastIdx", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLastIdx); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnFlusso, + this.columnAnno}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 2; + this.columnFlusso.AllowDBNull = false; + this.columnFlusso.MaxLength = 2; + this.columnAnno.AllowDBNull = false; + this.columnAnno.MaxLength = 2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcRow NewContatoriUdcRow() { + return ((ContatoriUdcRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ContatoriUdcRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(ContatoriUdcRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ContatoriUdcRowChanged != null)) { + this.ContatoriUdcRowChanged(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ContatoriUdcRowChanging != null)) { + this.ContatoriUdcRowChanging(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ContatoriUdcRowDeleted != null)) { + this.ContatoriUdcRowDeleted(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ContatoriUdcRowDeleting != null)) { + this.ContatoriUdcRowDeleting(this, new ContatoriUdcRowChangeEvent(((ContatoriUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveContatoriUdcRow(ContatoriUdcRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "ContatoriUdcDataTable"; + 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 Impianti2ArticoliDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodImpianto; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnInizioProd; + + private global::System.Data.DataColumn columnFineProd; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliDataTable() { + this.TableName = "Impianti2Articoli"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal Impianti2ArticoliDataTable(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 Impianti2ArticoliDataTable(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 CodImpiantoColumn { + get { + return this.columnCodImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn InizioProdColumn { + get { + return this.columnInizioProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn FineProdColumn { + get { + return this.columnFineProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow this[int index] { + get { + return ((Impianti2ArticoliRow)(this.Rows[index])); + } + } + + public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanging; + + public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanged; + + public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleting; + + public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddImpianti2ArticoliRow(Impianti2ArticoliRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow AddImpianti2ArticoliRow(AnagImpiantiRow parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti, AnagArticoliRow parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli, System.DateTime InizioProd, System.DateTime FineProd) { + Impianti2ArticoliRow rowImpianti2ArticoliRow = ((Impianti2ArticoliRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + null, + InizioProd, + FineProd}; + if ((parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti != null)) { + columnValuesArray[0] = parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti[0]; + } + if ((parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli != null)) { + columnValuesArray[1] = parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli[0]; + } + rowImpianti2ArticoliRow.ItemArray = columnValuesArray; + this.Rows.Add(rowImpianti2ArticoliRow); + return rowImpianti2ArticoliRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow FindByCodImpiantoCodArticoloInizioProd(string CodImpianto, string CodArticolo, System.DateTime InizioProd) { + return ((Impianti2ArticoliRow)(this.Rows.Find(new object[] { + CodImpianto, + CodArticolo, + InizioProd}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + Impianti2ArticoliDataTable cln = ((Impianti2ArticoliDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new Impianti2ArticoliDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodImpianto = base.Columns["CodImpianto"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnInizioProd = base.Columns["InizioProd"]; + this.columnFineProd = base.Columns["FineProd"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImpianto); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnInizioProd = new global::System.Data.DataColumn("InizioProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioProd); + this.columnFineProd = new global::System.Data.DataColumn("FineProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFineProd); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodImpianto, + this.columnCodArticolo, + this.columnInizioProd}, true)); + this.columnCodImpianto.AllowDBNull = false; + this.columnCodImpianto.MaxLength = 50; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnInizioProd.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow NewImpianti2ArticoliRow() { + return ((Impianti2ArticoliRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new Impianti2ArticoliRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(Impianti2ArticoliRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.Impianti2ArticoliRowChanged != null)) { + this.Impianti2ArticoliRowChanged(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.Impianti2ArticoliRowChanging != null)) { + this.Impianti2ArticoliRowChanging(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.Impianti2ArticoliRowDeleted != null)) { + this.Impianti2ArticoliRowDeleted(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.Impianti2ArticoliRowDeleting != null)) { + this.Impianti2ArticoliRowDeleting(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveImpianti2ArticoliRow(Impianti2ArticoliRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "Impianti2ArticoliDataTable"; + 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 TabStatoOdpUdcDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnODP; + + private global::System.Data.DataColumn columnUDC; + + private global::System.Data.DataColumn columnTara; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnQta; + + private global::System.Data.DataColumn columnCodImballo; + + private global::System.Data.DataColumn columnCreateDate; + + private global::System.Data.DataColumn columnModDate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcDataTable() { + this.TableName = "TabStatoOdpUdc"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal TabStatoOdpUdcDataTable(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 TabStatoOdpUdcDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ODPColumn { + get { + return this.columnODP; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn UDCColumn { + get { + return this.columnUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn TaraColumn { + get { + return this.columnTara; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn QtaColumn { + get { + return this.columnQta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodImballoColumn { + get { + return this.columnCodImballo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CreateDateColumn { + get { + return this.columnCreateDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ModDateColumn { + get { + return this.columnModDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow this[int index] { + get { + return ((TabStatoOdpUdcRow)(this.Rows[index])); + } + } + + public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanging; + + public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanged; + + public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleting; + + public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddTabStatoOdpUdcRow(TabStatoOdpUdcRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow AddTabStatoOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) { + TabStatoOdpUdcRow rowTabStatoOdpUdcRow = ((TabStatoOdpUdcRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCompany, + ODP, + UDC, + Tara, + null, + Qta, + CodImballo, + CreateDate, + ModDate}; + if ((parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati != null)) { + columnValuesArray[4] = parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati[0]; + } + rowTabStatoOdpUdcRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTabStatoOdpUdcRow); + return rowTabStatoOdpUdcRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) { + return ((TabStatoOdpUdcRow)(this.Rows.Find(new object[] { + CodCompany, + ODP, + UDC}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + TabStatoOdpUdcDataTable cln = ((TabStatoOdpUdcDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new TabStatoOdpUdcDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnODP = base.Columns["ODP"]; + this.columnUDC = base.Columns["UDC"]; + this.columnTara = base.Columns["Tara"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnQta = base.Columns["Qta"]; + this.columnCodImballo = base.Columns["CodImballo"]; + this.columnCreateDate = base.Columns["CreateDate"]; + this.columnModDate = base.Columns["ModDate"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnODP); + this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUDC); + this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTara); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQta); + this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImballo); + this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreateDate); + this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModDate); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnODP, + this.columnUDC}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 4; + this.columnODP.AllowDBNull = false; + this.columnODP.MaxLength = 20; + this.columnUDC.AllowDBNull = false; + this.columnUDC.MaxLength = 50; + this.columnCodImballo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow NewTabStatoOdpUdcRow() { + return ((TabStatoOdpUdcRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TabStatoOdpUdcRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(TabStatoOdpUdcRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TabStatoOdpUdcRowChanged != null)) { + this.TabStatoOdpUdcRowChanged(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TabStatoOdpUdcRowChanging != null)) { + this.TabStatoOdpUdcRowChanging(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TabStatoOdpUdcRowDeleted != null)) { + this.TabStatoOdpUdcRowDeleted(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TabStatoOdpUdcRowDeleting != null)) { + this.TabStatoOdpUdcRowDeleting(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveTabStatoOdpUdcRow(TabStatoOdpUdcRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "TabStatoOdpUdcDataTable"; + 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 stp_getStatoByUdcDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnODP; + + private global::System.Data.DataColumn columnUDC; + + private global::System.Data.DataColumn columnTara; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnQta; + + private global::System.Data.DataColumn columnCodImballo; + + private global::System.Data.DataColumn columnCreateDate; + + private global::System.Data.DataColumn columnModDate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcDataTable() { + this.TableName = "stp_getStatoByUdc"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal stp_getStatoByUdcDataTable(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 stp_getStatoByUdcDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ODPColumn { + get { + return this.columnODP; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn UDCColumn { + get { + return this.columnUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn TaraColumn { + get { + return this.columnTara; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn QtaColumn { + get { + return this.columnQta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodImballoColumn { + get { + return this.columnCodImballo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CreateDateColumn { + get { + return this.columnCreateDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ModDateColumn { + get { + return this.columnModDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcRow this[int index] { + get { + return ((stp_getStatoByUdcRow)(this.Rows[index])); + } + } + + public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowChanging; + + public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowChanged; + + public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowDeleting; + + public event stp_getStatoByUdcRowChangeEventHandler stp_getStatoByUdcRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addstp_getStatoByUdcRow(stp_getStatoByUdcRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcRow Addstp_getStatoByUdcRow(string CodCompany, string ODP, string UDC, double Tara, int IdxStato, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) { + stp_getStatoByUdcRow rowstp_getStatoByUdcRow = ((stp_getStatoByUdcRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCompany, + ODP, + UDC, + Tara, + IdxStato, + Qta, + CodImballo, + CreateDate, + ModDate}; + rowstp_getStatoByUdcRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_getStatoByUdcRow); + return rowstp_getStatoByUdcRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) { + return ((stp_getStatoByUdcRow)(this.Rows.Find(new object[] { + CodCompany, + ODP, + UDC}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + stp_getStatoByUdcDataTable cln = ((stp_getStatoByUdcDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_getStatoByUdcDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnODP = base.Columns["ODP"]; + this.columnUDC = base.Columns["UDC"]; + this.columnTara = base.Columns["Tara"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnQta = base.Columns["Qta"]; + this.columnCodImballo = base.Columns["CodImballo"]; + this.columnCreateDate = base.Columns["CreateDate"]; + this.columnModDate = base.Columns["ModDate"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnODP); + this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUDC); + this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTara); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQta); + this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImballo); + this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreateDate); + this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModDate); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnODP, + this.columnUDC}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 4; + this.columnODP.AllowDBNull = false; + this.columnODP.MaxLength = 20; + this.columnUDC.AllowDBNull = false; + this.columnUDC.MaxLength = 50; + this.columnCodImballo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcRow Newstp_getStatoByUdcRow() { + return ((stp_getStatoByUdcRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_getStatoByUdcRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(stp_getStatoByUdcRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_getStatoByUdcRowChanged != null)) { + this.stp_getStatoByUdcRowChanged(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_getStatoByUdcRowChanging != null)) { + this.stp_getStatoByUdcRowChanging(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_getStatoByUdcRowDeleted != null)) { + this.stp_getStatoByUdcRowDeleted(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_getStatoByUdcRowDeleting != null)) { + this.stp_getStatoByUdcRowDeleting(this, new stp_getStatoByUdcRowChangeEvent(((stp_getStatoByUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removestp_getStatoByUdcRow(stp_getStatoByUdcRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "stp_getStatoByUdcDataTable"; + 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 stp_insNewOdpUdcDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnODP; + + private global::System.Data.DataColumn columnUDC; + + private global::System.Data.DataColumn columnTara; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnQta; + + private global::System.Data.DataColumn columnCodImballo; + + private global::System.Data.DataColumn columnCreateDate; + + private global::System.Data.DataColumn columnModDate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcDataTable() { + this.TableName = "stp_insNewOdpUdc"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal stp_insNewOdpUdcDataTable(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 stp_insNewOdpUdcDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ODPColumn { + get { + return this.columnODP; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn UDCColumn { + get { + return this.columnUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn TaraColumn { + get { + return this.columnTara; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn QtaColumn { + get { + return this.columnQta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodImballoColumn { + get { + return this.columnCodImballo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CreateDateColumn { + get { + return this.columnCreateDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ModDateColumn { + get { + return this.columnModDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcRow this[int index] { + get { + return ((stp_insNewOdpUdcRow)(this.Rows[index])); + } + } + + public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowChanging; + + public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowChanged; + + public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowDeleting; + + public event stp_insNewOdpUdcRowChangeEventHandler stp_insNewOdpUdcRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addstp_insNewOdpUdcRow(stp_insNewOdpUdcRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcRow Addstp_insNewOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, int IdxStato, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) { + stp_insNewOdpUdcRow rowstp_insNewOdpUdcRow = ((stp_insNewOdpUdcRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCompany, + ODP, + UDC, + Tara, + IdxStato, + Qta, + CodImballo, + CreateDate, + ModDate}; + rowstp_insNewOdpUdcRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_insNewOdpUdcRow); + return rowstp_insNewOdpUdcRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) { + return ((stp_insNewOdpUdcRow)(this.Rows.Find(new object[] { + CodCompany, + ODP, + UDC}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + stp_insNewOdpUdcDataTable cln = ((stp_insNewOdpUdcDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_insNewOdpUdcDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnODP = base.Columns["ODP"]; + this.columnUDC = base.Columns["UDC"]; + this.columnTara = base.Columns["Tara"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnQta = base.Columns["Qta"]; + this.columnCodImballo = base.Columns["CodImballo"]; + this.columnCreateDate = base.Columns["CreateDate"]; + this.columnModDate = base.Columns["ModDate"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnODP); + this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUDC); + this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTara); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQta); + this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImballo); + this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreateDate); + this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModDate); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnODP, + this.columnUDC}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 4; + this.columnODP.AllowDBNull = false; + this.columnODP.MaxLength = 20; + this.columnUDC.AllowDBNull = false; + this.columnUDC.MaxLength = 50; + this.columnCodImballo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcRow Newstp_insNewOdpUdcRow() { + return ((stp_insNewOdpUdcRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_insNewOdpUdcRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(stp_insNewOdpUdcRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_insNewOdpUdcRowChanged != null)) { + this.stp_insNewOdpUdcRowChanged(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_insNewOdpUdcRowChanging != null)) { + this.stp_insNewOdpUdcRowChanging(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_insNewOdpUdcRowDeleted != null)) { + this.stp_insNewOdpUdcRowDeleted(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_insNewOdpUdcRowDeleting != null)) { + this.stp_insNewOdpUdcRowDeleting(this, new stp_insNewOdpUdcRowChangeEvent(((stp_insNewOdpUdcRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removestp_insNewOdpUdcRow(stp_insNewOdpUdcRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "stp_insNewOdpUdcDataTable"; + 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 stp_updateByBilanciaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCompany; + + private global::System.Data.DataColumn columnODP; + + private global::System.Data.DataColumn columnUDC; + + private global::System.Data.DataColumn columnTara; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnQta; + + private global::System.Data.DataColumn columnCodImballo; + + private global::System.Data.DataColumn columnCreateDate; + + private global::System.Data.DataColumn columnModDate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaDataTable() { + this.TableName = "stp_updateByBilancia"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal stp_updateByBilanciaDataTable(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 stp_updateByBilanciaDataTable(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 CodCompanyColumn { + get { + return this.columnCodCompany; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ODPColumn { + get { + return this.columnODP; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn UDCColumn { + get { + return this.columnUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn TaraColumn { + get { + return this.columnTara; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn QtaColumn { + get { + return this.columnQta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodImballoColumn { + get { + return this.columnCodImballo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CreateDateColumn { + get { + return this.columnCreateDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn ModDateColumn { + get { + return this.columnModDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaRow this[int index] { + get { + return ((stp_updateByBilanciaRow)(this.Rows[index])); + } + } + + public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowChanging; + + public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowChanged; + + public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowDeleting; + + public event stp_updateByBilanciaRowChangeEventHandler stp_updateByBilanciaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addstp_updateByBilanciaRow(stp_updateByBilanciaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaRow Addstp_updateByBilanciaRow(string CodCompany, string ODP, string UDC, double Tara, int IdxStato, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) { + stp_updateByBilanciaRow rowstp_updateByBilanciaRow = ((stp_updateByBilanciaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCompany, + ODP, + UDC, + Tara, + IdxStato, + Qta, + CodImballo, + CreateDate, + ModDate}; + rowstp_updateByBilanciaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_updateByBilanciaRow); + return rowstp_updateByBilanciaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) { + return ((stp_updateByBilanciaRow)(this.Rows.Find(new object[] { + CodCompany, + ODP, + UDC}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + stp_updateByBilanciaDataTable cln = ((stp_updateByBilanciaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_updateByBilanciaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodCompany = base.Columns["CodCompany"]; + this.columnODP = base.Columns["ODP"]; + this.columnUDC = base.Columns["UDC"]; + this.columnTara = base.Columns["Tara"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnQta = base.Columns["Qta"]; + this.columnCodImballo = base.Columns["CodImballo"]; + this.columnCreateDate = base.Columns["CreateDate"]; + this.columnModDate = base.Columns["ModDate"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCompany); + this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnODP); + this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUDC); + this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTara); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQta); + this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodImballo); + this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCreateDate); + this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnModDate); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCompany, + this.columnODP, + this.columnUDC}, true)); + this.columnCodCompany.AllowDBNull = false; + this.columnCodCompany.MaxLength = 4; + this.columnODP.AllowDBNull = false; + this.columnODP.MaxLength = 20; + this.columnUDC.AllowDBNull = false; + this.columnUDC.MaxLength = 50; + this.columnCodImballo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaRow Newstp_updateByBilanciaRow() { + return ((stp_updateByBilanciaRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_updateByBilanciaRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(stp_updateByBilanciaRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_updateByBilanciaRowChanged != null)) { + this.stp_updateByBilanciaRowChanged(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_updateByBilanciaRowChanging != null)) { + this.stp_updateByBilanciaRowChanging(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_updateByBilanciaRowDeleted != null)) { + this.stp_updateByBilanciaRowDeleted(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_updateByBilanciaRowDeleting != null)) { + this.stp_updateByBilanciaRowDeleting(this, new stp_updateByBilanciaRowChangeEvent(((stp_updateByBilanciaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removestp_updateByBilanciaRow(stp_updateByBilanciaRow 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(); + GMWDataSet ds = new GMWDataSet(); + 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 = "stp_updateByBilanciaDataTable"; + 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 AnagArticoliRow : global::System.Data.DataRow { + + private AnagArticoliDataTable tableAnagArticoli; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagArticoliRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagArticoli = ((AnagArticoliDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodArticolo { + get { + return ((string)(this[this.tableAnagArticoli.CodArticoloColumn])); + } + set { + this[this.tableAnagArticoli.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrArticolo { + get { + try { + return ((string)(this[this.tableAnagArticoli.DescrArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrArticolo\' in table \'AnagArticoli\' is DBNull.", e); + } + } + set { + this[this.tableAnagArticoli.DescrArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Figura { + get { + try { + return ((string)(this[this.tableAnagArticoli.FiguraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'AnagArticoli\' is DBNull.", e); + } + } + set { + this[this.tableAnagArticoli.FiguraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrArticoloNull() { + return this.IsNull(this.tableAnagArticoli.DescrArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrArticoloNull() { + this[this.tableAnagArticoli.DescrArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsFiguraNull() { + return this.IsNull(this.tableAnagArticoli.FiguraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetFiguraNull() { + this[this.tableAnagArticoli.FiguraColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() { + if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli"] == null)) { + return new Impianti2ArticoliRow[0]; + } + else { + return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagBilanceRow : global::System.Data.DataRow { + + private AnagBilanceDataTable tableAnagBilance; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagBilanceRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagBilance = ((AnagBilanceDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodBilancia { + get { + return ((string)(this[this.tableAnagBilance.CodBilanciaColumn])); + } + set { + this[this.tableAnagBilance.CodBilanciaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrImpianto { + get { + try { + return ((string)(this[this.tableAnagBilance.DescrImpiantoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrImpianto\' in table \'AnagBilance\' is DBNull.", e); + } + } + set { + this[this.tableAnagBilance.DescrImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + try { + return ((string)(this[this.tableAnagBilance.CodCompanyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'AnagBilance\' is DBNull.", e); + } + } + set { + this[this.tableAnagBilance.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodSito { + get { + try { + return ((string)(this[this.tableAnagBilance.CodSitoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodSito\' in table \'AnagBilance\' is DBNull.", e); + } + } + set { + this[this.tableAnagBilance.CodSitoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow AnagSitiRowParent { + get { + return ((AnagSitiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagBilance_AnagSiti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_AnagBilance_AnagSiti"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrImpiantoNull() { + return this.IsNull(this.tableAnagBilance.DescrImpiantoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrImpiantoNull() { + this[this.tableAnagBilance.DescrImpiantoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodCompanyNull() { + return this.IsNull(this.tableAnagBilance.CodCompanyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodCompanyNull() { + this[this.tableAnagBilance.CodCompanyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodSitoNull() { + return this.IsNull(this.tableAnagBilance.CodSitoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodSitoNull() { + this[this.tableAnagBilance.CodSitoColumn] = 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 AnagCompanyRow : global::System.Data.DataRow { + + private AnagCompanyDataTable tableAnagCompany; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagCompanyRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagCompany = ((AnagCompanyDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tableAnagCompany.CodCompanyColumn])); + } + set { + this[this.tableAnagCompany.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrCompany { + get { + try { + return ((string)(this[this.tableAnagCompany.DescrCompanyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrCompany\' in table \'AnagCompany\' is DBNull.", e); + } + } + set { + this[this.tableAnagCompany.DescrCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrCompanyNull() { + return this.IsNull(this.tableAnagCompany.DescrCompanyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrCompanyNull() { + this[this.tableAnagCompany.DescrCompanyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow[] GetAnagOdpRows() { + if ((this.Table.ChildRelations["FK_AnagOdp_AnagCompany"] == null)) { + return new AnagOdpRow[0]; + } + else { + return ((AnagOdpRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagOdp_AnagCompany"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow[] GetAnagSitiRows() { + if ((this.Table.ChildRelations["FK_AnagSiti_AnagCompany"] == null)) { + return new AnagSitiRow[0]; + } + else { + return ((AnagSitiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagSiti_AnagCompany"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagImpiantiRow : global::System.Data.DataRow { + + private AnagImpiantiDataTable tableAnagImpianti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagImpiantiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagImpianti = ((AnagImpiantiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImpianto { + get { + return ((string)(this[this.tableAnagImpianti.CodImpiantoColumn])); + } + set { + this[this.tableAnagImpianti.CodImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrImpianto { + get { + try { + return ((string)(this[this.tableAnagImpianti.DescrImpiantoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrImpianto\' in table \'AnagImpianti\' is DBNull.", e); + } + } + set { + this[this.tableAnagImpianti.DescrImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + try { + return ((string)(this[this.tableAnagImpianti.CodCompanyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'AnagImpianti\' is DBNull.", e); + } + } + set { + this[this.tableAnagImpianti.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodSito { + get { + try { + return ((string)(this[this.tableAnagImpianti.CodSitoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodSito\' in table \'AnagImpianti\' is DBNull.", e); + } + } + set { + this[this.tableAnagImpianti.CodSitoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow AnagSitiRowParent { + get { + return ((AnagSitiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagImpianti_AnagSiti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_AnagImpianti_AnagSiti"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrImpiantoNull() { + return this.IsNull(this.tableAnagImpianti.DescrImpiantoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrImpiantoNull() { + this[this.tableAnagImpianti.DescrImpiantoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodCompanyNull() { + return this.IsNull(this.tableAnagImpianti.CodCompanyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodCompanyNull() { + this[this.tableAnagImpianti.CodCompanyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodSitoNull() { + return this.IsNull(this.tableAnagImpianti.CodSitoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodSitoNull() { + this[this.tableAnagImpianti.CodSitoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() { + if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagImpianti"] == null)) { + return new Impianti2ArticoliRow[0]; + } + else { + return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagImpianti"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagOdpRow : global::System.Data.DataRow { + + private AnagOdpDataTable tableAnagOdp; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagOdpRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagOdp = ((AnagOdpDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tableAnagOdp.CodCompanyColumn])); + } + set { + this[this.tableAnagOdp.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string ODP { + get { + return ((string)(this[this.tableAnagOdp.ODPColumn])); + } + set { + this[this.tableAnagOdp.ODPColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodArticolo { + get { + return ((string)(this[this.tableAnagOdp.CodArticoloColumn])); + } + set { + this[this.tableAnagOdp.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodDisegno { + get { + return ((string)(this[this.tableAnagOdp.CodDisegnoColumn])); + } + set { + this[this.tableAnagOdp.CodDisegnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Esponente { + get { + return ((string)(this[this.tableAnagOdp.EsponenteColumn])); + } + set { + this[this.tableAnagOdp.EsponenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Magazzino { + get { + return ((string)(this[this.tableAnagOdp.MagazzinoColumn])); + } + set { + this[this.tableAnagOdp.MagazzinoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Ubicazione { + get { + return ((string)(this[this.tableAnagOdp.UbicazioneColumn])); + } + set { + this[this.tableAnagOdp.UbicazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime CreateDate { + get { + return ((global::System.DateTime)(this[this.tableAnagOdp.CreateDateColumn])); + } + set { + this[this.tableAnagOdp.CreateDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime ModDate { + get { + return ((global::System.DateTime)(this[this.tableAnagOdp.ModDateColumn])); + } + set { + this[this.tableAnagOdp.ModDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow AnagCompanyRow { + get { + return ((AnagCompanyRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagOdp_AnagCompany"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_AnagOdp_AnagCompany"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() { + if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagOdp"] == null)) { + return new TabStatoOdpUdcRow[0]; + } + else { + return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagOdp"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagSitiRow : global::System.Data.DataRow { + + private AnagSitiDataTable tableAnagSiti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagSitiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagSiti = ((AnagSitiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tableAnagSiti.CodCompanyColumn])); + } + set { + this[this.tableAnagSiti.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodSito { + get { + return ((string)(this[this.tableAnagSiti.CodSitoColumn])); + } + set { + this[this.tableAnagSiti.CodSitoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrSito { + get { + try { + return ((string)(this[this.tableAnagSiti.DescrSitoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrSito\' in table \'AnagSiti\' is DBNull.", e); + } + } + set { + this[this.tableAnagSiti.DescrSitoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow AnagCompanyRow { + get { + return ((AnagCompanyRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagSiti_AnagCompany"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_AnagSiti_AnagCompany"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrSitoNull() { + return this.IsNull(this.tableAnagSiti.DescrSitoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrSitoNull() { + this[this.tableAnagSiti.DescrSitoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRow[] GetAnagBilanceRows() { + if ((this.Table.ChildRelations["FK_AnagBilance_AnagSiti"] == null)) { + return new AnagBilanceRow[0]; + } + else { + return ((AnagBilanceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagBilance_AnagSiti"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow[] GetAnagImpiantiRows() { + if ((this.Table.ChildRelations["FK_AnagImpianti_AnagSiti"] == null)) { + return new AnagImpiantiRow[0]; + } + else { + return ((AnagImpiantiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagImpianti_AnagSiti"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagStatiRow : global::System.Data.DataRow { + + private AnagStatiDataTable tableAnagStati; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagStatiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagStati = ((AnagStatiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxStato { + get { + return ((int)(this[this.tableAnagStati.IdxStatoColumn])); + } + set { + this[this.tableAnagStati.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrStato { + get { + try { + return ((string)(this[this.tableAnagStati.DescrStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrStato\' in table \'AnagStati\' is DBNull.", e); + } + } + set { + this[this.tableAnagStati.DescrStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrStatoNull() { + return this.IsNull(this.tableAnagStati.DescrStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrStatoNull() { + this[this.tableAnagStati.DescrStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() { + if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati"] == null)) { + return new TabStatoOdpUdcRow[0]; + } + else { + return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class ContatoriUdcRow : global::System.Data.DataRow { + + private ContatoriUdcDataTable tableContatoriUdc; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal ContatoriUdcRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableContatoriUdc = ((ContatoriUdcDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tableContatoriUdc.CodCompanyColumn])); + } + set { + this[this.tableContatoriUdc.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Flusso { + get { + return ((string)(this[this.tableContatoriUdc.FlussoColumn])); + } + set { + this[this.tableContatoriUdc.FlussoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string Anno { + get { + return ((string)(this[this.tableContatoriUdc.AnnoColumn])); + } + set { + this[this.tableContatoriUdc.AnnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int LastIdx { + get { + try { + return ((int)(this[this.tableContatoriUdc.LastIdxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'LastIdx\' in table \'ContatoriUdc\' is DBNull.", e); + } + } + set { + this[this.tableContatoriUdc.LastIdxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsLastIdxNull() { + return this.IsNull(this.tableContatoriUdc.LastIdxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetLastIdxNull() { + this[this.tableContatoriUdc.LastIdxColumn] = 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 Impianti2ArticoliRow : global::System.Data.DataRow { + + private Impianti2ArticoliDataTable tableImpianti2Articoli; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal Impianti2ArticoliRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImpianto { + get { + return ((string)(this[this.tableImpianti2Articoli.CodImpiantoColumn])); + } + set { + this[this.tableImpianti2Articoli.CodImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodArticolo { + get { + return ((string)(this[this.tableImpianti2Articoli.CodArticoloColumn])); + } + set { + this[this.tableImpianti2Articoli.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime InizioProd { + get { + return ((global::System.DateTime)(this[this.tableImpianti2Articoli.InizioProdColumn])); + } + set { + this[this.tableImpianti2Articoli.InizioProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime FineProd { + get { + try { + return ((global::System.DateTime)(this[this.tableImpianti2Articoli.FineProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FineProd\' in table \'Impianti2Articoli\' is DBNull.", e); + } + } + set { + this[this.tableImpianti2Articoli.FineProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRow AnagArticoliRow { + get { + return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow AnagImpiantiRow { + get { + return ((AnagImpiantiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsFineProdNull() { + return this.IsNull(this.tableImpianti2Articoli.FineProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetFineProdNull() { + this[this.tableImpianti2Articoli.FineProdColumn] = 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 TabStatoOdpUdcRow : global::System.Data.DataRow { + + private TabStatoOdpUdcDataTable tableTabStatoOdpUdc; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal TabStatoOdpUdcRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tableTabStatoOdpUdc.CodCompanyColumn])); + } + set { + this[this.tableTabStatoOdpUdc.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string ODP { + get { + return ((string)(this[this.tableTabStatoOdpUdc.ODPColumn])); + } + set { + this[this.tableTabStatoOdpUdc.ODPColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string UDC { + get { + return ((string)(this[this.tableTabStatoOdpUdc.UDCColumn])); + } + set { + this[this.tableTabStatoOdpUdc.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public double Tara { + get { + try { + return ((double)(this[this.tableTabStatoOdpUdc.TaraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.TaraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxStato { + get { + try { + return ((int)(this[this.tableTabStatoOdpUdc.IdxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal Qta { + get { + try { + return ((decimal)(this[this.tableTabStatoOdpUdc.QtaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.QtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImballo { + get { + try { + return ((string)(this[this.tableTabStatoOdpUdc.CodImballoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.CodImballoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime CreateDate { + get { + try { + return ((global::System.DateTime)(this[this.tableTabStatoOdpUdc.CreateDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.CreateDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime ModDate { + get { + try { + return ((global::System.DateTime)(this[this.tableTabStatoOdpUdc.ModDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.ModDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow AnagOdpRowParent { + get { + return ((AnagOdpRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagOdp"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagOdp"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRow AnagStatiRow { + get { + return ((AnagStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsTaraNull() { + return this.IsNull(this.tableTabStatoOdpUdc.TaraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetTaraNull() { + this[this.tableTabStatoOdpUdc.TaraColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsIdxStatoNull() { + return this.IsNull(this.tableTabStatoOdpUdc.IdxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetIdxStatoNull() { + this[this.tableTabStatoOdpUdc.IdxStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsQtaNull() { + return this.IsNull(this.tableTabStatoOdpUdc.QtaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetQtaNull() { + this[this.tableTabStatoOdpUdc.QtaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodImballoNull() { + return this.IsNull(this.tableTabStatoOdpUdc.CodImballoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodImballoNull() { + this[this.tableTabStatoOdpUdc.CodImballoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCreateDateNull() { + return this.IsNull(this.tableTabStatoOdpUdc.CreateDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCreateDateNull() { + this[this.tableTabStatoOdpUdc.CreateDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsModDateNull() { + return this.IsNull(this.tableTabStatoOdpUdc.ModDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetModDateNull() { + this[this.tableTabStatoOdpUdc.ModDateColumn] = 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 stp_getStatoByUdcRow : global::System.Data.DataRow { + + private stp_getStatoByUdcDataTable tablestp_getStatoByUdc; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal stp_getStatoByUdcRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_getStatoByUdc = ((stp_getStatoByUdcDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tablestp_getStatoByUdc.CodCompanyColumn])); + } + set { + this[this.tablestp_getStatoByUdc.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string ODP { + get { + return ((string)(this[this.tablestp_getStatoByUdc.ODPColumn])); + } + set { + this[this.tablestp_getStatoByUdc.ODPColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string UDC { + get { + return ((string)(this[this.tablestp_getStatoByUdc.UDCColumn])); + } + set { + this[this.tablestp_getStatoByUdc.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public double Tara { + get { + try { + return ((double)(this[this.tablestp_getStatoByUdc.TaraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'stp_getStatoByUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_getStatoByUdc.TaraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxStato { + get { + try { + return ((int)(this[this.tablestp_getStatoByUdc.IdxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'stp_getStatoByUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_getStatoByUdc.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal Qta { + get { + try { + return ((decimal)(this[this.tablestp_getStatoByUdc.QtaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'stp_getStatoByUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_getStatoByUdc.QtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImballo { + get { + try { + return ((string)(this[this.tablestp_getStatoByUdc.CodImballoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'stp_getStatoByUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_getStatoByUdc.CodImballoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime CreateDate { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_getStatoByUdc.CreateDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_getStatoByUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_getStatoByUdc.CreateDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime ModDate { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_getStatoByUdc.ModDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_getStatoByUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_getStatoByUdc.ModDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsTaraNull() { + return this.IsNull(this.tablestp_getStatoByUdc.TaraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetTaraNull() { + this[this.tablestp_getStatoByUdc.TaraColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsIdxStatoNull() { + return this.IsNull(this.tablestp_getStatoByUdc.IdxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetIdxStatoNull() { + this[this.tablestp_getStatoByUdc.IdxStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsQtaNull() { + return this.IsNull(this.tablestp_getStatoByUdc.QtaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetQtaNull() { + this[this.tablestp_getStatoByUdc.QtaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodImballoNull() { + return this.IsNull(this.tablestp_getStatoByUdc.CodImballoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodImballoNull() { + this[this.tablestp_getStatoByUdc.CodImballoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCreateDateNull() { + return this.IsNull(this.tablestp_getStatoByUdc.CreateDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCreateDateNull() { + this[this.tablestp_getStatoByUdc.CreateDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsModDateNull() { + return this.IsNull(this.tablestp_getStatoByUdc.ModDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetModDateNull() { + this[this.tablestp_getStatoByUdc.ModDateColumn] = 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 stp_insNewOdpUdcRow : global::System.Data.DataRow { + + private stp_insNewOdpUdcDataTable tablestp_insNewOdpUdc; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal stp_insNewOdpUdcRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_insNewOdpUdc = ((stp_insNewOdpUdcDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tablestp_insNewOdpUdc.CodCompanyColumn])); + } + set { + this[this.tablestp_insNewOdpUdc.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string ODP { + get { + return ((string)(this[this.tablestp_insNewOdpUdc.ODPColumn])); + } + set { + this[this.tablestp_insNewOdpUdc.ODPColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string UDC { + get { + return ((string)(this[this.tablestp_insNewOdpUdc.UDCColumn])); + } + set { + this[this.tablestp_insNewOdpUdc.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public double Tara { + get { + try { + return ((double)(this[this.tablestp_insNewOdpUdc.TaraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'stp_insNewOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_insNewOdpUdc.TaraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxStato { + get { + try { + return ((int)(this[this.tablestp_insNewOdpUdc.IdxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'stp_insNewOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_insNewOdpUdc.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal Qta { + get { + try { + return ((decimal)(this[this.tablestp_insNewOdpUdc.QtaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'stp_insNewOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_insNewOdpUdc.QtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImballo { + get { + try { + return ((string)(this[this.tablestp_insNewOdpUdc.CodImballoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'stp_insNewOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_insNewOdpUdc.CodImballoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime CreateDate { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_insNewOdpUdc.CreateDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_insNewOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_insNewOdpUdc.CreateDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime ModDate { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_insNewOdpUdc.ModDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_insNewOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tablestp_insNewOdpUdc.ModDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsTaraNull() { + return this.IsNull(this.tablestp_insNewOdpUdc.TaraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetTaraNull() { + this[this.tablestp_insNewOdpUdc.TaraColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsIdxStatoNull() { + return this.IsNull(this.tablestp_insNewOdpUdc.IdxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetIdxStatoNull() { + this[this.tablestp_insNewOdpUdc.IdxStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsQtaNull() { + return this.IsNull(this.tablestp_insNewOdpUdc.QtaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetQtaNull() { + this[this.tablestp_insNewOdpUdc.QtaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodImballoNull() { + return this.IsNull(this.tablestp_insNewOdpUdc.CodImballoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodImballoNull() { + this[this.tablestp_insNewOdpUdc.CodImballoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCreateDateNull() { + return this.IsNull(this.tablestp_insNewOdpUdc.CreateDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCreateDateNull() { + this[this.tablestp_insNewOdpUdc.CreateDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsModDateNull() { + return this.IsNull(this.tablestp_insNewOdpUdc.ModDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetModDateNull() { + this[this.tablestp_insNewOdpUdc.ModDateColumn] = 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 stp_updateByBilanciaRow : global::System.Data.DataRow { + + private stp_updateByBilanciaDataTable tablestp_updateByBilancia; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal stp_updateByBilanciaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_updateByBilancia = ((stp_updateByBilanciaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodCompany { + get { + return ((string)(this[this.tablestp_updateByBilancia.CodCompanyColumn])); + } + set { + this[this.tablestp_updateByBilancia.CodCompanyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string ODP { + get { + return ((string)(this[this.tablestp_updateByBilancia.ODPColumn])); + } + set { + this[this.tablestp_updateByBilancia.ODPColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string UDC { + get { + return ((string)(this[this.tablestp_updateByBilancia.UDCColumn])); + } + set { + this[this.tablestp_updateByBilancia.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public double Tara { + get { + try { + return ((double)(this[this.tablestp_updateByBilancia.TaraColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'stp_updateByBilancia\' is DBNull.", e); + } + } + set { + this[this.tablestp_updateByBilancia.TaraColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxStato { + get { + try { + return ((int)(this[this.tablestp_updateByBilancia.IdxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'stp_updateByBilancia\' is DBNull.", e); + } + } + set { + this[this.tablestp_updateByBilancia.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public decimal Qta { + get { + try { + return ((decimal)(this[this.tablestp_updateByBilancia.QtaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'stp_updateByBilancia\' is DBNull.", e); + } + } + set { + this[this.tablestp_updateByBilancia.QtaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodImballo { + get { + try { + return ((string)(this[this.tablestp_updateByBilancia.CodImballoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'stp_updateByBilancia\' is DBNull.", e); + } + } + set { + this[this.tablestp_updateByBilancia.CodImballoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime CreateDate { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_updateByBilancia.CreateDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'stp_updateByBilancia\' is DBNull.", e); + } + } + set { + this[this.tablestp_updateByBilancia.CreateDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.DateTime ModDate { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_updateByBilancia.ModDateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'stp_updateByBilancia\' is DBNull.", e); + } + } + set { + this[this.tablestp_updateByBilancia.ModDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsTaraNull() { + return this.IsNull(this.tablestp_updateByBilancia.TaraColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetTaraNull() { + this[this.tablestp_updateByBilancia.TaraColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsIdxStatoNull() { + return this.IsNull(this.tablestp_updateByBilancia.IdxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetIdxStatoNull() { + this[this.tablestp_updateByBilancia.IdxStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsQtaNull() { + return this.IsNull(this.tablestp_updateByBilancia.QtaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetQtaNull() { + this[this.tablestp_updateByBilancia.QtaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodImballoNull() { + return this.IsNull(this.tablestp_updateByBilancia.CodImballoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodImballoNull() { + this[this.tablestp_updateByBilancia.CodImballoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCreateDateNull() { + return this.IsNull(this.tablestp_updateByBilancia.CreateDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCreateDateNull() { + this[this.tablestp_updateByBilancia.CreateDateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsModDateNull() { + return this.IsNull(this.tablestp_updateByBilancia.ModDateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetModDateNull() { + this[this.tablestp_updateByBilancia.ModDateColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class AnagArticoliRowChangeEvent : global::System.EventArgs { + + private AnagArticoliRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRowChangeEvent(AnagArticoliRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagArticoliRow 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 AnagBilanceRowChangeEvent : global::System.EventArgs { + + private AnagBilanceRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRowChangeEvent(AnagBilanceRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagBilanceRow 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 AnagCompanyRowChangeEvent : global::System.EventArgs { + + private AnagCompanyRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRowChangeEvent(AnagCompanyRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagCompanyRow 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 AnagImpiantiRowChangeEvent : global::System.EventArgs { + + private AnagImpiantiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRowChangeEvent(AnagImpiantiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagImpiantiRow 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 AnagOdpRowChangeEvent : global::System.EventArgs { + + private AnagOdpRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRowChangeEvent(AnagOdpRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagOdpRow 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 AnagSitiRowChangeEvent : global::System.EventArgs { + + private AnagSitiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRowChangeEvent(AnagSitiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagSitiRow 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 AnagStatiRowChangeEvent : global::System.EventArgs { + + private AnagStatiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRowChangeEvent(AnagStatiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiRow 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 ContatoriUdcRowChangeEvent : global::System.EventArgs { + + private ContatoriUdcRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcRowChangeEvent(ContatoriUdcRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContatoriUdcRow 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 Impianti2ArticoliRowChangeEvent : global::System.EventArgs { + + private Impianti2ArticoliRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRowChangeEvent(Impianti2ArticoliRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public Impianti2ArticoliRow 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 TabStatoOdpUdcRowChangeEvent : global::System.EventArgs { + + private TabStatoOdpUdcRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRowChangeEvent(TabStatoOdpUdcRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow 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 stp_getStatoByUdcRowChangeEvent : global::System.EventArgs { + + private stp_getStatoByUdcRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcRowChangeEvent(stp_getStatoByUdcRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_getStatoByUdcRow 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 stp_insNewOdpUdcRowChangeEvent : global::System.EventArgs { + + private stp_insNewOdpUdcRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcRowChangeEvent(stp_insNewOdpUdcRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_insNewOdpUdcRow 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 stp_updateByBilanciaRowChangeEvent : global::System.EventArgs { + + private stp_updateByBilanciaRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaRowChangeEvent(stp_updateByBilanciaRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public stp_updateByBilanciaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace GMW_Reports.GMWDataSetTableAdapters { + + + /// + ///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 AnagArticoliTableAdapter : 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 AnagArticoliTableAdapter() { + 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 = "AnagArticoli"; + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("DescrArticolo", "DescrArticolo"); + tableMapping.ColumnMappings.Add("Figura", "Figura"); + 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].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", 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].[AnagArticoli] ([CodArticolo], [DescrArticolo], [Figura]) VALUE" + + "S (@CodArticolo, @DescrArticolo, @Figura);\r\nSELECT CodArticolo, DescrArticolo, F" + + "igura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", 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].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescrArticolo] = @DescrArticolo, [Figura] = @Figura WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura))); +SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodArticolo, DescrArticolo, Figura FROM dbo.AnagArticoli"; + 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(GMWDataSet.AnagArticoliDataTable 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 GMWDataSet.AnagArticoliDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagArticoliDataTable dataTable = new GMWDataSet.AnagArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagArticoliDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagArticoli"); + } + + [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(string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) { + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodArticolo)); + } + if ((Original_DescrArticolo == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrArticolo)); + } + if ((Original_Figura == 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_Figura)); + } + 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(string CodArticolo, string DescrArticolo, string Figura) { + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodArticolo)); + } + if ((DescrArticolo == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrArticolo)); + } + if ((Figura == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Figura)); + } + 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(string CodArticolo, string DescrArticolo, string Figura, string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) { + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodArticolo)); + } + if ((DescrArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrArticolo)); + } + if ((Figura == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Figura)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodArticolo)); + } + if ((Original_DescrArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_DescrArticolo)); + } + if ((Original_Figura == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Figura)); + } + 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 DescrArticolo, string Figura, string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) { + return this.Update(Original_CodArticolo, DescrArticolo, Figura, Original_CodArticolo, Original_DescrArticolo, Original_Figura); + } + } + + /// + ///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 AnagBilanceTableAdapter : 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 AnagBilanceTableAdapter() { + 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 = "AnagBilance"; + tableMapping.ColumnMappings.Add("CodBilancia", "CodBilancia"); + tableMapping.ColumnMappings.Add("DescrImpianto", "DescrImpianto"); + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("CodSito", "CodSito"); + 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].[AnagBilance] WHERE (([CodBilancia] = @Original_CodBilancia) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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].[AnagBilance] ([CodBilancia], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodBilancia, @DescrImpianto, @CodCompany, @CodSito); +SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (CodBilancia = @CodBilancia)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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].[AnagBilance] SET [CodBilancia] = @CodBilancia, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodBilancia] = @Original_CodBilancia) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito))); +SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (CodBilancia = @CodBilancia)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBilancia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBilancia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodBilancia, DescrImpianto, CodCompany, CodSito FROM dbo.AnagBilance"; + 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(GMWDataSet.AnagBilanceDataTable 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 GMWDataSet.AnagBilanceDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagBilanceDataTable dataTable = new GMWDataSet.AnagBilanceDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagBilanceDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagBilance"); + } + + [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(string Original_CodBilancia, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) { + if ((Original_CodBilancia == null)) { + throw new global::System.ArgumentNullException("Original_CodBilancia"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodBilancia)); + } + if ((Original_DescrImpianto == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrImpianto)); + } + if ((Original_CodCompany == 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_CodCompany)); + } + if ((Original_CodSito == 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_CodSito)); + } + 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(string CodBilancia, string DescrImpianto, string CodCompany, string CodSito) { + if ((CodBilancia == null)) { + throw new global::System.ArgumentNullException("CodBilancia"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodBilancia)); + } + if ((DescrImpianto == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrImpianto)); + } + if ((CodCompany == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSito)); + } + 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(string CodBilancia, string DescrImpianto, string CodCompany, string CodSito, string Original_CodBilancia, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) { + if ((CodBilancia == null)) { + throw new global::System.ArgumentNullException("CodBilancia"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodBilancia)); + } + if ((DescrImpianto == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrImpianto)); + } + if ((CodCompany == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSito)); + } + if ((Original_CodBilancia == null)) { + throw new global::System.ArgumentNullException("Original_CodBilancia"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodBilancia)); + } + if ((Original_DescrImpianto == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrImpianto)); + } + if ((Original_CodCompany == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCompany)); + } + if ((Original_CodSito == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodSito)); + } + 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 DescrImpianto, string CodCompany, string CodSito, string Original_CodBilancia, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) { + return this.Update(Original_CodBilancia, DescrImpianto, CodCompany, CodSito, Original_CodBilancia, Original_DescrImpianto, Original_CodCompany, Original_CodSito); + } + } + + /// + ///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 AnagCompanyTableAdapter : 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 AnagCompanyTableAdapter() { + 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 = "AnagCompany"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("DescrCompany", "DescrCompany"); + 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].[AnagCompany] WHERE (([CodCompany] = @Original_CodCompany) AND " + + "((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Ori" + + "ginal_DescrCompany)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", 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].[AnagCompany] ([CodCompany], [DescrCompany]) VALUES (@CodCompan" + + "y, @DescrCompany);\r\nSELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodC" + + "ompany = @CodCompany)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", 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].[AnagCompany] SET [CodCompany] = @CodCompany, [DescrCompany] = @DescrCompany WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany))); +SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodCompany, DescrCompany FROM dbo.AnagCompany"; + 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(GMWDataSet.AnagCompanyDataTable 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 GMWDataSet.AnagCompanyDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagCompanyDataTable dataTable = new GMWDataSet.AnagCompanyDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagCompanyDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagCompany"); + } + + [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(string Original_CodCompany, string Original_DescrCompany) { + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany)); + } + if ((Original_DescrCompany == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrCompany)); + } + 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(string CodCompany, string DescrCompany) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((DescrCompany == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrCompany)); + } + 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(string CodCompany, string DescrCompany, string Original_CodCompany, string Original_DescrCompany) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((DescrCompany == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrCompany)); + } + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodCompany)); + } + if ((Original_DescrCompany == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescrCompany)); + } + 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 DescrCompany, string Original_CodCompany, string Original_DescrCompany) { + return this.Update(Original_CodCompany, DescrCompany, Original_CodCompany, Original_DescrCompany); + } + } + + /// + ///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 AnagImpiantiTableAdapter : 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 AnagImpiantiTableAdapter() { + 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 = "AnagImpianti"; + tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto"); + tableMapping.ColumnMappings.Add("DescrImpianto", "DescrImpianto"); + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("CodSito", "CodSito"); + 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].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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].[AnagImpianti] ([CodImpianto], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodImpianto, @DescrImpianto, @CodCompany, @CodSito); +SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito))); +SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodImpianto, DescrImpianto, CodCompany, CodSito FROM dbo.AnagImpianti"; + 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(GMWDataSet.AnagImpiantiDataTable 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 GMWDataSet.AnagImpiantiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagImpiantiDataTable dataTable = new GMWDataSet.AnagImpiantiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagImpiantiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagImpianti"); + } + + [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(string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) { + if ((Original_CodImpianto == null)) { + throw new global::System.ArgumentNullException("Original_CodImpianto"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto)); + } + if ((Original_DescrImpianto == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrImpianto)); + } + if ((Original_CodCompany == 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_CodCompany)); + } + if ((Original_CodSito == 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_CodSito)); + } + 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(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito) { + if ((CodImpianto == null)) { + throw new global::System.ArgumentNullException("CodImpianto"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto)); + } + if ((DescrImpianto == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrImpianto)); + } + if ((CodCompany == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSito)); + } + 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(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito, string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) { + if ((CodImpianto == null)) { + throw new global::System.ArgumentNullException("CodImpianto"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto)); + } + if ((DescrImpianto == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrImpianto)); + } + if ((CodCompany == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSito)); + } + if ((Original_CodImpianto == null)) { + throw new global::System.ArgumentNullException("Original_CodImpianto"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodImpianto)); + } + if ((Original_DescrImpianto == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrImpianto)); + } + if ((Original_CodCompany == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCompany)); + } + if ((Original_CodSito == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodSito)); + } + 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 DescrImpianto, string CodCompany, string CodSito, string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) { + return this.Update(Original_CodImpianto, DescrImpianto, CodCompany, CodSito, Original_CodImpianto, Original_DescrImpianto, Original_CodCompany, Original_CodSito); + } + } + + /// + ///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 AnagOdpTableAdapter : 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 AnagOdpTableAdapter() { + 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 = "AnagOdp"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("ODP", "ODP"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("CodDisegno", "CodDisegno"); + tableMapping.ColumnMappings.Add("Esponente", "Esponente"); + tableMapping.ColumnMappings.Add("Magazzino", "Magazzino"); + tableMapping.ColumnMappings.Add("Ubicazione", "Ubicazione"); + tableMapping.ColumnMappings.Add("CreateDate", "CreateDate"); + tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + 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].[AnagOdp] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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].[AnagOdp] ([CodCompany], [ODP], [CodArticolo], [CodDisegno], [Esponente], [Magazzino], [Ubicazione], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @CodArticolo, @CodDisegno, @Esponente, @Magazzino, @Ubicazione, @CreateDate, @ModDate); +SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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].[AnagOdp] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [CodArticolo] = @CodArticolo, [CodDisegno] = @CodDisegno, [Esponente] = @Esponente, [Magazzino] = @Magazzino, [Ubicazione] = @Ubicazione, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate)); +SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione" + + ", CreateDate, ModDate FROM dbo.AnagOdp"; + 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(GMWDataSet.AnagOdpDataTable 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 GMWDataSet.AnagOdpDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagOdpDataTable dataTable = new GMWDataSet.AnagOdpDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagOdpDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagOdp"); + } + + [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(string Original_CodCompany, string Original_ODP, string Original_CodArticolo, string Original_CodDisegno, string Original_Esponente, string Original_Magazzino, string Original_Ubicazione, System.DateTime Original_CreateDate, System.DateTime Original_ModDate) { + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany)); + } + if ((Original_ODP == null)) { + throw new global::System.ArgumentNullException("Original_ODP"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodArticolo)); + } + if ((Original_CodDisegno == null)) { + throw new global::System.ArgumentNullException("Original_CodDisegno"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CodDisegno)); + } + if ((Original_Esponente == null)) { + throw new global::System.ArgumentNullException("Original_Esponente"); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Esponente)); + } + if ((Original_Magazzino == null)) { + throw new global::System.ArgumentNullException("Original_Magazzino"); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Magazzino)); + } + if ((Original_Ubicazione == null)) { + throw new global::System.ArgumentNullException("Original_Ubicazione"); + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Ubicazione)); + } + this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_CreateDate)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_ModDate)); + 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(string CodCompany, string ODP, string CodArticolo, string CodDisegno, string Esponente, string Magazzino, string Ubicazione, System.DateTime CreateDate, System.DateTime ModDate) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((ODP == null)) { + throw new global::System.ArgumentNullException("ODP"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP)); + } + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((CodDisegno == null)) { + throw new global::System.ArgumentNullException("CodDisegno"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodDisegno)); + } + if ((Esponente == null)) { + throw new global::System.ArgumentNullException("Esponente"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Esponente)); + } + if ((Magazzino == null)) { + throw new global::System.ArgumentNullException("Magazzino"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Magazzino)); + } + if ((Ubicazione == null)) { + throw new global::System.ArgumentNullException("Ubicazione"); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Ubicazione)); + } + this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(CreateDate)); + this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ModDate)); + 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( + string CodCompany, + string ODP, + string CodArticolo, + string CodDisegno, + string Esponente, + string Magazzino, + string Ubicazione, + System.DateTime CreateDate, + System.DateTime ModDate, + string Original_CodCompany, + string Original_ODP, + string Original_CodArticolo, + string Original_CodDisegno, + string Original_Esponente, + string Original_Magazzino, + string Original_Ubicazione, + System.DateTime Original_CreateDate, + System.DateTime Original_ModDate) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((ODP == null)) { + throw new global::System.ArgumentNullException("ODP"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP)); + } + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((CodDisegno == null)) { + throw new global::System.ArgumentNullException("CodDisegno"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodDisegno)); + } + if ((Esponente == null)) { + throw new global::System.ArgumentNullException("Esponente"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Esponente)); + } + if ((Magazzino == null)) { + throw new global::System.ArgumentNullException("Magazzino"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Magazzino)); + } + if ((Ubicazione == null)) { + throw new global::System.ArgumentNullException("Ubicazione"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Ubicazione)); + } + this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(CreateDate)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ModDate)); + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany)); + } + if ((Original_ODP == null)) { + throw new global::System.ArgumentNullException("Original_ODP"); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodArticolo)); + } + if ((Original_CodDisegno == null)) { + throw new global::System.ArgumentNullException("Original_CodDisegno"); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_CodDisegno)); + } + if ((Original_Esponente == null)) { + throw new global::System.ArgumentNullException("Original_Esponente"); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Esponente)); + } + if ((Original_Magazzino == null)) { + throw new global::System.ArgumentNullException("Original_Magazzino"); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Magazzino)); + } + if ((Original_Ubicazione == null)) { + throw new global::System.ArgumentNullException("Original_Ubicazione"); + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Ubicazione)); + } + this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_CreateDate)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_ModDate)); + 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 CodArticolo, + string CodDisegno, + string Esponente, + string Magazzino, + string Ubicazione, + System.DateTime CreateDate, + System.DateTime ModDate, + string Original_CodCompany, + string Original_ODP, + string Original_CodArticolo, + string Original_CodDisegno, + string Original_Esponente, + string Original_Magazzino, + string Original_Ubicazione, + System.DateTime Original_CreateDate, + System.DateTime Original_ModDate) { + return this.Update(Original_CodCompany, Original_ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_CodArticolo, Original_CodDisegno, Original_Esponente, Original_Magazzino, Original_Ubicazione, Original_CreateDate, Original_ModDate); + } + } + + /// + ///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 AnagSitiTableAdapter : 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 AnagSitiTableAdapter() { + 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 = "AnagSiti"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("CodSito", "CodSito"); + tableMapping.ColumnMappings.Add("DescrSito", "DescrSito"); + 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].[AnagSiti] WHERE (([CodCompany] = @Original_CodCompany) AND ([C" + + "odSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL" + + ") OR ([DescrSito] = @Original_DescrSito)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", 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].[AnagSiti] ([CodCompany], [CodSito], [DescrSito]) VALUES (@CodC" + + "ompany, @CodSito, @DescrSito);\r\nSELECT CodCompany, CodSito, DescrSito FROM AnagS" + + "iti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", 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].[AnagSiti] SET [CodCompany] = @CodCompany, [CodSito] = @CodSito, [DescrSito] = @DescrSito WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito))); +SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodCompany, CodSito, DescrSito FROM dbo.AnagSiti"; + 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(GMWDataSet.AnagSitiDataTable 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 GMWDataSet.AnagSitiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagSitiDataTable dataTable = new GMWDataSet.AnagSitiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagSitiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagSiti"); + } + + [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(string Original_CodCompany, string Original_CodSito, string Original_DescrSito) { + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany)); + } + if ((Original_CodSito == null)) { + throw new global::System.ArgumentNullException("Original_CodSito"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodSito)); + } + if ((Original_DescrSito == null)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescrSito)); + } + 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(string CodCompany, string CodSito, string DescrSito) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + throw new global::System.ArgumentNullException("CodSito"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodSito)); + } + if ((DescrSito == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescrSito)); + } + 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(string CodCompany, string CodSito, string DescrSito, string Original_CodCompany, string Original_CodSito, string Original_DescrSito) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + throw new global::System.ArgumentNullException("CodSito"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodSito)); + } + if ((DescrSito == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescrSito)); + } + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodCompany)); + } + if ((Original_CodSito == null)) { + throw new global::System.ArgumentNullException("Original_CodSito"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodSito)); + } + if ((Original_DescrSito == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrSito)); + } + 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 DescrSito, string Original_CodCompany, string Original_CodSito, string Original_DescrSito) { + return this.Update(Original_CodCompany, Original_CodSito, DescrSito, Original_CodCompany, Original_CodSito, Original_DescrSito); + } + } + + /// + ///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 AnagStatiTableAdapter : 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 AnagStatiTableAdapter() { + 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 = "AnagStati"; + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("DescrStato", "DescrStato"); + 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].[AnagStati] WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsN" + + "ull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrS" + + "tato)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", 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].[AnagStati] ([IdxStato], [DescrStato]) VALUES (@IdxStato, @Desc" + + "rStato);\r\nSELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato" + + ")"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", 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].[AnagStati] SET [IdxStato] = @IdxStato, [DescrStato] = @DescrStato WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrStato))); +SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrStato", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 IdxStato, DescrStato FROM dbo.AnagStati"; + 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(GMWDataSet.AnagStatiDataTable 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 GMWDataSet.AnagStatiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.AnagStatiDataTable dataTable = new GMWDataSet.AnagStatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.AnagStatiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "AnagStati"); + } + + [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(int Original_IdxStato, string Original_DescrStato) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxStato)); + if ((Original_DescrStato == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrStato)); + } + 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(int IdxStato, string DescrStato) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxStato)); + if ((DescrStato == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrStato)); + } + 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(int IdxStato, string DescrStato, int Original_IdxStato, string Original_DescrStato) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxStato)); + if ((DescrStato == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrStato)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxStato)); + if ((Original_DescrStato == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescrStato)); + } + 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 DescrStato, int Original_IdxStato, string Original_DescrStato) { + return this.Update(Original_IdxStato, DescrStato, Original_IdxStato, Original_DescrStato); + } + } + + /// + ///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 ContatoriUdcTableAdapter : 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 ContatoriUdcTableAdapter() { + 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 = "ContatoriUdc"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("Flusso", "Flusso"); + tableMapping.ColumnMappings.Add("Anno", "Anno"); + tableMapping.ColumnMappings.Add("LastIdx", "LastIdx"); + 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].[ContatoriUdc] WHERE (([CodCompany] = @Original_CodCompany) AND" + + " ([Flusso] = @Original_Flusso) AND ([Anno] = @Original_Anno) AND ((@IsNull_LastI" + + "dx = 1 AND [LastIdx] IS NULL) OR ([LastIdx] = @Original_LastIdx)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", 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].[ContatoriUdc] ([CodCompany], [Flusso], [Anno], [LastIdx]) VALUES (@CodCompany, @Flusso, @Anno, @LastIdx); +SELECT CodCompany, Flusso, Anno, LastIdx FROM ContatoriUdc WHERE (Anno = @Anno) AND (CodCompany = @CodCompany) AND (Flusso = @Flusso)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", 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].[ContatoriUdc] SET [CodCompany] = @CodCompany, [Flusso] = @Flusso, [Anno] = @Anno, [LastIdx] = @LastIdx WHERE (([CodCompany] = @Original_CodCompany) AND ([Flusso] = @Original_Flusso) AND ([Anno] = @Original_Anno) AND ((@IsNull_LastIdx = 1 AND [LastIdx] IS NULL) OR ([LastIdx] = @Original_LastIdx))); +SELECT CodCompany, Flusso, Anno, LastIdx FROM ContatoriUdc WHERE (Anno = @Anno) AND (CodCompany = @CodCompany) AND (Flusso = @Flusso)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Flusso", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Flusso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastIdx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastIdx", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodCompany, Flusso, Anno, LastIdx FROM dbo.ContatoriUdc"; + 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(GMWDataSet.ContatoriUdcDataTable 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 GMWDataSet.ContatoriUdcDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.ContatoriUdcDataTable dataTable = new GMWDataSet.ContatoriUdcDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.ContatoriUdcDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "ContatoriUdc"); + } + + [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(string Original_CodCompany, string Original_Flusso, string Original_Anno, global::System.Nullable Original_LastIdx) { + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany)); + } + if ((Original_Flusso == null)) { + throw new global::System.ArgumentNullException("Original_Flusso"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Flusso)); + } + if ((Original_Anno == null)) { + throw new global::System.ArgumentNullException("Original_Anno"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Anno)); + } + if ((Original_LastIdx.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_LastIdx.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].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(string CodCompany, string Flusso, string Anno, global::System.Nullable LastIdx) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((Flusso == null)) { + throw new global::System.ArgumentNullException("Flusso"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Flusso)); + } + if ((Anno == null)) { + throw new global::System.ArgumentNullException("Anno"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Anno)); + } + if ((LastIdx.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(LastIdx.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(string CodCompany, string Flusso, string Anno, global::System.Nullable LastIdx, string Original_CodCompany, string Original_Flusso, string Original_Anno, global::System.Nullable Original_LastIdx) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((Flusso == null)) { + throw new global::System.ArgumentNullException("Flusso"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Flusso)); + } + if ((Anno == null)) { + throw new global::System.ArgumentNullException("Anno"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Anno)); + } + if ((LastIdx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(LastIdx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodCompany)); + } + if ((Original_Flusso == null)) { + throw new global::System.ArgumentNullException("Original_Flusso"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Flusso)); + } + if ((Original_Anno == null)) { + throw new global::System.ArgumentNullException("Original_Anno"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Anno)); + } + if ((Original_LastIdx.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_LastIdx.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].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(global::System.Nullable LastIdx, string Original_CodCompany, string Original_Flusso, string Original_Anno, global::System.Nullable Original_LastIdx) { + return this.Update(Original_CodCompany, Original_Flusso, Original_Anno, LastIdx, Original_CodCompany, Original_Flusso, Original_Anno, Original_LastIdx); + } + } + + /// + ///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 Impianti2ArticoliTableAdapter : 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 Impianti2ArticoliTableAdapter() { + 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 = "Impianti2Articoli"; + tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("InizioProd", "InizioProd"); + tableMapping.ColumnMappings.Add("FineProd", "FineProd"); + 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].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", 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].[Impianti2Articoli] ([CodImpianto], [CodArticolo], [InizioProd], [FineProd]) VALUES (@CodImpianto, @CodArticolo, @InizioProd, @FineProd); +SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", 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].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [CodArticolo] = @CodArticolo, [InizioProd] = @InizioProd, [FineProd] = @FineProd WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd))); +SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodImpianto, CodArticolo, InizioProd, FineProd FROM dbo.Impianti2Articoli"; + 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(GMWDataSet.Impianti2ArticoliDataTable 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 GMWDataSet.Impianti2ArticoliDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.Impianti2ArticoliDataTable dataTable = new GMWDataSet.Impianti2ArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.Impianti2ArticoliDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "Impianti2Articoli"); + } + + [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(string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd) { + if ((Original_CodImpianto == null)) { + throw new global::System.ArgumentNullException("Original_CodImpianto"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodArticolo)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_InizioProd)); + if ((Original_FineProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_FineProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].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(string CodImpianto, string CodArticolo, System.DateTime InizioProd, global::System.Nullable FineProd) { + if ((CodImpianto == null)) { + throw new global::System.ArgumentNullException("CodImpianto"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto)); + } + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioProd)); + if ((FineProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(FineProd.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(string CodImpianto, string CodArticolo, System.DateTime InizioProd, global::System.Nullable FineProd, string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd) { + if ((CodImpianto == null)) { + throw new global::System.ArgumentNullException("CodImpianto"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto)); + } + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioProd)); + if ((FineProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_CodImpianto == null)) { + throw new global::System.ArgumentNullException("Original_CodImpianto"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodImpianto)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodArticolo)); + } + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_InizioProd)); + if ((Original_FineProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_FineProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].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(global::System.Nullable FineProd, string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd) { + return this.Update(Original_CodImpianto, Original_CodArticolo, Original_InizioProd, FineProd, Original_CodImpianto, Original_CodArticolo, Original_InizioProd, Original_FineProd); + } + } + + /// + ///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 TabStatoOdpUdcTableAdapter : 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 TabStatoOdpUdcTableAdapter() { + 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 = "TabStatoOdpUdc"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("ODP", "ODP"); + tableMapping.ColumnMappings.Add("UDC", "UDC"); + tableMapping.ColumnMappings.Add("Tara", "Tara"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("Qta", "Qta"); + tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); + tableMapping.ColumnMappings.Add("CreateDate", "CreateDate"); + tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + 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].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate))); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", 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_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate" + + " FROM dbo.TabStatoOdpUdc"; + 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(GMWDataSet.TabStatoOdpUdcDataTable 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 GMWDataSet.TabStatoOdpUdcDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + GMWDataSet.TabStatoOdpUdcDataTable dataTable = new GMWDataSet.TabStatoOdpUdcDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet.TabStatoOdpUdcDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(GMWDataSet dataSet) { + return this.Adapter.Update(dataSet, "TabStatoOdpUdc"); + } + + [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(string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable Original_Tara, global::System.Nullable Original_IdxStato, global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate) { + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany)); + } + if ((Original_ODP == null)) { + throw new global::System.ArgumentNullException("Original_ODP"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP)); + } + if ((Original_UDC == null)) { + throw new global::System.ArgumentNullException("Original_UDC"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UDC)); + } + if ((Original_Tara.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Tara.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_IdxStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdxStato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Original_Qta.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Qta.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_CodImballo == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_CodImballo)); + } + if ((Original_CreateDate.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_CreateDate.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((Original_ModDate.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_ModDate.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[14].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(string CodCompany, string ODP, string UDC, global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((ODP == null)) { + throw new global::System.ArgumentNullException("ODP"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP)); + } + if ((UDC == null)) { + throw new global::System.ArgumentNullException("UDC"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UDC)); + } + if ((Tara.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Tara.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((IdxStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxStato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Qta.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(Qta.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((CodImballo == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodImballo)); + } + if ((CreateDate.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(CreateDate.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((ModDate.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ModDate.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].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( + string CodCompany, + string ODP, + string UDC, + global::System.Nullable Tara, + global::System.Nullable IdxStato, + global::System.Nullable Qta, + string CodImballo, + global::System.Nullable CreateDate, + global::System.Nullable ModDate, + string Original_CodCompany, + string Original_ODP, + string Original_UDC, + global::System.Nullable Original_Tara, + global::System.Nullable Original_IdxStato, + global::System.Nullable Original_Qta, + string Original_CodImballo, + global::System.Nullable Original_CreateDate, + global::System.Nullable Original_ModDate) { + if ((CodCompany == null)) { + throw new global::System.ArgumentNullException("CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany)); + } + if ((ODP == null)) { + throw new global::System.ArgumentNullException("ODP"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP)); + } + if ((UDC == null)) { + throw new global::System.ArgumentNullException("UDC"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UDC)); + } + if ((Tara.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Tara.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((IdxStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Qta.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Qta.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((CodImballo == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodImballo)); + } + if ((CreateDate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(CreateDate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((ModDate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ModDate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_CodCompany == null)) { + throw new global::System.ArgumentNullException("Original_CodCompany"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany)); + } + if ((Original_ODP == null)) { + throw new global::System.ArgumentNullException("Original_ODP"); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP)); + } + if ((Original_UDC == null)) { + throw new global::System.ArgumentNullException("Original_UDC"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_UDC)); + } + if ((Original_Tara.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(Original_Tara.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_IdxStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_Qta.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_Qta.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((Original_CodImballo == null)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodImballo)); + } + if ((Original_CreateDate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_CreateDate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_ModDate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_ModDate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].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(global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate, string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable Original_Tara, global::System.Nullable Original_IdxStato, global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate) { + return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CreateDate, Original_ModDate); + } + } + + /// + ///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 stp_getStatoByUdcTableAdapter : 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 stp_getStatoByUdcTableAdapter() { + 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 = "stp_getStatoByUdc"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("ODP", "ODP"); + tableMapping.ColumnMappings.Add("UDC", "UDC"); + tableMapping.ColumnMappings.Add("Tara", "Tara"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("Qta", "Qta"); + tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); + tableMapping.ColumnMappings.Add("CreateDate", "CreateDate"); + tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 = "dbo.stp_getStatoByUdc"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 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(GMWDataSet.stp_getStatoByUdcDataTable dataTable, string UDC) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); + } + 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 GMWDataSet.stp_getStatoByUdcDataTable GetData(string UDC) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); + } + GMWDataSet.stp_getStatoByUdcDataTable dataTable = new GMWDataSet.stp_getStatoByUdcDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///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 stp_insNewOdpUdcTableAdapter : 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 stp_insNewOdpUdcTableAdapter() { + 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 = "stp_insNewOdpUdc"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("ODP", "ODP"); + tableMapping.ColumnMappings.Add("UDC", "UDC"); + tableMapping.ColumnMappings.Add("Tara", "Tara"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("Qta", "Qta"); + tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); + tableMapping.ColumnMappings.Add("CreateDate", "CreateDate"); + tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 = "dbo.stp_insNewOdpUdc"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 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(GMWDataSet.stp_insNewOdpUdcDataTable dataTable, string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable Tara) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodCompany == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito)); + } + if ((Flusso == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso)); + } + if ((Anno == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno)); + } + if ((ODP == null)) { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP)); + } + if ((Tara.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + 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 GMWDataSet.stp_insNewOdpUdcDataTable GetData(string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable Tara) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodCompany == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany)); + } + if ((CodSito == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito)); + } + if ((Flusso == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso)); + } + if ((Anno == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno)); + } + if ((ODP == null)) { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP)); + } + if ((Tara.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + GMWDataSet.stp_insNewOdpUdcDataTable dataTable = new GMWDataSet.stp_insNewOdpUdcDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///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 stp_updateByBilanciaTableAdapter : 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 stp_updateByBilanciaTableAdapter() { + 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 = "stp_updateByBilancia"; + tableMapping.ColumnMappings.Add("CodCompany", "CodCompany"); + tableMapping.ColumnMappings.Add("ODP", "ODP"); + tableMapping.ColumnMappings.Add("UDC", "UDC"); + tableMapping.ColumnMappings.Add("Tara", "Tara"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("Qta", "Qta"); + tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); + tableMapping.ColumnMappings.Add("CreateDate", "CreateDate"); + tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_Reports.Properties.Settings.Default.GMWConnectionString; + } + + [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 = "dbo.stp_updateByBilancia"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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(GMWDataSet.stp_updateByBilanciaDataTable dataTable, string CodCompany, string UDC, string CodArticolo, global::System.Nullable qta) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodCompany == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany)); + } + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(UDC)); + } + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodArticolo)); + } + if ((qta.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(qta.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + 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 GMWDataSet.stp_updateByBilanciaDataTable GetData(string CodCompany, string UDC, string CodArticolo, global::System.Nullable qta) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodCompany == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany)); + } + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(UDC)); + } + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodArticolo)); + } + if ((qta.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((int)(qta.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + GMWDataSet.stp_updateByBilanciaDataTable dataTable = new GMWDataSet.stp_updateByBilanciaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///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 QueriesTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.IDbCommand[] _commandCollection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected global::System.Data.IDbCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.IDbCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_Reports.Properties.Settings.Default.GMWConnectionString); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "dbo.f_padLeft"; + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.StoredProcedure; + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.ReturnValue, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@string", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@desired_length", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pad_character", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_Reports.Properties.Settings.Default.GMWConnectionString); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandText = "dbo.staccaNewIdx"; + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandType = global::System.Data.CommandType.StoredProcedure; + ((global::System.Data.SqlClient.SqlCommand)(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, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 2, 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")] + public virtual string f_padLeft(string _string, global::System.Nullable desired_length, string pad_character) { + global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0])); + if ((_string == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(_string)); + } + if ((desired_length.HasValue == true)) { + command.Parameters[2].Value = ((int)(desired_length.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((pad_character == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(pad_character)); + } + 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(); + } + try { + command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((command.Parameters[0].Value == null) + || (command.Parameters[0].Value.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((string)(command.Parameters[0].Value)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual global::System.Nullable staccaNewIdx(string CodCompany, string Flusso, string Anno) { + global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[1])); + if ((CodCompany == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodCompany)); + } + if ((Flusso == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Flusso)); + } + if ((Anno == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Anno)); + } + 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(); + } + try { + command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((command.Parameters[0].Value == null) + || (command.Parameters[0].Value.GetType() == typeof(global::System.DBNull)))) { + return new global::System.Nullable(); + } + else { + return new global::System.Nullable(((int)(command.Parameters[0].Value))); + } + } + } + + /// + ///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 AnagArticoliTableAdapter _anagArticoliTableAdapter; + + private AnagBilanceTableAdapter _anagBilanceTableAdapter; + + private AnagCompanyTableAdapter _anagCompanyTableAdapter; + + private AnagImpiantiTableAdapter _anagImpiantiTableAdapter; + + private AnagOdpTableAdapter _anagOdpTableAdapter; + + private AnagSitiTableAdapter _anagSitiTableAdapter; + + private AnagStatiTableAdapter _anagStatiTableAdapter; + + private ContatoriUdcTableAdapter _contatoriUdcTableAdapter; + + private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter; + + private TabStatoOdpUdcTableAdapter _tabStatoOdpUdcTableAdapter; + + 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 AnagArticoliTableAdapter AnagArticoliTableAdapter { + get { + return this._anagArticoliTableAdapter; + } + set { + this._anagArticoliTableAdapter = 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 AnagBilanceTableAdapter AnagBilanceTableAdapter { + get { + return this._anagBilanceTableAdapter; + } + set { + this._anagBilanceTableAdapter = 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 AnagCompanyTableAdapter AnagCompanyTableAdapter { + get { + return this._anagCompanyTableAdapter; + } + set { + this._anagCompanyTableAdapter = 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 AnagImpiantiTableAdapter AnagImpiantiTableAdapter { + get { + return this._anagImpiantiTableAdapter; + } + set { + this._anagImpiantiTableAdapter = 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 AnagOdpTableAdapter AnagOdpTableAdapter { + get { + return this._anagOdpTableAdapter; + } + set { + this._anagOdpTableAdapter = 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 AnagSitiTableAdapter AnagSitiTableAdapter { + get { + return this._anagSitiTableAdapter; + } + set { + this._anagSitiTableAdapter = 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 AnagStatiTableAdapter AnagStatiTableAdapter { + get { + return this._anagStatiTableAdapter; + } + set { + this._anagStatiTableAdapter = 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 ContatoriUdcTableAdapter ContatoriUdcTableAdapter { + get { + return this._contatoriUdcTableAdapter; + } + set { + this._contatoriUdcTableAdapter = 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 Impianti2ArticoliTableAdapter Impianti2ArticoliTableAdapter { + get { + return this._impianti2ArticoliTableAdapter; + } + set { + this._impianti2ArticoliTableAdapter = 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 TabStatoOdpUdcTableAdapter TabStatoOdpUdcTableAdapter { + get { + return this._tabStatoOdpUdcTableAdapter; + } + set { + this._tabStatoOdpUdcTableAdapter = 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._anagArticoliTableAdapter != null) + && (this._anagArticoliTableAdapter.Connection != null))) { + return this._anagArticoliTableAdapter.Connection; + } + if (((this._anagBilanceTableAdapter != null) + && (this._anagBilanceTableAdapter.Connection != null))) { + return this._anagBilanceTableAdapter.Connection; + } + if (((this._anagCompanyTableAdapter != null) + && (this._anagCompanyTableAdapter.Connection != null))) { + return this._anagCompanyTableAdapter.Connection; + } + if (((this._anagImpiantiTableAdapter != null) + && (this._anagImpiantiTableAdapter.Connection != null))) { + return this._anagImpiantiTableAdapter.Connection; + } + if (((this._anagOdpTableAdapter != null) + && (this._anagOdpTableAdapter.Connection != null))) { + return this._anagOdpTableAdapter.Connection; + } + if (((this._anagSitiTableAdapter != null) + && (this._anagSitiTableAdapter.Connection != null))) { + return this._anagSitiTableAdapter.Connection; + } + if (((this._anagStatiTableAdapter != null) + && (this._anagStatiTableAdapter.Connection != null))) { + return this._anagStatiTableAdapter.Connection; + } + if (((this._contatoriUdcTableAdapter != null) + && (this._contatoriUdcTableAdapter.Connection != null))) { + return this._contatoriUdcTableAdapter.Connection; + } + if (((this._impianti2ArticoliTableAdapter != null) + && (this._impianti2ArticoliTableAdapter.Connection != null))) { + return this._impianti2ArticoliTableAdapter.Connection; + } + if (((this._tabStatoOdpUdcTableAdapter != null) + && (this._tabStatoOdpUdcTableAdapter.Connection != null))) { + return this._tabStatoOdpUdcTableAdapter.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._anagArticoliTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagBilanceTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagCompanyTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagImpiantiTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagOdpTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagSitiTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagStatiTableAdapter != null)) { + count = (count + 1); + } + if ((this._contatoriUdcTableAdapter != null)) { + count = (count + 1); + } + if ((this._impianti2ArticoliTableAdapter != null)) { + count = (count + 1); + } + if ((this._tabStatoOdpUdcTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateUpdatedRows(GMWDataSet dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._anagCompanyTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagCompanyTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagSitiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagSitiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagOdpTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagOdpTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagStatiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagStatiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagImpiantiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagImpiantiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._tabStatoOdpUdcTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._tabStatoOdpUdcTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagBilanceTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagBilanceTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._contatoriUdcTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ContatoriUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._contatoriUdcTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._impianti2ArticoliTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._impianti2ArticoliTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateInsertedRows(GMWDataSet dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._anagCompanyTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagCompanyTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagSitiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagSitiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagOdpTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagOdpTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagStatiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagStatiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagImpiantiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagImpiantiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._tabStatoOdpUdcTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._tabStatoOdpUdcTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagBilanceTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagBilanceTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._contatoriUdcTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ContatoriUdc.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._contatoriUdcTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._impianti2ArticoliTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._impianti2ArticoliTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private int UpdateDeletedRows(GMWDataSet dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._impianti2ArticoliTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._contatoriUdcTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ContatoriUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._contatoriUdcTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagBilanceTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagBilanceTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._tabStatoOdpUdcTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._tabStatoOdpUdcTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagImpiantiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagImpiantiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagStatiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagStatiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagOdpTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagOdpTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagSitiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagSitiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagCompanyTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagCompanyTableAdapter.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(GMWDataSet dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._anagArticoliTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagArticoliTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagBilanceTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagBilanceTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagCompanyTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagCompanyTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagImpiantiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagImpiantiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagOdpTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagOdpTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagSitiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagSitiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagStatiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagStatiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._contatoriUdcTableAdapter != null) + && (this.MatchTableAdapterConnection(this._contatoriUdcTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._impianti2ArticoliTableAdapter != null) + && (this.MatchTableAdapterConnection(this._impianti2ArticoliTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._tabStatoOdpUdcTableAdapter != null) + && (this.MatchTableAdapterConnection(this._tabStatoOdpUdcTableAdapter.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._anagArticoliTableAdapter != null)) { + revertConnections.Add(this._anagArticoliTableAdapter, this._anagArticoliTableAdapter.Connection); + this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagArticoliTableAdapter.Adapter); + } + } + if ((this._anagBilanceTableAdapter != null)) { + revertConnections.Add(this._anagBilanceTableAdapter, this._anagBilanceTableAdapter.Connection); + this._anagBilanceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagBilanceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagBilanceTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagBilanceTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagBilanceTableAdapter.Adapter); + } + } + if ((this._anagCompanyTableAdapter != null)) { + revertConnections.Add(this._anagCompanyTableAdapter, this._anagCompanyTableAdapter.Connection); + this._anagCompanyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagCompanyTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagCompanyTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagCompanyTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagCompanyTableAdapter.Adapter); + } + } + if ((this._anagImpiantiTableAdapter != null)) { + revertConnections.Add(this._anagImpiantiTableAdapter, this._anagImpiantiTableAdapter.Connection); + this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagImpiantiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagImpiantiTableAdapter.Adapter); + } + } + if ((this._anagOdpTableAdapter != null)) { + revertConnections.Add(this._anagOdpTableAdapter, this._anagOdpTableAdapter.Connection); + this._anagOdpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagOdpTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagOdpTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagOdpTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagOdpTableAdapter.Adapter); + } + } + if ((this._anagSitiTableAdapter != null)) { + revertConnections.Add(this._anagSitiTableAdapter, this._anagSitiTableAdapter.Connection); + this._anagSitiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagSitiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagSitiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagSitiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagSitiTableAdapter.Adapter); + } + } + if ((this._anagStatiTableAdapter != null)) { + revertConnections.Add(this._anagStatiTableAdapter, this._anagStatiTableAdapter.Connection); + this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagStatiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagStatiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagStatiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiTableAdapter.Adapter); + } + } + if ((this._contatoriUdcTableAdapter != null)) { + revertConnections.Add(this._contatoriUdcTableAdapter, this._contatoriUdcTableAdapter.Connection); + this._contatoriUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._contatoriUdcTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._contatoriUdcTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._contatoriUdcTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._contatoriUdcTableAdapter.Adapter); + } + } + if ((this._impianti2ArticoliTableAdapter != null)) { + revertConnections.Add(this._impianti2ArticoliTableAdapter, this._impianti2ArticoliTableAdapter.Connection); + this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._impianti2ArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._impianti2ArticoliTableAdapter.Adapter); + } + } + if ((this._tabStatoOdpUdcTableAdapter != null)) { + revertConnections.Add(this._tabStatoOdpUdcTableAdapter, this._tabStatoOdpUdcTableAdapter.Connection); + this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._tabStatoOdpUdcTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._tabStatoOdpUdcTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._tabStatoOdpUdcTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._tabStatoOdpUdcTableAdapter.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._anagArticoliTableAdapter != null)) { + this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter])); + this._anagArticoliTableAdapter.Transaction = null; + } + if ((this._anagBilanceTableAdapter != null)) { + this._anagBilanceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagBilanceTableAdapter])); + this._anagBilanceTableAdapter.Transaction = null; + } + if ((this._anagCompanyTableAdapter != null)) { + this._anagCompanyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagCompanyTableAdapter])); + this._anagCompanyTableAdapter.Transaction = null; + } + if ((this._anagImpiantiTableAdapter != null)) { + this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImpiantiTableAdapter])); + this._anagImpiantiTableAdapter.Transaction = null; + } + if ((this._anagOdpTableAdapter != null)) { + this._anagOdpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagOdpTableAdapter])); + this._anagOdpTableAdapter.Transaction = null; + } + if ((this._anagSitiTableAdapter != null)) { + this._anagSitiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagSitiTableAdapter])); + this._anagSitiTableAdapter.Transaction = null; + } + if ((this._anagStatiTableAdapter != null)) { + this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiTableAdapter])); + this._anagStatiTableAdapter.Transaction = null; + } + if ((this._contatoriUdcTableAdapter != null)) { + this._contatoriUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._contatoriUdcTableAdapter])); + this._contatoriUdcTableAdapter.Transaction = null; + } + if ((this._impianti2ArticoliTableAdapter != null)) { + this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._impianti2ArticoliTableAdapter])); + this._impianti2ArticoliTableAdapter.Transaction = null; + } + if ((this._tabStatoOdpUdcTableAdapter != null)) { + this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabStatoOdpUdcTableAdapter])); + this._tabStatoOdpUdcTableAdapter.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_Reports/GMWDataSet.xsc b/GMW/GMW_Reports/GMWDataSet.xsc new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/GMW/GMW_Reports/GMWDataSet.xsc @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/GMW/GMW_Reports/GMWDataSet.xsd b/GMW/GMW_Reports/GMWDataSet.xsd new file mode 100644 index 00000000..e0075a22 --- /dev/null +++ b/GMW/GMW_Reports/GMWDataSet.xsd @@ -0,0 +1,1272 @@ + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura))) + + + + + + + + + + + + INSERT INTO [dbo].[AnagArticoli] ([CodArticolo], [DescrArticolo], [Figura]) VALUES (@CodArticolo, @DescrArticolo, @Figura); +SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo) + + + + + + + + + + SELECT CodArticolo, DescrArticolo, Figura FROM dbo.AnagArticoli + + + + + + UPDATE [dbo].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescrArticolo] = @DescrArticolo, [Figura] = @Figura WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura))); +SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo) + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagBilance] WHERE (([CodBilancia] = @Original_CodBilancia) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito))) + + + + + + + + + + + + + + INSERT INTO [dbo].[AnagBilance] ([CodBilancia], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodBilancia, @DescrImpianto, @CodCompany, @CodSito); +SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (CodBilancia = @CodBilancia) + + + + + + + + + + + SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM dbo.AnagBilance + + + + + + UPDATE [dbo].[AnagBilance] SET [CodBilancia] = @CodBilancia, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodBilancia] = @Original_CodBilancia) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito))); +SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (CodBilancia = @CodBilancia) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagCompany] WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany))) + + + + + + + + + + INSERT INTO [dbo].[AnagCompany] ([CodCompany], [DescrCompany]) VALUES (@CodCompany, @DescrCompany); +SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany) + + + + + + + + + SELECT CodCompany, DescrCompany FROM dbo.AnagCompany + + + + + + UPDATE [dbo].[AnagCompany] SET [CodCompany] = @CodCompany, [DescrCompany] = @DescrCompany WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany))); +SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito))) + + + + + + + + + + + + + + INSERT INTO [dbo].[AnagImpianti] ([CodImpianto], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodImpianto, @DescrImpianto, @CodCompany, @CodSito); +SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto) + + + + + + + + + + + SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM dbo.AnagImpianti + + + + + + UPDATE [dbo].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito))); +SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagOdp] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate)) + + + + + + + + + + + + + + + + INSERT INTO [dbo].[AnagOdp] ([CodCompany], [ODP], [CodArticolo], [CodDisegno], [Esponente], [Magazzino], [Ubicazione], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @CodArticolo, @CodDisegno, @Esponente, @Magazzino, @Ubicazione, @CreateDate, @ModDate); +SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) + + + + + + + + + + + + + + + + SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM dbo.AnagOdp + + + + + + UPDATE [dbo].[AnagOdp] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [CodArticolo] = @CodArticolo, [CodDisegno] = @CodDisegno, [Esponente] = @Esponente, [Magazzino] = @Magazzino, [Ubicazione] = @Ubicazione, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate)); +SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagSiti] WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito))) + + + + + + + + + + + INSERT INTO [dbo].[AnagSiti] ([CodCompany], [CodSito], [DescrSito]) VALUES (@CodCompany, @CodSito, @DescrSito); +SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito) + + + + + + + + + + SELECT CodCompany, CodSito, DescrSito FROM dbo.AnagSiti + + + + + + UPDATE [dbo].[AnagSiti] SET [CodCompany] = @CodCompany, [CodSito] = @CodSito, [DescrSito] = @DescrSito WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito))); +SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito) + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagStati] WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrStato))) + + + + + + + + + + INSERT INTO [dbo].[AnagStati] ([IdxStato], [DescrStato]) VALUES (@IdxStato, @DescrStato); +SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato) + + + + + + + + + SELECT IdxStato, DescrStato FROM dbo.AnagStati + + + + + + UPDATE [dbo].[AnagStati] SET [IdxStato] = @IdxStato, [DescrStato] = @DescrStato WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_DescrStato = 1 AND [DescrStato] IS NULL) OR ([DescrStato] = @Original_DescrStato))); +SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[ContatoriUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([Flusso] = @Original_Flusso) AND ([Anno] = @Original_Anno) AND ((@IsNull_LastIdx = 1 AND [LastIdx] IS NULL) OR ([LastIdx] = @Original_LastIdx))) + + + + + + + + + + + + INSERT INTO [dbo].[ContatoriUdc] ([CodCompany], [Flusso], [Anno], [LastIdx]) VALUES (@CodCompany, @Flusso, @Anno, @LastIdx); +SELECT CodCompany, Flusso, Anno, LastIdx FROM ContatoriUdc WHERE (Anno = @Anno) AND (CodCompany = @CodCompany) AND (Flusso = @Flusso) + + + + + + + + + + + SELECT CodCompany, Flusso, Anno, LastIdx FROM dbo.ContatoriUdc + + + + + + UPDATE [dbo].[ContatoriUdc] SET [CodCompany] = @CodCompany, [Flusso] = @Flusso, [Anno] = @Anno, [LastIdx] = @LastIdx WHERE (([CodCompany] = @Original_CodCompany) AND ([Flusso] = @Original_Flusso) AND ([Anno] = @Original_Anno) AND ((@IsNull_LastIdx = 1 AND [LastIdx] IS NULL) OR ([LastIdx] = @Original_LastIdx))); +SELECT CodCompany, Flusso, Anno, LastIdx FROM ContatoriUdc WHERE (Anno = @Anno) AND (CodCompany = @CodCompany) AND (Flusso = @Flusso) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd))) + + + + + + + + + + + + INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [CodArticolo], [InizioProd], [FineProd]) VALUES (@CodImpianto, @CodArticolo, @InizioProd, @FineProd); +SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) + + + + + + + + + + + SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM dbo.Impianti2Articoli + + + + + + UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [CodArticolo] = @CodArticolo, [InizioProd] = @InizioProd, [FineProd] = @FineProd WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd))); +SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate))) + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC) + + + + + + + + + + + + + + + + SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM dbo.TabStatoOdpUdc + + + + + + UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate))); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_getStatoByUdc + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_insNewOdpUdc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_updateByBilancia + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.f_padLeft + + + + + + + + + + + + + dbo.staccaNewIdx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/GMWDataSet.xss b/GMW/GMW_Reports/GMWDataSet.xss new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/GMW/GMW_Reports/GMWDataSet.xss @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/GMW/GMW_Reports/GMW_Reports.csproj b/GMW/GMW_Reports/GMW_Reports.csproj new file mode 100644 index 00000000..a280b7f4 --- /dev/null +++ b/GMW/GMW_Reports/GMW_Reports.csproj @@ -0,0 +1,163 @@ + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {ADACC5A9-F45C-4659-9026-73E1E82517EF} + WinExe + Properties + GMW_Reports + GMW_Reports + v3.5 + + + 2.0 + + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + Form + + + Form1.cs + + + True + True + GMWDataSet.xsd + + + + + + Designer + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + GMWDataSet.xsd + + + MSDataSetGenerator + GMWDataSet.Designer.cs + Designer + + + GMWDataSet.xsd + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework Client Profile + false + + + False + .NET Framework 2.0 %28x86%29 + false + + + False + .NET Framework 3.0 %28x86%29 + false + + + False + .NET Framework 3.5 + false + + + False + .NET Framework 3.5 SP1 + true + + + False + Windows Installer 3.1 + true + + + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/GMW_Reports.csproj.user b/GMW/GMW_Reports/GMW_Reports.csproj.user new file mode 100644 index 00000000..ce4e607e --- /dev/null +++ b/GMW/GMW_Reports/GMW_Reports.csproj.user @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + en-US + false + + \ No newline at end of file diff --git a/GMW/GMW_Reports/Program.cs b/GMW/GMW_Reports/Program.cs new file mode 100644 index 00000000..01d26cd9 --- /dev/null +++ b/GMW/GMW_Reports/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace GMW_Reports +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/GMW/GMW_Reports/Properties/AssemblyInfo.cs b/GMW/GMW_Reports/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..1357d8be --- /dev/null +++ b/GMW/GMW_Reports/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("GMW_Reports")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("GMW_Reports")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("1df5f89d-578f-4ed7-9b5a-7ffa5d0daedc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/GMW/GMW_Reports/Properties/Resources.Designer.cs b/GMW/GMW_Reports/Properties/Resources.Designer.cs new file mode 100644 index 00000000..1babf18b --- /dev/null +++ b/GMW/GMW_Reports/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4927 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW_Reports.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GMW_Reports.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/GMW/GMW_Reports/Properties/Resources.resx b/GMW/GMW_Reports/Properties/Resources.resx new file mode 100644 index 00000000..ffecec85 --- /dev/null +++ b/GMW/GMW_Reports/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GMW/GMW_Reports/Properties/Settings.Designer.cs b/GMW/GMW_Reports/Properties/Settings.Designer.cs new file mode 100644 index 00000000..73efae7b --- /dev/null +++ b/GMW/GMW_Reports/Properties/Settings.Designer.cs @@ -0,0 +1,37 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4927 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW_Reports.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=localhost\\sql2008;Initial Catalog=GMW;Persist Security Info=True;User" + + " ID=sa;Password=keyhammer")] + public string GMWConnectionString { + get { + return ((string)(this["GMWConnectionString"])); + } + } + } +} diff --git a/GMW/GMW_Reports/Properties/Settings.settings b/GMW/GMW_Reports/Properties/Settings.settings new file mode 100644 index 00000000..8dea37bd --- /dev/null +++ b/GMW/GMW_Reports/Properties/Settings.settings @@ -0,0 +1,14 @@ + + + + + + <?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=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/app.config b/GMW/GMW_Reports/app.config new file mode 100644 index 00000000..51139981 --- /dev/null +++ b/GMW/GMW_Reports/app.config @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/bin/Debug/GMW_Reports.exe b/GMW/GMW_Reports/bin/Debug/GMW_Reports.exe new file mode 100644 index 00000000..9694ddb6 Binary files /dev/null and b/GMW/GMW_Reports/bin/Debug/GMW_Reports.exe differ diff --git a/GMW/GMW_Reports/bin/Debug/GMW_Reports.exe.config b/GMW/GMW_Reports/bin/Debug/GMW_Reports.exe.config new file mode 100644 index 00000000..51139981 --- /dev/null +++ b/GMW/GMW_Reports/bin/Debug/GMW_Reports.exe.config @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/bin/Debug/GMW_Reports.vshost.exe b/GMW/GMW_Reports/bin/Debug/GMW_Reports.vshost.exe new file mode 100644 index 00000000..14041bac Binary files /dev/null and b/GMW/GMW_Reports/bin/Debug/GMW_Reports.vshost.exe differ diff --git a/GMW/GMW_Reports/bin/Debug/GMW_Reports.vshost.exe.config b/GMW/GMW_Reports/bin/Debug/GMW_Reports.vshost.exe.config new file mode 100644 index 00000000..51139981 --- /dev/null +++ b/GMW/GMW_Reports/bin/Debug/GMW_Reports.vshost.exe.config @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/bin/Release/GMW_Reports.exe b/GMW/GMW_Reports/bin/Release/GMW_Reports.exe new file mode 100644 index 00000000..133e16a1 Binary files /dev/null and b/GMW/GMW_Reports/bin/Release/GMW_Reports.exe differ diff --git a/GMW/GMW_Reports/bin/Release/GMW_Reports.exe.config b/GMW/GMW_Reports/bin/Release/GMW_Reports.exe.config new file mode 100644 index 00000000..51139981 --- /dev/null +++ b/GMW/GMW_Reports/bin/Release/GMW_Reports.exe.config @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_Reports/obj/Debug/GMW_Reports.Form1.resources b/GMW/GMW_Reports/obj/Debug/GMW_Reports.Form1.resources new file mode 100644 index 00000000..06c24d06 Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/GMW_Reports.Form1.resources differ diff --git a/GMW/GMW_Reports/obj/Debug/GMW_Reports.Properties.Resources.resources b/GMW/GMW_Reports/obj/Debug/GMW_Reports.Properties.Resources.resources new file mode 100644 index 00000000..06c24d06 Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/GMW_Reports.Properties.Resources.resources differ diff --git a/GMW/GMW_Reports/obj/Debug/GMW_Reports.csproj.FileListAbsolute.txt b/GMW/GMW_Reports/obj/Debug/GMW_Reports.csproj.FileListAbsolute.txt new file mode 100644 index 00000000..cb8bd5cd --- /dev/null +++ b/GMW/GMW_Reports/obj/Debug/GMW_Reports.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\bin\Debug\GMW_Reports.exe.config +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\bin\Debug\GMW_Reports.exe +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\bin\Debug\GMW_Reports.pdb +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\ResolveAssemblyReference.cache +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\GMW_Reports.Form1.resources +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\GMW_Reports.Properties.Resources.resources +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\GMW_Reports.csproj.GenerateResource.Cache +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\RdlCompile.cache +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\RdlCompile.compiled +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\GMW_Reports.exe +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Debug\GMW_Reports.pdb diff --git a/GMW/GMW_Reports/obj/Debug/GMW_Reports.csproj.GenerateResource.Cache b/GMW/GMW_Reports/obj/Debug/GMW_Reports.csproj.GenerateResource.Cache new file mode 100644 index 00000000..2216f2f1 Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/GMW_Reports.csproj.GenerateResource.Cache differ diff --git a/GMW/GMW_Reports/obj/Debug/GMW_Reports.exe b/GMW/GMW_Reports/obj/Debug/GMW_Reports.exe new file mode 100644 index 00000000..9694ddb6 Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/GMW_Reports.exe differ diff --git a/GMW/GMW_Reports/obj/Debug/RdlCompile.cache b/GMW/GMW_Reports/obj/Debug/RdlCompile.cache new file mode 100644 index 00000000..3c96104a Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/RdlCompile.cache differ diff --git a/GMW/GMW_Reports/obj/Debug/RdlCompile.compiled b/GMW/GMW_Reports/obj/Debug/RdlCompile.compiled new file mode 100644 index 00000000..e69de29b diff --git a/GMW/GMW_Reports/obj/Debug/TempPE/GMWDataSet.Designer.cs.dll b/GMW/GMW_Reports/obj/Debug/TempPE/GMWDataSet.Designer.cs.dll new file mode 100644 index 00000000..19136a07 Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/TempPE/GMWDataSet.Designer.cs.dll differ diff --git a/GMW/GMW_Reports/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/GMW/GMW_Reports/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 00000000..35c62f8a Binary files /dev/null and b/GMW/GMW_Reports/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/GMW/GMW_Reports/obj/Release/GMW_Reports.Form1.resources b/GMW/GMW_Reports/obj/Release/GMW_Reports.Form1.resources new file mode 100644 index 00000000..06c24d06 Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/GMW_Reports.Form1.resources differ diff --git a/GMW/GMW_Reports/obj/Release/GMW_Reports.Properties.Resources.resources b/GMW/GMW_Reports/obj/Release/GMW_Reports.Properties.Resources.resources new file mode 100644 index 00000000..06c24d06 Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/GMW_Reports.Properties.Resources.resources differ diff --git a/GMW/GMW_Reports/obj/Release/GMW_Reports.csproj.FileListAbsolute.txt b/GMW/GMW_Reports/obj/Release/GMW_Reports.csproj.FileListAbsolute.txt new file mode 100644 index 00000000..765c386d --- /dev/null +++ b/GMW/GMW_Reports/obj/Release/GMW_Reports.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\bin\Release\GMW_Reports.exe.config +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\bin\Release\GMW_Reports.exe +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\bin\Release\GMW_Reports.pdb +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\ResolveAssemblyReference.cache +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\GMW_Reports.Form1.resources +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\GMW_Reports.Properties.Resources.resources +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\GMW_Reports.csproj.GenerateResource.Cache +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\RdlCompile.cache +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\RdlCompile.compiled +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\GMW_Reports.exe +C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_Reports\obj\Release\GMW_Reports.pdb diff --git a/GMW/GMW_Reports/obj/Release/GMW_Reports.csproj.GenerateResource.Cache b/GMW/GMW_Reports/obj/Release/GMW_Reports.csproj.GenerateResource.Cache new file mode 100644 index 00000000..cdcb75c2 Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/GMW_Reports.csproj.GenerateResource.Cache differ diff --git a/GMW/GMW_Reports/obj/Release/GMW_Reports.exe b/GMW/GMW_Reports/obj/Release/GMW_Reports.exe new file mode 100644 index 00000000..133e16a1 Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/GMW_Reports.exe differ diff --git a/GMW/GMW_Reports/obj/Release/RdlCompile.cache b/GMW/GMW_Reports/obj/Release/RdlCompile.cache new file mode 100644 index 00000000..3c96104a Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/RdlCompile.cache differ diff --git a/GMW/GMW_Reports/obj/Release/RdlCompile.compiled b/GMW/GMW_Reports/obj/Release/RdlCompile.compiled new file mode 100644 index 00000000..e69de29b diff --git a/GMW/GMW_Reports/obj/Release/TempPE/GMWDataSet.Designer.cs.dll b/GMW/GMW_Reports/obj/Release/TempPE/GMWDataSet.Designer.cs.dll new file mode 100644 index 00000000..b9a19b15 Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/TempPE/GMWDataSet.Designer.cs.dll differ diff --git a/GMW/GMW_Reports/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/GMW/GMW_Reports/obj/Release/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 00000000..15501427 Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs index 2d64e8e6..c5333a6d 100644 --- a/GMW/GMW_data/DS_Applicazione.Designer.cs +++ b/GMW/GMW_data/DS_Applicazione.Designer.cs @@ -7742,10 +7742,10 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat 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 = "SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, " + - "ModDate\r\nFROM TabStatoOdpUdc\r\nWHERE (UDC = @UDC)"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].CommandText = "dbo.stp_getStatoByUdc"; + 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.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; this._commandCollection[2].CommandText = "dbo.stp_insNewOdpUdc"; @@ -7796,10 +7796,10 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat public virtual DS_Applicazione.TabStatoOdpUdcDataTable getByUdc(string UDC) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((UDC == null)) { - throw new global::System.ArgumentNullException("UDC"); + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(UDC)); + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); } DS_Applicazione.TabStatoOdpUdcDataTable dataTable = new DS_Applicazione.TabStatoOdpUdcDataTable(); this.Adapter.Fill(dataTable); diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd index 82e528d4..16dc386e 100644 --- a/GMW/GMW_data/DS_Applicazione.xsd +++ b/GMW/GMW_data/DS_Applicazione.xsd @@ -647,14 +647,13 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat - + - - SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate -FROM TabStatoOdpUdc -WHERE (UDC = @UDC) + + dbo.stp_getStatoByUdc - + + diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index 1f217b6c..7a7ce1d5 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll index 97e34566..3129d247 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/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index 1f217b6c..7a7ce1d5 100644 Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll index 83654943..976b1cb2 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll index 97e34566..3129d247 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/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll index 232a3cb7..db645f66 100644 Binary files a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/GMW/GMW_deploy/Release/GMW.csproj b/GMW/GMW_deploy/Release/GMW.csproj index 89ad41de..5bf5fe93 100644 --- a/GMW/GMW_deploy/Release/GMW.csproj +++ b/GMW/GMW_deploy/Release/GMW.csproj @@ -101,7 +101,7 @@ - + diff --git a/GMW/GMW_deploy/Release/Reports/CartellinoTara.rdl b/GMW/GMW_deploy/Release/Reports/CartellinoTara.rdl new file mode 100644 index 00000000..d0ae95f7 --- /dev/null +++ b/GMW/GMW_deploy/Release/Reports/CartellinoTara.rdl @@ -0,0 +1,258 @@ + + + + + d9194145-aa70-4a36-8b7a-c929936f98f7 + + + + + + + + + 14.8cm + true + 21cm + 0.25cm + true + 0.5cm + 0.5cm + 0.5cm + 3255cde9-74a1-4005-8008-232d8355d769 + 21cm + + + + + CodCompany + System.String + + + ODP + System.String + + + UDC + System.String + + + Tara + System.Double + + + IdxStato + System.Int32 + + + Qta + System.Decimal + + + CodImballo + System.String + + + CreateDate + System.DateTime + + + ModDate + System.DateTime + + + + GMWConnectionString + dbo.stp_getStatoByUdc + true + + + GMWDataSet + stp_getStatoByUdc + + + + + GetData + + + + + 20cm + + 1cm + + + textbox1 + 12.69841cm + + 1 + true + 0.91429cm + CartellinoTara + + + GMWDataSet_stp_getStatoByUdc + 4cm + + + + + =Fields!UDC.Value + + + + + =Fields!UDC.Value + Ascending + + +
+ + + + + 3 + + + UDC + + true + ="*" & Fields!UDC.Value & "*" + + + + + 3.50781cm + + +
+
+
+ 19cm +
+ + + + + + + textbox4 + + true + Tara + + + + + + + Tara + + true + =Fields!Tara.Value & " Kg" + + + + + + + CreateDate + + true + =Fields!CreateDate.Value + + + + + 3.50781cm + + +
+ + + 6.31847cm + + + 6.36305cm + + + 6.31848cm + + + 7.01562cm + 0.5cm +
+
+ 13.5cm + + it-IT + 0.5cm + 14.8cm +
\ No newline at end of file diff --git a/GMW/GMW_deploy/Release/bin/GMW.dll b/GMW/GMW_deploy/Release/bin/GMW.dll index 946f8846..857b1730 100644 Binary files a/GMW/GMW_deploy/Release/bin/GMW.dll and b/GMW/GMW_deploy/Release/bin/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/bin/GMW_data.dll b/GMW/GMW_deploy/Release/bin/GMW_data.dll index 97e34566..3129d247 100644 Binary files a/GMW/GMW_deploy/Release/bin/GMW_data.dll and b/GMW/GMW_deploy/Release/bin/GMW_data.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll index 395c14bb..54b7839a 100644 Binary files a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache index 332256ee..20f247b9 100644 Binary files a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Release/obj/Release/GMW.dll b/GMW/GMW_deploy/Release/obj/Release/GMW.dll index 946f8846..857b1730 100644 Binary files a/GMW/GMW_deploy/Release/obj/Release/GMW.dll and b/GMW/GMW_deploy/Release/obj/Release/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache index 42129678..88ebef06 100644 Binary files a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Source/GMW.csproj b/GMW/GMW_deploy/Source/GMW.csproj index 89ad41de..5bf5fe93 100644 --- a/GMW/GMW_deploy/Source/GMW.csproj +++ b/GMW/GMW_deploy/Source/GMW.csproj @@ -101,7 +101,7 @@ - + diff --git a/GMW/GMW_deploy/Source/Reports/CartellinoTara.rdl b/GMW/GMW_deploy/Source/Reports/CartellinoTara.rdl new file mode 100644 index 00000000..d0ae95f7 --- /dev/null +++ b/GMW/GMW_deploy/Source/Reports/CartellinoTara.rdl @@ -0,0 +1,258 @@ + + + + + d9194145-aa70-4a36-8b7a-c929936f98f7 + + + + + + + + + 14.8cm + true + 21cm + 0.25cm + true + 0.5cm + 0.5cm + 0.5cm + 3255cde9-74a1-4005-8008-232d8355d769 + 21cm + + + + + CodCompany + System.String + + + ODP + System.String + + + UDC + System.String + + + Tara + System.Double + + + IdxStato + System.Int32 + + + Qta + System.Decimal + + + CodImballo + System.String + + + CreateDate + System.DateTime + + + ModDate + System.DateTime + + + + GMWConnectionString + dbo.stp_getStatoByUdc + true + + + GMWDataSet + stp_getStatoByUdc + + + + + GetData + + + + + 20cm + + 1cm + + + textbox1 + 12.69841cm + + 1 + true + 0.91429cm + CartellinoTara + + + GMWDataSet_stp_getStatoByUdc + 4cm + + + + + =Fields!UDC.Value + + + + + =Fields!UDC.Value + Ascending + + +
+ + + + + 3 + + + UDC + + true + ="*" & Fields!UDC.Value & "*" + + + + + 3.50781cm + + +
+
+
+ 19cm +
+ + + + + + + textbox4 + + true + Tara + + + + + + + Tara + + true + =Fields!Tara.Value & " Kg" + + + + + + + CreateDate + + true + =Fields!CreateDate.Value + + + + + 3.50781cm + + +
+ + + 6.31847cm + + + 6.36305cm + + + 6.31848cm + + + 7.01562cm + 0.5cm +
+
+ 13.5cm + + it-IT + 0.5cm + 14.8cm +
\ No newline at end of file diff --git a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs index bc46f0c0..178551f0 100644 --- a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs +++ b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs @@ -11,7 +11,7 @@ namespace GMW.WS /// /// Summary description for bilance /// - [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.0.9.13")] + [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.0.9.14")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class bilance : System.Web.Services.WebService @@ -92,7 +92,7 @@ namespace GMW.WS /// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico) /// [WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")] - public GMW.Type.ArtInProd[] ArtInProd() + public GMW.Type.ArtInProd[] elencoArtInProd() { gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrProd()); return gestEl.elencoArtInProd; @@ -103,7 +103,7 @@ namespace GMW.WS /// CodImpianto come da anagrafica /// [WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")] - public GMW.Type.ArtInProd[] ArtInProd4Impianto(string CodImpianto) + public GMW.Type.ArtInProd[] elencoArtInProd4Impianto(string CodImpianto) { gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto)); return gestEl.elencoArtInProd; diff --git a/GMW/GMW_deploy/Source/bin/GMW.dll b/GMW/GMW_deploy/Source/bin/GMW.dll index 946f8846..857b1730 100644 Binary files a/GMW/GMW_deploy/Source/bin/GMW.dll and b/GMW/GMW_deploy/Source/bin/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/bin/GMW_data.dll b/GMW/GMW_deploy/Source/bin/GMW_data.dll index 97e34566..3129d247 100644 Binary files a/GMW/GMW_deploy/Source/bin/GMW_data.dll and b/GMW/GMW_deploy/Source/bin/GMW_data.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll index 395c14bb..54b7839a 100644 Binary files a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache index 332256ee..20f247b9 100644 Binary files a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Source/obj/Release/GMW.dll b/GMW/GMW_deploy/Source/obj/Release/GMW.dll index 946f8846..857b1730 100644 Binary files a/GMW/GMW_deploy/Source/obj/Release/GMW.dll and b/GMW/GMW_deploy/Source/obj/Release/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache index 42129678..88ebef06 100644 Binary files a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache differ