diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj
index bee800a4..096c18b3 100644
--- a/GMW/GMW/GMW.csproj
+++ b/GMW/GMW/GMW.csproj
@@ -77,6 +77,7 @@
+
diff --git a/GMW/GMW/Type/CompanySito.cs b/GMW/GMW/Type/CompanySito.cs
new file mode 100644
index 00000000..dbb247c6
--- /dev/null
+++ b/GMW/GMW/Type/CompanySito.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using GMW_data;
+
+namespace GMW.Type
+{
+ public class CompanySito
+ {
+ public CompanySito()
+ {
+ }
+
+ public CompanySito(DS_Applicazione.AnagCompanySitoRow riga)
+ {
+ CodCS = riga.CodCS;
+ CodCompany = riga.CodCompany;
+ DescCompany = riga.DescCompany;
+ CodSito = riga.CodSito;
+ DescSito = riga.DescSito;
+ }
+
+ ///
+ /// Codice Company-Sito
+ ///
+ public string CodCS { get; set; }
+ ///
+ /// Codice Company
+ ///
+ public string CodCompany { get; set; }
+ ///
+ /// Descrizione Company
+ ///
+ public string DescCompany { get; set; }
+ ///
+ /// Codice Sito
+ ///
+ public string CodSito { get; set; }
+ ///
+ /// Descrizione Sito
+ ///
+ public string DescSito { get; set; }
+
+ ///
+ /// inizializza a partire da una riga COmpanySito
+ ///
+ ///
+ public void setFromTabRow(DS_Applicazione.AnagCompanySitoRow riga)
+ {
+ CodCS = riga.CodCS;
+ CodCompany = riga.CodCompany;
+ DescCompany = riga.DescCompany;
+ CodSito = riga.CodSito;
+ DescSito = riga.DescSito;
+ }
+ }
+}
diff --git a/GMW/GMW/Type/Impianto.cs b/GMW/GMW/Type/Impianto.cs
index bdb16f33..456d0a65 100644
--- a/GMW/GMW/Type/Impianto.cs
+++ b/GMW/GMW/Type/Impianto.cs
@@ -14,9 +14,10 @@ namespace GMW.Type
public Impianto(DS_Applicazione.AnagImpiantiRow riga)
{
CodImpianto = riga.CodImpianto;
- DescrImpianto = riga.DescrImpianto;
- CodCompany = riga.CodCompany;
- CodSito = riga.CodSito;
+ DescImpianto = riga.DescImpianto;
+ CodCS = riga.CodCS;
+ Campionatura = riga.Campionatura;
+ TipoLinea = riga.TipoLinea;
}
///
@@ -26,15 +27,19 @@ namespace GMW.Type
///
/// Descrizione impianto
///
- public string DescrImpianto { get; set; }
+ public string DescImpianto { get; set; }
///
- /// Codice COmpany
+ /// Codice CompanySito
///
- public string CodCompany { get; set; }
+ public string CodCS { get; set; }
///
- /// Codice sito
+ /// Campionatura
///
- public string CodSito { get; set; }
+ public string Campionatura { get; set; }
+ ///
+ /// Tipo di linea
+ ///
+ public string TipoLinea { get; set; }
///
/// inizializza a partire da una riga impianto tipizzata
///
@@ -42,9 +47,10 @@ namespace GMW.Type
public void setFromTabRow(DS_Applicazione.AnagImpiantiRow riga)
{
CodImpianto = riga.CodImpianto;
- DescrImpianto = riga.DescrImpianto;
- CodCompany = riga.CodCompany;
- CodSito= riga.CodSito;
+ DescImpianto = riga.DescImpianto;
+ CodCS = riga.CodCS;
+ Campionatura = riga.Campionatura;
+ TipoLinea = riga.TipoLinea;
}
}
diff --git a/GMW/GMW/Type/UDC.cs b/GMW/GMW/Type/UDC.cs
index f507d5b3..d1bc0a59 100644
--- a/GMW/GMW/Type/UDC.cs
+++ b/GMW/GMW/Type/UDC.cs
@@ -14,7 +14,7 @@ namespace GMW.Type
public UDC()
{
}
- public UDC(DS_Applicazione.TabStatoOdpUdcRow riga)
+ public UDC(DS_Applicazione.TabCartelliniRow riga)
{
CodCompany = riga.CodCompany;
ODP = riga.ODP;
@@ -97,7 +97,7 @@ namespace GMW.Type
/// inizializza a partire da una riga statoOdpUdc
///
///
- public void setFromTabRow(DS_Applicazione.TabStatoOdpUdcRow riga)
+ public void setFromTabRow(DS_Applicazione.TabCartelliniRow riga)
{
CodCompany = riga.CodCompany;
ODP = riga.ODP;
diff --git a/GMW/GMW/Type/elenchi.cs b/GMW/GMW/Type/elenchi.cs
index 59eacf54..afcb50ea 100644
--- a/GMW/GMW/Type/elenchi.cs
+++ b/GMW/GMW/Type/elenchi.cs
@@ -80,6 +80,41 @@ namespace GMW.Type
#endregion
+ #region area Company Sito
+
+
+ protected CompanySito[] _elencoCompanySito;
+
+ ///
+ /// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[]
+ ///
+ ///
+ public void caricaCompanySito(DS_Applicazione.AnagCompanySitoDataTable tabCS)
+ {
+ // conto quanti elementi ha la tab x inizializzare l'array...
+ int numRighe = tabCS.Rows.Count;
+ _elencoCompanySito = new CompanySito[numRighe];
+ // prendo un obj impianto da valorizzare di volta in volta...
+ CompanySito obj;
+ for (int i = 0; i < numRighe; i++)
+ {
+ obj = new CompanySito(tabCS[i]);
+ _elencoCompanySito[i] = obj;
+ }
+ }
+ ///
+ /// Elenco Company/Sito
+ ///
+ public CompanySito[] elencoCompanySito
+ {
+ get
+ {
+ return _elencoCompanySito;
+ }
+ }
+
+ #endregion
+
#region area articoli
diff --git a/GMW/GMW/WS/bilance.asmx.cs b/GMW/GMW/WS/bilance.asmx.cs
index fbf243dc..259c326c 100644
--- a/GMW/GMW/WS/bilance.asmx.cs
+++ b/GMW/GMW/WS/bilance.asmx.cs
@@ -36,7 +36,16 @@ namespace GMW.WS
#region area anagrafiche
+ ///
+ /// Elenco anagrafico combinazioni company/sito
+ ///
+ [WebMethod(Description = "Elenco anagrafico combinazioni company/sito")]
+ public GMW.Type.CompanySito[] ElencoCompanySito()
+ {
+ gestEl.caricaCompanySito(DataProxy.obj.taAnagCS.GetData());
+ return gestEl.elencoCompanySito;
+ }
///
/// fornisce l'anagrafica articoli
///
@@ -79,10 +88,12 @@ namespace GMW.WS
///
/// Elenco anagrafica impianti dati codice company e sito (no dataset)
///
+ /// Codice company/sito
+ ///
[WebMethod(Description = "Elenco anagrafica impianti dati codice company e sito (no dataset)")]
- public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCompany, string CodSito)
+ public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCS)
{
- gestEl.caricaImpianti(DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito));
+ gestEl.caricaImpianti(DataProxy.obj.taAnagImp.stp_getByCodCS(CodCS));
return gestEl.elencoImpianti;
}
@@ -132,7 +143,7 @@ namespace GMW.WS
double answ = 0;
try
{
- answ = DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC)[0].Tara;
+ answ = DataProxy.obj.taCartellini.stp_getStatoByUdc(UDC)[0].Tara;
}
catch
{ }
@@ -239,7 +250,7 @@ namespace GMW.WS
CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
}
// inserico riga generando il codice
- DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_TARA"); // ATTENZIONE: "UDC_TARA" è "hard coded" nel db... !!!
+ DS_Applicazione.TabCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNew(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), Tara, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_TARA"); // ATTENZIONE: "UDC_TARA" è "hard coded" nel db... !!!
// leggo la riga
try
{
@@ -291,7 +302,7 @@ namespace GMW.WS
}
int IdxStato = 20; // hard coded: è la postazione POST fusione di ambivere!!!
// faccio update!
- DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdcFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStatoProd, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
+ DS_Applicazione.TabCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStatoProd, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
// leggo la riga
try
{
@@ -315,7 +326,7 @@ namespace GMW.WS
bool answ = false;
try
{
- GMW_data.DataProxy.obj.taStatoOdpUdc.stp_annullaUDC(UDC_req);
+ GMW_data.DataProxy.obj.taCartellini.stp_annullaUDC(UDC_req);
answ = true;
}
catch
@@ -338,7 +349,7 @@ namespace GMW.WS
string passkeyOk = memLayer.ML.confReadString("passkey");
if (passkeyOk == passkey)
{
- GMW_data.DataProxy.obj.taStatoOdpUdc.stp_sbloccaUdc(UDC_req);
+ GMW_data.DataProxy.obj.taCartellini.stp_sbloccaUdc(UDC_req);
answ = true;
}
return answ;
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index a207e0f6..8bd55d7e 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 b2ad5676..30c2e3c8 100644
Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index a207e0f6..8bd55d7e 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 006d3f08..f9a91726 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 8e417bc3..318efa82 100644
--- a/GMW/GMW_data/DS_Applicazione.Designer.cs
+++ b/GMW/GMW_data/DS_Applicazione.Designer.cs
@@ -25,16 +25,8 @@ namespace GMW_data {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class DS_Applicazione : global::System.Data.DataSet {
- private AnagImpiantiDataTable tableAnagImpianti;
-
- private AnagCompanyDataTable tableAnagCompany;
-
- private AnagSitiDataTable tableAnagSiti;
-
private AnagBilanceDataTable tableAnagBilance;
- private AnagOdpDataTable tableAnagOdp;
-
private AnagStatiDataTable tableAnagStati;
private AnagTipoDichiarazDataTable tableAnagTipoDichiaraz;
@@ -49,37 +41,31 @@ namespace GMW_data {
private v_ArtInProdDataTable tablev_ArtInProd;
- private TabStatoOdpUdcDataTable tableTabStatoOdpUdc;
-
private StoricoEventiDataTable tableStoricoEventi;
private RelazUDCDataTable tableRelazUDC;
- private global::System.Data.DataRelation relationFK_AnagImpianti_AnagSiti;
+ private AnagImpiantiDataTable tableAnagImpianti;
- private global::System.Data.DataRelation relationFK_AnagSiti_AnagCompany;
+ private AnagCompanySitoDataTable tableAnagCompanySito;
- private global::System.Data.DataRelation relationFK_AnagBilance_AnagSiti;
-
- private global::System.Data.DataRelation relationFK_AnagOdp_AnagCompany;
+ private TabCartelliniDataTable tableTabCartellini;
private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli1;
- private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti;
-
- private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagArticoli;
-
- private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagImballi;
-
- private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagOdp;
-
- private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStati;
-
- private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStatiProdotto;
-
private global::System.Data.DataRelation relationFK_StoricoEventi_AnagTipoDichiaraz;
- private global::System.Data.DataRelation relationFK_StoricoEventi_TabStatoOdpUdc;
+ private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti;
+
+ private global::System.Data.DataRelation relationFK_AnagImpianti_AnagCompanySito;
+
+ private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagArticoli1;
+
+ private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagImballi1;
+
+ private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStati1;
+
+ private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStatiProdotto1;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
@@ -107,21 +93,9 @@ namespace GMW_data {
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- if ((ds.Tables["AnagImpianti"] != null)) {
- base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
- }
- if ((ds.Tables["AnagCompany"] != null)) {
- base.Tables.Add(new AnagCompanyDataTable(ds.Tables["AnagCompany"]));
- }
- if ((ds.Tables["AnagSiti"] != null)) {
- base.Tables.Add(new AnagSitiDataTable(ds.Tables["AnagSiti"]));
- }
if ((ds.Tables["AnagBilance"] != null)) {
base.Tables.Add(new AnagBilanceDataTable(ds.Tables["AnagBilance"]));
}
- if ((ds.Tables["AnagOdp"] != null)) {
- base.Tables.Add(new AnagOdpDataTable(ds.Tables["AnagOdp"]));
- }
if ((ds.Tables["AnagStati"] != null)) {
base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"]));
}
@@ -143,15 +117,21 @@ namespace GMW_data {
if ((ds.Tables["v_ArtInProd"] != null)) {
base.Tables.Add(new v_ArtInProdDataTable(ds.Tables["v_ArtInProd"]));
}
- if ((ds.Tables["TabStatoOdpUdc"] != null)) {
- base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"]));
- }
if ((ds.Tables["StoricoEventi"] != null)) {
base.Tables.Add(new StoricoEventiDataTable(ds.Tables["StoricoEventi"]));
}
if ((ds.Tables["RelazUDC"] != null)) {
base.Tables.Add(new RelazUDCDataTable(ds.Tables["RelazUDC"]));
}
+ if ((ds.Tables["AnagImpianti"] != null)) {
+ base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
+ }
+ if ((ds.Tables["AnagCompanySito"] != null)) {
+ base.Tables.Add(new AnagCompanySitoDataTable(ds.Tables["AnagCompanySito"]));
+ }
+ if ((ds.Tables["TabCartellini"] != null)) {
+ base.Tables.Add(new TabCartelliniDataTable(ds.Tables["TabCartellini"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -170,33 +150,6 @@ namespace GMW_data {
this.Relations.CollectionChanged += schemaChangedHandler;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagImpiantiDataTable AnagImpianti {
- get {
- return this.tableAnagImpianti;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagCompanyDataTable AnagCompany {
- get {
- return this.tableAnagCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagSitiDataTable AnagSiti {
- get {
- return this.tableAnagSiti;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -206,15 +159,6 @@ namespace GMW_data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagOdpDataTable AnagOdp {
- get {
- return this.tableAnagOdp;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -278,15 +222,6 @@ namespace GMW_data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public TabStatoOdpUdcDataTable TabStatoOdpUdc {
- get {
- return this.tableTabStatoOdpUdc;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -305,6 +240,33 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagImpiantiDataTable AnagImpianti {
+ get {
+ return this.tableAnagImpianti;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagCompanySitoDataTable AnagCompanySito {
+ get {
+ return this.tableAnagCompanySito;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public TabCartelliniDataTable TabCartellini {
+ get {
+ return this.tableTabCartellini;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
@@ -364,21 +326,9 @@ namespace GMW_data {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
- if ((ds.Tables["AnagImpianti"] != null)) {
- base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
- }
- if ((ds.Tables["AnagCompany"] != null)) {
- base.Tables.Add(new AnagCompanyDataTable(ds.Tables["AnagCompany"]));
- }
- if ((ds.Tables["AnagSiti"] != null)) {
- base.Tables.Add(new AnagSitiDataTable(ds.Tables["AnagSiti"]));
- }
if ((ds.Tables["AnagBilance"] != null)) {
base.Tables.Add(new AnagBilanceDataTable(ds.Tables["AnagBilance"]));
}
- if ((ds.Tables["AnagOdp"] != null)) {
- base.Tables.Add(new AnagOdpDataTable(ds.Tables["AnagOdp"]));
- }
if ((ds.Tables["AnagStati"] != null)) {
base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"]));
}
@@ -400,15 +350,21 @@ namespace GMW_data {
if ((ds.Tables["v_ArtInProd"] != null)) {
base.Tables.Add(new v_ArtInProdDataTable(ds.Tables["v_ArtInProd"]));
}
- if ((ds.Tables["TabStatoOdpUdc"] != null)) {
- base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"]));
- }
if ((ds.Tables["StoricoEventi"] != null)) {
base.Tables.Add(new StoricoEventiDataTable(ds.Tables["StoricoEventi"]));
}
if ((ds.Tables["RelazUDC"] != null)) {
base.Tables.Add(new RelazUDCDataTable(ds.Tables["RelazUDC"]));
}
+ if ((ds.Tables["AnagImpianti"] != null)) {
+ base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
+ }
+ if ((ds.Tables["AnagCompanySito"] != null)) {
+ base.Tables.Add(new AnagCompanySitoDataTable(ds.Tables["AnagCompanySito"]));
+ }
+ if ((ds.Tables["TabCartellini"] != null)) {
+ base.Tables.Add(new TabCartelliniDataTable(ds.Tables["TabCartellini"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -439,36 +395,12 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars(bool initTable) {
- this.tableAnagImpianti = ((AnagImpiantiDataTable)(base.Tables["AnagImpianti"]));
- if ((initTable == true)) {
- if ((this.tableAnagImpianti != null)) {
- this.tableAnagImpianti.InitVars();
- }
- }
- this.tableAnagCompany = ((AnagCompanyDataTable)(base.Tables["AnagCompany"]));
- if ((initTable == true)) {
- if ((this.tableAnagCompany != null)) {
- this.tableAnagCompany.InitVars();
- }
- }
- this.tableAnagSiti = ((AnagSitiDataTable)(base.Tables["AnagSiti"]));
- if ((initTable == true)) {
- if ((this.tableAnagSiti != null)) {
- this.tableAnagSiti.InitVars();
- }
- }
this.tableAnagBilance = ((AnagBilanceDataTable)(base.Tables["AnagBilance"]));
if ((initTable == true)) {
if ((this.tableAnagBilance != null)) {
this.tableAnagBilance.InitVars();
}
}
- this.tableAnagOdp = ((AnagOdpDataTable)(base.Tables["AnagOdp"]));
- if ((initTable == true)) {
- if ((this.tableAnagOdp != null)) {
- this.tableAnagOdp.InitVars();
- }
- }
this.tableAnagStati = ((AnagStatiDataTable)(base.Tables["AnagStati"]));
if ((initTable == true)) {
if ((this.tableAnagStati != null)) {
@@ -511,12 +443,6 @@ namespace GMW_data {
this.tablev_ArtInProd.InitVars();
}
}
- this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(base.Tables["TabStatoOdpUdc"]));
- if ((initTable == true)) {
- if ((this.tableTabStatoOdpUdc != null)) {
- this.tableTabStatoOdpUdc.InitVars();
- }
- }
this.tableStoricoEventi = ((StoricoEventiDataTable)(base.Tables["StoricoEventi"]));
if ((initTable == true)) {
if ((this.tableStoricoEventi != null)) {
@@ -529,19 +455,32 @@ namespace GMW_data {
this.tableRelazUDC.InitVars();
}
}
- this.relationFK_AnagImpianti_AnagSiti = this.Relations["FK_AnagImpianti_AnagSiti"];
- this.relationFK_AnagSiti_AnagCompany = this.Relations["FK_AnagSiti_AnagCompany"];
- this.relationFK_AnagBilance_AnagSiti = this.Relations["FK_AnagBilance_AnagSiti"];
- this.relationFK_AnagOdp_AnagCompany = this.Relations["FK_AnagOdp_AnagCompany"];
+ this.tableAnagImpianti = ((AnagImpiantiDataTable)(base.Tables["AnagImpianti"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagImpianti != null)) {
+ this.tableAnagImpianti.InitVars();
+ }
+ }
+ this.tableAnagCompanySito = ((AnagCompanySitoDataTable)(base.Tables["AnagCompanySito"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagCompanySito != null)) {
+ this.tableAnagCompanySito.InitVars();
+ }
+ }
+ this.tableTabCartellini = ((TabCartelliniDataTable)(base.Tables["TabCartellini"]));
+ if ((initTable == true)) {
+ if ((this.tableTabCartellini != null)) {
+ this.tableTabCartellini.InitVars();
+ }
+ }
this.relationFK_Impianti2Articoli_AnagArticoli1 = this.Relations["FK_Impianti2Articoli_AnagArticoli1"];
- this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
- this.relationFK_TabStatoOdpUdc_AnagArticoli = this.Relations["FK_TabStatoOdpUdc_AnagArticoli"];
- this.relationFK_TabStatoOdpUdc_AnagImballi = this.Relations["FK_TabStatoOdpUdc_AnagImballi"];
- this.relationFK_TabStatoOdpUdc_AnagOdp = this.Relations["FK_TabStatoOdpUdc_AnagOdp"];
- this.relationFK_TabStatoOdpUdc_AnagStati = this.Relations["FK_TabStatoOdpUdc_AnagStati"];
- this.relationFK_TabStatoOdpUdc_AnagStatiProdotto = this.Relations["FK_TabStatoOdpUdc_AnagStatiProdotto"];
this.relationFK_StoricoEventi_AnagTipoDichiaraz = this.Relations["FK_StoricoEventi_AnagTipoDichiaraz"];
- this.relationFK_StoricoEventi_TabStatoOdpUdc = this.Relations["FK_StoricoEventi_TabStatoOdpUdc"];
+ this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
+ this.relationFK_AnagImpianti_AnagCompanySito = this.Relations["FK_AnagImpianti_AnagCompanySito"];
+ this.relationFK_TabStatoOdpUdc_AnagArticoli1 = this.Relations["FK_TabStatoOdpUdc_AnagArticoli1"];
+ this.relationFK_TabStatoOdpUdc_AnagImballi1 = this.Relations["FK_TabStatoOdpUdc_AnagImballi1"];
+ this.relationFK_TabStatoOdpUdc_AnagStati1 = this.Relations["FK_TabStatoOdpUdc_AnagStati1"];
+ this.relationFK_TabStatoOdpUdc_AnagStatiProdotto1 = this.Relations["FK_TabStatoOdpUdc_AnagStatiProdotto1"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -551,16 +490,8 @@ namespace GMW_data {
this.Namespace = "http://tempuri.org/DS_Applicazione.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableAnagImpianti = new AnagImpiantiDataTable();
- base.Tables.Add(this.tableAnagImpianti);
- this.tableAnagCompany = new AnagCompanyDataTable();
- base.Tables.Add(this.tableAnagCompany);
- this.tableAnagSiti = new AnagSitiDataTable();
- base.Tables.Add(this.tableAnagSiti);
this.tableAnagBilance = new AnagBilanceDataTable();
base.Tables.Add(this.tableAnagBilance);
- this.tableAnagOdp = new AnagOdpDataTable();
- base.Tables.Add(this.tableAnagOdp);
this.tableAnagStati = new AnagStatiDataTable();
base.Tables.Add(this.tableAnagStati);
this.tableAnagTipoDichiaraz = new AnagTipoDichiarazDataTable();
@@ -575,89 +506,48 @@ namespace GMW_data {
base.Tables.Add(this.tableImpianti2Articoli);
this.tablev_ArtInProd = new v_ArtInProdDataTable();
base.Tables.Add(this.tablev_ArtInProd);
- this.tableTabStatoOdpUdc = new TabStatoOdpUdcDataTable();
- base.Tables.Add(this.tableTabStatoOdpUdc);
this.tableStoricoEventi = new StoricoEventiDataTable();
base.Tables.Add(this.tableStoricoEventi);
this.tableRelazUDC = new RelazUDCDataTable();
base.Tables.Add(this.tableRelazUDC);
- this.relationFK_AnagImpianti_AnagSiti = new global::System.Data.DataRelation("FK_AnagImpianti_AnagSiti", new global::System.Data.DataColumn[] {
- this.tableAnagSiti.CodCompanyColumn,
- this.tableAnagSiti.CodSitoColumn}, new global::System.Data.DataColumn[] {
- this.tableAnagImpianti.CodCompanyColumn,
- this.tableAnagImpianti.CodSitoColumn}, false);
- this.Relations.Add(this.relationFK_AnagImpianti_AnagSiti);
- this.relationFK_AnagSiti_AnagCompany = new global::System.Data.DataRelation("FK_AnagSiti_AnagCompany", new global::System.Data.DataColumn[] {
- this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] {
- this.tableAnagSiti.CodCompanyColumn}, false);
- this.Relations.Add(this.relationFK_AnagSiti_AnagCompany);
- this.relationFK_AnagBilance_AnagSiti = new global::System.Data.DataRelation("FK_AnagBilance_AnagSiti", new global::System.Data.DataColumn[] {
- this.tableAnagSiti.CodCompanyColumn,
- this.tableAnagSiti.CodSitoColumn}, new global::System.Data.DataColumn[] {
- this.tableAnagBilance.CodCompanyColumn,
- this.tableAnagBilance.CodSitoColumn}, false);
- this.Relations.Add(this.relationFK_AnagBilance_AnagSiti);
- this.relationFK_AnagOdp_AnagCompany = new global::System.Data.DataRelation("FK_AnagOdp_AnagCompany", new global::System.Data.DataColumn[] {
- this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] {
- this.tableAnagOdp.CodCompanyColumn}, false);
- this.Relations.Add(this.relationFK_AnagOdp_AnagCompany);
+ this.tableAnagImpianti = new AnagImpiantiDataTable();
+ base.Tables.Add(this.tableAnagImpianti);
+ this.tableAnagCompanySito = new AnagCompanySitoDataTable();
+ base.Tables.Add(this.tableAnagCompanySito);
+ this.tableTabCartellini = new TabCartelliniDataTable();
+ base.Tables.Add(this.tableTabCartellini);
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_Impianti2Articoli_AnagImpianti = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagImpianti", new global::System.Data.DataColumn[] {
- this.tableAnagImpianti.CodImpiantoColumn}, new global::System.Data.DataColumn[] {
- this.tableImpianti2Articoli.CodImpiantoColumn}, false);
- this.Relations.Add(this.relationFK_Impianti2Articoli_AnagImpianti);
- this.relationFK_TabStatoOdpUdc_AnagArticoli = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagArticoli", new global::System.Data.DataColumn[] {
- this.tableAnagArticoli.ParticolareColumn}, new global::System.Data.DataColumn[] {
- this.tableTabStatoOdpUdc.ParticolareColumn}, false);
- this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagArticoli);
- this.relationFK_TabStatoOdpUdc_AnagImballi = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagImballi", new global::System.Data.DataColumn[] {
- this.tableAnagImballi.CodImballoColumn}, new global::System.Data.DataColumn[] {
- this.tableTabStatoOdpUdc.CodImballoColumn}, false);
- this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagImballi);
- this.relationFK_TabStatoOdpUdc_AnagOdp = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagOdp", new global::System.Data.DataColumn[] {
- this.tableAnagOdp.CodCompanyColumn,
- this.tableAnagOdp.ODPColumn}, new global::System.Data.DataColumn[] {
- this.tableTabStatoOdpUdc.CodCompanyColumn,
- this.tableTabStatoOdpUdc.ODPColumn}, false);
- this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagOdp);
- this.relationFK_TabStatoOdpUdc_AnagStati = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagStati", new global::System.Data.DataColumn[] {
- this.tableAnagStati.IdxStatoColumn}, new global::System.Data.DataColumn[] {
- this.tableTabStatoOdpUdc.IdxStatoColumn}, false);
- this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStati);
- this.relationFK_TabStatoOdpUdc_AnagStatiProdotto = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagStatiProdotto", new global::System.Data.DataColumn[] {
- this.tableAnagStatiProdotto.CodStatoColumn}, new global::System.Data.DataColumn[] {
- this.tableTabStatoOdpUdc.CodStatoColumn}, false);
- this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStatiProdotto);
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_StoricoEventi_TabStatoOdpUdc = new global::System.Data.DataRelation("FK_StoricoEventi_TabStatoOdpUdc", new global::System.Data.DataColumn[] {
- this.tableTabStatoOdpUdc.CodCompanyColumn,
- this.tableTabStatoOdpUdc.ODPColumn,
- this.tableTabStatoOdpUdc.UDCColumn}, new global::System.Data.DataColumn[] {
- this.tableStoricoEventi.CodCompanyColumn,
- this.tableStoricoEventi.ODPColumn,
- this.tableStoricoEventi.UDCColumn}, false);
- this.Relations.Add(this.relationFK_StoricoEventi_TabStatoOdpUdc);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagImpianti() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagCompany() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagSiti() {
- return false;
+ 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);
+ this.Relations.Add(this.relationFK_AnagImpianti_AnagCompanySito);
+ this.relationFK_TabStatoOdpUdc_AnagArticoli1 = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagArticoli1", new global::System.Data.DataColumn[] {
+ this.tableAnagArticoli.ParticolareColumn}, new global::System.Data.DataColumn[] {
+ this.tableTabCartellini.ParticolareColumn}, false);
+ this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagArticoli1);
+ this.relationFK_TabStatoOdpUdc_AnagImballi1 = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagImballi1", new global::System.Data.DataColumn[] {
+ this.tableAnagImballi.CodImballoColumn}, new global::System.Data.DataColumn[] {
+ this.tableTabCartellini.CodImballoColumn}, false);
+ this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagImballi1);
+ this.relationFK_TabStatoOdpUdc_AnagStati1 = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagStati1", new global::System.Data.DataColumn[] {
+ this.tableAnagStati.IdxStatoColumn}, new global::System.Data.DataColumn[] {
+ this.tableTabCartellini.IdxStatoColumn}, false);
+ this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStati1);
+ this.relationFK_TabStatoOdpUdc_AnagStatiProdotto1 = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagStatiProdotto1", new global::System.Data.DataColumn[] {
+ this.tableAnagStatiProdotto.CodStatoColumn}, new global::System.Data.DataColumn[] {
+ this.tableTabCartellini.CodStatoColumn}, false);
+ this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStatiProdotto1);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -665,11 +555,6 @@ namespace GMW_data {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagOdp() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeAnagStati() {
return false;
@@ -705,11 +590,6 @@ namespace GMW_data {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeTabStatoOdpUdc() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeStoricoEventi() {
return false;
@@ -720,6 +600,21 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagImpianti() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagCompanySito() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeTabCartellini() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
@@ -773,16 +668,8 @@ namespace GMW_data {
return type;
}
- public delegate void AnagImpiantiRowChangeEventHandler(object sender, AnagImpiantiRowChangeEvent e);
-
- public delegate void AnagCompanyRowChangeEventHandler(object sender, AnagCompanyRowChangeEvent e);
-
- public delegate void AnagSitiRowChangeEventHandler(object sender, AnagSitiRowChangeEvent e);
-
public delegate void AnagBilanceRowChangeEventHandler(object sender, AnagBilanceRowChangeEvent e);
- public delegate void AnagOdpRowChangeEventHandler(object sender, AnagOdpRowChangeEvent e);
-
public delegate void AnagStatiRowChangeEventHandler(object sender, AnagStatiRowChangeEvent e);
public delegate void AnagTipoDichiarazRowChangeEventHandler(object sender, AnagTipoDichiarazRowChangeEvent e);
@@ -797,802 +684,15 @@ namespace GMW_data {
public delegate void v_ArtInProdRowChangeEventHandler(object sender, v_ArtInProdRowChangeEvent e);
- public delegate void TabStatoOdpUdcRowChangeEventHandler(object sender, TabStatoOdpUdcRowChangeEvent e);
-
public delegate void StoricoEventiRowChangeEventHandler(object sender, StoricoEventiRowChangeEvent e);
public delegate void RelazUDCRowChangeEventHandler(object sender, RelazUDCRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagImpiantiDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodImpianto;
-
- private global::System.Data.DataColumn columnDescrImpianto;
-
- private global::System.Data.DataColumn columnCodCompany;
-
- private global::System.Data.DataColumn columnCodSito;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiDataTable() {
- this.TableName = "AnagImpianti";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagImpiantiDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AnagImpiantiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodImpiantoColumn {
- get {
- return this.columnCodImpianto;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrImpiantoColumn {
- get {
- return this.columnDescrImpianto;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCompanyColumn {
- get {
- return this.columnCodCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodSitoColumn {
- get {
- return this.columnCodSito;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow this[int index] {
- get {
- return ((AnagImpiantiRow)(this.Rows[index]));
- }
- }
-
- public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanging;
-
- public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanged;
-
- public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleting;
-
- public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagImpiantiRow(AnagImpiantiRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow AddAnagImpiantiRow(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito) {
- AnagImpiantiRow rowAnagImpiantiRow = ((AnagImpiantiRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodImpianto,
- DescrImpianto,
- CodCompany,
- CodSito};
- rowAnagImpiantiRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagImpiantiRow);
- return rowAnagImpiantiRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow FindByCodImpianto(string CodImpianto) {
- return ((AnagImpiantiRow)(this.Rows.Find(new object[] {
- CodImpianto})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagImpiantiDataTable cln = ((AnagImpiantiDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagImpiantiDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodImpianto = base.Columns["CodImpianto"];
- this.columnDescrImpianto = base.Columns["DescrImpianto"];
- this.columnCodCompany = base.Columns["CodCompany"];
- this.columnCodSito = base.Columns["CodSito"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodImpianto);
- this.columnDescrImpianto = new global::System.Data.DataColumn("DescrImpianto", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrImpianto);
- this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCompany);
- this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodSito);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodImpianto}, true));
- this.columnCodImpianto.AllowDBNull = false;
- this.columnCodImpianto.Unique = true;
- this.columnCodImpianto.MaxLength = 50;
- this.columnDescrImpianto.MaxLength = 50;
- this.columnCodCompany.MaxLength = 4;
- this.columnCodSito.MaxLength = 10;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow NewAnagImpiantiRow() {
- return ((AnagImpiantiRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagImpiantiRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagImpiantiRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagImpiantiRowChanged != null)) {
- this.AnagImpiantiRowChanged(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagImpiantiRowChanging != null)) {
- this.AnagImpiantiRowChanging(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagImpiantiRowDeleted != null)) {
- this.AnagImpiantiRowDeleted(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagImpiantiRowDeleting != null)) {
- this.AnagImpiantiRowDeleting(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagImpiantiRow(AnagImpiantiRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- 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 = "AnagImpiantiDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
+ public delegate void AnagImpiantiRowChangeEventHandler(object sender, AnagImpiantiRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagCompanyDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodCompany;
-
- private global::System.Data.DataColumn columnDescrCompany;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyDataTable() {
- this.TableName = "AnagCompany";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagCompanyDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AnagCompanyDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCompanyColumn {
- get {
- return this.columnCodCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrCompanyColumn {
- get {
- return this.columnDescrCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow this[int index] {
- get {
- return ((AnagCompanyRow)(this.Rows[index]));
- }
- }
-
- public event AnagCompanyRowChangeEventHandler AnagCompanyRowChanging;
-
- public event AnagCompanyRowChangeEventHandler AnagCompanyRowChanged;
-
- public event AnagCompanyRowChangeEventHandler AnagCompanyRowDeleting;
-
- public event AnagCompanyRowChangeEventHandler AnagCompanyRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagCompanyRow(AnagCompanyRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow AddAnagCompanyRow(string CodCompany, string DescrCompany) {
- AnagCompanyRow rowAnagCompanyRow = ((AnagCompanyRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodCompany,
- DescrCompany};
- rowAnagCompanyRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagCompanyRow);
- return rowAnagCompanyRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow FindByCodCompany(string CodCompany) {
- return ((AnagCompanyRow)(this.Rows.Find(new object[] {
- CodCompany})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagCompanyDataTable cln = ((AnagCompanyDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagCompanyDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodCompany = base.Columns["CodCompany"];
- this.columnDescrCompany = base.Columns["DescrCompany"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCompany);
- this.columnDescrCompany = new global::System.Data.DataColumn("DescrCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrCompany);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodCompany}, true));
- this.columnCodCompany.AllowDBNull = false;
- this.columnCodCompany.Unique = true;
- this.columnCodCompany.MaxLength = 4;
- this.columnDescrCompany.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow NewAnagCompanyRow() {
- return ((AnagCompanyRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagCompanyRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagCompanyRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagCompanyRowChanged != null)) {
- this.AnagCompanyRowChanged(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagCompanyRowChanging != null)) {
- this.AnagCompanyRowChanging(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagCompanyRowDeleted != null)) {
- this.AnagCompanyRowDeleted(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagCompanyRowDeleting != null)) {
- this.AnagCompanyRowDeleting(this, new AnagCompanyRowChangeEvent(((AnagCompanyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagCompanyRow(AnagCompanyRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- 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 = "AnagCompanyDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
+ public delegate void AnagCompanySitoRowChangeEventHandler(object sender, AnagCompanySitoRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagSitiDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodCompany;
-
- private global::System.Data.DataColumn columnCodSito;
-
- private global::System.Data.DataColumn columnDescrSito;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiDataTable() {
- this.TableName = "AnagSiti";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagSitiDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AnagSitiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCompanyColumn {
- get {
- return this.columnCodCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodSitoColumn {
- get {
- return this.columnCodSito;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrSitoColumn {
- get {
- return this.columnDescrSito;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow this[int index] {
- get {
- return ((AnagSitiRow)(this.Rows[index]));
- }
- }
-
- public event AnagSitiRowChangeEventHandler AnagSitiRowChanging;
-
- public event AnagSitiRowChangeEventHandler AnagSitiRowChanged;
-
- public event AnagSitiRowChangeEventHandler AnagSitiRowDeleting;
-
- public event AnagSitiRowChangeEventHandler AnagSitiRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagSitiRow(AnagSitiRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow AddAnagSitiRow(AnagCompanyRow parentAnagCompanyRowByFK_AnagSiti_AnagCompany, string CodSito, string DescrSito) {
- AnagSitiRow rowAnagSitiRow = ((AnagSitiRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- CodSito,
- DescrSito};
- if ((parentAnagCompanyRowByFK_AnagSiti_AnagCompany != null)) {
- columnValuesArray[0] = parentAnagCompanyRowByFK_AnagSiti_AnagCompany[0];
- }
- rowAnagSitiRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagSitiRow);
- return rowAnagSitiRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow FindByCodCompanyCodSito(string CodCompany, string CodSito) {
- return ((AnagSitiRow)(this.Rows.Find(new object[] {
- CodCompany,
- CodSito})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagSitiDataTable cln = ((AnagSitiDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagSitiDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodCompany = base.Columns["CodCompany"];
- this.columnCodSito = base.Columns["CodSito"];
- this.columnDescrSito = base.Columns["DescrSito"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCompany);
- this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodSito);
- this.columnDescrSito = new global::System.Data.DataColumn("DescrSito", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrSito);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodCompany,
- this.columnCodSito}, true));
- this.columnCodCompany.AllowDBNull = false;
- this.columnCodCompany.MaxLength = 4;
- this.columnCodSito.AllowDBNull = false;
- this.columnCodSito.MaxLength = 10;
- this.columnDescrSito.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow NewAnagSitiRow() {
- return ((AnagSitiRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagSitiRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagSitiRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagSitiRowChanged != null)) {
- this.AnagSitiRowChanged(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagSitiRowChanging != null)) {
- this.AnagSitiRowChanging(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagSitiRowDeleted != null)) {
- this.AnagSitiRowDeleted(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagSitiRowDeleting != null)) {
- this.AnagSitiRowDeleting(this, new AnagSitiRowChangeEvent(((AnagSitiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagSitiRow(AnagSitiRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- 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 = "AnagSitiDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
+ public delegate void TabCartelliniRowChangeEventHandler(object sender, TabCartelliniRowChangeEvent e);
///
///Represents the strongly named DataTable class.
@@ -1870,362 +970,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 AnagOdpDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodCompany;
-
- private global::System.Data.DataColumn columnODP;
-
- private global::System.Data.DataColumn columnCodArticolo;
-
- private global::System.Data.DataColumn columnCodDisegno;
-
- private global::System.Data.DataColumn columnEsponente;
-
- private global::System.Data.DataColumn columnMagazzino;
-
- private global::System.Data.DataColumn columnUbicazione;
-
- private global::System.Data.DataColumn columnCreateDate;
-
- private global::System.Data.DataColumn columnModDate;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpDataTable() {
- this.TableName = "AnagOdp";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagOdpDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AnagOdpDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCompanyColumn {
- get {
- return this.columnCodCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ODPColumn {
- get {
- return this.columnODP;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodArticoloColumn {
- get {
- return this.columnCodArticolo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodDisegnoColumn {
- get {
- return this.columnCodDisegno;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn EsponenteColumn {
- get {
- return this.columnEsponente;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn MagazzinoColumn {
- get {
- return this.columnMagazzino;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn UbicazioneColumn {
- get {
- return this.columnUbicazione;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CreateDateColumn {
- get {
- return this.columnCreateDate;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ModDateColumn {
- get {
- return this.columnModDate;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow this[int index] {
- get {
- return ((AnagOdpRow)(this.Rows[index]));
- }
- }
-
- public event AnagOdpRowChangeEventHandler AnagOdpRowChanging;
-
- public event AnagOdpRowChangeEventHandler AnagOdpRowChanged;
-
- public event AnagOdpRowChangeEventHandler AnagOdpRowDeleting;
-
- public event AnagOdpRowChangeEventHandler AnagOdpRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagOdpRow(AnagOdpRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow AddAnagOdpRow(AnagCompanyRow parentAnagCompanyRowByFK_AnagOdp_AnagCompany, string ODP, string CodArticolo, string CodDisegno, string Esponente, string Magazzino, string Ubicazione, System.DateTime CreateDate, System.DateTime ModDate) {
- AnagOdpRow rowAnagOdpRow = ((AnagOdpRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- ODP,
- CodArticolo,
- CodDisegno,
- Esponente,
- Magazzino,
- Ubicazione,
- CreateDate,
- ModDate};
- if ((parentAnagCompanyRowByFK_AnagOdp_AnagCompany != null)) {
- columnValuesArray[0] = parentAnagCompanyRowByFK_AnagOdp_AnagCompany[0];
- }
- rowAnagOdpRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagOdpRow);
- return rowAnagOdpRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow FindByCodCompanyODP(string CodCompany, string ODP) {
- return ((AnagOdpRow)(this.Rows.Find(new object[] {
- CodCompany,
- ODP})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagOdpDataTable cln = ((AnagOdpDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagOdpDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodCompany = base.Columns["CodCompany"];
- this.columnODP = base.Columns["ODP"];
- this.columnCodArticolo = base.Columns["CodArticolo"];
- this.columnCodDisegno = base.Columns["CodDisegno"];
- this.columnEsponente = base.Columns["Esponente"];
- this.columnMagazzino = base.Columns["Magazzino"];
- this.columnUbicazione = base.Columns["Ubicazione"];
- this.columnCreateDate = base.Columns["CreateDate"];
- this.columnModDate = base.Columns["ModDate"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCompany);
- this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnODP);
- this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodArticolo);
- this.columnCodDisegno = new global::System.Data.DataColumn("CodDisegno", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodDisegno);
- this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnEsponente);
- this.columnMagazzino = new global::System.Data.DataColumn("Magazzino", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnMagazzino);
- this.columnUbicazione = new global::System.Data.DataColumn("Ubicazione", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnUbicazione);
- this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCreateDate);
- this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnModDate);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodCompany,
- this.columnODP}, true));
- this.columnCodCompany.AllowDBNull = false;
- this.columnCodCompany.MaxLength = 4;
- this.columnODP.AllowDBNull = false;
- this.columnODP.MaxLength = 20;
- this.columnCodArticolo.AllowDBNull = false;
- this.columnCodArticolo.MaxLength = 20;
- this.columnCodDisegno.AllowDBNull = false;
- this.columnCodDisegno.MaxLength = 10;
- this.columnEsponente.AllowDBNull = false;
- this.columnEsponente.MaxLength = 20;
- this.columnMagazzino.AllowDBNull = false;
- this.columnMagazzino.MaxLength = 10;
- this.columnUbicazione.AllowDBNull = false;
- this.columnUbicazione.MaxLength = 10;
- this.columnCreateDate.AllowDBNull = false;
- this.columnModDate.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow NewAnagOdpRow() {
- return ((AnagOdpRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagOdpRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagOdpRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagOdpRowChanged != null)) {
- this.AnagOdpRowChanged(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagOdpRowChanging != null)) {
- this.AnagOdpRowChanging(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagOdpRowDeleted != null)) {
- this.AnagOdpRowDeleted(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagOdpRowDeleting != null)) {
- this.AnagOdpRowDeleting(this, new AnagOdpRowChangeEvent(((AnagOdpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagOdpRow(AnagOdpRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- 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 = "AnagOdpDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
///
///Represents the strongly named DataTable class.
///
@@ -4162,491 +2906,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 TabStatoOdpUdcDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodCompany;
-
- private global::System.Data.DataColumn columnODP;
-
- private global::System.Data.DataColumn columnUDC;
-
- private global::System.Data.DataColumn columnTara;
-
- private global::System.Data.DataColumn columnIdxStato;
-
- private global::System.Data.DataColumn columnQta;
-
- private global::System.Data.DataColumn columnCodImballo;
-
- private global::System.Data.DataColumn columnCodImpianto;
-
- private global::System.Data.DataColumn columnParticolare;
-
- private global::System.Data.DataColumn columnCodStato;
-
- private global::System.Data.DataColumn columnCodStampo;
-
- private global::System.Data.DataColumn columnFigura;
-
- private global::System.Data.DataColumn columnFiguraIncisa;
-
- private global::System.Data.DataColumn columnPesoTot;
-
- private global::System.Data.DataColumn columnPesoCad;
-
- private global::System.Data.DataColumn columnCreateDate;
-
- private global::System.Data.DataColumn columnModDate;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcDataTable() {
- this.TableName = "TabStatoOdpUdc";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal TabStatoOdpUdcDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected TabStatoOdpUdcDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCompanyColumn {
- get {
- return this.columnCodCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ODPColumn {
- get {
- return this.columnODP;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn UDCColumn {
- get {
- return this.columnUDC;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn TaraColumn {
- get {
- return this.columnTara;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn IdxStatoColumn {
- get {
- return this.columnIdxStato;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn QtaColumn {
- get {
- return this.columnQta;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodImballoColumn {
- get {
- return this.columnCodImballo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn 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 CodStatoColumn {
- get {
- return this.columnCodStato;
- }
- }
-
- [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()]
- public global::System.Data.DataColumn PesoTotColumn {
- get {
- return this.columnPesoTot;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn PesoCadColumn {
- get {
- return this.columnPesoCad;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CreateDateColumn {
- get {
- return this.columnCreateDate;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ModDateColumn {
- get {
- return this.columnModDate;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow this[int index] {
- get {
- return ((TabStatoOdpUdcRow)(this.Rows[index]));
- }
- }
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanging;
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanged;
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleting;
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddTabStatoOdpUdcRow(TabStatoOdpUdcRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow AddTabStatoOdpUdcRow(
- string CodCompany,
- string ODP,
- string UDC,
- double Tara,
- AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati,
- decimal Qta,
- AnagImballiRow parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi,
- string CodImpianto,
- AnagArticoliRow parentAnagArticoliRowByFK_TabStatoOdpUdc_AnagArticoli,
- AnagStatiProdottoRow parentAnagStatiProdottoRowByFK_TabStatoOdpUdc_AnagStatiProdotto,
- string CodStampo,
- string Figura,
- string FiguraIncisa,
- double PesoTot,
- double PesoCad,
- System.DateTime CreateDate,
- System.DateTime ModDate) {
- TabStatoOdpUdcRow rowTabStatoOdpUdcRow = ((TabStatoOdpUdcRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodCompany,
- ODP,
- UDC,
- Tara,
- null,
- Qta,
- null,
- CodImpianto,
- null,
- null,
- CodStampo,
- Figura,
- FiguraIncisa,
- PesoTot,
- PesoCad,
- CreateDate,
- ModDate};
- if ((parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati != null)) {
- columnValuesArray[4] = parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati[0];
- }
- if ((parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi != null)) {
- columnValuesArray[6] = parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi[0];
- }
- if ((parentAnagArticoliRowByFK_TabStatoOdpUdc_AnagArticoli != null)) {
- columnValuesArray[8] = parentAnagArticoliRowByFK_TabStatoOdpUdc_AnagArticoli[0];
- }
- if ((parentAnagStatiProdottoRowByFK_TabStatoOdpUdc_AnagStatiProdotto != null)) {
- columnValuesArray[9] = parentAnagStatiProdottoRowByFK_TabStatoOdpUdc_AnagStatiProdotto[0];
- }
- rowTabStatoOdpUdcRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowTabStatoOdpUdcRow);
- return rowTabStatoOdpUdcRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
- return ((TabStatoOdpUdcRow)(this.Rows.Find(new object[] {
- CodCompany,
- ODP,
- UDC})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- TabStatoOdpUdcDataTable cln = ((TabStatoOdpUdcDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new TabStatoOdpUdcDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodCompany = base.Columns["CodCompany"];
- this.columnODP = base.Columns["ODP"];
- this.columnUDC = base.Columns["UDC"];
- this.columnTara = base.Columns["Tara"];
- this.columnIdxStato = base.Columns["IdxStato"];
- this.columnQta = base.Columns["Qta"];
- this.columnCodImballo = base.Columns["CodImballo"];
- this.columnCodImpianto = base.Columns["CodImpianto"];
- this.columnParticolare = base.Columns["Particolare"];
- this.columnCodStato = base.Columns["CodStato"];
- this.columnCodStampo = base.Columns["CodStampo"];
- this.columnFigura = base.Columns["Figura"];
- this.columnFiguraIncisa = base.Columns["FiguraIncisa"];
- this.columnPesoTot = base.Columns["PesoTot"];
- this.columnPesoCad = base.Columns["PesoCad"];
- this.columnCreateDate = base.Columns["CreateDate"];
- this.columnModDate = base.Columns["ModDate"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCompany);
- this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnODP);
- this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnUDC);
- this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnTara);
- this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIdxStato);
- this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnQta);
- this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodImballo);
- this.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.columnCodStato = new global::System.Data.DataColumn("CodStato", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodStato);
- 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.columnPesoTot = new global::System.Data.DataColumn("PesoTot", typeof(double), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnPesoTot);
- this.columnPesoCad = new global::System.Data.DataColumn("PesoCad", typeof(double), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnPesoCad);
- this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCreateDate);
- this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnModDate);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodCompany,
- this.columnODP,
- this.columnUDC}, true));
- this.columnCodCompany.AllowDBNull = false;
- this.columnCodCompany.MaxLength = 4;
- this.columnODP.AllowDBNull = false;
- this.columnODP.MaxLength = 20;
- this.columnUDC.AllowDBNull = false;
- this.columnUDC.MaxLength = 50;
- this.columnCodImballo.MaxLength = 50;
- this.columnCodImpianto.MaxLength = 50;
- this.columnParticolare.MaxLength = 50;
- this.columnCodStato.MaxLength = 50;
- this.columnCodStampo.MaxLength = 50;
- this.columnFigura.MaxLength = 50;
- this.columnFiguraIncisa.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow NewTabStatoOdpUdcRow() {
- return ((TabStatoOdpUdcRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new TabStatoOdpUdcRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(TabStatoOdpUdcRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.TabStatoOdpUdcRowChanged != null)) {
- this.TabStatoOdpUdcRowChanged(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.TabStatoOdpUdcRowChanging != null)) {
- this.TabStatoOdpUdcRowChanging(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.TabStatoOdpUdcRowDeleted != null)) {
- this.TabStatoOdpUdcRowDeleted(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.TabStatoOdpUdcRowDeleting != null)) {
- this.TabStatoOdpUdcRowDeleting(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveTabStatoOdpUdcRow(TabStatoOdpUdcRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- 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 = "TabStatoOdpUdcDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
///
///Represents the strongly named DataTable class.
///
@@ -5347,282 +3606,1071 @@ namespace GMW_data {
}
///
- ///Represents strongly named DataRow class.
+ ///Represents the strongly named DataTable class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagImpiantiRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagImpiantiDataTable : global::System.Data.TypedTableBase {
- private AnagImpiantiDataTable tableAnagImpianti;
+ 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()]
- internal AnagImpiantiRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagImpianti = ((AnagImpiantiDataTable)(this.Table));
+ public AnagImpiantiDataTable() {
+ this.TableName = "AnagImpianti";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodImpianto {
- get {
- return ((string)(this[this.tableAnagImpianti.CodImpiantoColumn]));
+ internal AnagImpiantiDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableAnagImpianti.CodImpiantoColumn] = value;
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected AnagImpiantiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodImpiantoColumn {
+ get {
+ return this.columnCodImpianto;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescrImpianto {
+ 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 AnagImpiantiRow this[int index] {
+ get {
+ return ((AnagImpiantiRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanging;
+
+ public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowChanged;
+
+ public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleting;
+
+ public event AnagImpiantiRowChangeEventHandler AnagImpiantiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagImpiantiRow(AnagImpiantiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiRow AddAnagImpiantiRow(string CodImpianto, AnagCompanySitoRow parentAnagCompanySitoRowByFK_AnagImpianti_AnagCompanySito, string DescImpianto, string Campionatura, string TipoLinea) {
+ AnagImpiantiRow rowAnagImpiantiRow = ((AnagImpiantiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodImpianto,
+ null,
+ DescImpianto,
+ Campionatura,
+ TipoLinea};
+ if ((parentAnagCompanySitoRowByFK_AnagImpianti_AnagCompanySito != null)) {
+ columnValuesArray[1] = parentAnagCompanySitoRowByFK_AnagImpianti_AnagCompanySito[0];
+ }
+ rowAnagImpiantiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagImpiantiRow);
+ return rowAnagImpiantiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiRow FindByCodImpianto(string CodImpianto) {
+ return ((AnagImpiantiRow)(this.Rows.Find(new object[] {
+ CodImpianto})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagImpiantiDataTable cln = ((AnagImpiantiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagImpiantiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodImpianto = base.Columns["CodImpianto"];
+ this.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 AnagImpiantiRow NewAnagImpiantiRow() {
+ return ((AnagImpiantiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagImpiantiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagImpiantiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagImpiantiRowChanged != null)) {
+ this.AnagImpiantiRowChanged(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagImpiantiRowChanging != null)) {
+ this.AnagImpiantiRowChanging(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagImpiantiRowDeleted != null)) {
+ this.AnagImpiantiRowDeleted(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagImpiantiRowDeleting != null)) {
+ this.AnagImpiantiRowDeleting(this, new AnagImpiantiRowChangeEvent(((AnagImpiantiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagImpiantiRow(AnagImpiantiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ 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 = "AnagImpiantiDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
- return ((string)(this[this.tableAnagImpianti.DescrImpiantoColumn]));
+ 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;
+ }
+ }
+ }
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescrImpianto\' in table \'AnagImpianti\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableAnagImpianti.DescrImpiantoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCompany {
- get {
- try {
- return ((string)(this[this.tableAnagImpianti.CodCompanyColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'AnagImpianti\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagImpianti.CodCompanyColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodSito {
- get {
- try {
- return ((string)(this[this.tableAnagImpianti.CodSitoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodSito\' in table \'AnagImpianti\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagImpianti.CodSitoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow AnagSitiRowParent {
- get {
- return ((AnagSitiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagImpianti_AnagSiti"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_AnagImpianti_AnagSiti"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescrImpiantoNull() {
- return this.IsNull(this.tableAnagImpianti.DescrImpiantoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrImpiantoNull() {
- this[this.tableAnagImpianti.DescrImpiantoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodCompanyNull() {
- return this.IsNull(this.tableAnagImpianti.CodCompanyColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodCompanyNull() {
- this[this.tableAnagImpianti.CodCompanyColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodSitoNull() {
- return this.IsNull(this.tableAnagImpianti.CodSitoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodSitoNull() {
- this[this.tableAnagImpianti.CodSitoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() {
- if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagImpianti"] == null)) {
- return new Impianti2ArticoliRow[0];
- }
- else {
- return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagImpianti"])));
- }
+ xs.Add(dsSchema);
+ return type;
}
}
///
- ///Represents strongly named DataRow class.
+ ///Represents the strongly named DataTable class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagCompanyRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagCompanySitoDataTable : global::System.Data.TypedTableBase {
- private AnagCompanyDataTable tableAnagCompany;
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnCodCompany;
+
+ private global::System.Data.DataColumn columnDescCompany;
+
+ private global::System.Data.DataColumn columnCodSito;
+
+ private global::System.Data.DataColumn columnDescSito;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagCompanyRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagCompany = ((AnagCompanyDataTable)(this.Table));
+ public AnagCompanySitoDataTable() {
+ this.TableName = "AnagCompanySito";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCompany {
- get {
- return ((string)(this[this.tableAnagCompany.CodCompanyColumn]));
+ internal AnagCompanySitoDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableAnagCompany.CodCompanyColumn] = value;
+ 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 AnagCompanySitoDataTable(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 CodCSColumn {
+ get {
+ return this.columnCodCS;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescrCompany {
+ public global::System.Data.DataColumn CodCompanyColumn {
get {
+ return this.columnCodCompany;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescCompanyColumn {
+ get {
+ return this.columnDescCompany;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodSitoColumn {
+ get {
+ return this.columnCodSito;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescSitoColumn {
+ get {
+ return this.columnDescSito;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow this[int index] {
+ get {
+ return ((AnagCompanySitoRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagCompanySitoRowChangeEventHandler AnagCompanySitoRowChanging;
+
+ public event AnagCompanySitoRowChangeEventHandler AnagCompanySitoRowChanged;
+
+ public event AnagCompanySitoRowChangeEventHandler AnagCompanySitoRowDeleting;
+
+ public event AnagCompanySitoRowChangeEventHandler AnagCompanySitoRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagCompanySitoRow(AnagCompanySitoRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow AddAnagCompanySitoRow(string CodCS, string CodCompany, string DescCompany, string CodSito, string DescSito) {
+ AnagCompanySitoRow rowAnagCompanySitoRow = ((AnagCompanySitoRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodCS,
+ CodCompany,
+ DescCompany,
+ CodSito,
+ DescSito};
+ rowAnagCompanySitoRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagCompanySitoRow);
+ return rowAnagCompanySitoRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow FindByCodCS(string CodCS) {
+ return ((AnagCompanySitoRow)(this.Rows.Find(new object[] {
+ CodCS})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagCompanySitoDataTable cln = ((AnagCompanySitoDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagCompanySitoDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnCodCompany = base.Columns["CodCompany"];
+ this.columnDescCompany = base.Columns["DescCompany"];
+ this.columnCodSito = base.Columns["CodSito"];
+ this.columnDescSito = base.Columns["DescSito"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
+ this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCompany);
+ this.columnDescCompany = new global::System.Data.DataColumn("DescCompany", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescCompany);
+ this.columnCodSito = new global::System.Data.DataColumn("CodSito", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodSito);
+ this.columnDescSito = new global::System.Data.DataColumn("DescSito", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescSito);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodCS}, true));
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.Unique = true;
+ this.columnCodCS.MaxLength = 2;
+ this.columnCodCompany.MaxLength = 50;
+ this.columnDescCompany.MaxLength = 50;
+ this.columnCodSito.MaxLength = 50;
+ this.columnDescSito.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow NewAnagCompanySitoRow() {
+ return ((AnagCompanySitoRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagCompanySitoRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagCompanySitoRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagCompanySitoRowChanged != null)) {
+ this.AnagCompanySitoRowChanged(this, new AnagCompanySitoRowChangeEvent(((AnagCompanySitoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagCompanySitoRowChanging != null)) {
+ this.AnagCompanySitoRowChanging(this, new AnagCompanySitoRowChangeEvent(((AnagCompanySitoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagCompanySitoRowDeleted != null)) {
+ this.AnagCompanySitoRowDeleted(this, new AnagCompanySitoRowChangeEvent(((AnagCompanySitoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagCompanySitoRowDeleting != null)) {
+ this.AnagCompanySitoRowDeleting(this, new AnagCompanySitoRowChangeEvent(((AnagCompanySitoRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagCompanySitoRow(AnagCompanySitoRow 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 = "AnagCompanySitoDataTable";
+ 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 {
- return ((string)(this[this.tableAnagCompany.DescrCompanyColumn]));
+ 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;
+ }
+ }
+ }
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescrCompany\' in table \'AnagCompany\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableAnagCompany.DescrCompanyColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescrCompanyNull() {
- return this.IsNull(this.tableAnagCompany.DescrCompanyColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrCompanyNull() {
- this[this.tableAnagCompany.DescrCompanyColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow[] GetAnagSitiRows() {
- if ((this.Table.ChildRelations["FK_AnagSiti_AnagCompany"] == null)) {
- return new AnagSitiRow[0];
- }
- else {
- return ((AnagSitiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagSiti_AnagCompany"])));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow[] GetAnagOdpRows() {
- if ((this.Table.ChildRelations["FK_AnagOdp_AnagCompany"] == null)) {
- return new AnagOdpRow[0];
- }
- else {
- return ((AnagOdpRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagOdp_AnagCompany"])));
- }
+ xs.Add(dsSchema);
+ return type;
}
}
///
- ///Represents strongly named DataRow class.
+ ///Represents the strongly named DataTable class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagSitiRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class TabCartelliniDataTable : global::System.Data.TypedTableBase {
- private AnagSitiDataTable tableAnagSiti;
+ private global::System.Data.DataColumn columnCodCompany;
+
+ private global::System.Data.DataColumn columnODP;
+
+ private global::System.Data.DataColumn columnUDC;
+
+ private global::System.Data.DataColumn columnTara;
+
+ private global::System.Data.DataColumn columnIdxStato;
+
+ private global::System.Data.DataColumn columnQta;
+
+ private global::System.Data.DataColumn columnCodImballo;
+
+ private global::System.Data.DataColumn columnCodImpianto;
+
+ private global::System.Data.DataColumn columnParticolare;
+
+ private global::System.Data.DataColumn columnCodStato;
+
+ private global::System.Data.DataColumn columnCodStampo;
+
+ private global::System.Data.DataColumn columnFigura;
+
+ private global::System.Data.DataColumn columnFiguraIncisa;
+
+ private global::System.Data.DataColumn columnPesoTot;
+
+ private global::System.Data.DataColumn columnPesoCad;
+
+ private global::System.Data.DataColumn columnCreateDate;
+
+ private global::System.Data.DataColumn columnModDate;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagSitiRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagSiti = ((AnagSitiDataTable)(this.Table));
+ public TabCartelliniDataTable() {
+ this.TableName = "TabCartellini";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCompany {
- get {
- return ((string)(this[this.tableAnagSiti.CodCompanyColumn]));
+ internal TabCartelliniDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableAnagSiti.CodCompanyColumn] = value;
+ 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 TabCartelliniDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCompanyColumn {
+ get {
+ return this.columnCodCompany;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodSito {
+ public global::System.Data.DataColumn ODPColumn {
get {
- return ((string)(this[this.tableAnagSiti.CodSitoColumn]));
- }
- set {
- this[this.tableAnagSiti.CodSitoColumn] = value;
+ return this.columnODP;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescrSito {
+ public global::System.Data.DataColumn UDCColumn {
get {
+ return this.columnUDC;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn TaraColumn {
+ get {
+ return this.columnTara;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn IdxStatoColumn {
+ get {
+ return this.columnIdxStato;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn QtaColumn {
+ get {
+ return this.columnQta;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodImballoColumn {
+ get {
+ return this.columnCodImballo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn 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 CodStatoColumn {
+ get {
+ return this.columnCodStato;
+ }
+ }
+
+ [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()]
+ public global::System.Data.DataColumn PesoTotColumn {
+ get {
+ return this.columnPesoTot;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn PesoCadColumn {
+ get {
+ return this.columnPesoCad;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CreateDateColumn {
+ get {
+ return this.columnCreateDate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn ModDateColumn {
+ get {
+ return this.columnModDate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabCartelliniRow this[int index] {
+ get {
+ return ((TabCartelliniRow)(this.Rows[index]));
+ }
+ }
+
+ public event TabCartelliniRowChangeEventHandler TabCartelliniRowChanging;
+
+ public event TabCartelliniRowChangeEventHandler TabCartelliniRowChanged;
+
+ public event TabCartelliniRowChangeEventHandler TabCartelliniRowDeleting;
+
+ public event TabCartelliniRowChangeEventHandler TabCartelliniRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddTabCartelliniRow(TabCartelliniRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabCartelliniRow AddTabCartelliniRow(
+ string CodCompany,
+ string ODP,
+ string UDC,
+ double Tara,
+ AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati1,
+ decimal Qta,
+ AnagImballiRow parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi1,
+ string CodImpianto,
+ AnagArticoliRow parentAnagArticoliRowByFK_TabStatoOdpUdc_AnagArticoli1,
+ AnagStatiProdottoRow parentAnagStatiProdottoRowByFK_TabStatoOdpUdc_AnagStatiProdotto1,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa,
+ double PesoTot,
+ double PesoCad,
+ System.DateTime CreateDate,
+ System.DateTime ModDate) {
+ TabCartelliniRow rowTabCartelliniRow = ((TabCartelliniRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodCompany,
+ ODP,
+ UDC,
+ Tara,
+ null,
+ Qta,
+ null,
+ CodImpianto,
+ null,
+ null,
+ CodStampo,
+ Figura,
+ FiguraIncisa,
+ PesoTot,
+ PesoCad,
+ CreateDate,
+ ModDate};
+ if ((parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati1 != null)) {
+ columnValuesArray[4] = parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati1[0];
+ }
+ if ((parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi1 != null)) {
+ columnValuesArray[6] = parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi1[0];
+ }
+ if ((parentAnagArticoliRowByFK_TabStatoOdpUdc_AnagArticoli1 != null)) {
+ columnValuesArray[8] = parentAnagArticoliRowByFK_TabStatoOdpUdc_AnagArticoli1[0];
+ }
+ if ((parentAnagStatiProdottoRowByFK_TabStatoOdpUdc_AnagStatiProdotto1 != null)) {
+ columnValuesArray[9] = parentAnagStatiProdottoRowByFK_TabStatoOdpUdc_AnagStatiProdotto1[0];
+ }
+ rowTabCartelliniRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowTabCartelliniRow);
+ return rowTabCartelliniRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabCartelliniRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
+ return ((TabCartelliniRow)(this.Rows.Find(new object[] {
+ CodCompany,
+ ODP,
+ UDC})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ TabCartelliniDataTable cln = ((TabCartelliniDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new TabCartelliniDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodCompany = base.Columns["CodCompany"];
+ this.columnODP = base.Columns["ODP"];
+ this.columnUDC = base.Columns["UDC"];
+ this.columnTara = base.Columns["Tara"];
+ this.columnIdxStato = base.Columns["IdxStato"];
+ this.columnQta = base.Columns["Qta"];
+ this.columnCodImballo = base.Columns["CodImballo"];
+ this.columnCodImpianto = base.Columns["CodImpianto"];
+ this.columnParticolare = base.Columns["Particolare"];
+ this.columnCodStato = base.Columns["CodStato"];
+ this.columnCodStampo = base.Columns["CodStampo"];
+ this.columnFigura = base.Columns["Figura"];
+ this.columnFiguraIncisa = base.Columns["FiguraIncisa"];
+ this.columnPesoTot = base.Columns["PesoTot"];
+ this.columnPesoCad = base.Columns["PesoCad"];
+ this.columnCreateDate = base.Columns["CreateDate"];
+ this.columnModDate = base.Columns["ModDate"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCompany);
+ this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnODP);
+ this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUDC);
+ this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTara);
+ this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxStato);
+ this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQta);
+ this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodImballo);
+ this.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.columnCodStato = new global::System.Data.DataColumn("CodStato", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodStato);
+ 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.columnPesoTot = new global::System.Data.DataColumn("PesoTot", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnPesoTot);
+ this.columnPesoCad = new global::System.Data.DataColumn("PesoCad", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnPesoCad);
+ this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCreateDate);
+ this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnModDate);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodCompany,
+ this.columnODP,
+ this.columnUDC}, true));
+ this.columnCodCompany.AllowDBNull = false;
+ this.columnCodCompany.MaxLength = 4;
+ this.columnODP.AllowDBNull = false;
+ this.columnODP.MaxLength = 20;
+ this.columnUDC.AllowDBNull = false;
+ this.columnUDC.MaxLength = 50;
+ this.columnCodImballo.MaxLength = 50;
+ this.columnCodImpianto.MaxLength = 50;
+ this.columnParticolare.MaxLength = 50;
+ this.columnCodStato.MaxLength = 50;
+ this.columnCodStampo.MaxLength = 50;
+ this.columnFigura.MaxLength = 50;
+ this.columnFiguraIncisa.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabCartelliniRow NewTabCartelliniRow() {
+ return ((TabCartelliniRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new TabCartelliniRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(TabCartelliniRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.TabCartelliniRowChanged != null)) {
+ this.TabCartelliniRowChanged(this, new TabCartelliniRowChangeEvent(((TabCartelliniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.TabCartelliniRowChanging != null)) {
+ this.TabCartelliniRowChanging(this, new TabCartelliniRowChangeEvent(((TabCartelliniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.TabCartelliniRowDeleted != null)) {
+ this.TabCartelliniRowDeleted(this, new TabCartelliniRowChangeEvent(((TabCartelliniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.TabCartelliniRowDeleting != null)) {
+ this.TabCartelliniRowDeleting(this, new TabCartelliniRowChangeEvent(((TabCartelliniRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveTabCartelliniRow(TabCartelliniRow 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 = "TabCartelliniDataTable";
+ 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 {
- return ((string)(this[this.tableAnagSiti.DescrSitoColumn]));
+ 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;
+ }
+ }
+ }
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescrSito\' in table \'AnagSiti\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableAnagSiti.DescrSitoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow AnagCompanyRow {
- get {
- return ((AnagCompanyRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagSiti_AnagCompany"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_AnagSiti_AnagCompany"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescrSitoNull() {
- return this.IsNull(this.tableAnagSiti.DescrSitoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrSitoNull() {
- this[this.tableAnagSiti.DescrSitoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow[] GetAnagImpiantiRows() {
- if ((this.Table.ChildRelations["FK_AnagImpianti_AnagSiti"] == null)) {
- return new AnagImpiantiRow[0];
- }
- else {
- return ((AnagImpiantiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagImpianti_AnagSiti"])));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagBilanceRow[] GetAnagBilanceRows() {
- if ((this.Table.ChildRelations["FK_AnagBilance_AnagSiti"] == null)) {
- return new AnagBilanceRow[0];
- }
- else {
- return ((AnagBilanceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagBilance_AnagSiti"])));
- }
+ xs.Add(dsSchema);
+ return type;
}
}
@@ -5695,16 +4743,6 @@ namespace GMW_data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow AnagSitiRowParent {
- get {
- return ((AnagSitiRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagBilance_AnagSiti"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_AnagBilance_AnagSiti"]);
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsDescrImpiantoNull() {
return this.IsNull(this.tableAnagBilance.DescrImpiantoColumn);
@@ -5736,131 +4774,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 AnagOdpRow : global::System.Data.DataRow {
-
- private AnagOdpDataTable tableAnagOdp;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagOdpRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagOdp = ((AnagOdpDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCompany {
- get {
- return ((string)(this[this.tableAnagOdp.CodCompanyColumn]));
- }
- set {
- this[this.tableAnagOdp.CodCompanyColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string ODP {
- get {
- return ((string)(this[this.tableAnagOdp.ODPColumn]));
- }
- set {
- this[this.tableAnagOdp.ODPColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodArticolo {
- get {
- return ((string)(this[this.tableAnagOdp.CodArticoloColumn]));
- }
- set {
- this[this.tableAnagOdp.CodArticoloColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodDisegno {
- get {
- return ((string)(this[this.tableAnagOdp.CodDisegnoColumn]));
- }
- set {
- this[this.tableAnagOdp.CodDisegnoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Esponente {
- get {
- return ((string)(this[this.tableAnagOdp.EsponenteColumn]));
- }
- set {
- this[this.tableAnagOdp.EsponenteColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Magazzino {
- get {
- return ((string)(this[this.tableAnagOdp.MagazzinoColumn]));
- }
- set {
- this[this.tableAnagOdp.MagazzinoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Ubicazione {
- get {
- return ((string)(this[this.tableAnagOdp.UbicazioneColumn]));
- }
- set {
- this[this.tableAnagOdp.UbicazioneColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime CreateDate {
- get {
- return ((global::System.DateTime)(this[this.tableAnagOdp.CreateDateColumn]));
- }
- set {
- this[this.tableAnagOdp.CreateDateColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime ModDate {
- get {
- return ((global::System.DateTime)(this[this.tableAnagOdp.ModDateColumn]));
- }
- set {
- this[this.tableAnagOdp.ModDateColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow AnagCompanyRow {
- get {
- return ((AnagCompanyRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagOdp_AnagCompany"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_AnagOdp_AnagCompany"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
- if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagOdp"] == null)) {
- return new TabStatoOdpUdcRow[0];
- }
- else {
- return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagOdp"])));
- }
- }
- }
-
///
///Represents strongly named DataRow class.
///
@@ -5911,12 +4824,12 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
- if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati"] == null)) {
- return new TabStatoOdpUdcRow[0];
+ public TabCartelliniRow[] GetTabCartelliniRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati1"] == null)) {
+ return new TabCartelliniRow[0];
}
else {
- return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati"])));
+ return ((TabCartelliniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStati1"])));
}
}
}
@@ -6032,12 +4945,12 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
- if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"] == null)) {
- return new TabStatoOdpUdcRow[0];
+ public TabCartelliniRow[] GetTabCartelliniRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStatiProdotto1"] == null)) {
+ return new TabCartelliniRow[0];
}
else {
- return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"])));
+ return ((TabCartelliniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStatiProdotto1"])));
}
}
}
@@ -6092,12 +5005,12 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
- if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi"] == null)) {
- return new TabStatoOdpUdcRow[0];
+ public TabCartelliniRow[] GetTabCartelliniRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi1"] == null)) {
+ return new TabCartelliniRow[0];
}
else {
- return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi"])));
+ return ((TabCartelliniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi1"])));
}
}
}
@@ -6212,12 +5125,12 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
- if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagArticoli"] == null)) {
- return new TabStatoOdpUdcRow[0];
+ public TabCartelliniRow[] GetTabCartelliniRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagArticoli1"] == null)) {
+ return new TabCartelliniRow[0];
}
else {
- return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagArticoli"])));
+ return ((TabCartelliniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagArticoli1"])));
}
}
}
@@ -6582,461 +5495,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 TabStatoOdpUdcRow : global::System.Data.DataRow {
-
- private TabStatoOdpUdcDataTable tableTabStatoOdpUdc;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal TabStatoOdpUdcRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCompany {
- get {
- return ((string)(this[this.tableTabStatoOdpUdc.CodCompanyColumn]));
- }
- set {
- this[this.tableTabStatoOdpUdc.CodCompanyColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string ODP {
- get {
- return ((string)(this[this.tableTabStatoOdpUdc.ODPColumn]));
- }
- set {
- this[this.tableTabStatoOdpUdc.ODPColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string UDC {
- get {
- return ((string)(this[this.tableTabStatoOdpUdc.UDCColumn]));
- }
- set {
- this[this.tableTabStatoOdpUdc.UDCColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public double Tara {
- get {
- try {
- return ((double)(this[this.tableTabStatoOdpUdc.TaraColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.TaraColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int IdxStato {
- get {
- try {
- return ((int)(this[this.tableTabStatoOdpUdc.IdxStatoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.IdxStatoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public decimal Qta {
- get {
- try {
- return ((decimal)(this[this.tableTabStatoOdpUdc.QtaColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.QtaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodImballo {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.CodImballoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.CodImballoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodImpianto {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.CodImpiantoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodImpianto\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.CodImpiantoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Particolare {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.ParticolareColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Particolare\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.ParticolareColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodStato {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.CodStatoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodStato\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.CodStatoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodStampo {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.CodStampoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.CodStampoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Figura {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.FiguraColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.FiguraColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string FiguraIncisa {
- get {
- try {
- return ((string)(this[this.tableTabStatoOdpUdc.FiguraIncisaColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'FiguraIncisa\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.FiguraIncisaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public double PesoTot {
- get {
- try {
- return ((double)(this[this.tableTabStatoOdpUdc.PesoTotColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'PesoTot\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.PesoTotColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public double PesoCad {
- get {
- try {
- return ((double)(this[this.tableTabStatoOdpUdc.PesoCadColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'PesoCad\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.PesoCadColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime CreateDate {
- get {
- try {
- return ((global::System.DateTime)(this[this.tableTabStatoOdpUdc.CreateDateColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.CreateDateColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime ModDate {
- get {
- try {
- return ((global::System.DateTime)(this[this.tableTabStatoOdpUdc.ModDateColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'TabStatoOdpUdc\' is DBNull.", e);
- }
- }
- set {
- this[this.tableTabStatoOdpUdc.ModDateColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow AnagArticoliRow {
- get {
- return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagArticoli"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagArticoli"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow AnagImballiRow {
- get {
- return ((AnagImballiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagImballi"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagImballi"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow AnagOdpRowParent {
- get {
- return ((AnagOdpRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagOdp"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagOdp"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagStatiRow AnagStatiRow {
- get {
- return ((AnagStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagStatiProdottoRow AnagStatiProdottoRow {
- get {
- return ((AnagStatiProdottoRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsTaraNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.TaraColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetTaraNull() {
- this[this.tableTabStatoOdpUdc.TaraColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsIdxStatoNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.IdxStatoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetIdxStatoNull() {
- this[this.tableTabStatoOdpUdc.IdxStatoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsQtaNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.QtaColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetQtaNull() {
- this[this.tableTabStatoOdpUdc.QtaColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodImballoNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.CodImballoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodImballoNull() {
- this[this.tableTabStatoOdpUdc.CodImballoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodImpiantoNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.CodImpiantoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodImpiantoNull() {
- this[this.tableTabStatoOdpUdc.CodImpiantoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsParticolareNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.ParticolareColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetParticolareNull() {
- this[this.tableTabStatoOdpUdc.ParticolareColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodStatoNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.CodStatoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodStatoNull() {
- this[this.tableTabStatoOdpUdc.CodStatoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCodStampoNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.CodStampoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCodStampoNull() {
- this[this.tableTabStatoOdpUdc.CodStampoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFiguraNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.FiguraColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFiguraNull() {
- this[this.tableTabStatoOdpUdc.FiguraColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFiguraIncisaNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.FiguraIncisaColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFiguraIncisaNull() {
- this[this.tableTabStatoOdpUdc.FiguraIncisaColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsPesoTotNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.PesoTotColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetPesoTotNull() {
- this[this.tableTabStatoOdpUdc.PesoTotColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsPesoCadNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.PesoCadColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetPesoCadNull() {
- this[this.tableTabStatoOdpUdc.PesoCadColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCreateDateNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.CreateDateColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCreateDateNull() {
- this[this.tableTabStatoOdpUdc.CreateDateColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsModDateNull() {
- return this.IsNull(this.tableTabStatoOdpUdc.ModDateColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetModDateNull() {
- this[this.tableTabStatoOdpUdc.ModDateColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public StoricoEventiRow[] GetStoricoEventiRows() {
- if ((this.Table.ChildRelations["FK_StoricoEventi_TabStatoOdpUdc"] == null)) {
- return new StoricoEventiRow[0];
- }
- else {
- return ((StoricoEventiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StoricoEventi_TabStatoOdpUdc"])));
- }
- }
- }
-
///
///Represents strongly named DataRow class.
///
@@ -7281,16 +5739,6 @@ namespace GMW_data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow TabStatoOdpUdcRowParent {
- get {
- return ((TabStatoOdpUdcRow)(this.GetParentRow(this.Table.ParentRelations["FK_StoricoEventi_TabStatoOdpUdc"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_StoricoEventi_TabStatoOdpUdc"]);
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsCodOperatoreNull() {
return this.IsNull(this.tableStoricoEventi.CodOperatoreColumn);
@@ -7448,95 +5896,702 @@ namespace GMW_data {
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagImpiantiRowChangeEvent : global::System.EventArgs {
+ public partial class AnagImpiantiRow : global::System.Data.DataRow {
- private AnagImpiantiRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private AnagImpiantiDataTable tableAnagImpianti;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRowChangeEvent(AnagImpiantiRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal AnagImpiantiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagImpianti = ((AnagImpiantiDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow Row {
+ public string CodImpianto {
get {
- return this.eventRow;
+ return ((string)(this[this.tableAnagImpianti.CodImpiantoColumn]));
+ }
+ set {
+ this[this.tableAnagImpianti.CodImpiantoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
+ public string CodCS {
get {
- return this.eventAction;
+ return ((string)(this[this.tableAnagImpianti.CodCSColumn]));
+ }
+ set {
+ this[this.tableAnagImpianti.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescImpianto {
+ get {
+ try {
+ return ((string)(this[this.tableAnagImpianti.DescImpiantoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescImpianto\' in table \'AnagImpianti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagImpianti.DescImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Campionatura {
+ get {
+ try {
+ return ((string)(this[this.tableAnagImpianti.CampionaturaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Campionatura\' in table \'AnagImpianti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagImpianti.CampionaturaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string TipoLinea {
+ get {
+ try {
+ return ((string)(this[this.tableAnagImpianti.TipoLineaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'TipoLinea\' in table \'AnagImpianti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagImpianti.TipoLineaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow AnagCompanySitoRow {
+ get {
+ return ((AnagCompanySitoRow)(this.GetParentRow(this.Table.ParentRelations["FK_AnagImpianti_AnagCompanySito"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_AnagImpianti_AnagCompanySito"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescImpiantoNull() {
+ return this.IsNull(this.tableAnagImpianti.DescImpiantoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescImpiantoNull() {
+ this[this.tableAnagImpianti.DescImpiantoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCampionaturaNull() {
+ return this.IsNull(this.tableAnagImpianti.CampionaturaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCampionaturaNull() {
+ this[this.tableAnagImpianti.CampionaturaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsTipoLineaNull() {
+ return this.IsNull(this.tableAnagImpianti.TipoLineaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ 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"])));
}
}
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagCompanyRowChangeEvent : global::System.EventArgs {
+ public partial class AnagCompanySitoRow : global::System.Data.DataRow {
- private AnagCompanyRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private AnagCompanySitoDataTable tableAnagCompanySito;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRowChangeEvent(AnagCompanyRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal AnagCompanySitoRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagCompanySito = ((AnagCompanySitoDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyRow Row {
+ public string CodCS {
get {
- return this.eventRow;
+ return ((string)(this[this.tableAnagCompanySito.CodCSColumn]));
+ }
+ set {
+ this[this.tableAnagCompanySito.CodCSColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
+ public string CodCompany {
get {
- return this.eventAction;
+ try {
+ return ((string)(this[this.tableAnagCompanySito.CodCompanyColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'AnagCompanySito\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagCompanySito.CodCompanyColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescCompany {
+ get {
+ try {
+ return ((string)(this[this.tableAnagCompanySito.DescCompanyColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescCompany\' in table \'AnagCompanySito\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagCompanySito.DescCompanyColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodSito {
+ get {
+ try {
+ return ((string)(this[this.tableAnagCompanySito.CodSitoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodSito\' in table \'AnagCompanySito\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagCompanySito.CodSitoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescSito {
+ get {
+ try {
+ return ((string)(this[this.tableAnagCompanySito.DescSitoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescSito\' in table \'AnagCompanySito\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagCompanySito.DescSitoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodCompanyNull() {
+ return this.IsNull(this.tableAnagCompanySito.CodCompanyColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodCompanyNull() {
+ this[this.tableAnagCompanySito.CodCompanyColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescCompanyNull() {
+ return this.IsNull(this.tableAnagCompanySito.DescCompanyColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescCompanyNull() {
+ this[this.tableAnagCompanySito.DescCompanyColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodSitoNull() {
+ return this.IsNull(this.tableAnagCompanySito.CodSitoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodSitoNull() {
+ this[this.tableAnagCompanySito.CodSitoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescSitoNull() {
+ return this.IsNull(this.tableAnagCompanySito.DescSitoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescSitoNull() {
+ this[this.tableAnagCompanySito.DescSitoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiRow[] GetAnagImpiantiRows() {
+ if ((this.Table.ChildRelations["FK_AnagImpianti_AnagCompanySito"] == null)) {
+ return new AnagImpiantiRow[0];
+ }
+ else {
+ return ((AnagImpiantiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagImpianti_AnagCompanySito"])));
}
}
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagSitiRowChangeEvent : global::System.EventArgs {
+ public partial class TabCartelliniRow : global::System.Data.DataRow {
- private AnagSitiRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private TabCartelliniDataTable tableTabCartellini;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRowChangeEvent(AnagSitiRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal TabCartelliniRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableTabCartellini = ((TabCartelliniDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiRow Row {
+ public string CodCompany {
get {
- return this.eventRow;
+ return ((string)(this[this.tableTabCartellini.CodCompanyColumn]));
+ }
+ set {
+ this[this.tableTabCartellini.CodCompanyColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
+ public string ODP {
get {
- return this.eventAction;
+ return ((string)(this[this.tableTabCartellini.ODPColumn]));
}
+ set {
+ this[this.tableTabCartellini.ODPColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string UDC {
+ get {
+ return ((string)(this[this.tableTabCartellini.UDCColumn]));
+ }
+ set {
+ this[this.tableTabCartellini.UDCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double Tara {
+ get {
+ try {
+ return ((double)(this[this.tableTabCartellini.TaraColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.TaraColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxStato {
+ get {
+ try {
+ return ((int)(this[this.tableTabCartellini.IdxStatoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.IdxStatoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public decimal Qta {
+ get {
+ try {
+ return ((decimal)(this[this.tableTabCartellini.QtaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.QtaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImballo {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.CodImballoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.CodImballoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImpianto {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.CodImpiantoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodImpianto\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.CodImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Particolare {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.ParticolareColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Particolare\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.ParticolareColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodStato {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.CodStatoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodStato\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.CodStatoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodStampo {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.CodStampoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.CodStampoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Figura {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.FiguraColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.FiguraColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string FiguraIncisa {
+ get {
+ try {
+ return ((string)(this[this.tableTabCartellini.FiguraIncisaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'FiguraIncisa\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.FiguraIncisaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double PesoTot {
+ get {
+ try {
+ return ((double)(this[this.tableTabCartellini.PesoTotColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'PesoTot\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.PesoTotColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double PesoCad {
+ get {
+ try {
+ return ((double)(this[this.tableTabCartellini.PesoCadColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'PesoCad\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.PesoCadColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime CreateDate {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableTabCartellini.CreateDateColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.CreateDateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime ModDate {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableTabCartellini.ModDateColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'TabCartellini\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTabCartellini.ModDateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow AnagArticoliRow {
+ get {
+ return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagArticoli1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagArticoli1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRow AnagImballiRow {
+ get {
+ return ((AnagImballiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagImballi1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagImballi1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagStatiRow AnagStatiRow {
+ get {
+ return ((AnagStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStati1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagStatiProdottoRow AnagStatiProdottoRow {
+ get {
+ return ((AnagStatiProdottoRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStatiProdotto1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStatiProdotto1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsTaraNull() {
+ return this.IsNull(this.tableTabCartellini.TaraColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetTaraNull() {
+ this[this.tableTabCartellini.TaraColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsIdxStatoNull() {
+ return this.IsNull(this.tableTabCartellini.IdxStatoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetIdxStatoNull() {
+ this[this.tableTabCartellini.IdxStatoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsQtaNull() {
+ return this.IsNull(this.tableTabCartellini.QtaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetQtaNull() {
+ this[this.tableTabCartellini.QtaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodImballoNull() {
+ return this.IsNull(this.tableTabCartellini.CodImballoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodImballoNull() {
+ this[this.tableTabCartellini.CodImballoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodImpiantoNull() {
+ return this.IsNull(this.tableTabCartellini.CodImpiantoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodImpiantoNull() {
+ this[this.tableTabCartellini.CodImpiantoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsParticolareNull() {
+ return this.IsNull(this.tableTabCartellini.ParticolareColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetParticolareNull() {
+ this[this.tableTabCartellini.ParticolareColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodStatoNull() {
+ return this.IsNull(this.tableTabCartellini.CodStatoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodStatoNull() {
+ this[this.tableTabCartellini.CodStatoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodStampoNull() {
+ return this.IsNull(this.tableTabCartellini.CodStampoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodStampoNull() {
+ this[this.tableTabCartellini.CodStampoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraNull() {
+ return this.IsNull(this.tableTabCartellini.FiguraColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraNull() {
+ this[this.tableTabCartellini.FiguraColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraIncisaNull() {
+ return this.IsNull(this.tableTabCartellini.FiguraIncisaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraIncisaNull() {
+ this[this.tableTabCartellini.FiguraIncisaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsPesoTotNull() {
+ return this.IsNull(this.tableTabCartellini.PesoTotColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetPesoTotNull() {
+ this[this.tableTabCartellini.PesoTotColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsPesoCadNull() {
+ return this.IsNull(this.tableTabCartellini.PesoCadColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetPesoCadNull() {
+ this[this.tableTabCartellini.PesoCadColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCreateDateNull() {
+ return this.IsNull(this.tableTabCartellini.CreateDateColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCreateDateNull() {
+ this[this.tableTabCartellini.CreateDateColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsModDateNull() {
+ return this.IsNull(this.tableTabCartellini.ModDateColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetModDateNull() {
+ this[this.tableTabCartellini.ModDateColumn] = global::System.Convert.DBNull;
}
}
@@ -7571,37 +6626,6 @@ namespace GMW_data {
}
}
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagOdpRowChangeEvent : global::System.EventArgs {
-
- private AnagOdpRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRowChangeEvent(AnagOdpRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
///
///Row event argument class
///
@@ -7819,37 +6843,6 @@ namespace GMW_data {
}
}
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class TabStatoOdpUdcRowChangeEvent : global::System.EventArgs {
-
- private TabStatoOdpUdcRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRowChangeEvent(TabStatoOdpUdcRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
///
///Row event argument class
///
@@ -7911,1123 +6904,104 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagImpiantiRowChangeEvent : global::System.EventArgs {
+
+ private AnagImpiantiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiRowChangeEvent(AnagImpiantiRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagCompanySitoRowChangeEvent : global::System.EventArgs {
+
+ private AnagCompanySitoRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRowChangeEvent(AnagCompanySitoRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCompanySitoRow 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 TabCartelliniRowChangeEvent : global::System.EventArgs {
+
+ private TabCartelliniRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabCartelliniRowChangeEvent(TabCartelliniRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabCartelliniRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_ApplicazioneTableAdapters {
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AnagImpiantiTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "AnagImpianti";
- tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
- tableMapping.ColumnMappings.Add("DescrImpianto", "DescrImpianto");
- tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
- tableMapping.ColumnMappings.Add("CodSito", "CodSito");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagImpianti] ([CodImpianto], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodImpianto, @DescrImpianto, @CodCompany, @CodSito);
-SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)));
-SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT * FROM dbo.AnagImpianti";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "SELECT CodImpianto, DescrImpianto, CodCompany, CodSito\r\nFROM An" +
- "agImpianti\r\nWHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", 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.AnagImpiantiDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.AnagImpiantiDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagImpiantiDataTable dataTable = new DS_Applicazione.AnagImpiantiDataTable();
- 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.AnagImpiantiDataTable getByCompanySito(string CodCompany, string CodSito) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodCompany == null)) {
- this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodSito));
- }
- DS_Applicazione.AnagImpiantiDataTable dataTable = new DS_Applicazione.AnagImpiantiDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagImpiantiDataTable 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, "AnagImpianti");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
- if ((Original_CodImpianto == null)) {
- throw new global::System.ArgumentNullException("Original_CodImpianto");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_DescrImpianto == null)) {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrImpianto));
- }
- if ((Original_CodCompany == null)) {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodCompany));
- }
- if ((Original_CodSito == null)) {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodSito));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito) {
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- if ((DescrImpianto == null)) {
- this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrImpianto));
- }
- if ((CodCompany == null)) {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSito));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodImpianto, string DescrImpianto, string CodCompany, string CodSito, string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- if ((DescrImpianto == null)) {
- this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrImpianto));
- }
- if ((CodCompany == null)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSito));
- }
- if ((Original_CodImpianto == null)) {
- throw new global::System.ArgumentNullException("Original_CodImpianto");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_DescrImpianto == null)) {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrImpianto));
- }
- if ((Original_CodCompany == null)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCompany));
- }
- if ((Original_CodSito == null)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodSito));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string DescrImpianto, string CodCompany, string CodSito, string Original_CodImpianto, string Original_DescrImpianto, string Original_CodCompany, string Original_CodSito) {
- return this.Update(Original_CodImpianto, DescrImpianto, CodCompany, CodSito, Original_CodImpianto, Original_DescrImpianto, Original_CodCompany, Original_CodSito);
- }
- }
-
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AnagCompanyTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCompanyTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "AnagCompany";
- tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
- tableMapping.ColumnMappings.Add("DescrCompany", "DescrCompany");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagCompany] WHERE (([CodCompany] = @Original_CodCompany) AND " +
- "((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Ori" +
- "ginal_DescrCompany)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagCompany] ([CodCompany], [DescrCompany]) VALUES (@CodCompan" +
- "y, @DescrCompany);\r\nSELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodC" +
- "ompany = @CodCompany)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagCompany] SET [CodCompany] = @CodCompany, [DescrCompany] = @DescrCompany WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany)));
-SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_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 CodCompany, DescrCompany FROM dbo.AnagCompany";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.AnagCompanyDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.AnagCompanyDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagCompanyDataTable dataTable = new DS_Applicazione.AnagCompanyDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagCompanyDataTable 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, "AnagCompany");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodCompany, string Original_DescrCompany) {
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
- }
- if ((Original_DescrCompany == null)) {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrCompany));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCompany, string DescrCompany) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((DescrCompany == null)) {
- this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrCompany));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCompany, string DescrCompany, string Original_CodCompany, string Original_DescrCompany) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((DescrCompany == null)) {
- this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrCompany));
- }
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodCompany));
- }
- if ((Original_DescrCompany == null)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescrCompany));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string DescrCompany, string Original_CodCompany, string Original_DescrCompany) {
- return this.Update(Original_CodCompany, DescrCompany, Original_CodCompany, Original_DescrCompany);
- }
- }
-
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AnagSitiTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagSitiTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "AnagSiti";
- tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
- tableMapping.ColumnMappings.Add("CodSito", "CodSito");
- tableMapping.ColumnMappings.Add("DescrSito", "DescrSito");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagSiti] WHERE (([CodCompany] = @Original_CodCompany) AND ([C" +
- "odSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL" +
- ") OR ([DescrSito] = @Original_DescrSito)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagSiti] ([CodCompany], [CodSito], [DescrSito]) VALUES (@CodC" +
- "ompany, @CodSito, @DescrSito);\r\nSELECT CodCompany, CodSito, DescrSito FROM AnagS" +
- "iti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagSiti] SET [CodCompany] = @CodCompany, [CodSito] = @CodSito, [DescrSito] = @DescrSito WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito)));
-SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_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 CodCompany, CodSito, DescrSito FROM dbo.AnagSiti";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.AnagSitiDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.AnagSitiDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagSitiDataTable dataTable = new DS_Applicazione.AnagSitiDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagSitiDataTable 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, "AnagSiti");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodCompany, string Original_CodSito, string Original_DescrSito) {
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
- }
- if ((Original_CodSito == null)) {
- throw new global::System.ArgumentNullException("Original_CodSito");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodSito));
- }
- if ((Original_DescrSito == null)) {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescrSito));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCompany, string CodSito, string DescrSito) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- throw new global::System.ArgumentNullException("CodSito");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodSito));
- }
- if ((DescrSito == null)) {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescrSito));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCompany, string CodSito, string DescrSito, string Original_CodCompany, string Original_CodSito, string Original_DescrSito) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- throw new global::System.ArgumentNullException("CodSito");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodSito));
- }
- if ((DescrSito == null)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescrSito));
- }
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodCompany));
- }
- if ((Original_CodSito == null)) {
- throw new global::System.ArgumentNullException("Original_CodSito");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodSito));
- }
- if ((Original_DescrSito == null)) {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrSito));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string DescrSito, string Original_CodCompany, string Original_CodSito, string Original_DescrSito) {
- return this.Update(Original_CodCompany, Original_CodSito, DescrSito, Original_CodCompany, Original_CodSito, Original_DescrSito);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -9475,524 +7449,6 @@ SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (C
}
}
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AnagOdpTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagOdpTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "AnagOdp";
- tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
- tableMapping.ColumnMappings.Add("ODP", "ODP");
- tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
- tableMapping.ColumnMappings.Add("CodDisegno", "CodDisegno");
- tableMapping.ColumnMappings.Add("Esponente", "Esponente");
- tableMapping.ColumnMappings.Add("Magazzino", "Magazzino");
- tableMapping.ColumnMappings.Add("Ubicazione", "Ubicazione");
- tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
- tableMapping.ColumnMappings.Add("ModDate", "ModDate");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagOdp] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagOdp] ([CodCompany], [ODP], [CodArticolo], [CodDisegno], [Esponente], [Magazzino], [Ubicazione], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @CodArticolo, @CodDisegno, @Esponente, @Magazzino, @Ubicazione, @CreateDate, @ModDate);
-SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagOdp] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [CodArticolo] = @CodArticolo, [CodDisegno] = @CodDisegno, [Esponente] = @Esponente, [Magazzino] = @Magazzino, [Ubicazione] = @Ubicazione, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate));
-SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDisegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDisegno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Magazzino", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Magazzino", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Ubicazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ubicazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_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 CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione" +
- ", CreateDate, ModDate FROM dbo.AnagOdp";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.AnagOdpDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.AnagOdpDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagOdpDataTable dataTable = new DS_Applicazione.AnagOdpDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagOdpDataTable 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, "AnagOdp");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodCompany, string Original_ODP, string Original_CodArticolo, string Original_CodDisegno, string Original_Esponente, string Original_Magazzino, string Original_Ubicazione, System.DateTime Original_CreateDate, System.DateTime Original_ModDate) {
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
- }
- if ((Original_ODP == null)) {
- throw new global::System.ArgumentNullException("Original_ODP");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP));
- }
- if ((Original_CodArticolo == null)) {
- throw new global::System.ArgumentNullException("Original_CodArticolo");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodArticolo));
- }
- if ((Original_CodDisegno == null)) {
- throw new global::System.ArgumentNullException("Original_CodDisegno");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CodDisegno));
- }
- if ((Original_Esponente == null)) {
- throw new global::System.ArgumentNullException("Original_Esponente");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Esponente));
- }
- if ((Original_Magazzino == null)) {
- throw new global::System.ArgumentNullException("Original_Magazzino");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Magazzino));
- }
- if ((Original_Ubicazione == null)) {
- throw new global::System.ArgumentNullException("Original_Ubicazione");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Ubicazione));
- }
- this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_CreateDate));
- this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_ModDate));
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCompany, string ODP, string CodArticolo, string CodDisegno, string Esponente, string Magazzino, string Ubicazione, System.DateTime CreateDate, System.DateTime ModDate) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((ODP == null)) {
- throw new global::System.ArgumentNullException("ODP");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP));
- }
- if ((CodArticolo == null)) {
- throw new global::System.ArgumentNullException("CodArticolo");
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodArticolo));
- }
- if ((CodDisegno == null)) {
- throw new global::System.ArgumentNullException("CodDisegno");
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodDisegno));
- }
- if ((Esponente == null)) {
- throw new global::System.ArgumentNullException("Esponente");
- }
- else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Esponente));
- }
- if ((Magazzino == null)) {
- throw new global::System.ArgumentNullException("Magazzino");
- }
- else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Magazzino));
- }
- if ((Ubicazione == null)) {
- throw new global::System.ArgumentNullException("Ubicazione");
- }
- else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Ubicazione));
- }
- this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(CreateDate));
- this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ModDate));
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(
- string CodCompany,
- string ODP,
- string CodArticolo,
- string CodDisegno,
- string Esponente,
- string Magazzino,
- string Ubicazione,
- System.DateTime CreateDate,
- System.DateTime ModDate,
- string Original_CodCompany,
- string Original_ODP,
- string Original_CodArticolo,
- string Original_CodDisegno,
- string Original_Esponente,
- string Original_Magazzino,
- string Original_Ubicazione,
- System.DateTime Original_CreateDate,
- System.DateTime Original_ModDate) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((ODP == null)) {
- throw new global::System.ArgumentNullException("ODP");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP));
- }
- if ((CodArticolo == null)) {
- throw new global::System.ArgumentNullException("CodArticolo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodArticolo));
- }
- if ((CodDisegno == null)) {
- throw new global::System.ArgumentNullException("CodDisegno");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodDisegno));
- }
- if ((Esponente == null)) {
- throw new global::System.ArgumentNullException("Esponente");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Esponente));
- }
- if ((Magazzino == null)) {
- throw new global::System.ArgumentNullException("Magazzino");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Magazzino));
- }
- if ((Ubicazione == null)) {
- throw new global::System.ArgumentNullException("Ubicazione");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Ubicazione));
- }
- this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(CreateDate));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ModDate));
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany));
- }
- if ((Original_ODP == null)) {
- throw new global::System.ArgumentNullException("Original_ODP");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP));
- }
- if ((Original_CodArticolo == null)) {
- throw new global::System.ArgumentNullException("Original_CodArticolo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodArticolo));
- }
- if ((Original_CodDisegno == null)) {
- throw new global::System.ArgumentNullException("Original_CodDisegno");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_CodDisegno));
- }
- if ((Original_Esponente == null)) {
- throw new global::System.ArgumentNullException("Original_Esponente");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Esponente));
- }
- if ((Original_Magazzino == null)) {
- throw new global::System.ArgumentNullException("Original_Magazzino");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Magazzino));
- }
- if ((Original_Ubicazione == null)) {
- throw new global::System.ArgumentNullException("Original_Ubicazione");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Ubicazione));
- }
- this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_CreateDate));
- this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_ModDate));
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(
- string CodArticolo,
- string CodDisegno,
- string Esponente,
- string Magazzino,
- string Ubicazione,
- System.DateTime CreateDate,
- System.DateTime ModDate,
- string Original_CodCompany,
- string Original_ODP,
- string Original_CodArticolo,
- string Original_CodDisegno,
- string Original_Esponente,
- string Original_Magazzino,
- string Original_Ubicazione,
- System.DateTime Original_CreateDate,
- System.DateTime Original_ModDate) {
- return this.Update(Original_CodCompany, Original_ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_CodArticolo, Original_CodDisegno, Original_Esponente, Original_Magazzino, Original_Ubicazione, Original_CreateDate, Original_ModDate);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -12433,1382 +9889,6 @@ SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, Figura
}
}
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class TabStatoOdpUdcTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "TabStatoOdpUdc";
- tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
- tableMapping.ColumnMappings.Add("ODP", "ODP");
- tableMapping.ColumnMappings.Add("UDC", "UDC");
- tableMapping.ColumnMappings.Add("Tara", "Tara");
- tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
- tableMapping.ColumnMappings.Add("Qta", "Qta");
- tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
- tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
- tableMapping.ColumnMappings.Add("Particolare", "Particolare");
- tableMapping.ColumnMappings.Add("CodStato", "CodStato");
- tableMapping.ColumnMappings.Add("CodStampo", "CodStampo");
- tableMapping.ColumnMappings.Add("Figura", "Figura");
- tableMapping.ColumnMappings.Add("FiguraIncisa", "FiguraIncisa");
- tableMapping.ColumnMappings.Add("PesoTot", "PesoTot");
- tableMapping.ColumnMappings.Add("PesoCad", "PesoCad");
- tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
- tableMapping.ColumnMappings.Add("ModDate", "ModDate");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) 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)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Particolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, true, 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("@IsNull_CodStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoCad", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CodImpianto], [Particolare], [CodStato], [CodStampo], [Figura], [FiguraIncisa], [PesoTot], [PesoCad], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CodImpianto, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa, @PesoTot, @PesoCad, @CreateDate, @ModDate);
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC]" +
- " = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @C" +
- "odImballo, [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [CodStato" +
- "] = @CodStato, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @F" +
- "iguraIncisa, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [CreateDate] = @CreateD" +
- "ate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP" +
- "] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara]" +
- " IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato" +
- "] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta]" +
- " IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImbal" +
- "lo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto" +
- " = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND " +
- "((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Origin" +
- "al_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStat" +
- "o] = @Original_CodStato)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) O" +
- "R ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS " +
- "NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [Figu" +
- "raIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)) AND ((@IsNull_P" +
- "esoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsN" +
- "ull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND (" +
- "(@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_C" +
- "reateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Or" +
- "iginal_ModDate)));\r\nSELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo" +
- ", CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, " +
- "PesoCad, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany" +
- ") AND (ODP = @ODP) AND (UDC = @UDC)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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("@PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Particolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, true, 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_CodStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoCad", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Partic" +
- "olare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, " +
- "ModDate FROM dbo.TabStatoOdpUdc";
- 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_insNewOdpUdc";
- 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("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, 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("@CodSito", global::System.Data.SqlDbType.VarChar, 4, 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("@Flusso", 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("@Anno", 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("@ODP", global::System.Data.SqlDbType.VarChar, 20, 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("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", 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("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, 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("@CodOperatore", 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_annullaUDC";
- this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 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_getStatoByUdc";
- 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("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_insNewOdpUdcFull";
- 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("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, 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("@CodSito", global::System.Data.SqlDbType.VarChar, 4, 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("@Flusso", 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("@Anno", 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("@ODP", global::System.Data.SqlDbType.VarChar, 20, 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("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", 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("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, 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("@CodOperatore", 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, 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("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoTot", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", 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("@CodStato", 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("@CodStampo", 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("@Figura", 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("@FiguraIncisa", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_sbloccaUdc";
- 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("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.TabStatoOdpUdcDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.TabStatoOdpUdcDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.TabStatoOdpUdcDataTable dataTable = new DS_Applicazione.TabStatoOdpUdcDataTable();
- 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.Fill, false)]
- public virtual int FillBy(DS_Applicazione.TabStatoOdpUdcDataTable dataTable, string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable Tara, string CodImballo, string CodTipoDichiaraz, string CodOperatore, string CodEvento) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodCompany == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
- }
- if ((Flusso == null)) {
- this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
- }
- if ((Anno == null)) {
- this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
- }
- if ((ODP == null)) {
- this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodImballo));
- }
- if ((CodTipoDichiaraz == null)) {
- this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodTipoDichiaraz));
- }
- if ((CodOperatore == null)) {
- this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[9].Value = ((string)(CodOperatore));
- }
- if ((CodEvento == null)) {
- this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[10].Value = ((string)(CodEvento));
- }
- 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, false)]
- public virtual DS_Applicazione.TabStatoOdpUdcDataTable stp_insNewOdpUdc(string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable Tara, string CodImballo, string CodTipoDichiaraz, string CodOperatore, string CodEvento) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodCompany == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
- }
- if ((Flusso == null)) {
- this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
- }
- if ((Anno == null)) {
- this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
- }
- if ((ODP == null)) {
- this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodImballo));
- }
- if ((CodTipoDichiaraz == null)) {
- this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodTipoDichiaraz));
- }
- if ((CodOperatore == null)) {
- this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[9].Value = ((string)(CodOperatore));
- }
- if ((CodEvento == null)) {
- this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[10].Value = ((string)(CodEvento));
- }
- DS_Applicazione.TabStatoOdpUdcDataTable dataTable = new DS_Applicazione.TabStatoOdpUdcDataTable();
- 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.TabStatoOdpUdcDataTable stp_getStatoByUdc(string UDC) {
- this.Adapter.SelectCommand = this.CommandCollection[3];
- if ((UDC == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
- }
- DS_Applicazione.TabStatoOdpUdcDataTable dataTable = new DS_Applicazione.TabStatoOdpUdcDataTable();
- 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.TabStatoOdpUdcDataTable stp_insNewOdpUdcFull(
- string CodCompany,
- string CodSito,
- string Flusso,
- string Anno,
- string ODP,
- global::System.Nullable Tara,
- global::System.Nullable IdxStato,
- string CodImballo,
- string CodTipoDichiaraz,
- string CodOperatore,
- string CodEvento,
- global::System.Nullable Qta,
- global::System.Nullable PesoTot,
- global::System.Nullable PesoCad,
- string Particolare,
- string CodStato,
- string CodStampo,
- string Figura,
- string FiguraIncisa) {
- this.Adapter.SelectCommand = this.CommandCollection[4];
- if ((CodCompany == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
- }
- if ((CodSito == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
- }
- if ((Flusso == null)) {
- this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
- }
- if ((Anno == null)) {
- this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
- }
- if ((ODP == null)) {
- this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[5].Value = ((string)(ODP));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[6].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- if ((IdxStato.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[7].Value = ((int)(IdxStato.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodImballo));
- }
- if ((CodTipoDichiaraz == null)) {
- this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[9].Value = ((string)(CodTipoDichiaraz));
- }
- if ((CodOperatore == null)) {
- this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[10].Value = ((string)(CodOperatore));
- }
- if ((CodEvento == null)) {
- this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[11].Value = ((string)(CodEvento));
- }
- if ((Qta.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[12].Value = ((decimal)(Qta.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
- }
- if ((PesoTot.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[13].Value = ((double)(PesoTot.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value;
- }
- if ((PesoCad.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[14].Value = ((double)(PesoCad.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value;
- }
- if ((Particolare == null)) {
- this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[15].Value = ((string)(Particolare));
- }
- if ((CodStato == null)) {
- this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[16].Value = ((string)(CodStato));
- }
- if ((CodStampo == null)) {
- this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[17].Value = ((string)(CodStampo));
- }
- if ((Figura == null)) {
- this.Adapter.SelectCommand.Parameters[18].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[18].Value = ((string)(Figura));
- }
- if ((FiguraIncisa == null)) {
- this.Adapter.SelectCommand.Parameters[19].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[19].Value = ((string)(FiguraIncisa));
- }
- DS_Applicazione.TabStatoOdpUdcDataTable dataTable = new DS_Applicazione.TabStatoOdpUdcDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.TabStatoOdpUdcDataTable 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, "TabStatoOdpUdc");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(
- string Original_CodCompany,
- string Original_ODP,
- string Original_UDC,
- global::System.Nullable Original_Tara,
- global::System.Nullable Original_IdxStato,
- global::System.Nullable Original_Qta,
- string Original_CodImballo,
- string Original_CodImpianto,
- string Original_Particolare,
- string Original_CodStato,
- string Original_CodStampo,
- string Original_Figura,
- string Original_FiguraIncisa,
- global::System.Nullable Original_PesoTot,
- global::System.Nullable Original_PesoCad,
- global::System.Nullable Original_CreateDate,
- global::System.Nullable Original_ModDate) {
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
- }
- if ((Original_ODP == null)) {
- throw new global::System.ArgumentNullException("Original_ODP");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP));
- }
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UDC));
- }
- if ((Original_Tara.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Tara.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Original_IdxStato.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdxStato.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- if ((Original_Qta.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Qta.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- if ((Original_CodImballo == null)) {
- this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_CodImballo));
- }
- if ((Original_CodImpianto == null)) {
- this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_Particolare == null)) {
- this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Particolare));
- }
- if ((Original_CodStato == null)) {
- this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_CodStato));
- }
- if ((Original_CodStampo == null)) {
- this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_CodStampo));
- }
- if ((Original_Figura == null)) {
- this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_Figura));
- }
- if ((Original_FiguraIncisa == null)) {
- this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_FiguraIncisa));
- }
- if ((Original_PesoTot.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[24].Value = ((double)(Original_PesoTot.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
- }
- if ((Original_PesoCad.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[26].Value = ((double)(Original_PesoCad.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
- }
- if ((Original_CreateDate.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[28].Value = ((System.DateTime)(Original_CreateDate.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
- }
- if ((Original_ModDate.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[30].Value = ((System.DateTime)(Original_ModDate.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(
- string CodCompany,
- string ODP,
- string UDC,
- global::System.Nullable Tara,
- global::System.Nullable IdxStato,
- global::System.Nullable Qta,
- string CodImballo,
- string CodImpianto,
- string Particolare,
- string CodStato,
- string CodStampo,
- string Figura,
- string FiguraIncisa,
- global::System.Nullable PesoTot,
- global::System.Nullable PesoCad,
- global::System.Nullable CreateDate,
- global::System.Nullable ModDate) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((ODP == null)) {
- throw new global::System.ArgumentNullException("ODP");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP));
- }
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UDC));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((IdxStato.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxStato.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Qta.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(Qta.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodImballo));
- }
- if ((CodImpianto == null)) {
- this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[7].Value = ((string)(CodImpianto));
- }
- if ((Particolare == null)) {
- this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Particolare));
- }
- if ((CodStato == null)) {
- this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[9].Value = ((string)(CodStato));
- }
- if ((CodStampo == null)) {
- this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[10].Value = ((string)(CodStampo));
- }
- if ((Figura == null)) {
- this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Figura));
- }
- if ((FiguraIncisa == null)) {
- this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[12].Value = ((string)(FiguraIncisa));
- }
- if ((PesoTot.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[13].Value = ((double)(PesoTot.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
- }
- if ((PesoCad.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[14].Value = ((double)(PesoCad.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
- }
- if ((CreateDate.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[15].Value = ((System.DateTime)(CreateDate.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
- }
- if ((ModDate.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[16].Value = ((System.DateTime)(ModDate.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(
- string CodCompany,
- string ODP,
- string UDC,
- global::System.Nullable Tara,
- global::System.Nullable IdxStato,
- global::System.Nullable Qta,
- string CodImballo,
- string CodImpianto,
- string Particolare,
- string CodStato,
- string CodStampo,
- string Figura,
- string FiguraIncisa,
- global::System.Nullable PesoTot,
- global::System.Nullable PesoCad,
- global::System.Nullable CreateDate,
- global::System.Nullable ModDate,
- string Original_CodCompany,
- string Original_ODP,
- string Original_UDC,
- global::System.Nullable Original_Tara,
- global::System.Nullable Original_IdxStato,
- global::System.Nullable Original_Qta,
- string Original_CodImballo,
- string Original_CodImpianto,
- string Original_Particolare,
- string Original_CodStato,
- string Original_CodStampo,
- string Original_Figura,
- string Original_FiguraIncisa,
- global::System.Nullable Original_PesoTot,
- global::System.Nullable Original_PesoCad,
- global::System.Nullable Original_CreateDate,
- global::System.Nullable Original_ModDate) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((ODP == null)) {
- throw new global::System.ArgumentNullException("ODP");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP));
- }
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UDC));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((IdxStato.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxStato.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Qta.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Qta.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodImballo));
- }
- if ((CodImpianto == null)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(CodImpianto));
- }
- if ((Particolare == null)) {
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Particolare));
- }
- if ((CodStato == null)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(CodStato));
- }
- if ((CodStampo == null)) {
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(CodStampo));
- }
- if ((Figura == null)) {
- this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Figura));
- }
- if ((FiguraIncisa == null)) {
- this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(FiguraIncisa));
- }
- if ((PesoTot.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(PesoTot.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
- }
- if ((PesoCad.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(PesoCad.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
- }
- if ((CreateDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(CreateDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
- }
- if ((ModDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(ModDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
- }
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_CodCompany));
- }
- if ((Original_ODP == null)) {
- throw new global::System.ArgumentNullException("Original_ODP");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_ODP));
- }
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_UDC));
- }
- if ((Original_Tara.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_Tara.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
- }
- if ((Original_IdxStato.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_IdxStato.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
- }
- if ((Original_Qta.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[25].Value = ((decimal)(Original_Qta.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
- }
- if ((Original_CodImballo == null)) {
- this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_CodImballo));
- }
- if ((Original_CodImpianto == null)) {
- this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_Particolare == null)) {
- this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_Particolare));
- }
- if ((Original_CodStato == null)) {
- this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_CodStato));
- }
- if ((Original_CodStampo == null)) {
- this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_CodStampo));
- }
- if ((Original_Figura == null)) {
- this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_Figura));
- }
- if ((Original_FiguraIncisa == null)) {
- this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_FiguraIncisa));
- }
- if ((Original_PesoTot.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[41].Value = ((double)(Original_PesoTot.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
- }
- if ((Original_PesoCad.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[43].Value = ((double)(Original_PesoCad.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
- }
- if ((Original_CreateDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[45].Value = ((System.DateTime)(Original_CreateDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
- }
- if ((Original_ModDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[47].Value = ((System.DateTime)(Original_ModDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(
- global::System.Nullable Tara,
- global::System.Nullable IdxStato,
- global::System.Nullable Qta,
- string CodImballo,
- string CodImpianto,
- string Particolare,
- string CodStato,
- string CodStampo,
- string Figura,
- string FiguraIncisa,
- global::System.Nullable PesoTot,
- global::System.Nullable PesoCad,
- global::System.Nullable CreateDate,
- global::System.Nullable ModDate,
- string Original_CodCompany,
- string Original_ODP,
- string Original_UDC,
- global::System.Nullable Original_Tara,
- global::System.Nullable Original_IdxStato,
- global::System.Nullable Original_Qta,
- string Original_CodImballo,
- string Original_CodImpianto,
- string Original_Particolare,
- string Original_CodStato,
- string Original_CodStampo,
- string Original_Figura,
- string Original_FiguraIncisa,
- global::System.Nullable Original_PesoTot,
- global::System.Nullable Original_PesoCad,
- global::System.Nullable Original_CreateDate,
- global::System.Nullable Original_ModDate) {
- return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CodImpianto, Original_Particolare, Original_CodStato, Original_CodStampo, Original_Figura, Original_FiguraIncisa, Original_PesoTot, Original_PesoCad, Original_CreateDate, Original_ModDate);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int stp_annullaUDC(string UDC) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
- if ((UDC == null)) {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[1].Value = ((string)(UDC));
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int stp_sbloccaUdc(string UDC) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
- if ((UDC == null)) {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[1].Value = ((string)(UDC));
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -14990,6 +11070,2175 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class AnagImpiantiTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "AnagImpianti";
+ tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("DescImpianto", "DescImpianto");
+ tableMapping.ColumnMappings.Add("Campionatura", "Campionatura");
+ tableMapping.ColumnMappings.Add("TipoLinea", "TipoLinea");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescImpianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) AND ((@IsNull_Campionatura = 1 AND [Campionatura] IS NULL) OR ([Campionatura] = @Original_Campionatura)) AND ((@IsNull_TipoLinea = 1 AND [TipoLinea] IS NULL) OR ([TipoLinea] = @Original_TipoLinea)))";
+ 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_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Campionatura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campionatura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Campionatura", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campionatura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TipoLinea", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLinea", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoLinea", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLinea", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagImpianti] ([CodImpianto], [CodCS], [DescImpianto], [Campionatura], [TipoLinea]) VALUES (@CodImpianto, @CodCS, @DescImpianto, @Campionatura, @TipoLinea);
+SELECT CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campionatura", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campionatura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoLinea", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLinea", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [CodCS] = @CodCS, [DescImpianto] = @DescImpianto, [Campionatura] = @Campionatura, [TipoLinea] = @TipoLinea WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescImpianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) AND ((@IsNull_Campionatura = 1 AND [Campionatura] IS NULL) OR ([Campionatura] = @Original_Campionatura)) AND ((@IsNull_TipoLinea = 1 AND [TipoLinea] IS NULL) OR ([TipoLinea] = @Original_TipoLinea)));
+SELECT CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Campionatura", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campionatura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoLinea", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLinea", 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_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Campionatura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campionatura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Campionatura", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Campionatura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TipoLinea", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLinea", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoLinea", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLinea", 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[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea FROM dbo.AnagImp" +
+ "ianti";
+ 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_getImpiantiByCodCS";
+ 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, "", "", ""));
+ }
+
+ [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.AnagImpiantiDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Applicazione.AnagImpiantiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.AnagImpiantiDataTable dataTable = new DS_Applicazione.AnagImpiantiDataTable();
+ 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.AnagImpiantiDataTable stp_getByCodCS(string CodCS) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodCS == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ DS_Applicazione.AnagImpiantiDataTable dataTable = new DS_Applicazione.AnagImpiantiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.AnagImpiantiDataTable 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, "AnagImpianti");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodImpianto, string Original_CodCS, string Original_DescImpianto, string Original_Campionatura, string Original_TipoLinea) {
+ if ((Original_CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("Original_CodImpianto");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DescImpianto == null)) {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescImpianto));
+ }
+ if ((Original_Campionatura == null)) {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Campionatura));
+ }
+ if ((Original_TipoLinea == null)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_TipoLinea));
+ }
+ 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 CodCS, string DescImpianto, string Campionatura, string TipoLinea) {
+ if ((CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("CodImpianto");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((DescImpianto == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescImpianto));
+ }
+ if ((Campionatura == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Campionatura));
+ }
+ if ((TipoLinea == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(TipoLinea));
+ }
+ 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 CodCS, string DescImpianto, string Campionatura, string TipoLinea, string Original_CodImpianto, string Original_CodCS, string Original_DescImpianto, string Original_Campionatura, string Original_TipoLinea) {
+ if ((CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("CodImpianto");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((DescImpianto == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescImpianto));
+ }
+ if ((Campionatura == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Campionatura));
+ }
+ if ((TipoLinea == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(TipoLinea));
+ }
+ if ((Original_CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("Original_CodImpianto");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodImpianto));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DescImpianto == 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_DescImpianto));
+ }
+ if ((Original_Campionatura == 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_Campionatura));
+ }
+ if ((Original_TipoLinea == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_TipoLinea));
+ }
+ 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 CodCS, string DescImpianto, string Campionatura, string TipoLinea, string Original_CodImpianto, string Original_CodCS, string Original_DescImpianto, string Original_Campionatura, string Original_TipoLinea) {
+ return this.Update(Original_CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea, Original_CodImpianto, Original_CodCS, Original_DescImpianto, Original_Campionatura, Original_TipoLinea);
+ }
+ }
+
+ ///
+ ///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 AnagCompanySitoTableAdapter : 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 AnagCompanySitoTableAdapter() {
+ 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 = "AnagCompanySito";
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
+ tableMapping.ColumnMappings.Add("DescCompany", "DescCompany");
+ tableMapping.ColumnMappings.Add("CodSito", "CodSito");
+ tableMapping.ColumnMappings.Add("DescSito", "DescSito");
+ 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].[AnagCompanySito] WHERE (([CodCS] = @Original_CodCS) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_DescCompany = 1 AND [DescCompany] IS NULL) OR ([DescCompany] = @Original_DescCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)) AND ((@IsNull_DescSito = 1 AND [DescSito] IS NULL) OR ([DescSito] = @Original_DescSito)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescSito", 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].[AnagCompanySito] ([CodCS], [CodCompany], [DescCompany], [CodSito], [DescSito]) VALUES (@CodCS, @CodCompany, @DescCompany, @CodSito, @DescSito);
+SELECT CodCS, CodCompany, DescCompany, CodSito, DescSito FROM AnagCompanySito WHERE (CodCS = @CodCS)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescSito", 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].[AnagCompanySito] SET [CodCS] = @CodCS, [CodCompany] = @CodCompany, [DescCompany] = @DescCompany, [CodSito] = @CodSito, [DescSito] = @DescSito WHERE (([CodCS] = @Original_CodCS) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_DescCompany = 1 AND [DescCompany] IS NULL) OR ([DescCompany] = @Original_DescCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)) AND ((@IsNull_DescSito = 1 AND [DescSito] IS NULL) OR ([DescSito] = @Original_DescSito)));
+SELECT CodCS, CodCompany, DescCompany, CodSito, DescSito FROM AnagCompanySito WHERE (CodCS = @CodCS)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescCompany", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescCompany", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescSito", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescSito", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescSito", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescSito", 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 CodCS, CodCompany, DescCompany, CodSito, DescSito FROM dbo.AnagCompanySito" +
+ "";
+ 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.AnagCompanySitoDataTable 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.AnagCompanySitoDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.AnagCompanySitoDataTable dataTable = new DS_Applicazione.AnagCompanySitoDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.AnagCompanySitoDataTable 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, "AnagCompanySito");
+ }
+
+ [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_CodCS, string Original_CodCompany, string Original_DescCompany, string Original_CodSito, string Original_DescSito) {
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodCompany == 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_CodCompany));
+ }
+ if ((Original_DescCompany == 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_DescCompany));
+ }
+ if ((Original_CodSito == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodSito));
+ }
+ if ((Original_DescSito == 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_DescSito));
+ }
+ 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 CodCS, string CodCompany, string DescCompany, string CodSito, string DescSito) {
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCS));
+ }
+ if ((CodCompany == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCompany));
+ }
+ if ((DescCompany == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescCompany));
+ }
+ if ((CodSito == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSito));
+ }
+ if ((DescSito == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(DescSito));
+ }
+ 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 CodCS, string CodCompany, string DescCompany, string CodSito, string DescSito, string Original_CodCS, string Original_CodCompany, string Original_DescCompany, string Original_CodSito, string Original_DescSito) {
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCS));
+ }
+ if ((CodCompany == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCompany));
+ }
+ if ((DescCompany == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescCompany));
+ }
+ if ((CodSito == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSito));
+ }
+ if ((DescSito == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(DescSito));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodCompany == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodCompany));
+ }
+ if ((Original_DescCompany == null)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_DescCompany));
+ }
+ if ((Original_CodSito == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodSito));
+ }
+ if ((Original_DescSito == 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_DescSito));
+ }
+ 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 CodCompany, string DescCompany, string CodSito, string DescSito, string Original_CodCS, string Original_CodCompany, string Original_DescCompany, string Original_CodSito, string Original_DescSito) {
+ return this.Update(Original_CodCS, CodCompany, DescCompany, CodSito, DescSito, Original_CodCS, Original_CodCompany, Original_DescCompany, Original_CodSito, Original_DescSito);
+ }
+ }
+
+ ///
+ ///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 TabCartelliniTableAdapter : 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 TabCartelliniTableAdapter() {
+ 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 = "TabCartellini";
+ tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
+ tableMapping.ColumnMappings.Add("ODP", "ODP");
+ tableMapping.ColumnMappings.Add("UDC", "UDC");
+ tableMapping.ColumnMappings.Add("Tara", "Tara");
+ tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
+ tableMapping.ColumnMappings.Add("Qta", "Qta");
+ tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
+ tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
+ tableMapping.ColumnMappings.Add("Particolare", "Particolare");
+ tableMapping.ColumnMappings.Add("CodStato", "CodStato");
+ tableMapping.ColumnMappings.Add("CodStampo", "CodStampo");
+ tableMapping.ColumnMappings.Add("Figura", "Figura");
+ tableMapping.ColumnMappings.Add("FiguraIncisa", "FiguraIncisa");
+ tableMapping.ColumnMappings.Add("PesoTot", "PesoTot");
+ tableMapping.ColumnMappings.Add("PesoCad", "PesoCad");
+ tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
+ tableMapping.ColumnMappings.Add("ModDate", "ModDate");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TabCartellini] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) 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)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Particolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, true, 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("@IsNull_CodStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoCad", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TabCartellini] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CodImpianto], [Particolare], [CodStato], [CodStampo], [Figura], [FiguraIncisa], [PesoTot], [PesoCad], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CodImpianto, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa, @PesoTot, @PesoCad, @CreateDate, @ModDate);
+SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM TabCartellini WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TabCartellini] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] " +
+ "= @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @Co" +
+ "dImballo, [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [CodStato]" +
+ " = @CodStato, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @Fi" +
+ "guraIncisa, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [CreateDate] = @CreateDa" +
+ "te, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP]" +
+ " = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] " +
+ "IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato]" +
+ " IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] " +
+ "IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImball" +
+ "o] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto " +
+ "= 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND (" +
+ "(@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Origina" +
+ "l_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato" +
+ "] = @Original_CodStato)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR" +
+ " ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS N" +
+ "ULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [Figur" +
+ "aIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)) AND ((@IsNull_Pe" +
+ "soTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNu" +
+ "ll_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((" +
+ "@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_Cr" +
+ "eateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Ori" +
+ "ginal_ModDate)));\r\nSELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo," +
+ " CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, P" +
+ "esoCad, CreateDate, ModDate FROM TabCartellini WHERE (CodCompany = @CodCompany) " +
+ "AND (ODP = @ODP) AND (UDC = @UDC)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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("@PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Particolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, true, 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_CodStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", 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, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoTot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoTot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PesoCad", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PesoCad", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PesoCad", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Partic" +
+ "olare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, " +
+ "ModDate FROM dbo.TabCartellini";
+ 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_annullaUDC";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_getStatoByUdc";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_UDC_insNew";
+ 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("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, 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("@CodSito", global::System.Data.SqlDbType.VarChar, 4, 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("@Flusso", 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("@Anno", 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("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", 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("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, 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("@CodOperatore", 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 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_UDC_insNewFull";
+ 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("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, 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("@CodSito", global::System.Data.SqlDbType.VarChar, 4, 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("@Flusso", 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("@Anno", 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("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", 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("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, 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("@CodOperatore", 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, 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("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoTot", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", 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("@CodStato", 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("@CodStampo", 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("@Figura", 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("@FiguraIncisa", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_sbloccaUdc";
+ 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("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Applicazione.TabCartelliniDataTable 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.TabCartelliniDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.TabCartelliniDataTable dataTable = new DS_Applicazione.TabCartelliniDataTable();
+ 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.TabCartelliniDataTable stp_getStatoByUdc(string UDC) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((UDC == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
+ }
+ DS_Applicazione.TabCartelliniDataTable dataTable = new DS_Applicazione.TabCartelliniDataTable();
+ 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.TabCartelliniDataTable stp_insNew(string CodCompany, string CodSito, string Flusso, string Anno, global::System.Nullable Tara, string CodImballo, string CodTipoDichiaraz, string CodOperatore, string CodEvento) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((CodCompany == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
+ }
+ if ((CodSito == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
+ }
+ if ((Flusso == null)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
+ }
+ if ((Anno == null)) {
+ this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
+ }
+ if ((Tara.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[5].Value = ((double)(Tara.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((CodImballo == null)) {
+ this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[6].Value = ((string)(CodImballo));
+ }
+ if ((CodTipoDichiaraz == null)) {
+ this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodTipoDichiaraz));
+ }
+ if ((CodOperatore == null)) {
+ this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodOperatore));
+ }
+ if ((CodEvento == null)) {
+ this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[9].Value = ((string)(CodEvento));
+ }
+ DS_Applicazione.TabCartelliniDataTable dataTable = new DS_Applicazione.TabCartelliniDataTable();
+ 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.TabCartelliniDataTable stp_insNewFull(
+ string CodCompany,
+ string CodSito,
+ string Flusso,
+ string Anno,
+ global::System.Nullable Tara,
+ global::System.Nullable IdxStato,
+ string CodImballo,
+ string CodTipoDichiaraz,
+ string CodOperatore,
+ string CodEvento,
+ global::System.Nullable Qta,
+ global::System.Nullable PesoTot,
+ global::System.Nullable PesoCad,
+ string Particolare,
+ string CodStato,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa) {
+ this.Adapter.SelectCommand = this.CommandCollection[4];
+ if ((CodCompany == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
+ }
+ if ((CodSito == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSito));
+ }
+ if ((Flusso == null)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
+ }
+ if ((Anno == null)) {
+ this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
+ }
+ if ((Tara.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[5].Value = ((double)(Tara.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((IdxStato.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[6].Value = ((int)(IdxStato.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((CodImballo == null)) {
+ this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodImballo));
+ }
+ if ((CodTipoDichiaraz == null)) {
+ this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodTipoDichiaraz));
+ }
+ if ((CodOperatore == null)) {
+ this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[9].Value = ((string)(CodOperatore));
+ }
+ if ((CodEvento == null)) {
+ this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[10].Value = ((string)(CodEvento));
+ }
+ if ((Qta.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[11].Value = ((decimal)(Qta.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((PesoTot.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[12].Value = ((double)(PesoTot.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ if ((PesoCad.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[13].Value = ((double)(PesoCad.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ if ((Particolare == null)) {
+ this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[14].Value = ((string)(Particolare));
+ }
+ if ((CodStato == null)) {
+ this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[15].Value = ((string)(CodStato));
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[16].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[17].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.SelectCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[18].Value = ((string)(FiguraIncisa));
+ }
+ DS_Applicazione.TabCartelliniDataTable dataTable = new DS_Applicazione.TabCartelliniDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.TabCartelliniDataTable 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, "TabCartellini");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(
+ string Original_CodCompany,
+ string Original_ODP,
+ string Original_UDC,
+ global::System.Nullable Original_Tara,
+ global::System.Nullable Original_IdxStato,
+ global::System.Nullable Original_Qta,
+ string Original_CodImballo,
+ string Original_CodImpianto,
+ string Original_Particolare,
+ string Original_CodStato,
+ string Original_CodStampo,
+ string Original_Figura,
+ string Original_FiguraIncisa,
+ global::System.Nullable Original_PesoTot,
+ global::System.Nullable Original_PesoCad,
+ global::System.Nullable Original_CreateDate,
+ global::System.Nullable Original_ModDate) {
+ if ((Original_CodCompany == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCompany");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
+ }
+ if ((Original_ODP == null)) {
+ throw new global::System.ArgumentNullException("Original_ODP");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP));
+ }
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UDC));
+ }
+ if ((Original_Tara.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Tara.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Original_IdxStato.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdxStato.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Qta.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Qta.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodImballo == null)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_CodImballo));
+ }
+ if ((Original_CodImpianto == null)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_CodImpianto));
+ }
+ if ((Original_Particolare == null)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_CodStato == null)) {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_CodStato));
+ }
+ if ((Original_CodStampo == null)) {
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_CodStampo));
+ }
+ if ((Original_Figura == null)) {
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_Figura));
+ }
+ if ((Original_FiguraIncisa == null)) {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_FiguraIncisa));
+ }
+ if ((Original_PesoTot.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((double)(Original_PesoTot.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
+ }
+ if ((Original_PesoCad.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[26].Value = ((double)(Original_PesoCad.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CreateDate.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[28].Value = ((System.DateTime)(Original_CreateDate.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
+ }
+ if ((Original_ModDate.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[30].Value = ((System.DateTime)(Original_ModDate.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(
+ string CodCompany,
+ string ODP,
+ string UDC,
+ global::System.Nullable Tara,
+ global::System.Nullable IdxStato,
+ global::System.Nullable Qta,
+ string CodImballo,
+ string CodImpianto,
+ string Particolare,
+ string CodStato,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa,
+ global::System.Nullable PesoTot,
+ global::System.Nullable PesoCad,
+ global::System.Nullable CreateDate,
+ global::System.Nullable ModDate) {
+ if ((CodCompany == null)) {
+ throw new global::System.ArgumentNullException("CodCompany");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
+ }
+ if ((ODP == null)) {
+ throw new global::System.ArgumentNullException("ODP");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP));
+ }
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UDC));
+ }
+ if ((Tara.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Tara.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((IdxStato.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxStato.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Qta.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(Qta.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((CodImballo == null)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodImballo));
+ }
+ if ((CodImpianto == null)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(CodImpianto));
+ }
+ if ((Particolare == null)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Particolare));
+ }
+ if ((CodStato == null)) {
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(CodStato));
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[12].Value = ((string)(FiguraIncisa));
+ }
+ if ((PesoTot.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[13].Value = ((double)(PesoTot.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ if ((PesoCad.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[14].Value = ((double)(PesoCad.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ if ((CreateDate.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[15].Value = ((System.DateTime)(CreateDate.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ if ((ModDate.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[16].Value = ((System.DateTime)(ModDate.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string CodCompany,
+ string ODP,
+ string UDC,
+ global::System.Nullable Tara,
+ global::System.Nullable IdxStato,
+ global::System.Nullable Qta,
+ string CodImballo,
+ string CodImpianto,
+ string Particolare,
+ string CodStato,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa,
+ global::System.Nullable PesoTot,
+ global::System.Nullable PesoCad,
+ global::System.Nullable CreateDate,
+ global::System.Nullable ModDate,
+ string Original_CodCompany,
+ string Original_ODP,
+ string Original_UDC,
+ global::System.Nullable Original_Tara,
+ global::System.Nullable Original_IdxStato,
+ global::System.Nullable Original_Qta,
+ string Original_CodImballo,
+ string Original_CodImpianto,
+ string Original_Particolare,
+ string Original_CodStato,
+ string Original_CodStampo,
+ string Original_Figura,
+ string Original_FiguraIncisa,
+ global::System.Nullable Original_PesoTot,
+ global::System.Nullable Original_PesoCad,
+ global::System.Nullable Original_CreateDate,
+ global::System.Nullable Original_ModDate) {
+ if ((CodCompany == null)) {
+ throw new global::System.ArgumentNullException("CodCompany");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
+ }
+ if ((ODP == null)) {
+ throw new global::System.ArgumentNullException("ODP");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP));
+ }
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UDC));
+ }
+ if ((Tara.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Tara.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((IdxStato.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxStato.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Qta.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Qta.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((CodImballo == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodImballo));
+ }
+ if ((CodImpianto == null)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(CodImpianto));
+ }
+ if ((Particolare == null)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Particolare));
+ }
+ if ((CodStato == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(CodStato));
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(FiguraIncisa));
+ }
+ if ((PesoTot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(PesoTot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ if ((PesoCad.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(PesoCad.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ if ((CreateDate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(CreateDate.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ if ((ModDate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(ModDate.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodCompany == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCompany");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_CodCompany));
+ }
+ if ((Original_ODP == null)) {
+ throw new global::System.ArgumentNullException("Original_ODP");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_ODP));
+ }
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_UDC));
+ }
+ if ((Original_Tara.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_Tara.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ if ((Original_IdxStato.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_IdxStato.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Qta.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((decimal)(Original_Qta.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodImballo == null)) {
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_CodImballo));
+ }
+ if ((Original_CodImpianto == null)) {
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_CodImpianto));
+ }
+ if ((Original_Particolare == null)) {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_CodStato == null)) {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_CodStato));
+ }
+ if ((Original_CodStampo == null)) {
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_CodStampo));
+ }
+ if ((Original_Figura == null)) {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_Figura));
+ }
+ if ((Original_FiguraIncisa == null)) {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_FiguraIncisa));
+ }
+ if ((Original_PesoTot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[41].Value = ((double)(Original_PesoTot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
+ }
+ if ((Original_PesoCad.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((double)(Original_PesoCad.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CreateDate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[45].Value = ((System.DateTime)(Original_CreateDate.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ if ((Original_ModDate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[47].Value = ((System.DateTime)(Original_ModDate.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ global::System.Nullable Tara,
+ global::System.Nullable IdxStato,
+ global::System.Nullable Qta,
+ string CodImballo,
+ string CodImpianto,
+ string Particolare,
+ string CodStato,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa,
+ global::System.Nullable PesoTot,
+ global::System.Nullable PesoCad,
+ global::System.Nullable CreateDate,
+ global::System.Nullable ModDate,
+ string Original_CodCompany,
+ string Original_ODP,
+ string Original_UDC,
+ global::System.Nullable Original_Tara,
+ global::System.Nullable Original_IdxStato,
+ global::System.Nullable Original_Qta,
+ string Original_CodImballo,
+ string Original_CodImpianto,
+ string Original_Particolare,
+ string Original_CodStato,
+ string Original_CodStampo,
+ string Original_Figura,
+ string Original_FiguraIncisa,
+ global::System.Nullable Original_PesoTot,
+ global::System.Nullable Original_PesoCad,
+ global::System.Nullable Original_CreateDate,
+ global::System.Nullable Original_ModDate) {
+ return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CodImpianto, Original_Particolare, Original_CodStato, Original_CodStampo, Original_Figura, Original_FiguraIncisa, Original_PesoTot, Original_PesoCad, Original_CreateDate, Original_ModDate);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int stp_annullaUDC(string UDC) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((UDC == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(UDC));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int stp_sbloccaUdc(string UDC) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
+ if ((UDC == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(UDC));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -15003,16 +13252,8 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
private UpdateOrderOption _updateOrder;
- private AnagImpiantiTableAdapter _anagImpiantiTableAdapter;
-
- private AnagCompanyTableAdapter _anagCompanyTableAdapter;
-
- private AnagSitiTableAdapter _anagSitiTableAdapter;
-
private AnagBilanceTableAdapter _anagBilanceTableAdapter;
- private AnagOdpTableAdapter _anagOdpTableAdapter;
-
private AnagStatiTableAdapter _anagStatiTableAdapter;
private AnagTipoDichiarazTableAdapter _anagTipoDichiarazTableAdapter;
@@ -15025,12 +13266,16 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter;
- private TabStatoOdpUdcTableAdapter _tabStatoOdpUdcTableAdapter;
-
private StoricoEventiTableAdapter _storicoEventiTableAdapter;
private RelazUDCTableAdapter _relazUDCTableAdapter;
+ private AnagImpiantiTableAdapter _anagImpiantiTableAdapter;
+
+ private AnagCompanySitoTableAdapter _anagCompanySitoTableAdapter;
+
+ private TabCartelliniTableAdapter _tabCartelliniTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -15045,45 +13290,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public AnagImpiantiTableAdapter AnagImpiantiTableAdapter {
- get {
- return this._anagImpiantiTableAdapter;
- }
- set {
- this._anagImpiantiTableAdapter = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public AnagCompanyTableAdapter AnagCompanyTableAdapter {
- get {
- return this._anagCompanyTableAdapter;
- }
- set {
- this._anagCompanyTableAdapter = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public AnagSitiTableAdapter AnagSitiTableAdapter {
- get {
- return this._anagSitiTableAdapter;
- }
- set {
- this._anagSitiTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
@@ -15097,19 +13303,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public AnagOdpTableAdapter AnagOdpTableAdapter {
- get {
- return this._anagOdpTableAdapter;
- }
- set {
- this._anagOdpTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
@@ -15188,19 +13381,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public TabStatoOdpUdcTableAdapter TabStatoOdpUdcTableAdapter {
- get {
- return this._tabStatoOdpUdcTableAdapter;
- }
- set {
- this._tabStatoOdpUdcTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
@@ -15227,6 +13407,45 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public AnagImpiantiTableAdapter AnagImpiantiTableAdapter {
+ get {
+ return this._anagImpiantiTableAdapter;
+ }
+ set {
+ this._anagImpiantiTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public AnagCompanySitoTableAdapter AnagCompanySitoTableAdapter {
+ get {
+ return this._anagCompanySitoTableAdapter;
+ }
+ set {
+ this._anagCompanySitoTableAdapter = 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 TabCartelliniTableAdapter TabCartelliniTableAdapter {
+ get {
+ return this._tabCartelliniTableAdapter;
+ }
+ set {
+ this._tabCartelliniTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool BackupDataSetBeforeUpdate {
get {
@@ -15244,26 +13463,10 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
if ((this._connection != null)) {
return this._connection;
}
- if (((this._anagImpiantiTableAdapter != null)
- && (this._anagImpiantiTableAdapter.Connection != null))) {
- return this._anagImpiantiTableAdapter.Connection;
- }
- if (((this._anagCompanyTableAdapter != null)
- && (this._anagCompanyTableAdapter.Connection != null))) {
- return this._anagCompanyTableAdapter.Connection;
- }
- if (((this._anagSitiTableAdapter != null)
- && (this._anagSitiTableAdapter.Connection != null))) {
- return this._anagSitiTableAdapter.Connection;
- }
if (((this._anagBilanceTableAdapter != null)
&& (this._anagBilanceTableAdapter.Connection != null))) {
return this._anagBilanceTableAdapter.Connection;
}
- if (((this._anagOdpTableAdapter != null)
- && (this._anagOdpTableAdapter.Connection != null))) {
- return this._anagOdpTableAdapter.Connection;
- }
if (((this._anagStatiTableAdapter != null)
&& (this._anagStatiTableAdapter.Connection != null))) {
return this._anagStatiTableAdapter.Connection;
@@ -15288,10 +13491,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
&& (this._impianti2ArticoliTableAdapter.Connection != null))) {
return this._impianti2ArticoliTableAdapter.Connection;
}
- if (((this._tabStatoOdpUdcTableAdapter != null)
- && (this._tabStatoOdpUdcTableAdapter.Connection != null))) {
- return this._tabStatoOdpUdcTableAdapter.Connection;
- }
if (((this._storicoEventiTableAdapter != null)
&& (this._storicoEventiTableAdapter.Connection != null))) {
return this._storicoEventiTableAdapter.Connection;
@@ -15300,6 +13499,18 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
&& (this._relazUDCTableAdapter.Connection != null))) {
return this._relazUDCTableAdapter.Connection;
}
+ if (((this._anagImpiantiTableAdapter != null)
+ && (this._anagImpiantiTableAdapter.Connection != null))) {
+ return this._anagImpiantiTableAdapter.Connection;
+ }
+ if (((this._anagCompanySitoTableAdapter != null)
+ && (this._anagCompanySitoTableAdapter.Connection != null))) {
+ return this._anagCompanySitoTableAdapter.Connection;
+ }
+ if (((this._tabCartelliniTableAdapter != null)
+ && (this._tabCartelliniTableAdapter.Connection != null))) {
+ return this._tabCartelliniTableAdapter.Connection;
+ }
return null;
}
set {
@@ -15312,21 +13523,9 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
public int TableAdapterInstanceCount {
get {
int count = 0;
- if ((this._anagImpiantiTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._anagCompanyTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._anagSitiTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._anagBilanceTableAdapter != null)) {
count = (count + 1);
}
- if ((this._anagOdpTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._anagStatiTableAdapter != null)) {
count = (count + 1);
}
@@ -15345,15 +13544,21 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
if ((this._impianti2ArticoliTableAdapter != null)) {
count = (count + 1);
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._storicoEventiTableAdapter != null)) {
count = (count + 1);
}
if ((this._relazUDCTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagImpiantiTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._anagCompanySitoTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._tabCartelliniTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -15364,30 +13569,12 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateUpdatedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) {
int result = 0;
- if ((this._anagCompanyTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagCompanySitoTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagCompanySito.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._anagCompanyTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._anagOdpTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagOdpTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._anagStatiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagStatiTableAdapter.Update(updatedRows));
+ result = (result + this._anagCompanySitoTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -15400,6 +13587,15 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
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._anagStatiProdottoTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -15409,12 +13605,12 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagSitiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagSiti.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._anagSitiTableAdapter.Update(updatedRows));
+ result = (result + this._anagStatiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -15427,15 +13623,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._tabStatoOdpUdcTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._anagTipoDichiarazTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -15445,24 +13632,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
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._storicoEventiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._storicoEventiTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._relazUDCTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -15472,12 +13641,12 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagBilanceTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._tabCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.TabCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._anagBilanceTableAdapter.Update(updatedRows));
+ result = (result + this._tabCartelliniTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -15490,6 +13659,24 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagBilanceTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagBilanceTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._storicoEventiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._storicoEventiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -15499,27 +13686,11 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateInsertedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allAddedRows) {
int result = 0;
- if ((this._anagCompanyTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagCompanySitoTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagCompanySito.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._anagCompanyTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._anagOdpTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagOdpTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._anagStatiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagStatiTableAdapter.Update(addedRows));
+ result = (result + this._anagCompanySitoTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -15531,6 +13702,14 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
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._anagStatiProdottoTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -15539,11 +13718,11 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagSitiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagSiti.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._anagSitiTableAdapter.Update(addedRows));
+ result = (result + this._anagStatiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -15555,14 +13734,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allAddedRows.AddRange(addedRows);
}
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._tabStatoOdpUdcTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._anagTipoDichiarazTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -15571,22 +13742,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
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._storicoEventiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._storicoEventiTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._relazUDCTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -15595,11 +13750,11 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagBilanceTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._tabCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.TabCartellini.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._anagBilanceTableAdapter.Update(addedRows));
+ result = (result + this._tabCartelliniTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -15611,6 +13766,22 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagBilanceTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagBilanceTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._storicoEventiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._storicoEventiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -15620,11 +13791,11 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._storicoEventiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows));
+ result = (result + this._storicoEventiTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -15636,6 +13807,22 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._tabCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.TabCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._tabCartelliniTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._relazUDCTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15644,22 +13831,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._storicoEventiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._storicoEventiTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._anagImpiantiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagImpiantiTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._anagTipoDichiarazTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15668,14 +13839,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._tabStatoOdpUdcTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._anagImballiTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15684,30 +13847,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagSitiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagSitiTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._anagArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagArticoliTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._anagStatiTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -15716,19 +13855,35 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagOdpTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagOdpTableAdapter.Update(deletedRows));
+ result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagCompanyTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagCompany.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((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._anagCompanyTableAdapter.Update(deletedRows));
+ 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)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagCompanySitoTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -15769,31 +13924,11 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
if ((dataSet.HasChanges() == false)) {
return 0;
}
- if (((this._anagImpiantiTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagImpiantiTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
- if (((this._anagCompanyTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagCompanyTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
- if (((this._anagSitiTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagSitiTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
if (((this._anagBilanceTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagBilanceTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._anagOdpTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagOdpTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
if (((this._anagStatiTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagStatiTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
@@ -15824,11 +13959,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._tabStatoOdpUdcTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._tabStatoOdpUdcTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
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" +
@@ -15839,6 +13969,21 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._anagImpiantiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagImpiantiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._anagCompanySitoTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagCompanySitoTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._tabCartelliniTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._tabCartelliniTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -15871,33 +14016,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
try {
// ---- Prepare for update -----------
//
- if ((this._anagImpiantiTableAdapter != null)) {
- revertConnections.Add(this._anagImpiantiTableAdapter, this._anagImpiantiTableAdapter.Connection);
- this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagImpiantiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagImpiantiTableAdapter.Adapter);
- }
- }
- if ((this._anagCompanyTableAdapter != null)) {
- revertConnections.Add(this._anagCompanyTableAdapter, this._anagCompanyTableAdapter.Connection);
- this._anagCompanyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagCompanyTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagCompanyTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagCompanyTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagCompanyTableAdapter.Adapter);
- }
- }
- if ((this._anagSitiTableAdapter != null)) {
- revertConnections.Add(this._anagSitiTableAdapter, this._anagSitiTableAdapter.Connection);
- this._anagSitiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagSitiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagSitiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagSitiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagSitiTableAdapter.Adapter);
- }
- }
if ((this._anagBilanceTableAdapter != null)) {
revertConnections.Add(this._anagBilanceTableAdapter, this._anagBilanceTableAdapter.Connection);
this._anagBilanceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -15907,15 +14025,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
adaptersWithAcceptChangesDuringUpdate.Add(this._anagBilanceTableAdapter.Adapter);
}
}
- if ((this._anagOdpTableAdapter != null)) {
- revertConnections.Add(this._anagOdpTableAdapter, this._anagOdpTableAdapter.Connection);
- this._anagOdpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagOdpTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagOdpTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagOdpTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagOdpTableAdapter.Adapter);
- }
- }
if ((this._anagStatiTableAdapter != null)) {
revertConnections.Add(this._anagStatiTableAdapter, this._anagStatiTableAdapter.Connection);
this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -15970,15 +14079,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
adaptersWithAcceptChangesDuringUpdate.Add(this._impianti2ArticoliTableAdapter.Adapter);
}
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- revertConnections.Add(this._tabStatoOdpUdcTableAdapter, this._tabStatoOdpUdcTableAdapter.Connection);
- this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._tabStatoOdpUdcTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._tabStatoOdpUdcTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._tabStatoOdpUdcTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._tabStatoOdpUdcTableAdapter.Adapter);
- }
- }
if ((this._storicoEventiTableAdapter != null)) {
revertConnections.Add(this._storicoEventiTableAdapter, this._storicoEventiTableAdapter.Connection);
this._storicoEventiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -15997,6 +14097,33 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
adaptersWithAcceptChangesDuringUpdate.Add(this._relazUDCTableAdapter.Adapter);
}
}
+ if ((this._anagImpiantiTableAdapter != null)) {
+ revertConnections.Add(this._anagImpiantiTableAdapter, this._anagImpiantiTableAdapter.Connection);
+ this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagImpiantiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagImpiantiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagImpiantiTableAdapter.Adapter);
+ }
+ }
+ if ((this._anagCompanySitoTableAdapter != null)) {
+ revertConnections.Add(this._anagCompanySitoTableAdapter, this._anagCompanySitoTableAdapter.Connection);
+ this._anagCompanySitoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagCompanySitoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagCompanySitoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagCompanySitoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagCompanySitoTableAdapter.Adapter);
+ }
+ }
+ if ((this._tabCartelliniTableAdapter != null)) {
+ revertConnections.Add(this._tabCartelliniTableAdapter, this._tabCartelliniTableAdapter.Connection);
+ this._tabCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._tabCartelliniTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._tabCartelliniTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._tabCartelliniTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._tabCartelliniTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -16055,26 +14182,10 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
if (workConnOpened) {
workConnection.Close();
}
- if ((this._anagImpiantiTableAdapter != null)) {
- this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImpiantiTableAdapter]));
- this._anagImpiantiTableAdapter.Transaction = null;
- }
- if ((this._anagCompanyTableAdapter != null)) {
- this._anagCompanyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagCompanyTableAdapter]));
- this._anagCompanyTableAdapter.Transaction = null;
- }
- if ((this._anagSitiTableAdapter != null)) {
- this._anagSitiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagSitiTableAdapter]));
- this._anagSitiTableAdapter.Transaction = null;
- }
if ((this._anagBilanceTableAdapter != null)) {
this._anagBilanceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagBilanceTableAdapter]));
this._anagBilanceTableAdapter.Transaction = null;
}
- if ((this._anagOdpTableAdapter != null)) {
- this._anagOdpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagOdpTableAdapter]));
- this._anagOdpTableAdapter.Transaction = null;
- }
if ((this._anagStatiTableAdapter != null)) {
this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiTableAdapter]));
this._anagStatiTableAdapter.Transaction = null;
@@ -16099,10 +14210,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._impianti2ArticoliTableAdapter]));
this._impianti2ArticoliTableAdapter.Transaction = null;
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabStatoOdpUdcTableAdapter]));
- this._tabStatoOdpUdcTableAdapter.Transaction = null;
- }
if ((this._storicoEventiTableAdapter != null)) {
this._storicoEventiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._storicoEventiTableAdapter]));
this._storicoEventiTableAdapter.Transaction = null;
@@ -16111,6 +14218,18 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
this._relazUDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._relazUDCTableAdapter]));
this._relazUDCTableAdapter.Transaction = null;
}
+ if ((this._anagImpiantiTableAdapter != null)) {
+ this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImpiantiTableAdapter]));
+ this._anagImpiantiTableAdapter.Transaction = null;
+ }
+ if ((this._anagCompanySitoTableAdapter != null)) {
+ this._anagCompanySitoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagCompanySitoTableAdapter]));
+ this._anagCompanySitoTableAdapter.Transaction = null;
+ }
+ if ((this._tabCartelliniTableAdapter != null)) {
+ this._tabCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabCartelliniTableAdapter]));
+ this._tabCartelliniTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd
index 817e4fa7..c5a7e60b 100644
--- a/GMW/GMW_data/DS_Applicazione.xsd
+++ b/GMW/GMW_data/DS_Applicazione.xsd
@@ -7,189 +7,6 @@
-
-
-
-
-
- DELETE FROM [dbo].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)))
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagImpianti] ([CodImpianto], [DescrImpianto], [CodCompany], [CodSito]) VALUES (@CodImpianto, @DescrImpianto, @CodCompany, @CodSito);
-SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)
-
-
-
-
-
-
-
-
-
-
- SELECT * FROM dbo.AnagImpianti
-
-
-
-
-
- UPDATE [dbo].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [DescrImpianto] = @DescrImpianto, [CodCompany] = @CodCompany, [CodSito] = @CodSito WHERE (([CodImpianto] = @Original_CodImpianto) AND ((@IsNull_DescrImpianto = 1 AND [DescrImpianto] IS NULL) OR ([DescrImpianto] = @Original_DescrImpianto)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)));
-SELECT CodImpianto, DescrImpianto, CodCompany, CodSito FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT CodImpianto, DescrImpianto, CodCompany, CodSito
-FROM AnagImpianti
-WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[AnagCompany] WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany)))
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagCompany] ([CodCompany], [DescrCompany]) VALUES (@CodCompany, @DescrCompany);
-SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany)
-
-
-
-
-
-
-
-
- SELECT CodCompany, DescrCompany FROM dbo.AnagCompany
-
-
-
-
-
- UPDATE [dbo].[AnagCompany] SET [CodCompany] = @CodCompany, [DescrCompany] = @DescrCompany WHERE (([CodCompany] = @Original_CodCompany) AND ((@IsNull_DescrCompany = 1 AND [DescrCompany] IS NULL) OR ([DescrCompany] = @Original_DescrCompany)));
-SELECT CodCompany, DescrCompany FROM AnagCompany WHERE (CodCompany = @CodCompany)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[AnagSiti] WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito)))
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagSiti] ([CodCompany], [CodSito], [DescrSito]) VALUES (@CodCompany, @CodSito, @DescrSito);
-SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)
-
-
-
-
-
-
-
-
-
- SELECT CodCompany, CodSito, DescrSito FROM dbo.AnagSiti
-
-
-
-
-
- UPDATE [dbo].[AnagSiti] SET [CodCompany] = @CodCompany, [CodSito] = @CodSito, [DescrSito] = @DescrSito WHERE (([CodCompany] = @Original_CodCompany) AND ([CodSito] = @Original_CodSito) AND ((@IsNull_DescrSito = 1 AND [DescrSito] IS NULL) OR ([DescrSito] = @Original_DescrSito)));
-SELECT CodCompany, CodSito, DescrSito FROM AnagSiti WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -280,89 +97,6 @@ WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito)
-
-
-
-
-
- DELETE FROM [dbo].[AnagOdp] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagOdp] ([CodCompany], [ODP], [CodArticolo], [CodDisegno], [Esponente], [Magazzino], [Ubicazione], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @CodArticolo, @CodDisegno, @Esponente, @Magazzino, @Ubicazione, @CreateDate, @ModDate);
-SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM dbo.AnagOdp
-
-
-
-
-
- UPDATE [dbo].[AnagOdp] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [CodArticolo] = @CodArticolo, [CodDisegno] = @CodDisegno, [Esponente] = @Esponente, [Magazzino] = @Magazzino, [Ubicazione] = @Ubicazione, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodDisegno] = @Original_CodDisegno) AND ([Esponente] = @Original_Esponente) AND ([Magazzino] = @Original_Magazzino) AND ([Ubicazione] = @Original_Ubicazione) AND ([CreateDate] = @Original_CreateDate) AND ([ModDate] = @Original_ModDate));
-SELECT CodCompany, ODP, CodArticolo, CodDisegno, Esponente, Magazzino, Ubicazione, CreateDate, ModDate FROM AnagOdp WHERE (CodCompany = @CodCompany) AND (ODP = @ODP)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -782,240 +516,6 @@ SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, Figura
-
-
-
-
-
- DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) 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)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CodImpianto], [Particolare], [CodStato], [CodStampo], [Figura], [FiguraIncisa], [PesoTot], [PesoCad], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CodImpianto, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa, @PesoTot, @PesoCad, @CreateDate, @ModDate);
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.TabStatoOdpUdc
-
-
-
-
-
- UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [CodStato] = @CodStato, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) 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)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)));
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_insNewOdpUdc
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_annullaUDC
-
-
-
-
-
-
-
-
-
-
- dbo.stp_getStatoByUdc
-
-
-
-
-
-
-
-
-
-
- dbo.stp_insNewOdpUdcFull
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_sbloccaUdc
-
-
-
-
-
-
-
-
-
@@ -1205,6 +705,390 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
+
+
+
+
+
+ DELETE FROM [dbo].[AnagImpianti] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescImpianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) AND ((@IsNull_Campionatura = 1 AND [Campionatura] IS NULL) OR ([Campionatura] = @Original_Campionatura)) AND ((@IsNull_TipoLinea = 1 AND [TipoLinea] IS NULL) OR ([TipoLinea] = @Original_TipoLinea)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagImpianti] ([CodImpianto], [CodCS], [DescImpianto], [Campionatura], [TipoLinea]) VALUES (@CodImpianto, @CodCS, @DescImpianto, @Campionatura, @TipoLinea);
+SELECT CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea FROM dbo.AnagImpianti
+
+
+
+
+
+ UPDATE [dbo].[AnagImpianti] SET [CodImpianto] = @CodImpianto, [CodCS] = @CodCS, [DescImpianto] = @DescImpianto, [Campionatura] = @Campionatura, [TipoLinea] = @TipoLinea WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescImpianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) AND ((@IsNull_Campionatura = 1 AND [Campionatura] IS NULL) OR ([Campionatura] = @Original_Campionatura)) AND ((@IsNull_TipoLinea = 1 AND [TipoLinea] IS NULL) OR ([TipoLinea] = @Original_TipoLinea)));
+SELECT CodImpianto, CodCS, DescImpianto, Campionatura, TipoLinea FROM AnagImpianti WHERE (CodImpianto = @CodImpianto)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_getImpiantiByCodCS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[AnagCompanySito] WHERE (([CodCS] = @Original_CodCS) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_DescCompany = 1 AND [DescCompany] IS NULL) OR ([DescCompany] = @Original_DescCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)) AND ((@IsNull_DescSito = 1 AND [DescSito] IS NULL) OR ([DescSito] = @Original_DescSito)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagCompanySito] ([CodCS], [CodCompany], [DescCompany], [CodSito], [DescSito]) VALUES (@CodCS, @CodCompany, @DescCompany, @CodSito, @DescSito);
+SELECT CodCS, CodCompany, DescCompany, CodSito, DescSito FROM AnagCompanySito WHERE (CodCS = @CodCS)
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodCS, CodCompany, DescCompany, CodSito, DescSito FROM dbo.AnagCompanySito
+
+
+
+
+
+ UPDATE [dbo].[AnagCompanySito] SET [CodCS] = @CodCS, [CodCompany] = @CodCompany, [DescCompany] = @DescCompany, [CodSito] = @CodSito, [DescSito] = @DescSito WHERE (([CodCS] = @Original_CodCS) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_DescCompany = 1 AND [DescCompany] IS NULL) OR ([DescCompany] = @Original_DescCompany)) AND ((@IsNull_CodSito = 1 AND [CodSito] IS NULL) OR ([CodSito] = @Original_CodSito)) AND ((@IsNull_DescSito = 1 AND [DescSito] IS NULL) OR ([DescSito] = @Original_DescSito)));
+SELECT CodCS, CodCompany, DescCompany, CodSito, DescSito FROM AnagCompanySito WHERE (CodCS = @CodCS)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[TabCartellini] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) 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)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[TabCartellini] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CodImpianto], [Particolare], [CodStato], [CodStampo], [Figura], [FiguraIncisa], [PesoTot], [PesoCad], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CodImpianto, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa, @PesoTot, @PesoCad, @CreateDate, @ModDate);
+SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM TabCartellini WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.TabCartellini
+
+
+
+
+
+ UPDATE [dbo].[TabCartellini] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [CodStato] = @CodStato, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) 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)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTot)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_PesoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)));
+SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate FROM TabCartellini WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_annullaUDC
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_getStatoByUdc
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_UDC_insNew
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_UDC_insNewFull
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_sbloccaUdc
+
+
+
+
+
+
+
+
+
@@ -1213,87 +1097,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1328,63 +1131,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1593,89 +1339,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1784,30 +1447,177 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1840,12 +1650,6 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
-
-
-
-
-
-
@@ -1855,22 +1659,31 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss
index ed4f83d6..4351a489 100644
--- a/GMW/GMW_data/DS_Applicazione.xss
+++ b/GMW/GMW_data/DS_Applicazione.xss
@@ -4,74 +4,24 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 963
- 337
-
-
- 963
- 262
-
-
-
-
-
-
- 821
- 393
-
-
- 884
- 393
-
-
-
-
-
-
- 1078
- 411
-
-
- 1169
- 411
-
-
-
-
-
-
- 591
- 354
-
-
- 346
- 354
-
-
-
-
+
385
@@ -83,91 +33,7 @@
-
-
-
- 830
- 133
-
-
- 760
- 133
-
-
-
-
-
-
- 368
- 196
-
-
- 368
- 546
-
-
- 467
- 546
-
-
-
-
-
-
- 360
- 588
-
-
- 467
- 588
-
-
-
-
-
-
- 329
- 526
-
-
- 329
- 554
-
-
- 467
- 554
-
-
-
-
-
-
- 867
- 574
-
-
- 767
- 574
-
-
-
-
-
-
- 321
- 722
-
-
- 321
- 602
-
-
- 467
- 602
-
-
-
-
+
1185
@@ -183,15 +49,79 @@
-
+
- 767
- 797
+ 853
+ 64
- 855
- 797
+ 760
+ 64
+
+
+
+
+
+
+ 1156
+ 27
+
+
+ 1077
+ 27
+
+
+
+
+
+
+ 360
+ 196
+
+
+ 360
+ 511
+
+
+ 439
+ 511
+
+
+
+
+
+
+ 360
+ 627
+
+
+ 439
+ 627
+
+
+
+
+
+
+ 867
+ 590
+
+
+ 739
+ 590
+
+
+
+
+
+
+ 353
+ 768
+
+
+ 439
+ 768
diff --git a/GMW/GMW_data/DataProxy.cs b/GMW/GMW_data/DataProxy.cs
index 85dad08b..af1c9c2c 100644
--- a/GMW/GMW_data/DataProxy.cs
+++ b/GMW/GMW_data/DataProxy.cs
@@ -17,12 +17,13 @@ namespace GMW_data
public DS_ApplicazioneTableAdapters.AnagImpiantiTableAdapter taAnagImp;
public DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter taAnagBil;
public DS_ApplicazioneTableAdapters.Impianti2ArticoliTableAdapter taImp2Art;
- public DS_ApplicazioneTableAdapters.TabStatoOdpUdcTableAdapter taStatoOdpUdc;
+ public DS_ApplicazioneTableAdapters.TabCartelliniTableAdapter taCartellini;
public DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter taTipoDich;
public DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter taStatiProd;
public DS_ApplicazioneTableAdapters.AnagImballiTableAdapter taAnagImballi;
public DS_ApplicazioneTableAdapters.v_ArtInProdTableAdapter taArtInProd;
public DS_ApplicazioneTableAdapters.RelazUDCTableAdapter taRelazUDC;
+ public DS_ApplicazioneTableAdapters.AnagCompanySitoTableAdapter taAnagCS;
///
/// init dei table adapters
@@ -34,11 +35,12 @@ namespace GMW_data
taAnagBil = new GMW_data.DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter();
taTipoDich = new GMW_data.DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter();
taImp2Art = new GMW_data.DS_ApplicazioneTableAdapters.Impianti2ArticoliTableAdapter();
- taStatoOdpUdc = new GMW_data.DS_ApplicazioneTableAdapters.TabStatoOdpUdcTableAdapter();
+ taCartellini = new GMW_data.DS_ApplicazioneTableAdapters.TabCartelliniTableAdapter();
taStatiProd = new GMW_data.DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter();
taAnagImballi = new GMW_data.DS_ApplicazioneTableAdapters.AnagImballiTableAdapter();
taArtInProd = new GMW_data.DS_ApplicazioneTableAdapters.v_ArtInProdTableAdapter();
taRelazUDC = new GMW_data.DS_ApplicazioneTableAdapters.RelazUDCTableAdapter();
+ taAnagCS = new GMW_data.DS_ApplicazioneTableAdapters.AnagCompanySitoTableAdapter();
}
///
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -50,12 +52,13 @@ namespace GMW_data
taAnagImp.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taAnagBil.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taImp2Art.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
- taStatoOdpUdc.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taTipoDich.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taStatiProd.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taAnagImballi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taArtInProd.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taRelazUDC.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
+ taAnagCS.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
}
#endregion
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index b2ad5676..30c2e3c8 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/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index b2ad5676..30c2e3c8 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 6cbac452..28d71baa 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/reportExporter.cs b/GMW/GMW_data/reportExporter.cs
index f3bf6756..58758b31 100644
--- a/GMW/GMW_data/reportExporter.cs
+++ b/GMW/GMW_data/reportExporter.cs
@@ -50,10 +50,10 @@ public class reportExporter
switch (tipoReport)
{
//case reportRichiesto.CartellinoPesa:
- // tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
+ // tab = (DataTable)GMW_data.DataProxy.obj.taCartellini.getByUdc(UDC);
// break;
case reportRichiesto.CartellinoTara:
- tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC);
+ tab = (DataTable)GMW_data.DataProxy.obj.taCartellini.stp_getStatoByUdc(UDC);
break;
default:
break;
diff --git a/GMW/GMW_data/reportPrinter.cs b/GMW/GMW_data/reportPrinter.cs
index b4ee6786..4a3b54d2 100644
--- a/GMW/GMW_data/reportPrinter.cs
+++ b/GMW/GMW_data/reportPrinter.cs
@@ -109,7 +109,7 @@ public class reportPrinter
// tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
// break;
case reportRichiesto.CartellinoTara:
- tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC);
+ tab = (DataTable)GMW_data.DataProxy.obj.taCartellini.stp_getStatoByUdc(UDC);
break;
default:
break;