diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj
index 9835fe38..8cecbba9 100644
--- a/GMW/GMW/GMW.csproj
+++ b/GMW/GMW/GMW.csproj
@@ -120,7 +120,6 @@
Test.aspx
-
diff --git a/GMW/GMW/Type/Articolo.cs b/GMW/GMW/Type/Articolo.cs
deleted file mode 100644
index b23ef1db..00000000
--- a/GMW/GMW/Type/Articolo.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using GMW_data;
-
-namespace GMW.Type
-{
- public class Articolo
- {
- public Articolo()
- {
- }
-
-
- public Articolo(DS_Applicazione.AnagArticoliRow riga)
- {
- Cliente = riga.Cliente;
- Famiglia = riga.Famiglia;
- Particolare = riga.Particolare;
- DescrArticolo = riga.DescrArticolo;
- }
-
- ///
- /// Cliente
- ///
- public string Cliente { get; set; }
- ///
- /// Famiglia
- ///
- public string Famiglia { get; set; }
- ///
- /// Codice Articolo
- ///
- public string Particolare { get; set; }
- ///
- /// Descrizione Articolo
- ///
- public string DescrArticolo { get; set; }
-
- ///
- /// inizializza a partire da una riga impianto tipizzata
- ///
- ///
- public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga)
- {
- Cliente = riga.Cliente;
- Famiglia = riga.Famiglia;
- Particolare = riga.Particolare;
- DescrArticolo = riga.DescrArticolo;
- }
-
- }
-}
diff --git a/GMW/GMW/Type/elenchi.cs b/GMW/GMW/Type/elenchi.cs
index 93c7b6b1..82ab3c0a 100644
--- a/GMW/GMW/Type/elenchi.cs
+++ b/GMW/GMW/Type/elenchi.cs
@@ -115,41 +115,6 @@ namespace GMW.Type
#endregion
- #region area articoli
-
-
- protected Articolo[] _elencoArticoli;
-
- ///
- /// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[]
- ///
- ///
- public void caricaArticoli(DS_Applicazione.AnagArticoliDataTable tabArticoli)
- {
- // conto quanti elementi ha la tab x inizializzare l'array...
- int numRighe = tabArticoli.Rows.Count;
- _elencoArticoli = new Articolo[numRighe];
- // prendo un obj impianto da valorizzare di volta in volta...
- Articolo obj;
- for (int i = 0; i < numRighe; i++)
- {
- obj = new Articolo(tabArticoli[i]);
- _elencoArticoli[i] = obj;
- }
- }
- ///
- /// Elenco Articoli
- ///
- public Articolo[] elencoArticoli
- {
- get
- {
- return _elencoArticoli;
- }
- }
-
- #endregion
-
#region area impianti
protected Impianto[] _elencoImpianti;
diff --git a/GMW/GMW/Web.config b/GMW/GMW/Web.config
index 572c7f5a..d5514517 100644
--- a/GMW/GMW/Web.config
+++ b/GMW/GMW/Web.config
@@ -139,7 +139,7 @@
-
+
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 6f53d044..4fa6ed78 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 e23324cb..011c33e8 100644
Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ
diff --git a/GMW/GMW/bin/SteamWare.dll b/GMW/GMW/bin/SteamWare.dll
index fa95249a..d73d0e9d 100644
Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index f19b78fe..4fa6ed78 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 69cab9c0..6e220ca9 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs
index 2d79a16a..88566f80 100644
--- a/GMW/GMW_data/DS_Applicazione.Designer.cs
+++ b/GMW/GMW_data/DS_Applicazione.Designer.cs
@@ -31,10 +31,6 @@ namespace GMW_data {
private AnagStatiProdottoDataTable tableAnagStatiProdotto;
- private AnagArticoliDataTable tableAnagArticoli;
-
- private Impianti2ArticoliDataTable tableImpianti2Articoli;
-
private StoricoEventiDataTable tableStoricoEventi;
private RelazUDCDataTable tableRelazUDC;
@@ -61,12 +57,8 @@ namespace GMW_data {
private AnagFamiglieDataTable tableAnagFamiglie;
- private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli1;
-
private global::System.Data.DataRelation relationFK_StoricoEventi_AnagTipoDichiaraz;
- private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti;
-
private global::System.Data.DataRelation relationFK_AnagImpianti_AnagCompanySito;
private global::System.Data.DataRelation relationFK_ElencoCartellini_AnagCompanySito;
@@ -112,12 +104,6 @@ namespace GMW_data {
if ((ds.Tables["AnagStatiProdotto"] != null)) {
base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"]));
}
- if ((ds.Tables["AnagArticoli"] != null)) {
- base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
- }
- if ((ds.Tables["Impianti2Articoli"] != null)) {
- base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
- }
if ((ds.Tables["StoricoEventi"] != null)) {
base.Tables.Add(new StoricoEventiDataTable(ds.Tables["StoricoEventi"]));
}
@@ -202,24 +188,6 @@ namespace GMW_data {
}
}
- [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 Impianti2ArticoliDataTable Impianti2Articoli {
- get {
- return this.tableImpianti2Articoli;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -405,12 +373,6 @@ namespace GMW_data {
if ((ds.Tables["AnagStatiProdotto"] != null)) {
base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"]));
}
- if ((ds.Tables["AnagArticoli"] != null)) {
- base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
- }
- if ((ds.Tables["Impianti2Articoli"] != null)) {
- base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
- }
if ((ds.Tables["StoricoEventi"] != null)) {
base.Tables.Add(new StoricoEventiDataTable(ds.Tables["StoricoEventi"]));
}
@@ -498,18 +460,6 @@ namespace GMW_data {
this.tableAnagStatiProdotto.InitVars();
}
}
- this.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"]));
- if ((initTable == true)) {
- if ((this.tableAnagArticoli != null)) {
- this.tableAnagArticoli.InitVars();
- }
- }
- this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(base.Tables["Impianti2Articoli"]));
- if ((initTable == true)) {
- if ((this.tableImpianti2Articoli != null)) {
- this.tableImpianti2Articoli.InitVars();
- }
- }
this.tableStoricoEventi = ((StoricoEventiDataTable)(base.Tables["StoricoEventi"]));
if ((initTable == true)) {
if ((this.tableStoricoEventi != null)) {
@@ -588,9 +538,7 @@ namespace GMW_data {
this.tableAnagFamiglie.InitVars();
}
}
- this.relationFK_Impianti2Articoli_AnagArticoli1 = this.Relations["FK_Impianti2Articoli_AnagArticoli1"];
this.relationFK_StoricoEventi_AnagTipoDichiaraz = this.Relations["FK_StoricoEventi_AnagTipoDichiaraz"];
- this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
this.relationFK_AnagImpianti_AnagCompanySito = this.Relations["FK_AnagImpianti_AnagCompanySito"];
this.relationFK_ElencoCartellini_AnagCompanySito = this.Relations["FK_ElencoCartellini_AnagCompanySito"];
this.relationFK_ElencoCartellini_AnagStatiProdotto = this.Relations["FK_ElencoCartellini_AnagStatiProdotto"];
@@ -611,10 +559,6 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagTipoDichiaraz);
this.tableAnagStatiProdotto = new AnagStatiProdottoDataTable();
base.Tables.Add(this.tableAnagStatiProdotto);
- this.tableAnagArticoli = new AnagArticoliDataTable();
- base.Tables.Add(this.tableAnagArticoli);
- this.tableImpianti2Articoli = new Impianti2ArticoliDataTable();
- base.Tables.Add(this.tableImpianti2Articoli);
this.tableStoricoEventi = new StoricoEventiDataTable();
base.Tables.Add(this.tableStoricoEventi);
this.tableRelazUDC = new RelazUDCDataTable();
@@ -641,18 +585,10 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagParticolari);
this.tableAnagFamiglie = new AnagFamiglieDataTable();
base.Tables.Add(this.tableAnagFamiglie);
- this.relationFK_Impianti2Articoli_AnagArticoli1 = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli1", new global::System.Data.DataColumn[] {
- this.tableAnagArticoli.ParticolareColumn}, new global::System.Data.DataColumn[] {
- this.tableImpianti2Articoli.ParticolareColumn}, false);
- this.Relations.Add(this.relationFK_Impianti2Articoli_AnagArticoli1);
this.relationFK_StoricoEventi_AnagTipoDichiaraz = new global::System.Data.DataRelation("FK_StoricoEventi_AnagTipoDichiaraz", new global::System.Data.DataColumn[] {
this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn}, new global::System.Data.DataColumn[] {
this.tableStoricoEventi.CodTipoDichiarazColumn}, false);
this.Relations.Add(this.relationFK_StoricoEventi_AnagTipoDichiaraz);
- 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_AnagImpianti_AnagCompanySito = new global::System.Data.DataRelation("FK_AnagImpianti_AnagCompanySito", new global::System.Data.DataColumn[] {
this.tableAnagCompanySito.CodCSColumn}, new global::System.Data.DataColumn[] {
this.tableAnagImpianti.CodCSColumn}, false);
@@ -690,16 +626,6 @@ namespace GMW_data {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagArticoli() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeImpianti2Articoli() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeStoricoEventi() {
return false;
@@ -824,10 +750,6 @@ namespace GMW_data {
public delegate void AnagStatiProdottoRowChangeEventHandler(object sender, AnagStatiProdottoRowChangeEvent e);
- public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e);
-
- public delegate void Impianti2ArticoliRowChangeEventHandler(object sender, Impianti2ArticoliRowChangeEvent e);
-
public delegate void StoricoEventiRowChangeEventHandler(object sender, StoricoEventiRowChangeEvent e);
public delegate void RelazUDCRowChangeEventHandler(object sender, RelazUDCRowChangeEvent e);
@@ -1597,609 +1519,6 @@ namespace GMW_data {
}
}
- ///
- ///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 columnParticolare;
-
- private global::System.Data.DataColumn columnDescrArticolo;
-
- private global::System.Data.DataColumn columnCliente;
-
- private global::System.Data.DataColumn columnFamiglia;
-
- [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 ParticolareColumn {
- get {
- return this.columnParticolare;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrArticoloColumn {
- get {
- return this.columnDescrArticolo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ClienteColumn {
- get {
- return this.columnCliente;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn FamigliaColumn {
- get {
- return this.columnFamiglia;
- }
- }
-
- [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 Particolare, string DescrArticolo, string Cliente, string Famiglia) {
- AnagArticoliRow rowAnagArticoliRow = ((AnagArticoliRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- Particolare,
- DescrArticolo,
- Cliente,
- Famiglia};
- rowAnagArticoliRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagArticoliRow);
- return rowAnagArticoliRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow FindByParticolare(string Particolare) {
- return ((AnagArticoliRow)(this.Rows.Find(new object[] {
- Particolare})));
- }
-
- [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.columnParticolare = base.Columns["Particolare"];
- this.columnDescrArticolo = base.Columns["DescrArticolo"];
- this.columnCliente = base.Columns["Cliente"];
- this.columnFamiglia = base.Columns["Famiglia"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnParticolare);
- this.columnDescrArticolo = new global::System.Data.DataColumn("DescrArticolo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrArticolo);
- this.columnCliente = new global::System.Data.DataColumn("Cliente", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCliente);
- this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnFamiglia);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnParticolare}, true));
- this.columnParticolare.AllowDBNull = false;
- this.columnParticolare.Unique = true;
- this.columnParticolare.MaxLength = 50;
- this.columnDescrArticolo.MaxLength = 50;
- this.columnCliente.MaxLength = 50;
- this.columnFamiglia.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();
- DS_Applicazione ds = new DS_Applicazione();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "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 Impianti2ArticoliDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodImpianto;
-
- private global::System.Data.DataColumn columnParticolare;
-
- private global::System.Data.DataColumn columnInizioProd;
-
- private global::System.Data.DataColumn columnFineProd;
-
- private global::System.Data.DataColumn columnCodStampo;
-
- private global::System.Data.DataColumn columnFigura;
-
- private global::System.Data.DataColumn columnFiguraIncisa;
-
- [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 ParticolareColumn {
- get {
- return this.columnParticolare;
- }
- }
-
- [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()]
- public global::System.Data.DataColumn CodStampoColumn {
- get {
- return this.columnCodStampo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn FiguraColumn {
- get {
- return this.columnFigura;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn FiguraIncisaColumn {
- get {
- return this.columnFiguraIncisa;
- }
- }
-
- [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_AnagArticoli1, System.DateTime InizioProd, System.DateTime FineProd, string CodStampo, string Figura, string FiguraIncisa) {
- Impianti2ArticoliRow rowImpianti2ArticoliRow = ((Impianti2ArticoliRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- null,
- InizioProd,
- FineProd,
- CodStampo,
- Figura,
- FiguraIncisa};
- if ((parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti != null)) {
- columnValuesArray[0] = parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti[0];
- }
- if ((parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli1 != null)) {
- columnValuesArray[1] = parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli1[0];
- }
- rowImpianti2ArticoliRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowImpianti2ArticoliRow);
- return rowImpianti2ArticoliRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow FindByCodImpiantoParticolareInizioProd(string CodImpianto, string Particolare, System.DateTime InizioProd) {
- return ((Impianti2ArticoliRow)(this.Rows.Find(new object[] {
- CodImpianto,
- Particolare,
- 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.columnParticolare = base.Columns["Particolare"];
- this.columnInizioProd = base.Columns["InizioProd"];
- this.columnFineProd = base.Columns["FineProd"];
- this.columnCodStampo = base.Columns["CodStampo"];
- this.columnFigura = base.Columns["Figura"];
- this.columnFiguraIncisa = base.Columns["FiguraIncisa"];
- }
-
- [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.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnParticolare);
- 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.columnCodStampo = new global::System.Data.DataColumn("CodStampo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodStampo);
- this.columnFigura = new global::System.Data.DataColumn("Figura", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnFigura);
- this.columnFiguraIncisa = new global::System.Data.DataColumn("FiguraIncisa", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnFiguraIncisa);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodImpianto,
- this.columnParticolare,
- this.columnInizioProd}, true));
- this.columnCodImpianto.AllowDBNull = false;
- this.columnCodImpianto.MaxLength = 50;
- this.columnParticolare.AllowDBNull = false;
- this.columnParticolare.MaxLength = 50;
- this.columnInizioProd.AllowDBNull = false;
- this.columnCodStampo.MaxLength = 50;
- this.columnFigura.MaxLength = 50;
- this.columnFiguraIncisa.MaxLength = 50;
- }
-
- [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();
- DS_Applicazione ds = new DS_Applicazione();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "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.
///
@@ -7083,281 +6402,6 @@ namespace GMW_data {
}
}
- ///
- ///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 Particolare {
- get {
- return ((string)(this[this.tableAnagArticoli.ParticolareColumn]));
- }
- set {
- this[this.tableAnagArticoli.ParticolareColumn] = 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 Cliente {
- get {
- try {
- return ((string)(this[this.tableAnagArticoli.ClienteColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Cliente\' in table \'AnagArticoli\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagArticoli.ClienteColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Famiglia {
- get {
- try {
- return ((string)(this[this.tableAnagArticoli.FamigliaColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Famiglia\' in table \'AnagArticoli\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagArticoli.FamigliaColumn] = 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 IsClienteNull() {
- return this.IsNull(this.tableAnagArticoli.ClienteColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetClienteNull() {
- this[this.tableAnagArticoli.ClienteColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFamigliaNull() {
- return this.IsNull(this.tableAnagArticoli.FamigliaColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFamigliaNull() {
- this[this.tableAnagArticoli.FamigliaColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() {
- if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli1"] == null)) {
- return new Impianti2ArticoliRow[0];
- }
- else {
- return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli1"])));
- }
- }
- }
-
- ///
- ///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 Particolare {
- get {
- return ((string)(this[this.tableImpianti2Articoli.ParticolareColumn]));
- }
- set {
- this[this.tableImpianti2Articoli.ParticolareColumn] = 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 string CodStampo {
- get {
- try {
- return ((string)(this[this.tableImpianti2Articoli.CodStampoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'Impianti2Articoli\' is DBNull.", e);
- }
- }
- set {
- this[this.tableImpianti2Articoli.CodStampoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Figura {
- get {
- try {
- return ((string)(this[this.tableImpianti2Articoli.FiguraColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'Impianti2Articoli\' is DBNull.", e);
- }
- }
- set {
- this[this.tableImpianti2Articoli.FiguraColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string FiguraIncisa {
- get {
- try {
- return ((string)(this[this.tableImpianti2Articoli.FiguraIncisaColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'FiguraIncisa\' in table \'Impianti2Articoli\' is DBNull.", e);
- }
- }
- set {
- this[this.tableImpianti2Articoli.FiguraIncisaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow AnagArticoliRow {
- get {
- return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli1"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli1"]);
- }
- }
-
- [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;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodStampoNull() {
- return this.IsNull(this.tableImpianti2Articoli.CodStampoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodStampoNull() {
- this[this.tableImpianti2Articoli.CodStampoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFiguraNull() {
- return this.IsNull(this.tableImpianti2Articoli.FiguraColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFiguraNull() {
- this[this.tableImpianti2Articoli.FiguraColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFiguraIncisaNull() {
- return this.IsNull(this.tableImpianti2Articoli.FiguraIncisaColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFiguraIncisaNull() {
- this[this.tableImpianti2Articoli.FiguraIncisaColumn] = global::System.Convert.DBNull;
- }
- }
-
///
///Represents strongly named DataRow class.
///
@@ -7876,16 +6920,6 @@ namespace GMW_data {
public void SetTipoLineaNull() {
this[this.tableAnagImpianti.TipoLineaColumn] = 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"])));
- }
- }
}
///
@@ -10401,68 +9435,6 @@ namespace GMW_data {
}
}
- ///
- ///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 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
///
@@ -11859,932 +10831,6 @@ SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato)";
}
}
- ///
- ///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("Particolare", "Particolare");
- tableMapping.ColumnMappings.Add("DescrArticolo", "DescrArticolo");
- tableMapping.ColumnMappings.Add("Cliente", "Cliente");
- tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
- 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 (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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_Cliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Famiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", 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] ([Particolare], [DescrArticolo], [Cliente], [Fam" +
- "iglia]) VALUES (@Particolare, @DescrArticolo, @Cliente, @Famiglia);\r\nSELECT Part" +
- "icolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare =" +
- " @Particolare)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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("@Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", 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 [Particolare] = @Particolare, [DescrArticolo] = @DescrArticolo, [Cliente] = @Cliente, [Famiglia] = @Famiglia WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)));
-SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare = @Particolare)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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("@Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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_Cliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Famiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.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 Particolare, DescrArticolo, Cliente, Famiglia 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(DS_Applicazione.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 DS_Applicazione.AnagArticoliDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagArticoliDataTable dataTable = new DS_Applicazione.AnagArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagArticoliDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione 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_Particolare, string Original_DescrArticolo, string Original_Cliente, string Original_Famiglia) {
- if ((Original_Particolare == null)) {
- throw new global::System.ArgumentNullException("Original_Particolare");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Particolare));
- }
- 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_Cliente == 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_Cliente));
- }
- if ((Original_Famiglia == 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_Famiglia));
- }
- 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 Particolare, string DescrArticolo, string Cliente, string Famiglia) {
- if ((Particolare == null)) {
- throw new global::System.ArgumentNullException("Particolare");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Particolare));
- }
- if ((DescrArticolo == null)) {
- this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrArticolo));
- }
- if ((Cliente == null)) {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Cliente));
- }
- if ((Famiglia == null)) {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Famiglia));
- }
- 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 Particolare, string DescrArticolo, string Cliente, string Famiglia, string Original_Particolare, string Original_DescrArticolo, string Original_Cliente, string Original_Famiglia) {
- if ((Particolare == null)) {
- throw new global::System.ArgumentNullException("Particolare");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Particolare));
- }
- if ((DescrArticolo == null)) {
- this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrArticolo));
- }
- if ((Cliente == null)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Cliente));
- }
- if ((Famiglia == null)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Famiglia));
- }
- if ((Original_Particolare == null)) {
- throw new global::System.ArgumentNullException("Original_Particolare");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Particolare));
- }
- if ((Original_DescrArticolo == 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_DescrArticolo));
- }
- if ((Original_Cliente == 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_Cliente));
- }
- if ((Original_Famiglia == 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_Famiglia));
- }
- 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 Cliente, string Famiglia, string Original_Particolare, string Original_DescrArticolo, string Original_Cliente, string Original_Famiglia) {
- return this.Update(Original_Particolare, DescrArticolo, Cliente, Famiglia, Original_Particolare, Original_DescrArticolo, Original_Cliente, Original_Famiglia);
- }
- }
-
- ///
- ///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("Particolare", "Particolare");
- tableMapping.ColumnMappings.Add("InizioProd", "InizioProd");
- tableMapping.ColumnMappings.Add("FineProd", "FineProd");
- tableMapping.ColumnMappings.Add("CodStampo", "CodStampo");
- tableMapping.ColumnMappings.Add("Figura", "Figura");
- tableMapping.ColumnMappings.Add("FiguraIncisa", "FiguraIncisa");
- 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 ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)))";
- 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_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodStampo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FiguraIncisa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", 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], [Particolare], [InizioProd], [FineProd], [CodStampo], [Figura], [FiguraIncisa]) VALUES (@CodImpianto, @Particolare, @InizioProd, @FineProd, @CodStampo, @Figura, @FiguraIncisa);
-SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)";
- 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("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", 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, [Particolare] = @Particolare, [InizioProd] = @InizioProd, [FineProd] = @FineProd, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)));
-SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)";
- 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("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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("@CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", 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("@FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", 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_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", 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, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodStampo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", 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, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FiguraIncisa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraI" +
- "ncisa FROM dbo.Impianti2Articoli";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "dbo.stp_getImp2Art_ByImpData";
- 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("@CodImpianto", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, 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_getImp2Art_currProd";
- this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.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 DS_Applicazione.Impianti2ArticoliDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_Applicazione.Impianti2ArticoliDataTable stp_byImpData(string CodImpianto, global::System.Nullable DataRif) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodImpianto == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImpianto));
- }
- if ((DataRif.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataRif.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_Applicazione.Impianti2ArticoliDataTable stp_curr(string CodImpianto, global::System.Nullable DataRif) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- if ((CodImpianto == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImpianto));
- }
- if ((DataRif.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataRif.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.Impianti2ArticoliDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione 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_Particolare, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd, string Original_CodStampo, string Original_Figura, string Original_FiguraIncisa) {
- if ((Original_CodImpianto == null)) {
- throw new global::System.ArgumentNullException("Original_CodImpianto");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_Particolare == null)) {
- throw new global::System.ArgumentNullException("Original_Particolare");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Particolare));
- }
- 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;
- }
- if ((Original_CodStampo == 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_CodStampo));
- }
- if ((Original_Figura == null)) {
- this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Figura));
- }
- if ((Original_FiguraIncisa == 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_FiguraIncisa));
- }
- 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 Particolare, System.DateTime InizioProd, global::System.Nullable FineProd, string CodStampo, string Figura, string FiguraIncisa) {
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- if ((Particolare == null)) {
- throw new global::System.ArgumentNullException("Particolare");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Particolare));
- }
- 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;
- }
- if ((CodStampo == null)) {
- this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodStampo));
- }
- if ((Figura == null)) {
- this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Figura));
- }
- if ((FiguraIncisa == null)) {
- this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(FiguraIncisa));
- }
- 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 Particolare, System.DateTime InizioProd, global::System.Nullable FineProd, string CodStampo, string Figura, string FiguraIncisa, string Original_CodImpianto, string Original_Particolare, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd, string Original_CodStampo, string Original_Figura, string Original_FiguraIncisa) {
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- if ((Particolare == null)) {
- throw new global::System.ArgumentNullException("Particolare");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Particolare));
- }
- 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 ((CodStampo == null)) {
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodStampo));
- }
- if ((Figura == null)) {
- this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Figura));
- }
- if ((FiguraIncisa == null)) {
- this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(FiguraIncisa));
- }
- if ((Original_CodImpianto == null)) {
- throw new global::System.ArgumentNullException("Original_CodImpianto");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_Particolare == null)) {
- throw new global::System.ArgumentNullException("Original_Particolare");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Particolare));
- }
- this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_InizioProd));
- if ((Original_FineProd.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_FineProd.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
- }
- if ((Original_CodStampo == null)) {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodStampo));
- }
- if ((Original_Figura == null)) {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Figura));
- }
- if ((Original_FiguraIncisa == null)) {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_FiguraIncisa));
- }
- 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 CodStampo, string Figura, string FiguraIncisa, string Original_CodImpianto, string Original_Particolare, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd, string Original_CodStampo, string Original_Figura, string Original_FiguraIncisa) {
- return this.Update(Original_CodImpianto, Original_Particolare, Original_InizioProd, FineProd, CodStampo, Figura, FiguraIncisa, Original_CodImpianto, Original_Particolare, Original_InizioProd, Original_FineProd, Original_CodStampo, Original_Figura, Original_FiguraIncisa);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -19755,10 +17801,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
private AnagStatiProdottoTableAdapter _anagStatiProdottoTableAdapter;
- private AnagArticoliTableAdapter _anagArticoliTableAdapter;
-
- private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter;
-
private StoricoEventiTableAdapter _storicoEventiTableAdapter;
private RelazUDCTableAdapter _relazUDCTableAdapter;
@@ -19834,32 +17876,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
}
}
- [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 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" +
@@ -20032,14 +18048,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
&& (this._anagStatiProdottoTableAdapter.Connection != null))) {
return this._anagStatiProdottoTableAdapter.Connection;
}
- if (((this._anagArticoliTableAdapter != null)
- && (this._anagArticoliTableAdapter.Connection != null))) {
- return this._anagArticoliTableAdapter.Connection;
- }
- if (((this._impianti2ArticoliTableAdapter != null)
- && (this._impianti2ArticoliTableAdapter.Connection != null))) {
- return this._impianti2ArticoliTableAdapter.Connection;
- }
if (((this._storicoEventiTableAdapter != null)
&& (this._storicoEventiTableAdapter.Connection != null))) {
return this._storicoEventiTableAdapter.Connection;
@@ -20105,12 +18113,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
if ((this._anagStatiProdottoTableAdapter != null)) {
count = (count + 1);
}
- if ((this._anagArticoliTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._impianti2ArticoliTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._storicoEventiTableAdapter != null)) {
count = (count + 1);
}
@@ -20163,24 +18165,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
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._anagTipoDichiarazTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -20262,12 +18246,12 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ 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._impianti2ArticoliTableAdapter.Update(updatedRows));
+ result = (result + this._anagStatiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -20289,12 +18273,12 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagStatiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ 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._anagStatiTableAdapter.Update(updatedRows));
+ result = (result + this._anagImpiantiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -20315,22 +18299,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
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._anagTipoDichiarazTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -20403,11 +18371,11 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
allAddedRows.AddRange(addedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added);
+ 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._impianti2ArticoliTableAdapter.Update(addedRows));
+ result = (result + this._anagStatiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -20427,11 +18395,11 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagStatiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Added);
+ 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._anagStatiTableAdapter.Update(addedRows));
+ result = (result + this._anagImpiantiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -20444,11 +18412,11 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._anagStatiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ 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._anagStatiTableAdapter.Update(deletedRows));
+ result = (result + this._anagImpiantiTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -20468,11 +18436,11 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ 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._impianti2ArticoliTableAdapter.Update(deletedRows));
+ result = (result + this._anagStatiTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -20548,22 +18516,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
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._anagCompanySitoTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagCompanySito.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -20624,16 +18576,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- 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._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._storicoEventiTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._storicoEventiTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
@@ -20748,24 +18690,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiProdottoTableAdapter.Adapter);
}
}
- 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._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._storicoEventiTableAdapter != null)) {
revertConnections.Add(this._storicoEventiTableAdapter, this._storicoEventiTableAdapter.Connection);
this._storicoEventiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -20935,14 +18859,6 @@ SELECT CodFamiglia, DescFamiglia FROM RilPro.AnagFamiglie WHERE (CodFamiglia = @
this._anagStatiProdottoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiProdottoTableAdapter]));
this._anagStatiProdottoTableAdapter.Transaction = null;
}
- if ((this._anagArticoliTableAdapter != null)) {
- this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter]));
- this._anagArticoliTableAdapter.Transaction = null;
- }
- if ((this._impianti2ArticoliTableAdapter != null)) {
- this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._impianti2ArticoliTableAdapter]));
- this._impianti2ArticoliTableAdapter.Transaction = null;
- }
if ((this._storicoEventiTableAdapter != null)) {
this._storicoEventiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._storicoEventiTableAdapter]));
this._storicoEventiTableAdapter.Transaction = null;
diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd
index b1fc9989..d04982d9 100644
--- a/GMW/GMW_data/DS_Applicazione.xsd
+++ b/GMW/GMW_data/DS_Applicazione.xsd
@@ -169,176 +169,6 @@ where CodStato=@CodStato
-
-
-
-
-
- DELETE FROM [dbo].[AnagArticoli] WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)))
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagArticoli] ([Particolare], [DescrArticolo], [Cliente], [Famiglia]) VALUES (@Particolare, @DescrArticolo, @Cliente, @Famiglia);
-SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare = @Particolare)
-
-
-
-
-
-
-
-
-
-
- SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM dbo.AnagArticoli
-
-
-
-
-
- UPDATE [dbo].[AnagArticoli] SET [Particolare] = @Particolare, [DescrArticolo] = @DescrArticolo, [Cliente] = @Cliente, [Famiglia] = @Famiglia WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)));
-SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare = @Particolare)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [Particolare], [InizioProd], [FineProd], [CodStampo], [Figura], [FiguraIncisa]) VALUES (@CodImpianto, @Particolare, @InizioProd, @FineProd, @CodStampo, @Figura, @FiguraIncisa);
-SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)
-
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM dbo.Impianti2Articoli
-
-
-
-
-
- UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [InizioProd] = @InizioProd, [FineProd] = @FineProd, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)));
-SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_getImp2Art_ByImpData
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_getImp2Art_currProd
-
-
-
-
-
-
-
-
-
-
@@ -1582,8 +1412,8 @@ where CodFamiglia=@CodFamiglia
-
-
+
+
@@ -1596,14 +1426,14 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
@@ -1616,91 +1446,14 @@ where CodFamiglia=@CodFamiglia
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -1713,82 +1466,82 @@ where CodFamiglia=@CodFamiglia
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
@@ -1801,14 +1554,14 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
@@ -1821,35 +1574,35 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
+
-
+
-
+
@@ -1862,35 +1615,35 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
+
-
+
-
+
@@ -1903,21 +1656,21 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
+
@@ -1930,128 +1683,128 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
@@ -2078,96 +1831,96 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -2249,14 +2002,14 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
@@ -2269,143 +2022,143 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
-
+
@@ -2418,42 +2171,42 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
-
+
-
+
-
+
-
+
@@ -2466,14 +2219,14 @@ where CodFamiglia=@CodFamiglia
-
+
-
+
@@ -2497,16 +2250,6 @@ where CodFamiglia=@CodFamiglia
-
-
-
-
-
-
-
-
-
-
@@ -2559,9 +2302,7 @@ where CodFamiglia=@CodFamiglia
-
-
diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss
index bca1aa0d..b642f164 100644
--- a/GMW/GMW_data/DS_Applicazione.xss
+++ b/GMW/GMW_data/DS_Applicazione.xss
@@ -4,15 +4,13 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
+
+
-
-
-
+
@@ -26,19 +24,7 @@
-
-
-
- 385
- 80
-
-
- 489
- 80
-
-
-
-
+
948
@@ -50,18 +36,6 @@
-
-
-
- 853
- 64
-
-
- 743
- 64
-
-
-
diff --git a/GMW/GMW_data/DS_Utility.Designer.cs b/GMW/GMW_data/DS_Utility.Designer.cs
index a1f25ddd..c07d1c80 100644
--- a/GMW/GMW_data/DS_Utility.Designer.cs
+++ b/GMW/GMW_data/DS_Utility.Designer.cs
@@ -31,6 +31,10 @@ namespace GMW_data {
private v_selTipoCellaDataTable tablev_selTipoCella;
+ private stp_getImpiantiByCodCSDataTable tablestp_getImpiantiByCodCS;
+
+ private STPDataTable tableSTP;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -66,6 +70,12 @@ namespace GMW_data {
if ((ds.Tables["v_selTipoCella"] != null)) {
base.Tables.Add(new v_selTipoCellaDataTable(ds.Tables["v_selTipoCella"]));
}
+ if ((ds.Tables["stp_getImpiantiByCodCS"] != null)) {
+ base.Tables.Add(new stp_getImpiantiByCodCSDataTable(ds.Tables["stp_getImpiantiByCodCS"]));
+ }
+ if ((ds.Tables["STP"] != null)) {
+ base.Tables.Add(new STPDataTable(ds.Tables["STP"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -111,6 +121,24 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public stp_getImpiantiByCodCSDataTable stp_getImpiantiByCodCS {
+ get {
+ return this.tablestp_getImpiantiByCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public STPDataTable STP {
+ get {
+ return this.tableSTP;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
@@ -179,6 +207,12 @@ namespace GMW_data {
if ((ds.Tables["v_selTipoCella"] != null)) {
base.Tables.Add(new v_selTipoCellaDataTable(ds.Tables["v_selTipoCella"]));
}
+ if ((ds.Tables["stp_getImpiantiByCodCS"] != null)) {
+ base.Tables.Add(new stp_getImpiantiByCodCSDataTable(ds.Tables["stp_getImpiantiByCodCS"]));
+ }
+ if ((ds.Tables["STP"] != null)) {
+ base.Tables.Add(new STPDataTable(ds.Tables["STP"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -227,6 +261,18 @@ namespace GMW_data {
this.tablev_selTipoCella.InitVars();
}
}
+ this.tablestp_getImpiantiByCodCS = ((stp_getImpiantiByCodCSDataTable)(base.Tables["stp_getImpiantiByCodCS"]));
+ if ((initTable == true)) {
+ if ((this.tablestp_getImpiantiByCodCS != null)) {
+ this.tablestp_getImpiantiByCodCS.InitVars();
+ }
+ }
+ this.tableSTP = ((STPDataTable)(base.Tables["STP"]));
+ if ((initTable == true)) {
+ if ((this.tableSTP != null)) {
+ this.tableSTP.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -242,6 +288,10 @@ namespace GMW_data {
base.Tables.Add(this.tablev_selBlocco);
this.tablev_selTipoCella = new v_selTipoCellaDataTable();
base.Tables.Add(this.tablev_selTipoCella);
+ this.tablestp_getImpiantiByCodCS = new stp_getImpiantiByCodCSDataTable();
+ base.Tables.Add(this.tablestp_getImpiantiByCodCS);
+ this.tableSTP = new STPDataTable();
+ base.Tables.Add(this.tableSTP);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -259,6 +309,16 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializestp_getImpiantiByCodCS() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeSTP() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
@@ -318,6 +378,10 @@ namespace GMW_data {
public delegate void v_selTipoCellaRowChangeEventHandler(object sender, v_selTipoCellaRowChangeEvent e);
+ public delegate void stp_getImpiantiByCodCSRowChangeEventHandler(object sender, stp_getImpiantiByCodCSRowChangeEvent e);
+
+ public delegate void STPRowChangeEventHandler(object sender, STPRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -1144,6 +1208,543 @@ namespace GMW_data {
}
}
+ ///
+ ///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_getImpiantiByCodCSDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodImpianto;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnDescImpianto;
+
+ private global::System.Data.DataColumn columnCampionatura;
+
+ private global::System.Data.DataColumn columnTipoLinea;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSDataTable() {
+ this.TableName = "stp_getImpiantiByCodCS";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal stp_getImpiantiByCodCSDataTable(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_getImpiantiByCodCSDataTable(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 CodCSColumn {
+ get {
+ return this.columnCodCS;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescImpiantoColumn {
+ get {
+ return this.columnDescImpianto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CampionaturaColumn {
+ get {
+ return this.columnCampionatura;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn TipoLineaColumn {
+ get {
+ return this.columnTipoLinea;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSRow this[int index] {
+ get {
+ return ((stp_getImpiantiByCodCSRow)(this.Rows[index]));
+ }
+ }
+
+ public event stp_getImpiantiByCodCSRowChangeEventHandler stp_getImpiantiByCodCSRowChanging;
+
+ public event stp_getImpiantiByCodCSRowChangeEventHandler stp_getImpiantiByCodCSRowChanged;
+
+ public event stp_getImpiantiByCodCSRowChangeEventHandler stp_getImpiantiByCodCSRowDeleting;
+
+ public event stp_getImpiantiByCodCSRowChangeEventHandler stp_getImpiantiByCodCSRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void Addstp_getImpiantiByCodCSRow(stp_getImpiantiByCodCSRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSRow Addstp_getImpiantiByCodCSRow(string CodImpianto, string CodCS, string DescImpianto, string Campionatura, string TipoLinea) {
+ stp_getImpiantiByCodCSRow rowstp_getImpiantiByCodCSRow = ((stp_getImpiantiByCodCSRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodImpianto,
+ CodCS,
+ DescImpianto,
+ Campionatura,
+ TipoLinea};
+ rowstp_getImpiantiByCodCSRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowstp_getImpiantiByCodCSRow);
+ return rowstp_getImpiantiByCodCSRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSRow FindByCodImpianto(string CodImpianto) {
+ return ((stp_getImpiantiByCodCSRow)(this.Rows.Find(new object[] {
+ CodImpianto})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ stp_getImpiantiByCodCSDataTable cln = ((stp_getImpiantiByCodCSDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new stp_getImpiantiByCodCSDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodImpianto = base.Columns["CodImpianto"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnDescImpianto = base.Columns["DescImpianto"];
+ this.columnCampionatura = base.Columns["Campionatura"];
+ this.columnTipoLinea = base.Columns["TipoLinea"];
+ }
+
+ [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.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnDescImpianto = new global::System.Data.DataColumn("DescImpianto", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescImpianto);
+ this.columnCampionatura = new global::System.Data.DataColumn("Campionatura", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCampionatura);
+ this.columnTipoLinea = new global::System.Data.DataColumn("TipoLinea", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTipoLinea);
+ 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.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ this.columnDescImpianto.MaxLength = 50;
+ this.columnCampionatura.MaxLength = 1;
+ this.columnTipoLinea.MaxLength = 6;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSRow Newstp_getImpiantiByCodCSRow() {
+ return ((stp_getImpiantiByCodCSRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new stp_getImpiantiByCodCSRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(stp_getImpiantiByCodCSRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.stp_getImpiantiByCodCSRowChanged != null)) {
+ this.stp_getImpiantiByCodCSRowChanged(this, new stp_getImpiantiByCodCSRowChangeEvent(((stp_getImpiantiByCodCSRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.stp_getImpiantiByCodCSRowChanging != null)) {
+ this.stp_getImpiantiByCodCSRowChanging(this, new stp_getImpiantiByCodCSRowChangeEvent(((stp_getImpiantiByCodCSRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.stp_getImpiantiByCodCSRowDeleted != null)) {
+ this.stp_getImpiantiByCodCSRowDeleted(this, new stp_getImpiantiByCodCSRowChangeEvent(((stp_getImpiantiByCodCSRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.stp_getImpiantiByCodCSRowDeleting != null)) {
+ this.stp_getImpiantiByCodCSRowDeleting(this, new stp_getImpiantiByCodCSRowChangeEvent(((stp_getImpiantiByCodCSRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void Removestp_getImpiantiByCodCSRow(stp_getImpiantiByCodCSRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Utility ds = new DS_Utility();
+ 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_getImpiantiByCodCSDataTable";
+ 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 STPDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnVersione;
+
+ private global::System.Data.DataColumn columnData;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPDataTable() {
+ this.TableName = "STP";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal STPDataTable(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 STPDataTable(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 VersioneColumn {
+ get {
+ return this.columnVersione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DataColumn {
+ get {
+ return this.columnData;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPRow this[int index] {
+ get {
+ return ((STPRow)(this.Rows[index]));
+ }
+ }
+
+ public event STPRowChangeEventHandler STPRowChanging;
+
+ public event STPRowChangeEventHandler STPRowChanged;
+
+ public event STPRowChangeEventHandler STPRowDeleting;
+
+ public event STPRowChangeEventHandler STPRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddSTPRow(STPRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPRow AddSTPRow(int Versione, System.DateTime Data) {
+ STPRow rowSTPRow = ((STPRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ Versione,
+ Data};
+ rowSTPRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowSTPRow);
+ return rowSTPRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPRow FindByVersione(int Versione) {
+ return ((STPRow)(this.Rows.Find(new object[] {
+ Versione})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ STPDataTable cln = ((STPDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new STPDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnVersione = base.Columns["Versione"];
+ this.columnData = base.Columns["Data"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnVersione = new global::System.Data.DataColumn("Versione", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnVersione);
+ this.columnData = new global::System.Data.DataColumn("Data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnData);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnVersione}, true));
+ this.columnVersione.AllowDBNull = false;
+ this.columnVersione.Unique = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPRow NewSTPRow() {
+ return ((STPRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new STPRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(STPRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.STPRowChanged != null)) {
+ this.STPRowChanged(this, new STPRowChangeEvent(((STPRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.STPRowChanging != null)) {
+ this.STPRowChanging(this, new STPRowChangeEvent(((STPRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.STPRowDeleted != null)) {
+ this.STPRowDeleted(this, new STPRowChangeEvent(((STPRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.STPRowDeleting != null)) {
+ this.STPRowDeleting(this, new STPRowChangeEvent(((STPRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveSTPRow(STPRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Utility ds = new DS_Utility();
+ 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 = "STPDataTable";
+ 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.
///
@@ -1374,6 +1975,166 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class stp_getImpiantiByCodCSRow : global::System.Data.DataRow {
+
+ private stp_getImpiantiByCodCSDataTable tablestp_getImpiantiByCodCS;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal stp_getImpiantiByCodCSRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablestp_getImpiantiByCodCS = ((stp_getImpiantiByCodCSDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImpianto {
+ get {
+ return ((string)(this[this.tablestp_getImpiantiByCodCS.CodImpiantoColumn]));
+ }
+ set {
+ this[this.tablestp_getImpiantiByCodCS.CodImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ return ((string)(this[this.tablestp_getImpiantiByCodCS.CodCSColumn]));
+ }
+ set {
+ this[this.tablestp_getImpiantiByCodCS.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescImpianto {
+ get {
+ try {
+ return ((string)(this[this.tablestp_getImpiantiByCodCS.DescImpiantoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescImpianto\' in table \'stp_getImpiantiByCodCS\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablestp_getImpiantiByCodCS.DescImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Campionatura {
+ get {
+ try {
+ return ((string)(this[this.tablestp_getImpiantiByCodCS.CampionaturaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Campionatura\' in table \'stp_getImpiantiByCodCS\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablestp_getImpiantiByCodCS.CampionaturaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string TipoLinea {
+ get {
+ try {
+ return ((string)(this[this.tablestp_getImpiantiByCodCS.TipoLineaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'TipoLinea\' in table \'stp_getImpiantiByCodCS\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablestp_getImpiantiByCodCS.TipoLineaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescImpiantoNull() {
+ return this.IsNull(this.tablestp_getImpiantiByCodCS.DescImpiantoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescImpiantoNull() {
+ this[this.tablestp_getImpiantiByCodCS.DescImpiantoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCampionaturaNull() {
+ return this.IsNull(this.tablestp_getImpiantiByCodCS.CampionaturaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCampionaturaNull() {
+ this[this.tablestp_getImpiantiByCodCS.CampionaturaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsTipoLineaNull() {
+ return this.IsNull(this.tablestp_getImpiantiByCodCS.TipoLineaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetTipoLineaNull() {
+ this[this.tablestp_getImpiantiByCodCS.TipoLineaColumn] = 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 STPRow : global::System.Data.DataRow {
+
+ private STPDataTable tableSTP;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal STPRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableSTP = ((STPDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Versione {
+ get {
+ return ((int)(this[this.tableSTP.VersioneColumn]));
+ }
+ set {
+ this[this.tableSTP.VersioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime Data {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableSTP.DataColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Data\' in table \'STP\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableSTP.DataColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDataNull() {
+ return this.IsNull(this.tableSTP.DataColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDataNull() {
+ this[this.tableSTP.DataColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -1466,6 +2227,68 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class stp_getImpiantiByCodCSRowChangeEvent : global::System.EventArgs {
+
+ private stp_getImpiantiByCodCSRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSRowChangeEvent(stp_getImpiantiByCodCSRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public stp_getImpiantiByCodCSRow 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 STPRowChangeEvent : global::System.EventArgs {
+
+ private STPRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPRowChangeEvent(STPRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public STPRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_UtilityTableAdapters {
@@ -1509,7 +2332,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
+ public global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
@@ -1690,7 +2513,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
+ public global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
@@ -1879,7 +2702,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
+ public global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
@@ -2057,12 +2880,87 @@ namespace GMW_data.DS_UtilityTableAdapters {
[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 : global::System.ComponentModel.Component {
+ public partial class stp_getImpiantiByCodCSTableAdapter : global::System.ComponentModel.Component {
- private global::System.Data.IDbCommand[] _commandCollection;
+ 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()]
- protected global::System.Data.IDbCommand[] CommandCollection {
+ public stp_getImpiantiByCodCSTableAdapter() {
+ 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()]
+ public 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();
@@ -2071,64 +2969,293 @@ namespace GMW_data.DS_UtilityTableAdapters {
}
}
+ [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_getImpiantiByCodCS";
+ tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("DescImpianto", "DescImpianto");
+ tableMapping.ColumnMappings.Add("Campionatura", "Campionatura");
+ tableMapping.ColumnMappings.Add("TipoLinea", "TipoLinea");
+ 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_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.IDbCommand[6];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
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_data.Properties.Settings.Default.GMWConnectionString);
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "dbo.stp_ContaCelle4Tipo";
- ((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.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 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("@CodCS", 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[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, 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("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 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_data.Properties.Settings.Default.GMWConnectionString);
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandText = "dbo.stp_ContaCelle4Blocchi";
- ((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("@CodCS", 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("@CodMag", global::System.Data.SqlDbType.VarChar, 50, 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("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandText = "dbo.stp_ContaDeltaCelleBlocco";
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandType = global::System.Data.CommandType.StoredProcedure;
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", 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[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandText = "dbo.stp_ContaCelleBlocco";
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandType = global::System.Data.CommandType.StoredProcedure;
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", 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[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiltAttive", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PosAssegnata", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandText = "dbo.stp_ContaCelleCreate";
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandType = global::System.Data.CommandType.StoredProcedure;
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", 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[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).CommandText = "dbo.stp_celleCreaMancantiBlocco";
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).CommandType = global::System.Data.CommandType.StoredProcedure;
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).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[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", 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[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "dbo.stp_getImpiantiByCodCS";
+ 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("@CodCS", 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 int stp_ContaCelle4Tipo(string CodCS, string CodMag, ref global::System.Nullable TotCelle) {
- global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0]));
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Utility.stp_getImpiantiByCodCSDataTable dataTable, string CodCS) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((CodCS == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Utility.stp_getImpiantiByCodCSDataTable GetData(string CodCS) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((CodCS == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ DS_Utility.stp_getImpiantiByCodCSDataTable dataTable = new DS_Utility.stp_getImpiantiByCodCSDataTable();
+ 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 STPTableAdapter : 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 STPTableAdapter() {
+ 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()]
+ public 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";
+ tableMapping.ColumnMappings.Add("Versione", "Versione");
+ tableMapping.ColumnMappings.Add("Data", "Data");
+ 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_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "dbo.stp_dummy";
+ 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[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_celleCreaMancantiBlocco";
+ 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("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_ContaCelle4Blocchi";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_ContaCelle4Tipo";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_ContaCelleBlocco";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiltAttive", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PosAssegnata", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[5].Connection = this.Connection;
+ this._commandCollection[5].CommandText = "dbo.stp_ContaCelleCreate";
+ this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[6].Connection = this.Connection;
+ this._commandCollection[6].CommandText = "dbo.stp_ContaDeltaCelleBlocco";
+ this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 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(DS_Utility.STPDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Utility.STPDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Utility.STPDataTable dataTable = new DS_Utility.STPDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int stp_celleCreaMancantiBlocco(string CodCS, string CodMag, global::System.Nullable IdxBlocco) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -2141,8 +3268,8 @@ namespace GMW_data.DS_UtilityTableAdapters {
else {
command.Parameters[2].Value = ((string)(CodMag));
}
- if ((TotCelle.HasValue == true)) {
- command.Parameters[3].Value = ((int)(TotCelle.Value));
+ if ((IdxBlocco.HasValue == true)) {
+ command.Parameters[3].Value = ((int)(IdxBlocco.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
@@ -2161,20 +3288,13 @@ namespace GMW_data.DS_UtilityTableAdapters {
command.Connection.Close();
}
}
- if (((command.Parameters[3].Value == null)
- || (command.Parameters[3].Value.GetType() == typeof(global::System.DBNull)))) {
- TotCelle = new global::System.Nullable();
- }
- else {
- TotCelle = new global::System.Nullable(((int)(command.Parameters[3].Value)));
- }
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelle4Blocchi(string CodCS, string CodMag, ref global::System.Nullable TotCelle) {
- global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[1]));
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -2219,19 +3339,25 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int stp_ContaDeltaCelleBlocco(global::System.Nullable IdxBlocco, ref global::System.Nullable DeltaCelle) {
- global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[2]));
- if ((IdxBlocco.HasValue == true)) {
- command.Parameters[1].Value = ((int)(IdxBlocco.Value));
- }
- else {
+ public virtual int stp_ContaCelle4Tipo(string CodCS, string CodMag, ref global::System.Nullable TotCelle) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
- if ((DeltaCelle.HasValue == true)) {
- command.Parameters[2].Value = ((int)(DeltaCelle.Value));
+ else {
+ command.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((CodMag == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[2].Value = global::System.DBNull.Value;
+ command.Parameters[2].Value = ((string)(CodMag));
+ }
+ if ((TotCelle.HasValue == true)) {
+ command.Parameters[3].Value = ((int)(TotCelle.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
@@ -2247,12 +3373,12 @@ namespace GMW_data.DS_UtilityTableAdapters {
command.Connection.Close();
}
}
- if (((command.Parameters[2].Value == null)
- || (command.Parameters[2].Value.GetType() == typeof(global::System.DBNull)))) {
- DeltaCelle = new global::System.Nullable();
+ if (((command.Parameters[3].Value == null)
+ || (command.Parameters[3].Value.GetType() == typeof(global::System.DBNull)))) {
+ TotCelle = new global::System.Nullable();
}
else {
- DeltaCelle = new global::System.Nullable(((int)(command.Parameters[2].Value)));
+ TotCelle = new global::System.Nullable(((int)(command.Parameters[3].Value)));
}
return returnValue;
}
@@ -2260,7 +3386,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleBlocco(string CodCS, string CodMag, global::System.Nullable FiltAttive, global::System.Nullable PosAssegnata, ref global::System.Nullable TotCelle) {
- global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[3]));
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -2318,7 +3444,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleCreate(string CodCS, string CodMag, ref global::System.Nullable TotCelle) {
- global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[4]));
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -2363,26 +3489,20 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int stp_celleCreaMancantiBlocco(string CodCS, string CodMag, global::System.Nullable IdxBlocco) {
- global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[5]));
- if ((CodCS == null)) {
+ public virtual int stp_ContaDeltaCelleBlocco(global::System.Nullable IdxBlocco, ref global::System.Nullable DeltaCelle) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
+ if ((IdxBlocco.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(IdxBlocco.Value));
+ }
+ else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
- else {
- command.Parameters[1].Value = ((string)(CodCS));
+ if ((DeltaCelle.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(DeltaCelle.Value));
}
- if ((CodMag == null)) {
+ else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
- else {
- command.Parameters[2].Value = ((string)(CodMag));
- }
- if ((IdxBlocco.HasValue == true)) {
- command.Parameters[3].Value = ((int)(IdxBlocco.Value));
- }
- else {
- command.Parameters[3].Value = global::System.DBNull.Value;
- }
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -2397,6 +3517,13 @@ namespace GMW_data.DS_UtilityTableAdapters {
command.Connection.Close();
}
}
+ if (((command.Parameters[2].Value == null)
+ || (command.Parameters[2].Value.GetType() == typeof(global::System.DBNull)))) {
+ DeltaCelle = new global::System.Nullable();
+ }
+ else {
+ DeltaCelle = new global::System.Nullable(((int)(command.Parameters[2].Value)));
+ }
return returnValue;
}
}
diff --git a/GMW/GMW_data/DS_Utility.xsd b/GMW/GMW_data/DS_Utility.xsd
index 8fc7d20b..6b4b204f 100644
--- a/GMW/GMW_data/DS_Utility.xsd
+++ b/GMW/GMW_data/DS_Utility.xsd
@@ -2,9 +2,9 @@
-
+
-
+
@@ -117,88 +117,130 @@ WHERE (value = @value)
+
+
+
+
+
+ dbo.stp_getImpiantiByCodCS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_dummy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_celleCreaMancantiBlocco
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ContaCelle4Blocchi
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ContaCelle4Tipo
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ContaCelleBlocco
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ContaCelleCreate
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ContaDeltaCelleBlocco
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- dbo.stp_ContaCelle4Tipo
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_ContaCelle4Blocchi
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_ContaDeltaCelleBlocco
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_ContaCelleBlocco
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_ContaCelleCreate
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_celleCreaMancantiBlocco
-
-
-
-
-
-
-
-
-
-
+
@@ -208,21 +250,21 @@ WHERE (value = @value)
-
+
-
+
-
+
@@ -232,25 +274,25 @@ WHERE (value = @value)
-
+
-
-
+
+
-
+
-
+
@@ -260,18 +302,38 @@ WHERE (value = @value)
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -285,6 +347,35 @@ WHERE (value = @value)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -303,5 +394,13 @@ WHERE (value = @value)
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_Utility.xss b/GMW/GMW_data/DS_Utility.xss
index 2eb8b41f..90d646e6 100644
--- a/GMW/GMW_data/DS_Utility.xss
+++ b/GMW/GMW_data/DS_Utility.xss
@@ -6,10 +6,11 @@
-->
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs
index 9050966f..eb8c26bd 100644
--- a/GMW/GMW_data/DS_magazzino.Designer.cs
+++ b/GMW/GMW_data/DS_magazzino.Designer.cs
@@ -7263,7 +7263,7 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd
index 6ac50a97..2067a56e 100644
--- a/GMW/GMW_data/DS_magazzino.xsd
+++ b/GMW/GMW_data/DS_magazzino.xsd
@@ -2,9 +2,10 @@
-
+
+
@@ -220,7 +221,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
-
+
DELETE FROM [dbo].[AnagMag] WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescMag = 1 AND [DescMag] IS NULL) OR ([DescMag] = @Original_DescMag)))
@@ -272,7 +273,7 @@ SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)
-
+
DELETE FROM AnagMag
@@ -284,7 +285,7 @@ WHERE (CodCS = @CodCS) AND (CodMag = @Original_CodMag)
-
+
dbo.stp_magGetByCS
@@ -295,7 +296,7 @@ WHERE (CodCS = @CodCS) AND (CodMag = @Original_CodMag)
-
+
dbo.stp_magGetByCodMag
@@ -307,7 +308,7 @@ WHERE (CodCS = @CodCS) AND (CodMag = @Original_CodMag)
-
+
UPDATE AnagMag
@@ -972,272 +973,127 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella)
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1252,16 +1108,17 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella)
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
@@ -1271,90 +1128,234 @@ WHERE (IdxTipoCella = @Original_IdxTipoCella)
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
-
+
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GMW/GMW_data/DataProxy.cs b/GMW/GMW_data/DataProxy.cs
index fa943a23..d81a9697 100644
--- a/GMW/GMW_data/DataProxy.cs
+++ b/GMW/GMW_data/DataProxy.cs
@@ -13,10 +13,8 @@ namespace GMW_data
{
#region area table adapters
- public DS_ApplicazioneTableAdapters.AnagArticoliTableAdapter taAnagArt;
public DS_ApplicazioneTableAdapters.AnagImpiantiTableAdapter taAnagImp;
public DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter taAnagBil;
- public DS_ApplicazioneTableAdapters.Impianti2ArticoliTableAdapter taImp2Art;
public DS_ApplicazioneTableAdapters.ElencoCartelliniTableAdapter taCartellini;
public DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter taTipoDich;
public DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter taStatiProd;
@@ -34,11 +32,9 @@ namespace GMW_data
///
protected void initTA()
{
- taAnagArt = new GMW_data.DS_ApplicazioneTableAdapters.AnagArticoliTableAdapter();
taAnagImp = new GMW_data.DS_ApplicazioneTableAdapters.AnagImpiantiTableAdapter();
taAnagBil = new GMW_data.DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter();
taTipoDich = new GMW_data.DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter();
- taImp2Art = new GMW_data.DS_ApplicazioneTableAdapters.Impianti2ArticoliTableAdapter();
taCartellini = new GMW_data.DS_ApplicazioneTableAdapters.ElencoCartelliniTableAdapter();
taStatiProd = new GMW_data.DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter();
taAnagImballi = new GMW_data.DS_ApplicazioneTableAdapters.AnagImballiTableAdapter();
@@ -56,10 +52,8 @@ namespace GMW_data
protected virtual void setupConnectionStringBase()
{
// connections strings del db
- taAnagArt.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taAnagImp.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taAnagBil.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
- taImp2Art.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taTipoDich.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taStatiProd.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
diff --git a/GMW/GMW_data/Properties/Settings.Designer.cs b/GMW/GMW_data/Properties/Settings.Designer.cs
index e10756bc..52d5233d 100644
--- a/GMW/GMW_data/Properties/Settings.Designer.cs
+++ b/GMW/GMW_data/Properties/Settings.Designer.cs
@@ -33,5 +33,16 @@ namespace GMW_data.Properties {
return ((string)(this["GMWConnectionString"]));
}
}
+
+ [global::System.Configuration.ApplicationScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=T110-WIN2008R2\\SQL2008R2;Initial Catalog=GMW;Persist Security Info=Tr" +
+ "ue;User ID=sa;Password=keyhammer")]
+ public string GMWConnectionString1 {
+ get {
+ return ((string)(this["GMWConnectionString1"]));
+ }
+ }
}
}
diff --git a/GMW/GMW_data/Properties/Settings.settings b/GMW/GMW_data/Properties/Settings.settings
index 1d067eef..fabbeb8e 100644
--- a/GMW/GMW_data/Properties/Settings.settings
+++ b/GMW/GMW_data/Properties/Settings.settings
@@ -10,5 +10,13 @@
</SerializableConnectionString>
Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer
+
+ <?xml version="1.0" encoding="utf-16"?>
+<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <ConnectionString>Data Source=T110-WIN2008R2\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString>
+ <ProviderName>System.Data.SqlClient</ProviderName>
+</SerializableConnectionString>
+ Data Source=T110-WIN2008R2\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer
+
\ No newline at end of file
diff --git a/GMW/GMW_data/app.config b/GMW/GMW_data/app.config
index 7f9a33a4..0752fdbf 100644
--- a/GMW/GMW_data/app.config
+++ b/GMW/GMW_data/app.config
@@ -1,10 +1,10 @@
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index 71b92aca..011c33e8 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/Debug/GMW_data.dll.config b/GMW/GMW_data/bin/Debug/GMW_data.dll.config
index 7f9a33a4..0752fdbf 100644
--- a/GMW/GMW_data/bin/Debug/GMW_data.dll.config
+++ b/GMW/GMW_data/bin/Debug/GMW_data.dll.config
@@ -1,10 +1,10 @@
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index 71b92aca..011c33e8 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 67cf3d96..3087ab66 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/Debug/TempPE/DS_Utility.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll
index d694e506..79d3f6c7 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll differ
diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll
index d593fefe..13b63557 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ
diff --git a/GMW/GMW_data/utils.cs b/GMW/GMW_data/utils.cs
index 81dbc5c0..a9134354 100644
--- a/GMW/GMW_data/utils.cs
+++ b/GMW/GMW_data/utils.cs
@@ -11,7 +11,7 @@ namespace GMW_data
{
#region area table adapters
- public DS_UtilityTableAdapters.STP taSTP;
+ public DS_UtilityTableAdapters.STPTableAdapter taSTP;
public DS_UtilityTableAdapters.v_selTipoCellaTableAdapter taSelTipoCella;
@@ -20,7 +20,7 @@ namespace GMW_data
///
protected void initTA()
{
- taSTP = new GMW_data.DS_UtilityTableAdapters.STP();
+ taSTP = new GMW_data.DS_UtilityTableAdapters.STPTableAdapter();
taSelTipoCella = new GMW_data.DS_UtilityTableAdapters.v_selTipoCellaTableAdapter();
}
///
@@ -29,7 +29,7 @@ namespace GMW_data
protected virtual void setupConnectionStringBase()
{
// connections del db
- //taSTP.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taSTP.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taSelTipoCella.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
}