diff --git a/GMW/GMW/Type/ArtInProd.cs b/GMW/GMW/Type/ArtInProd.cs
index 62ba908d..5549e995 100644
--- a/GMW/GMW/Type/ArtInProd.cs
+++ b/GMW/GMW/Type/ArtInProd.cs
@@ -11,40 +11,70 @@ namespace GMW.Type
public ArtInProd()
{
}
- public ArtInProd(DS_Applicazione.Impianti2ArticoliRow riga)
+ public ArtInProd(DS_Applicazione.v_ArtInProdRow riga)
{
+ Cliente = riga.Cliente;
+ Famiglia = riga.Famiglia;
+ Particolare = riga.Particolare;
CodImpianto = riga.CodImpianto;
- CodArticolo = riga.CodArticolo;
InizioProd = riga.InizioProd;
FineProd = riga.FineProd;
+ CodStampo = riga.CodStampo;
+ Figura = riga.Figura;
+ FiguraIncisa = riga.FiguraIncisa;
}
///
- /// Codice impianto
+ /// Cliente
///
- public string CodImpianto { get; set; }
+ public string Cliente { get; set; }
+ ///
+ /// Famiglia
+ ///
+ public string Famiglia { get; set; }
///
/// Codice Articolo
///
- public string CodArticolo { get; set; }
+ public string Particolare { get; set; }
+ ///
+ /// Codice impianto
+ ///
+ public string CodImpianto { get; set; }
///
/// Inizio produzione
///
- public DateTime InizioProd { get; set; }
+ public DateTime InizioProd { get; set; }
///
/// Fine produzione
///
- public DateTime? FineProd { get; set; }
+ public DateTime? FineProd { get; set; }
+ ///
+ /// Codice Stampo
+ ///
+ public string CodStampo { get; set; }
+ ///
+ /// Figura
+ ///
+ public string Figura { get; set; }
+ ///
+ /// Figura Incisa
+ ///
+ public string FiguraIncisa { get; set; }
///
/// inizializza a partire da una riga impianti2articoli
///
///
- public void setFromTabRow(DS_Applicazione.Impianti2ArticoliRow riga)
+ public void setFromTabRow(DS_Applicazione.v_ArtInProdRow riga)
{
+ Cliente = riga.Cliente;
+ Famiglia = riga.Famiglia;
+ Particolare = riga.Particolare;
CodImpianto = riga.CodImpianto;
- CodArticolo = riga.CodArticolo;
InizioProd = riga.InizioProd;
FineProd = riga.FineProd;
+ CodStampo = riga.CodStampo;
+ Figura = riga.Figura;
+ FiguraIncisa = riga.FiguraIncisa;
}
}
}
diff --git a/GMW/GMW/Type/Articolo.cs b/GMW/GMW/Type/Articolo.cs
index ccf88ae9..b23ef1db 100644
--- a/GMW/GMW/Type/Articolo.cs
+++ b/GMW/GMW/Type/Articolo.cs
@@ -10,39 +10,45 @@ namespace GMW.Type
{
public Articolo()
{
- }
+ }
+
public Articolo(DS_Applicazione.AnagArticoliRow riga)
{
- CodArticolo = riga.CodArticolo;
+ Cliente = riga.Cliente;
+ Famiglia = riga.Famiglia;
+ Particolare = riga.Particolare;
DescrArticolo = riga.DescrArticolo;
- Figura = riga.Figura;
}
+ ///
+ /// Cliente
+ ///
+ public string Cliente { get; set; }
+ ///
+ /// Famiglia
+ ///
+ public string Famiglia { get; set; }
///
/// Codice Articolo
///
- public string CodArticolo { get; set; }
-
+ public string Particolare { get; set; }
///
/// Descrizione Articolo
///
public string DescrArticolo { get; set; }
-
- ///
- /// Figura
- ///
- public string Figura { get; set; }
-
+
///
/// inizializza a partire da una riga impianto tipizzata
///
///
public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga)
{
- CodArticolo = riga.CodArticolo;
+ Cliente = riga.Cliente;
+ Famiglia = riga.Famiglia;
+ Particolare = riga.Particolare;
DescrArticolo = riga.DescrArticolo;
- Figura = riga.Figura;
- }
+ }
+
}
}
diff --git a/GMW/GMW/Type/UDC.cs b/GMW/GMW/Type/UDC.cs
index 9c2dd1cb..f507d5b3 100644
--- a/GMW/GMW/Type/UDC.cs
+++ b/GMW/GMW/Type/UDC.cs
@@ -14,6 +14,24 @@ namespace GMW.Type
public UDC()
{
}
+ public UDC(DS_Applicazione.TabStatoOdpUdcRow riga)
+ {
+ CodCompany = riga.CodCompany;
+ ODP = riga.ODP;
+ UDC_code = riga.UDC;
+ Tara = riga.Tara;
+ IdxStato = riga.IdxStato;
+ Qta = riga.Qta;
+ CodImballo = riga.CodImballo;
+ CodImpianto = riga.CodImpianto;
+ Particolare = riga.Particolare;
+ CodStato = riga.CodStato;
+ CodStampo = riga.CodStampo;
+ Figura = riga.Figura;
+ FiguraIncisa = riga.FiguraIncisa;
+ CreateDate = riga.CreateDate;
+ ModDate = riga.ModDate;
+ }
///
/// Codice company
@@ -30,7 +48,7 @@ namespace GMW.Type
///
/// Tara dell'UDC
///
- public float Tara { get; set; }
+ public double Tara { get; set; }
///
/// stato associato all'UDC
///
@@ -44,13 +62,58 @@ namespace GMW.Type
///
public string CodImballo { get; set; }
///
+ /// Codice impianto
+ ///
+ public string CodImpianto { get; set; }
+ ///
+ /// Codice Articolo
+ ///
+ public string Particolare { get; set; }
+ ///
+ /// Codice Stato pezzo (sabbiato, smaterozzato, ...)
+ ///
+ public string CodStato { get; set; }
+ ///
+ /// Codice Stampo
+ ///
+ public string CodStampo { get; set; }
+ ///
+ /// Figura
+ ///
+ public string Figura { get; set; }
+ ///
+ /// Figura Incisa
+ ///
+ public string FiguraIncisa { get; set; }
+ ///
/// Data di creazione dell'UDC
///
public DateTime CreateDate { get; set; }
///
/// Data ultima modifica UDC
///
- public DateTime ModDate { get; set; }
-
+ public DateTime ModDate { get; set; }
+ ///
+ /// inizializza a partire da una riga statoOdpUdc
+ ///
+ ///
+ public void setFromTabRow(DS_Applicazione.TabStatoOdpUdcRow riga)
+ {
+ CodCompany = riga.CodCompany;
+ ODP = riga.ODP;
+ UDC_code= riga.UDC;
+ Tara = riga.Tara;
+ IdxStato = riga.IdxStato;
+ Qta = riga.Qta;
+ CodImballo = riga.CodImballo;
+ CodImpianto = riga.CodImpianto;
+ Particolare = riga.Particolare;
+ CodStato = riga.CodStato;
+ CodStampo = riga.CodStampo;
+ Figura = riga.Figura;
+ FiguraIncisa = riga.FiguraIncisa;
+ CreateDate = riga.CreateDate;
+ ModDate = riga.ModDate;
+ }
}
}
diff --git a/GMW/GMW/Type/elenchi.cs b/GMW/GMW/Type/elenchi.cs
index 66ebed45..59eacf54 100644
--- a/GMW/GMW/Type/elenchi.cs
+++ b/GMW/GMW/Type/elenchi.cs
@@ -82,6 +82,7 @@ namespace GMW.Type
#region area articoli
+
protected Articolo[] _elencoArticoli;
///
@@ -110,7 +111,7 @@ namespace GMW.Type
{
return _elencoArticoli;
}
- }
+ }
#endregion
@@ -190,16 +191,16 @@ namespace GMW.Type
/// legge una tab di tipo Impianti2Articoli e la converte ad un array di tipo ArtInProd[]
///
///
- public void caricaArtInProd(DS_Applicazione.Impianti2ArticoliDataTable tabArt2Imp)
+ public void caricaArtInProd(DS_Applicazione.v_ArtInProdDataTable tabArtInProd)
{
// conto quanti elementi ha la tab x inizializzare l'array...
- int numRighe = tabArt2Imp.Rows.Count;
+ int numRighe = tabArtInProd.Rows.Count;
_elencoArtInProd = new ArtInProd[numRighe];
// prendo un obj impianto da valorizzare di volta in volta...
ArtInProd obj;
for (int i = 0; i < numRighe; i++)
{
- obj = new ArtInProd(tabArt2Imp[i]);
+ obj = new ArtInProd(tabArtInProd[i]);
_elencoArtInProd[i] = obj;
}
}
diff --git a/GMW/GMW/WS/bilance.asmx.cs b/GMW/GMW/WS/bilance.asmx.cs
index 2db4d0f0..ad0f3911 100644
--- a/GMW/GMW/WS/bilance.asmx.cs
+++ b/GMW/GMW/WS/bilance.asmx.cs
@@ -110,33 +110,114 @@ namespace GMW.WS
[WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
public GMW.Type.ArtInProd[] ElencoArtInProd()
{
- gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrProd());
- return gestEl.elencoArtInProd;
- }
- ///
- /// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
- ///
- /// CodImpianto come da anagrafica
- ///
- [WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
- public GMW.Type.ArtInProd[] ElencoArtInProd4Impianto(string CodImpianto)
- {
- gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto));
+ gestEl.caricaArtInProd(DataProxy.obj.taArtInProd.GetData());
return gestEl.elencoArtInProd;
}
+
#endregion
#region area gestione stati & UDC
+ ///
+ /// Richiede la tara per l'UDC indicato
+ ///
+ /// codice dell'UDC
+ /// restituisce la tara salvata in precedenza
+ [WebMethod(Description = "Richiede la tara per l'UDC indicato")]
+ public double UdcInfo_GetTara(string UDC)
+ {
+ double answ = 0;
+ try
+ {
+ answ = DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC)[0].Tara;
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
+ /// Restituisce l'elenco degli UDC parent di quello specificato
+ ///
+ /// codice dell'UDC
+ ///
+ [WebMethod(Description = "Restituisce l'elenco degli UDC parent di quello specificato")]
+ public string[] UdcInfo_GetParentUdcList(string UDC_rich)
+ {
+ int numRec = 1; //calcolare!
+ string[] answ = new string[numRec];
+ // caricare dati!
+ return answ;
+ }
+ ///
+ /// Restituisce l'elenco degli UDC child di quello specificato
+ ///
+ /// codice dell'UDC
+ ///
+ [WebMethod(Description = "Restituisce l'elenco degli UDC child di quello specificato")]
+ public string[] UdcInfo_GetChildUdcList(string UDC_rich)
+ {
+ int numRec = 1; //calcolare!
+ string[] answ = new string[numRec];
+ // caricare dati!!!
+ return answ;
+ }
+ ///
+ /// Restituisce tutti i dati dell'UDC indicato
+ ///
+ /// codice dell'UDC
+ ///
+ [WebMethod(Description = "Restituisce tutti i dati dell'UDC indicato")]
+ public GMW.Type.UDC UdcInfo_GetFullData(string UDC_rich)
+ {
+ GMW.Type.UDC answ = new GMW.Type.UDC();
+ // caricare dati!!!
+ return answ;
+ }
+ ///
+ /// Controlla che il codice imballo inviato sia valido (pre creazione TARA)
+ ///
+ ///
+ ///
+ [WebMethod(Description = "Controlla che il codice imballo inviato sia valido (pre creazione TARA)")]
+ public bool UdcInfo_CheckCodImballo(string CodImballo)
+ {
+ bool answ = false;
+ // cerco se ci sia il codice imballo indicato
+ try
+ {
+ answ = DataProxy.obj.taAnagImballi.stp_getImballoByCod(CodImballo).Rows.Count > 0;
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
+ /// Fornisce l'elenco degli articoli attualmente in produzione per impianto, data e turno
+ ///
+ /// Codice impianto (da anagrafica)
+ /// data di riferimento
+ /// turno di riferimento (1-2-3)
+ ///
+ [WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
+ public GMW.Type.ArtInProd[] UdcInfo_ArtInProd4ImpDataTurno(string CodImpianto, DateTime dataRic, int turnoRic)
+ {
+ // calcolo quante ore sono il turno di riferimento...
+ int oreTurno = 7 + (turnoRic - 1) * 8;
+ // calrolo la data di riferimento come data richeista + ore x turno richiesto
+ DateTime dataRif = dataRic.Date.AddHours(oreTurno);
+ gestEl.caricaArtInProd(DataProxy.obj.taArtInProd.stp_byImpData(CodImpianto, dataRif));
+ return gestEl.elencoArtInProd;
+ }
+
///
/// Fornisce un nuovo codice UDC tipo TARA a partire dalla richiesta e salva i dati
///
/// codice anagrafico della bilanca che effettua la richiesta (codice della pesa)
/// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
- /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
+ /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
/// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
/// codice dell'operatore
/// UDC: codice univoco del contenitore
@@ -169,123 +250,73 @@ namespace GMW.WS
// output risultato
return answ;
}
- ///
- /// Richiede la tara per l'UDC indicato
- ///
- /// codice dell'UDC
- /// restituisce la tara salvata in precedenza
- [WebMethod(Description = "Richiede la tara per l'UDC indicato")]
- public double UdcInfo_GetTara(string UDC)
- {
- double answ = 0;
- try
- {
- answ = DataProxy.obj.taStatoOdpUdc.getByUdc(UDC)[0].Tara;
- }
- catch
- { }
- return answ;
- }
///
- /// Restituisce l'elenco degli UDC parent di quello specificato
- ///
- /// codice dell'UDC
- ///
- [WebMethod(Description = "Restituisce l'elenco degli UDC parent di quello specificato")]
- public string[] UdcInfo_GetParentUdcList(string UDC_rich)
- {
- int numRec = 1; //calcolare!
- string[] answ = new string[numRec];
- // caricare dati!
- return answ;
- }
-
- ///
- /// Restituisce l'elenco degli UDC child di quello specificato
- ///
- /// codice dell'UDC
- ///
- [WebMethod(Description = "Restituisce l'elenco degli UDC child di quello specificato")]
- public string[] UdcInfo_GetChildUdcList(string UDC_rich)
- {
- int numRec = 1; //calcolare!
- string[] answ = new string[numRec];
- // caricare dati!!!
- return answ;
- }
-
- ///
- /// Restituisce tutti i dati dell'UDC indicato
- ///
- /// codice dell'UDC
- ///
- [WebMethod(Description = "Restituisce tutti i dati dell'UDC indicato")]
- public GMW.Type.UDC UdcInfo_GetFullData(string UDC_rich)
- {
- GMW.Type.UDC answ = new GMW.Type.UDC();
- // caricare dati!!!
- return answ;
- }
-
- ///
- /// Crea un nuovo UDC (collegato ad un UDC parent della tara) specificando tutti i dati richiesti
+ /// Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati
///
/// codice anagrafico della bilanca che effettua la richiesta (codice della pesa)
+ /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
+ /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
+ /// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
+ /// codice dell'operatore
/// codice dell'UDC parent (tara)
- /// codice dell'articolo + figura
+ /// codice del particolare
/// numero pezzi associati all'UDC
- /// restituisce true/false a seconda che sia riuscito a salvare o meno i dati
- [WebMethod(Description = "Salva i dati aggiornati per l'UDC in quanto a numero pezzi associati")]
- public bool UdcCall_GetNew_Pesa(string CodBilancia, string UDC_Parent, string CodArticolo, int qta)
+ /// Peso totale rilevato
+ /// Peso unitario rilevato
+ ///
+ ///
+ ///
+ /// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
+ /// Codice dello stampo
+ ///
+ ///
+ /// UDC del nuovo cartellino
+ [WebMethod(Description = "Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
+ public string UdcCall_GetNew_Pesa(string CodBilancia, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore, string UDC_Parent, string Particolare, int qta, float PesoTot, float PesoCad, string CodImpianto, DateTime DataRif, int TurnoRif, string CodStato, string CodStampo, string Figura, string FiguraIncisa)
{
- // init
- bool answ = false;
// ricavo cod company...
string CodCompany = "ND";
+ string CodSito = "ND";
+ string answ = "NA";
try
{
CodCompany = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodCompany;
+ CodSito = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodSito;
}
catch
{
CodCompany = DataProxy.obj.taAnagBil.GetData()[0].CodCompany;
+ CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
}
+ int IdxStato = 20; // hard coded: è la postazione POST fusione di ambivere!!!
// faccio update!
- DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.updateByBilancia(CodCompany, UDC_Parent, CodArticolo, qta);
- // leggo la riga con la qta
+ 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, CodStato, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
+ // leggo la riga
try
{
- decimal qtaIns = tabUdc[0].Qta;
- if (qtaIns == qta)
- {
- // allora ha aggiornato!
- answ = true;
- }
+ answ = tabUdc[0].UDC;
+ // salvo associazioen parent-child tra UDC!
+ DataProxy.obj.taRelazUDC.Insert(UDC_Parent, answ);
}
catch
{ }
return answ;
}
+ ///
+ /// Annulla un dato UDC (se permesso)
+ ///
+ /// codice dell'UDC parent (tara)
+ /// restituisce true/false a seconda che sia riuscito ad annullare l'UDC
+ [WebMethod(Description = "Annulla un dato UDC (se permesso)")]
+ public bool UdcCall_annullaUDC(string UDC_req)
+ {
+ // init
+ bool answ = false;
+ // !!!FARE!!! scrivere annullam ento UDC
+ return answ;
+ }
- ///
- /// Controlla che il codice imballo inviato sia valido (pre creazione TARA)
- ///
- ///
- ///
- [WebMethod(Description = "Controlla che il codice imballo inviato sia valido (pre creazione TARA)")]
- public bool UdcCall_CheckCodImballo(string CodImballo)
- {
- bool answ = false;
- // cerco se ci sia il codice imballo indicato
- try
- {
- answ = DataProxy.obj.taAnagImballi.stp_getImballoByCod(CodImballo).Rows.Count > 0;
- }
- catch
- { }
- return answ;
- }
#endregion
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 6a593379..9d053dda 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 0d80b7a5..97405dfd 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 6a593379..9d053dda 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 246521a3..5509ada6 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll
index 0d0f91ae..0f4a9ad8 100644
Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ
diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache
index 6ecbdec7..9c59908f 100644
Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs
index d37f097a..8f16c3e3 100644
--- a/GMW/GMW_data/DS_Applicazione.Designer.cs
+++ b/GMW/GMW_data/DS_Applicazione.Designer.cs
@@ -25,10 +25,6 @@ namespace GMW_data {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class DS_Applicazione : global::System.Data.DataSet {
- private Impianti2ArticoliDataTable tableImpianti2Articoli;
-
- private AnagArticoliDataTable tableAnagArticoli;
-
private AnagImpiantiDataTable tableAnagImpianti;
private AnagCompanyDataTable tableAnagCompany;
@@ -41,17 +37,23 @@ namespace GMW_data {
private AnagStatiDataTable tableAnagStati;
- private TabStatoOdpUdcDataTable tableTabStatoOdpUdc;
-
private AnagTipoDichiarazDataTable tableAnagTipoDichiaraz;
private AnagStatiProdottoDataTable tableAnagStatiProdotto;
private AnagImballiDataTable tableAnagImballi;
- private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli;
+ private AnagArticoliDataTable tableAnagArticoli;
- private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti;
+ private Impianti2ArticoliDataTable tableImpianti2Articoli;
+
+ private v_ArtInProdDataTable tablev_ArtInProd;
+
+ private TabStatoOdpUdcDataTable tableTabStatoOdpUdc;
+
+ private StoricoEventiDataTable tableStoricoEventi;
+
+ private RelazUDCDataTable tableRelazUDC;
private global::System.Data.DataRelation relationFK_AnagImpianti_AnagSiti;
@@ -61,11 +63,23 @@ namespace GMW_data {
private global::System.Data.DataRelation relationFK_AnagOdp_AnagCompany;
+ 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_AnagImballi;
+ 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.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
@@ -93,12 +107,6 @@ 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["Impianti2Articoli"] != null)) {
- base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
- }
- if ((ds.Tables["AnagArticoli"] != null)) {
- base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
- }
if ((ds.Tables["AnagImpianti"] != null)) {
base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
}
@@ -117,9 +125,6 @@ namespace GMW_data {
if ((ds.Tables["AnagStati"] != null)) {
base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"]));
}
- if ((ds.Tables["TabStatoOdpUdc"] != null)) {
- base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"]));
- }
if ((ds.Tables["AnagTipoDichiaraz"] != null)) {
base.Tables.Add(new AnagTipoDichiarazDataTable(ds.Tables["AnagTipoDichiaraz"]));
}
@@ -129,6 +134,24 @@ namespace GMW_data {
if ((ds.Tables["AnagImballi"] != null)) {
base.Tables.Add(new AnagImballiDataTable(ds.Tables["AnagImballi"]));
}
+ if ((ds.Tables["AnagArticoli"] != null)) {
+ base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
+ }
+ if ((ds.Tables["Impianti2Articoli"] != null)) {
+ base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
+ }
+ if ((ds.Tables["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"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -147,24 +170,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 Impianti2ArticoliDataTable Impianti2Articoli {
- get {
- return this.tableImpianti2Articoli;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagArticoliDataTable AnagArticoli {
- get {
- return this.tableAnagArticoli;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -219,15 +224,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)]
@@ -255,6 +251,60 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagArticoliDataTable AnagArticoli {
+ get {
+ return this.tableAnagArticoli;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Impianti2ArticoliDataTable Impianti2Articoli {
+ get {
+ return this.tableImpianti2Articoli;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public v_ArtInProdDataTable v_ArtInProd {
+ get {
+ return this.tablev_ArtInProd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public TabStatoOdpUdcDataTable TabStatoOdpUdc {
+ get {
+ return this.tableTabStatoOdpUdc;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public StoricoEventiDataTable StoricoEventi {
+ get {
+ return this.tableStoricoEventi;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public RelazUDCDataTable RelazUDC {
+ get {
+ return this.tableRelazUDC;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
@@ -314,12 +364,6 @@ namespace GMW_data {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
- if ((ds.Tables["Impianti2Articoli"] != null)) {
- base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
- }
- if ((ds.Tables["AnagArticoli"] != null)) {
- base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
- }
if ((ds.Tables["AnagImpianti"] != null)) {
base.Tables.Add(new AnagImpiantiDataTable(ds.Tables["AnagImpianti"]));
}
@@ -338,9 +382,6 @@ namespace GMW_data {
if ((ds.Tables["AnagStati"] != null)) {
base.Tables.Add(new AnagStatiDataTable(ds.Tables["AnagStati"]));
}
- if ((ds.Tables["TabStatoOdpUdc"] != null)) {
- base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"]));
- }
if ((ds.Tables["AnagTipoDichiaraz"] != null)) {
base.Tables.Add(new AnagTipoDichiarazDataTable(ds.Tables["AnagTipoDichiaraz"]));
}
@@ -350,6 +391,24 @@ namespace GMW_data {
if ((ds.Tables["AnagImballi"] != null)) {
base.Tables.Add(new AnagImballiDataTable(ds.Tables["AnagImballi"]));
}
+ if ((ds.Tables["AnagArticoli"] != null)) {
+ base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
+ }
+ if ((ds.Tables["Impianti2Articoli"] != null)) {
+ base.Tables.Add(new Impianti2ArticoliDataTable(ds.Tables["Impianti2Articoli"]));
+ }
+ if ((ds.Tables["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"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -380,18 +439,6 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars(bool initTable) {
- this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(base.Tables["Impianti2Articoli"]));
- if ((initTable == true)) {
- if ((this.tableImpianti2Articoli != null)) {
- this.tableImpianti2Articoli.InitVars();
- }
- }
- this.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"]));
- if ((initTable == true)) {
- if ((this.tableAnagArticoli != null)) {
- this.tableAnagArticoli.InitVars();
- }
- }
this.tableAnagImpianti = ((AnagImpiantiDataTable)(base.Tables["AnagImpianti"]));
if ((initTable == true)) {
if ((this.tableAnagImpianti != null)) {
@@ -428,12 +475,6 @@ namespace GMW_data {
this.tableAnagStati.InitVars();
}
}
- this.tableTabStatoOdpUdc = ((TabStatoOdpUdcDataTable)(base.Tables["TabStatoOdpUdc"]));
- if ((initTable == true)) {
- if ((this.tableTabStatoOdpUdc != null)) {
- this.tableTabStatoOdpUdc.InitVars();
- }
- }
this.tableAnagTipoDichiaraz = ((AnagTipoDichiarazDataTable)(base.Tables["AnagTipoDichiaraz"]));
if ((initTable == true)) {
if ((this.tableAnagTipoDichiaraz != null)) {
@@ -452,15 +493,55 @@ namespace GMW_data {
this.tableAnagImballi.InitVars();
}
}
- this.relationFK_Impianti2Articoli_AnagArticoli = this.Relations["FK_Impianti2Articoli_AnagArticoli"];
- this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
+ this.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagArticoli != null)) {
+ this.tableAnagArticoli.InitVars();
+ }
+ }
+ this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(base.Tables["Impianti2Articoli"]));
+ if ((initTable == true)) {
+ if ((this.tableImpianti2Articoli != null)) {
+ this.tableImpianti2Articoli.InitVars();
+ }
+ }
+ this.tablev_ArtInProd = ((v_ArtInProdDataTable)(base.Tables["v_ArtInProd"]));
+ if ((initTable == true)) {
+ if ((this.tablev_ArtInProd != null)) {
+ 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)) {
+ this.tableStoricoEventi.InitVars();
+ }
+ }
+ this.tableRelazUDC = ((RelazUDCDataTable)(base.Tables["RelazUDC"]));
+ if ((initTable == true)) {
+ if ((this.tableRelazUDC != null)) {
+ 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.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_AnagImballi = this.Relations["FK_TabStatoOdpUdc_AnagImballi"];
+ 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"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -470,10 +551,6 @@ namespace GMW_data {
this.Namespace = "http://tempuri.org/DS_Applicazione.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableImpianti2Articoli = new Impianti2ArticoliDataTable();
- base.Tables.Add(this.tableImpianti2Articoli);
- this.tableAnagArticoli = new AnagArticoliDataTable();
- base.Tables.Add(this.tableAnagArticoli);
this.tableAnagImpianti = new AnagImpiantiDataTable();
base.Tables.Add(this.tableAnagImpianti);
this.tableAnagCompany = new AnagCompanyDataTable();
@@ -486,22 +563,24 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagOdp);
this.tableAnagStati = new AnagStatiDataTable();
base.Tables.Add(this.tableAnagStati);
- this.tableTabStatoOdpUdc = new TabStatoOdpUdcDataTable();
- base.Tables.Add(this.tableTabStatoOdpUdc);
this.tableAnagTipoDichiaraz = new AnagTipoDichiarazDataTable();
base.Tables.Add(this.tableAnagTipoDichiaraz);
this.tableAnagStatiProdotto = new AnagStatiProdottoDataTable();
base.Tables.Add(this.tableAnagStatiProdotto);
this.tableAnagImballi = new AnagImballiDataTable();
base.Tables.Add(this.tableAnagImballi);
- this.relationFK_Impianti2Articoli_AnagArticoli = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli", new global::System.Data.DataColumn[] {
- this.tableAnagArticoli.CodArticoloColumn}, new global::System.Data.DataColumn[] {
- this.tableImpianti2Articoli.CodArticoloColumn}, false);
- this.Relations.Add(this.relationFK_Impianti2Articoli_AnagArticoli);
- this.relationFK_Impianti2Articoli_AnagImpianti = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagImpianti", new global::System.Data.DataColumn[] {
- this.tableAnagImpianti.CodImpiantoColumn}, new global::System.Data.DataColumn[] {
- this.tableImpianti2Articoli.CodImpiantoColumn}, false);
- this.Relations.Add(this.relationFK_Impianti2Articoli_AnagImpianti);
+ this.tableAnagArticoli = new AnagArticoliDataTable();
+ base.Tables.Add(this.tableAnagArticoli);
+ this.tableImpianti2Articoli = new Impianti2ArticoliDataTable();
+ 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[] {
@@ -522,6 +601,22 @@ namespace GMW_data {
this.tableAnagCompany.CodCompanyColumn}, new global::System.Data.DataColumn[] {
this.tableAnagOdp.CodCompanyColumn}, false);
this.Relations.Add(this.relationFK_AnagOdp_AnagCompany);
+ 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[] {
@@ -532,20 +627,22 @@ namespace GMW_data {
this.tableAnagStati.IdxStatoColumn}, new global::System.Data.DataColumn[] {
this.tableTabStatoOdpUdc.IdxStatoColumn}, false);
this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStati);
- 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);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeImpianti2Articoli() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagArticoli() {
- return false;
+ 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()]
@@ -578,11 +675,6 @@ namespace GMW_data {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeTabStatoOdpUdc() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeAnagTipoDichiaraz() {
return false;
@@ -598,6 +690,36 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagArticoli() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeImpianti2Articoli() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializev_ArtInProd() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeTabStatoOdpUdc() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeStoricoEventi() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeRelazUDC() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
@@ -651,10 +773,6 @@ namespace GMW_data {
return type;
}
- public delegate void Impianti2ArticoliRowChangeEventHandler(object sender, Impianti2ArticoliRowChangeEvent e);
-
- public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e);
-
public delegate void AnagImpiantiRowChangeEventHandler(object sender, AnagImpiantiRowChangeEvent e);
public delegate void AnagCompanyRowChangeEventHandler(object sender, AnagCompanyRowChangeEvent e);
@@ -667,560 +785,23 @@ namespace GMW_data {
public delegate void AnagStatiRowChangeEventHandler(object sender, AnagStatiRowChangeEvent e);
- public delegate void TabStatoOdpUdcRowChangeEventHandler(object sender, TabStatoOdpUdcRowChangeEvent e);
-
public delegate void AnagTipoDichiarazRowChangeEventHandler(object sender, AnagTipoDichiarazRowChangeEvent e);
public delegate void AnagStatiProdottoRowChangeEventHandler(object sender, AnagStatiProdottoRowChangeEvent e);
public delegate void AnagImballiRowChangeEventHandler(object sender, AnagImballiRowChangeEvent 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 Impianti2ArticoliDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodImpianto;
-
- private global::System.Data.DataColumn columnCodArticolo;
-
- private global::System.Data.DataColumn columnInizioProd;
-
- private global::System.Data.DataColumn columnFineProd;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliDataTable() {
- this.TableName = "Impianti2Articoli";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal Impianti2ArticoliDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected Impianti2ArticoliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodImpiantoColumn {
- get {
- return this.columnCodImpianto;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodArticoloColumn {
- get {
- return this.columnCodArticolo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn InizioProdColumn {
- get {
- return this.columnInizioProd;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn FineProdColumn {
- get {
- return this.columnFineProd;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow this[int index] {
- get {
- return ((Impianti2ArticoliRow)(this.Rows[index]));
- }
- }
-
- public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanging;
-
- public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanged;
-
- public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleting;
-
- public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddImpianti2ArticoliRow(Impianti2ArticoliRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow AddImpianti2ArticoliRow(AnagImpiantiRow parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti, AnagArticoliRow parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli, System.DateTime InizioProd, System.DateTime FineProd) {
- Impianti2ArticoliRow rowImpianti2ArticoliRow = ((Impianti2ArticoliRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- null,
- InizioProd,
- FineProd};
- if ((parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti != null)) {
- columnValuesArray[0] = parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti[0];
- }
- if ((parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli != null)) {
- columnValuesArray[1] = parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli[0];
- }
- rowImpianti2ArticoliRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowImpianti2ArticoliRow);
- return rowImpianti2ArticoliRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow FindByCodImpiantoCodArticoloInizioProd(string CodImpianto, string CodArticolo, System.DateTime InizioProd) {
- return ((Impianti2ArticoliRow)(this.Rows.Find(new object[] {
- CodImpianto,
- CodArticolo,
- InizioProd})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- Impianti2ArticoliDataTable cln = ((Impianti2ArticoliDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new Impianti2ArticoliDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodImpianto = base.Columns["CodImpianto"];
- this.columnCodArticolo = base.Columns["CodArticolo"];
- this.columnInizioProd = base.Columns["InizioProd"];
- this.columnFineProd = base.Columns["FineProd"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodImpianto);
- this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodArticolo);
- this.columnInizioProd = new global::System.Data.DataColumn("InizioProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnInizioProd);
- this.columnFineProd = new global::System.Data.DataColumn("FineProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnFineProd);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodImpianto,
- this.columnCodArticolo,
- this.columnInizioProd}, true));
- this.columnCodImpianto.AllowDBNull = false;
- this.columnCodImpianto.MaxLength = 50;
- this.columnCodArticolo.AllowDBNull = false;
- this.columnCodArticolo.MaxLength = 50;
- this.columnInizioProd.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow NewImpianti2ArticoliRow() {
- return ((Impianti2ArticoliRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new Impianti2ArticoliRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(Impianti2ArticoliRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.Impianti2ArticoliRowChanged != null)) {
- this.Impianti2ArticoliRowChanged(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.Impianti2ArticoliRowChanging != null)) {
- this.Impianti2ArticoliRowChanging(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.Impianti2ArticoliRowDeleted != null)) {
- this.Impianti2ArticoliRowDeleted(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.Impianti2ArticoliRowDeleting != null)) {
- this.Impianti2ArticoliRowDeleting(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveImpianti2ArticoliRow(Impianti2ArticoliRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- DS_Applicazione ds = new DS_Applicazione();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "Impianti2ArticoliDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
+ public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagArticoliDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodArticolo;
-
- private global::System.Data.DataColumn columnDescrArticolo;
-
- private global::System.Data.DataColumn columnFigura;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliDataTable() {
- this.TableName = "AnagArticoli";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagArticoliDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AnagArticoliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodArticoloColumn {
- get {
- return this.columnCodArticolo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrArticoloColumn {
- get {
- return this.columnDescrArticolo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn FiguraColumn {
- get {
- return this.columnFigura;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow this[int index] {
- get {
- return ((AnagArticoliRow)(this.Rows[index]));
- }
- }
-
- public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanging;
-
- public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanged;
-
- public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleting;
-
- public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagArticoliRow(AnagArticoliRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow AddAnagArticoliRow(string CodArticolo, string DescrArticolo, string Figura) {
- AnagArticoliRow rowAnagArticoliRow = ((AnagArticoliRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodArticolo,
- DescrArticolo,
- Figura};
- rowAnagArticoliRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagArticoliRow);
- return rowAnagArticoliRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow FindByCodArticolo(string CodArticolo) {
- return ((AnagArticoliRow)(this.Rows.Find(new object[] {
- CodArticolo})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagArticoliDataTable cln = ((AnagArticoliDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagArticoliDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodArticolo = base.Columns["CodArticolo"];
- this.columnDescrArticolo = base.Columns["DescrArticolo"];
- this.columnFigura = base.Columns["Figura"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodArticolo);
- this.columnDescrArticolo = new global::System.Data.DataColumn("DescrArticolo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrArticolo);
- this.columnFigura = new global::System.Data.DataColumn("Figura", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnFigura);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodArticolo}, true));
- this.columnCodArticolo.AllowDBNull = false;
- this.columnCodArticolo.Unique = true;
- this.columnCodArticolo.MaxLength = 50;
- this.columnDescrArticolo.MaxLength = 50;
- this.columnFigura.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow NewAnagArticoliRow() {
- return ((AnagArticoliRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagArticoliRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagArticoliRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagArticoliRowChanged != null)) {
- this.AnagArticoliRowChanged(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagArticoliRowChanging != null)) {
- this.AnagArticoliRowChanging(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagArticoliRowDeleted != null)) {
- this.AnagArticoliRowDeleted(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagArticoliRowDeleting != null)) {
- this.AnagArticoliRowDeleting(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagArticoliRow(AnagArticoliRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- DS_Applicazione ds = new DS_Applicazione();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "AnagArticoliDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
+ public delegate void Impianti2ArticoliRowChangeEventHandler(object sender, Impianti2ArticoliRowChangeEvent e);
+
+ 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.
@@ -2892,358 +2473,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 columnCreateDate;
-
- private global::System.Data.DataColumn columnModDate;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcDataTable() {
- this.TableName = "TabStatoOdpUdc";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal TabStatoOdpUdcDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected TabStatoOdpUdcDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCompanyColumn {
- get {
- return this.columnCodCompany;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ODPColumn {
- get {
- return this.columnODP;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn UDCColumn {
- get {
- return this.columnUDC;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn TaraColumn {
- get {
- return this.columnTara;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn IdxStatoColumn {
- get {
- return this.columnIdxStato;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn QtaColumn {
- get {
- return this.columnQta;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodImballoColumn {
- get {
- return this.columnCodImballo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CreateDateColumn {
- get {
- return this.columnCreateDate;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ModDateColumn {
- get {
- return this.columnModDate;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow this[int index] {
- get {
- return ((TabStatoOdpUdcRow)(this.Rows[index]));
- }
- }
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanging;
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowChanged;
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleting;
-
- public event TabStatoOdpUdcRowChangeEventHandler TabStatoOdpUdcRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddTabStatoOdpUdcRow(TabStatoOdpUdcRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow AddTabStatoOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati, decimal Qta, AnagImballiRow parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi, System.DateTime CreateDate, System.DateTime ModDate) {
- TabStatoOdpUdcRow rowTabStatoOdpUdcRow = ((TabStatoOdpUdcRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodCompany,
- ODP,
- UDC,
- Tara,
- null,
- Qta,
- null,
- CreateDate,
- ModDate};
- if ((parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati != null)) {
- columnValuesArray[4] = parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati[0];
- }
- if ((parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi != null)) {
- columnValuesArray[6] = parentAnagImballiRowByFK_TabStatoOdpUdc_AnagImballi[0];
- }
- rowTabStatoOdpUdcRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowTabStatoOdpUdcRow);
- return rowTabStatoOdpUdcRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow FindByCodCompanyODPUDC(string CodCompany, string ODP, string UDC) {
- return ((TabStatoOdpUdcRow)(this.Rows.Find(new object[] {
- CodCompany,
- ODP,
- UDC})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- TabStatoOdpUdcDataTable cln = ((TabStatoOdpUdcDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new TabStatoOdpUdcDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodCompany = base.Columns["CodCompany"];
- this.columnODP = base.Columns["ODP"];
- this.columnUDC = base.Columns["UDC"];
- this.columnTara = base.Columns["Tara"];
- this.columnIdxStato = base.Columns["IdxStato"];
- this.columnQta = base.Columns["Qta"];
- this.columnCodImballo = base.Columns["CodImballo"];
- this.columnCreateDate = base.Columns["CreateDate"];
- this.columnModDate = base.Columns["ModDate"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodCompany = new global::System.Data.DataColumn("CodCompany", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodCompany);
- this.columnODP = new global::System.Data.DataColumn("ODP", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnODP);
- this.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnUDC);
- this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnTara);
- this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIdxStato);
- this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnQta);
- this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodImballo);
- this.columnCreateDate = new global::System.Data.DataColumn("CreateDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCreateDate);
- this.columnModDate = new global::System.Data.DataColumn("ModDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnModDate);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodCompany,
- this.columnODP,
- this.columnUDC}, true));
- this.columnCodCompany.AllowDBNull = false;
- this.columnCodCompany.MaxLength = 4;
- this.columnODP.AllowDBNull = false;
- this.columnODP.MaxLength = 20;
- this.columnUDC.AllowDBNull = false;
- this.columnUDC.MaxLength = 50;
- this.columnCodImballo.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow NewTabStatoOdpUdcRow() {
- return ((TabStatoOdpUdcRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new TabStatoOdpUdcRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(TabStatoOdpUdcRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.TabStatoOdpUdcRowChanged != null)) {
- this.TabStatoOdpUdcRowChanged(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.TabStatoOdpUdcRowChanging != null)) {
- this.TabStatoOdpUdcRowChanging(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.TabStatoOdpUdcRowDeleted != null)) {
- this.TabStatoOdpUdcRowDeleted(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.TabStatoOdpUdcRowDeleting != null)) {
- this.TabStatoOdpUdcRowDeleting(this, new TabStatoOdpUdcRowChangeEvent(((TabStatoOdpUdcRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveTabStatoOdpUdcRow(TabStatoOdpUdcRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- 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.
///
@@ -3989,178 +3218,2132 @@ 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 Impianti2ArticoliRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagArticoliDataTable : global::System.Data.TypedTableBase {
- private Impianti2ArticoliDataTable tableImpianti2Articoli;
+ private global::System.Data.DataColumn columnParticolare;
+
+ private global::System.Data.DataColumn columnDescrArticolo;
+
+ private global::System.Data.DataColumn columnCliente;
+
+ private global::System.Data.DataColumn columnFamiglia;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal Impianti2ArticoliRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(this.Table));
+ public AnagArticoliDataTable() {
+ this.TableName = "AnagArticoli";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodImpianto {
- get {
- return ((string)(this[this.tableImpianti2Articoli.CodImpiantoColumn]));
+ internal AnagArticoliDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableImpianti2Articoli.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 AnagArticoliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn ParticolareColumn {
+ get {
+ return this.columnParticolare;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodArticolo {
+ public global::System.Data.DataColumn DescrArticoloColumn {
get {
- return ((string)(this[this.tableImpianti2Articoli.CodArticoloColumn]));
- }
- set {
- this[this.tableImpianti2Articoli.CodArticoloColumn] = value;
+ return this.columnDescrArticolo;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime InizioProd {
+ public global::System.Data.DataColumn ClienteColumn {
get {
- return ((global::System.DateTime)(this[this.tableImpianti2Articoli.InizioProdColumn]));
- }
- set {
- this[this.tableImpianti2Articoli.InizioProdColumn] = value;
+ return this.columnCliente;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime FineProd {
+ public global::System.Data.DataColumn FamigliaColumn {
get {
+ return this.columnFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow this[int index] {
+ get {
+ return ((AnagArticoliRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanging;
+
+ public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanged;
+
+ public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleting;
+
+ public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagArticoliRow(AnagArticoliRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow AddAnagArticoliRow(string Particolare, string DescrArticolo, string Cliente, string Famiglia) {
+ AnagArticoliRow rowAnagArticoliRow = ((AnagArticoliRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ Particolare,
+ DescrArticolo,
+ Cliente,
+ Famiglia};
+ rowAnagArticoliRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagArticoliRow);
+ return rowAnagArticoliRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow FindByParticolare(string Particolare) {
+ return ((AnagArticoliRow)(this.Rows.Find(new object[] {
+ Particolare})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagArticoliDataTable cln = ((AnagArticoliDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagArticoliDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnParticolare = base.Columns["Particolare"];
+ this.columnDescrArticolo = base.Columns["DescrArticolo"];
+ this.columnCliente = base.Columns["Cliente"];
+ this.columnFamiglia = base.Columns["Famiglia"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnParticolare);
+ this.columnDescrArticolo = new global::System.Data.DataColumn("DescrArticolo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrArticolo);
+ this.columnCliente = new global::System.Data.DataColumn("Cliente", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCliente);
+ this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFamiglia);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnParticolare}, true));
+ this.columnParticolare.AllowDBNull = false;
+ this.columnParticolare.Unique = true;
+ this.columnParticolare.MaxLength = 50;
+ this.columnDescrArticolo.MaxLength = 50;
+ this.columnCliente.MaxLength = 50;
+ this.columnFamiglia.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow NewAnagArticoliRow() {
+ return ((AnagArticoliRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagArticoliRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagArticoliRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagArticoliRowChanged != null)) {
+ this.AnagArticoliRowChanged(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagArticoliRowChanging != null)) {
+ this.AnagArticoliRowChanging(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagArticoliRowDeleted != null)) {
+ this.AnagArticoliRowDeleted(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagArticoliRowDeleting != null)) {
+ this.AnagArticoliRowDeleting(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagArticoliRow(AnagArticoliRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Applicazione ds = new DS_Applicazione();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "AnagArticoliDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
- return ((global::System.DateTime)(this[this.tableImpianti2Articoli.FineProdColumn]));
+ 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 \'FineProd\' in table \'Impianti2Articoli\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableImpianti2Articoli.FineProdColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow AnagArticoliRow {
- get {
- return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImpiantiRow AnagImpiantiRow {
- get {
- return ((AnagImpiantiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFineProdNull() {
- return this.IsNull(this.tableImpianti2Articoli.FineProdColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFineProdNull() {
- this[this.tableImpianti2Articoli.FineProdColumn] = global::System.Convert.DBNull;
+ 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 AnagArticoliRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class Impianti2ArticoliDataTable : global::System.Data.TypedTableBase {
- private AnagArticoliDataTable tableAnagArticoli;
+ private global::System.Data.DataColumn columnCodImpianto;
+
+ private global::System.Data.DataColumn columnParticolare;
+
+ private global::System.Data.DataColumn columnInizioProd;
+
+ private global::System.Data.DataColumn columnFineProd;
+
+ private global::System.Data.DataColumn columnCodStampo;
+
+ private global::System.Data.DataColumn columnFigura;
+
+ private global::System.Data.DataColumn columnFiguraIncisa;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagArticoliRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagArticoli = ((AnagArticoliDataTable)(this.Table));
+ public Impianti2ArticoliDataTable() {
+ this.TableName = "Impianti2Articoli";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodArticolo {
- get {
- return ((string)(this[this.tableAnagArticoli.CodArticoloColumn]));
+ internal Impianti2ArticoliDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableAnagArticoli.CodArticoloColumn] = 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 Impianti2ArticoliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodImpiantoColumn {
+ get {
+ return this.columnCodImpianto;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescrArticolo {
+ public global::System.Data.DataColumn ParticolareColumn {
get {
+ return this.columnParticolare;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn InizioProdColumn {
+ get {
+ return this.columnInizioProd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FineProdColumn {
+ get {
+ return this.columnFineProd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodStampoColumn {
+ get {
+ return this.columnCodStampo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FiguraColumn {
+ get {
+ return this.columnFigura;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FiguraIncisaColumn {
+ get {
+ return this.columnFiguraIncisa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRow this[int index] {
+ get {
+ return ((Impianti2ArticoliRow)(this.Rows[index]));
+ }
+ }
+
+ public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanging;
+
+ public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowChanged;
+
+ public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleting;
+
+ public event Impianti2ArticoliRowChangeEventHandler Impianti2ArticoliRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddImpianti2ArticoliRow(Impianti2ArticoliRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRow AddImpianti2ArticoliRow(AnagImpiantiRow parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti, AnagArticoliRow parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli1, System.DateTime InizioProd, System.DateTime FineProd, string CodStampo, string Figura, string FiguraIncisa) {
+ Impianti2ArticoliRow rowImpianti2ArticoliRow = ((Impianti2ArticoliRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ null,
+ InizioProd,
+ FineProd,
+ CodStampo,
+ Figura,
+ FiguraIncisa};
+ if ((parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti != null)) {
+ columnValuesArray[0] = parentAnagImpiantiRowByFK_Impianti2Articoli_AnagImpianti[0];
+ }
+ if ((parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli1 != null)) {
+ columnValuesArray[1] = parentAnagArticoliRowByFK_Impianti2Articoli_AnagArticoli1[0];
+ }
+ rowImpianti2ArticoliRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowImpianti2ArticoliRow);
+ return rowImpianti2ArticoliRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRow FindByCodImpiantoParticolareInizioProd(string CodImpianto, string Particolare, System.DateTime InizioProd) {
+ return ((Impianti2ArticoliRow)(this.Rows.Find(new object[] {
+ CodImpianto,
+ Particolare,
+ InizioProd})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ Impianti2ArticoliDataTable cln = ((Impianti2ArticoliDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Impianti2ArticoliDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodImpianto = base.Columns["CodImpianto"];
+ this.columnParticolare = base.Columns["Particolare"];
+ this.columnInizioProd = base.Columns["InizioProd"];
+ this.columnFineProd = base.Columns["FineProd"];
+ this.columnCodStampo = base.Columns["CodStampo"];
+ this.columnFigura = base.Columns["Figura"];
+ this.columnFiguraIncisa = base.Columns["FiguraIncisa"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodImpianto);
+ this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnParticolare);
+ this.columnInizioProd = new global::System.Data.DataColumn("InizioProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnInizioProd);
+ this.columnFineProd = new global::System.Data.DataColumn("FineProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFineProd);
+ this.columnCodStampo = new global::System.Data.DataColumn("CodStampo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodStampo);
+ this.columnFigura = new global::System.Data.DataColumn("Figura", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFigura);
+ this.columnFiguraIncisa = new global::System.Data.DataColumn("FiguraIncisa", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFiguraIncisa);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodImpianto,
+ this.columnParticolare,
+ this.columnInizioProd}, true));
+ this.columnCodImpianto.AllowDBNull = false;
+ this.columnCodImpianto.MaxLength = 50;
+ this.columnParticolare.AllowDBNull = false;
+ this.columnParticolare.MaxLength = 50;
+ this.columnInizioProd.AllowDBNull = false;
+ this.columnCodStampo.MaxLength = 50;
+ this.columnFigura.MaxLength = 50;
+ this.columnFiguraIncisa.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRow NewImpianti2ArticoliRow() {
+ return ((Impianti2ArticoliRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Impianti2ArticoliRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(Impianti2ArticoliRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Impianti2ArticoliRowChanged != null)) {
+ this.Impianti2ArticoliRowChanged(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Impianti2ArticoliRowChanging != null)) {
+ this.Impianti2ArticoliRowChanging(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Impianti2ArticoliRowDeleted != null)) {
+ this.Impianti2ArticoliRowDeleted(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Impianti2ArticoliRowDeleting != null)) {
+ this.Impianti2ArticoliRowDeleting(this, new Impianti2ArticoliRowChangeEvent(((Impianti2ArticoliRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveImpianti2ArticoliRow(Impianti2ArticoliRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Applicazione ds = new DS_Applicazione();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "Impianti2ArticoliDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
- return ((string)(this[this.tableAnagArticoli.DescrArticoloColumn]));
+ 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 \'DescrArticolo\' in table \'AnagArticoli\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableAnagArticoli.DescrArticoloColumn] = value;
- }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class v_ArtInProdDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCliente;
+
+ private global::System.Data.DataColumn columnFamiglia;
+
+ private global::System.Data.DataColumn columnParticolare;
+
+ private global::System.Data.DataColumn columnCodImpianto;
+
+ private global::System.Data.DataColumn columnInizioProd;
+
+ private global::System.Data.DataColumn columnFineProd;
+
+ private global::System.Data.DataColumn columnCodStampo;
+
+ private global::System.Data.DataColumn columnFigura;
+
+ private global::System.Data.DataColumn columnFiguraIncisa;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public v_ArtInProdDataTable() {
+ this.TableName = "v_ArtInProd";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Figura {
+ internal v_ArtInProdDataTable(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 v_ArtInProdDataTable(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 ClienteColumn {
get {
+ return this.columnCliente;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FamigliaColumn {
+ get {
+ return this.columnFamiglia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn ParticolareColumn {
+ get {
+ return this.columnParticolare;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodImpiantoColumn {
+ get {
+ return this.columnCodImpianto;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn InizioProdColumn {
+ get {
+ return this.columnInizioProd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FineProdColumn {
+ get {
+ return this.columnFineProd;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodStampoColumn {
+ get {
+ return this.columnCodStampo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FiguraColumn {
+ get {
+ return this.columnFigura;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn FiguraIncisaColumn {
+ get {
+ return this.columnFiguraIncisa;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public v_ArtInProdRow this[int index] {
+ get {
+ return ((v_ArtInProdRow)(this.Rows[index]));
+ }
+ }
+
+ public event v_ArtInProdRowChangeEventHandler v_ArtInProdRowChanging;
+
+ public event v_ArtInProdRowChangeEventHandler v_ArtInProdRowChanged;
+
+ public event v_ArtInProdRowChangeEventHandler v_ArtInProdRowDeleting;
+
+ public event v_ArtInProdRowChangeEventHandler v_ArtInProdRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void Addv_ArtInProdRow(v_ArtInProdRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public v_ArtInProdRow Addv_ArtInProdRow(string Cliente, string Famiglia, string Particolare, string CodImpianto, System.DateTime InizioProd, System.DateTime FineProd, string CodStampo, string Figura, string FiguraIncisa) {
+ v_ArtInProdRow rowv_ArtInProdRow = ((v_ArtInProdRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ Cliente,
+ Famiglia,
+ Particolare,
+ CodImpianto,
+ InizioProd,
+ FineProd,
+ CodStampo,
+ Figura,
+ FiguraIncisa};
+ rowv_ArtInProdRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowv_ArtInProdRow);
+ return rowv_ArtInProdRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ v_ArtInProdDataTable cln = ((v_ArtInProdDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new v_ArtInProdDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCliente = base.Columns["Cliente"];
+ this.columnFamiglia = base.Columns["Famiglia"];
+ this.columnParticolare = base.Columns["Particolare"];
+ this.columnCodImpianto = base.Columns["CodImpianto"];
+ this.columnInizioProd = base.Columns["InizioProd"];
+ this.columnFineProd = base.Columns["FineProd"];
+ this.columnCodStampo = base.Columns["CodStampo"];
+ this.columnFigura = base.Columns["Figura"];
+ this.columnFiguraIncisa = base.Columns["FiguraIncisa"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnCliente = new global::System.Data.DataColumn("Cliente", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCliente);
+ this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFamiglia);
+ this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnParticolare);
+ this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodImpianto);
+ this.columnInizioProd = new global::System.Data.DataColumn("InizioProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnInizioProd);
+ this.columnFineProd = new global::System.Data.DataColumn("FineProd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFineProd);
+ this.columnCodStampo = new global::System.Data.DataColumn("CodStampo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodStampo);
+ this.columnFigura = new global::System.Data.DataColumn("Figura", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFigura);
+ this.columnFiguraIncisa = new global::System.Data.DataColumn("FiguraIncisa", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnFiguraIncisa);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("v_ArtInProdKey1", new global::System.Data.DataColumn[] {
+ this.columnParticolare,
+ this.columnCodImpianto,
+ this.columnInizioProd}, false));
+ this.columnCliente.MaxLength = 50;
+ this.columnFamiglia.MaxLength = 50;
+ this.columnParticolare.AllowDBNull = false;
+ this.columnParticolare.MaxLength = 50;
+ this.columnCodImpianto.AllowDBNull = false;
+ this.columnCodImpianto.MaxLength = 50;
+ this.columnInizioProd.AllowDBNull = false;
+ this.columnFineProd.ReadOnly = true;
+ this.columnCodStampo.MaxLength = 50;
+ this.columnFigura.MaxLength = 50;
+ this.columnFiguraIncisa.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public v_ArtInProdRow Newv_ArtInProdRow() {
+ return ((v_ArtInProdRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new v_ArtInProdRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(v_ArtInProdRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.v_ArtInProdRowChanged != null)) {
+ this.v_ArtInProdRowChanged(this, new v_ArtInProdRowChangeEvent(((v_ArtInProdRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.v_ArtInProdRowChanging != null)) {
+ this.v_ArtInProdRowChanging(this, new v_ArtInProdRowChangeEvent(((v_ArtInProdRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.v_ArtInProdRowDeleted != null)) {
+ this.v_ArtInProdRowDeleted(this, new v_ArtInProdRowChangeEvent(((v_ArtInProdRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.v_ArtInProdRowDeleting != null)) {
+ this.v_ArtInProdRowDeleting(this, new v_ArtInProdRowChangeEvent(((v_ArtInProdRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void Removev_ArtInProdRow(v_ArtInProdRow 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 = "v_ArtInProdDataTable";
+ 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.tableAnagArticoli.FiguraColumn]));
+ 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 \'Figura\' in table \'AnagArticoli\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableAnagArticoli.FiguraColumn] = value;
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class TabStatoOdpUdcDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodCompany;
+
+ private global::System.Data.DataColumn columnODP;
+
+ private global::System.Data.DataColumn columnUDC;
+
+ private global::System.Data.DataColumn columnTara;
+
+ private global::System.Data.DataColumn columnIdxStato;
+
+ private global::System.Data.DataColumn columnQta;
+
+ private global::System.Data.DataColumn columnCodImballo;
+
+ private global::System.Data.DataColumn 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 bool IsDescrArticoloNull() {
- return this.IsNull(this.tableAnagArticoli.DescrArticoloColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrArticoloNull() {
- this[this.tableAnagArticoli.DescrArticoloColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsFiguraNull() {
- return this.IsNull(this.tableAnagArticoli.FiguraColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetFiguraNull() {
- this[this.tableAnagArticoli.FiguraColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() {
- if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli"] == null)) {
- return new Impianti2ArticoliRow[0];
+ public global::System.Data.DataColumn ODPColumn {
+ get {
+ return this.columnODP;
}
- else {
- return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli"])));
+ }
+
+ [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.
+ ///
+ [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 StoricoEventiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxEv;
+
+ private global::System.Data.DataColumn columnDataEv;
+
+ private global::System.Data.DataColumn columnCodEvento;
+
+ private global::System.Data.DataColumn columnCodOperatore;
+
+ private global::System.Data.DataColumn columnCodTipoDichiaraz;
+
+ private global::System.Data.DataColumn columnCodCompany;
+
+ private global::System.Data.DataColumn columnODP;
+
+ private global::System.Data.DataColumn columnUDC;
+
+ private global::System.Data.DataColumn columnQta;
+
+ private global::System.Data.DataColumn columnPesoTot;
+
+ private global::System.Data.DataColumn columnPesoCad;
+
+ 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;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiDataTable() {
+ this.TableName = "StoricoEventi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal StoricoEventiDataTable(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 StoricoEventiDataTable(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 IdxEvColumn {
+ get {
+ return this.columnIdxEv;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DataEvColumn {
+ get {
+ return this.columnDataEv;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodEventoColumn {
+ get {
+ return this.columnCodEvento;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodOperatoreColumn {
+ get {
+ return this.columnCodOperatore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodTipoDichiarazColumn {
+ get {
+ return this.columnCodTipoDichiaraz;
+ }
+ }
+
+ [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 QtaColumn {
+ get {
+ return this.columnQta;
+ }
+ }
+
+ [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 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()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiRow this[int index] {
+ get {
+ return ((StoricoEventiRow)(this.Rows[index]));
+ }
+ }
+
+ public event StoricoEventiRowChangeEventHandler StoricoEventiRowChanging;
+
+ public event StoricoEventiRowChangeEventHandler StoricoEventiRowChanged;
+
+ public event StoricoEventiRowChangeEventHandler StoricoEventiRowDeleting;
+
+ public event StoricoEventiRowChangeEventHandler StoricoEventiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddStoricoEventiRow(StoricoEventiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiRow AddStoricoEventiRow(System.DateTime DataEv, string CodEvento, string CodOperatore, AnagTipoDichiarazRow parentAnagTipoDichiarazRowByFK_StoricoEventi_AnagTipoDichiaraz, string CodCompany, string ODP, string UDC, decimal Qta, double PesoTot, double PesoCad, string Particolare, string CodStato, string CodStampo, string Figura, string FiguraIncisa) {
+ StoricoEventiRow rowStoricoEventiRow = ((StoricoEventiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ DataEv,
+ CodEvento,
+ CodOperatore,
+ null,
+ CodCompany,
+ ODP,
+ UDC,
+ Qta,
+ PesoTot,
+ PesoCad,
+ Particolare,
+ CodStato,
+ CodStampo,
+ Figura,
+ FiguraIncisa};
+ if ((parentAnagTipoDichiarazRowByFK_StoricoEventi_AnagTipoDichiaraz != null)) {
+ columnValuesArray[4] = parentAnagTipoDichiarazRowByFK_StoricoEventi_AnagTipoDichiaraz[0];
+ }
+ rowStoricoEventiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowStoricoEventiRow);
+ return rowStoricoEventiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiRow FindByIdxEv(int IdxEv) {
+ return ((StoricoEventiRow)(this.Rows.Find(new object[] {
+ IdxEv})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ StoricoEventiDataTable cln = ((StoricoEventiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new StoricoEventiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnIdxEv = base.Columns["IdxEv"];
+ this.columnDataEv = base.Columns["DataEv"];
+ this.columnCodEvento = base.Columns["CodEvento"];
+ this.columnCodOperatore = base.Columns["CodOperatore"];
+ this.columnCodTipoDichiaraz = base.Columns["CodTipoDichiaraz"];
+ this.columnCodCompany = base.Columns["CodCompany"];
+ this.columnODP = base.Columns["ODP"];
+ this.columnUDC = base.Columns["UDC"];
+ this.columnQta = base.Columns["Qta"];
+ this.columnPesoTot = base.Columns["PesoTot"];
+ this.columnPesoCad = base.Columns["PesoCad"];
+ 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"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnIdxEv = new global::System.Data.DataColumn("IdxEv", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxEv);
+ this.columnDataEv = new global::System.Data.DataColumn("DataEv", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDataEv);
+ this.columnCodEvento = new global::System.Data.DataColumn("CodEvento", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodEvento);
+ this.columnCodOperatore = new global::System.Data.DataColumn("CodOperatore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodOperatore);
+ this.columnCodTipoDichiaraz = new global::System.Data.DataColumn("CodTipoDichiaraz", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodTipoDichiaraz);
+ 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.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQta);
+ 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.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.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxEv}, true));
+ this.columnIdxEv.AutoIncrement = true;
+ this.columnIdxEv.AutoIncrementSeed = -1;
+ this.columnIdxEv.AutoIncrementStep = -1;
+ this.columnIdxEv.AllowDBNull = false;
+ this.columnIdxEv.ReadOnly = true;
+ this.columnIdxEv.Unique = true;
+ this.columnDataEv.AllowDBNull = false;
+ this.columnCodEvento.AllowDBNull = false;
+ this.columnCodEvento.MaxLength = 10;
+ this.columnCodOperatore.MaxLength = 10;
+ this.columnCodTipoDichiaraz.MaxLength = 1;
+ this.columnCodCompany.MaxLength = 4;
+ this.columnODP.MaxLength = 20;
+ this.columnUDC.AllowDBNull = false;
+ this.columnUDC.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 StoricoEventiRow NewStoricoEventiRow() {
+ return ((StoricoEventiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new StoricoEventiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(StoricoEventiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.StoricoEventiRowChanged != null)) {
+ this.StoricoEventiRowChanged(this, new StoricoEventiRowChangeEvent(((StoricoEventiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.StoricoEventiRowChanging != null)) {
+ this.StoricoEventiRowChanging(this, new StoricoEventiRowChangeEvent(((StoricoEventiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.StoricoEventiRowDeleted != null)) {
+ this.StoricoEventiRowDeleted(this, new StoricoEventiRowChangeEvent(((StoricoEventiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.StoricoEventiRowDeleting != null)) {
+ this.StoricoEventiRowDeleting(this, new StoricoEventiRowChangeEvent(((StoricoEventiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveStoricoEventiRow(StoricoEventiRow 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 = "StoricoEventiDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class RelazUDCDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnUDC_parent;
+
+ private global::System.Data.DataColumn columnUDC_child;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCDataTable() {
+ this.TableName = "RelazUDC";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal RelazUDCDataTable(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 RelazUDCDataTable(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 UDC_parentColumn {
+ get {
+ return this.columnUDC_parent;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn UDC_childColumn {
+ get {
+ return this.columnUDC_child;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCRow this[int index] {
+ get {
+ return ((RelazUDCRow)(this.Rows[index]));
+ }
+ }
+
+ public event RelazUDCRowChangeEventHandler RelazUDCRowChanging;
+
+ public event RelazUDCRowChangeEventHandler RelazUDCRowChanged;
+
+ public event RelazUDCRowChangeEventHandler RelazUDCRowDeleting;
+
+ public event RelazUDCRowChangeEventHandler RelazUDCRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddRelazUDCRow(RelazUDCRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCRow AddRelazUDCRow(string UDC_parent, string UDC_child) {
+ RelazUDCRow rowRelazUDCRow = ((RelazUDCRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ UDC_parent,
+ UDC_child};
+ rowRelazUDCRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowRelazUDCRow);
+ return rowRelazUDCRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCRow FindByUDC_parentUDC_child(string UDC_parent, string UDC_child) {
+ return ((RelazUDCRow)(this.Rows.Find(new object[] {
+ UDC_parent,
+ UDC_child})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ RelazUDCDataTable cln = ((RelazUDCDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new RelazUDCDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnUDC_parent = base.Columns["UDC_parent"];
+ this.columnUDC_child = base.Columns["UDC_child"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnUDC_parent = new global::System.Data.DataColumn("UDC_parent", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUDC_parent);
+ this.columnUDC_child = new global::System.Data.DataColumn("UDC_child", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnUDC_child);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnUDC_parent,
+ this.columnUDC_child}, true));
+ this.columnUDC_parent.AllowDBNull = false;
+ this.columnUDC_parent.MaxLength = 50;
+ this.columnUDC_child.AllowDBNull = false;
+ this.columnUDC_child.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCRow NewRelazUDCRow() {
+ return ((RelazUDCRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new RelazUDCRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(RelazUDCRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.RelazUDCRowChanged != null)) {
+ this.RelazUDCRowChanged(this, new RelazUDCRowChangeEvent(((RelazUDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.RelazUDCRowChanging != null)) {
+ this.RelazUDCRowChanging(this, new RelazUDCRowChangeEvent(((RelazUDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.RelazUDCRowDeleted != null)) {
+ this.RelazUDCRowDeleted(this, new RelazUDCRowChangeEvent(((RelazUDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.RelazUDCRowDeleting != null)) {
+ this.RelazUDCRowDeleting(this, new RelazUDCRowChangeEvent(((RelazUDCRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveRelazUDCRow(RelazUDCRow 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 = "RelazUDCDataTable";
+ 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;
+ }
}
///
@@ -4738,6 +5921,667 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class AnagTipoDichiarazRow : global::System.Data.DataRow {
+
+ private AnagTipoDichiarazDataTable tableAnagTipoDichiaraz;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagTipoDichiarazRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagTipoDichiaraz = ((AnagTipoDichiarazDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodTipoDichiaraz {
+ get {
+ return ((string)(this[this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn]));
+ }
+ set {
+ this[this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescrTipoDichiaraz {
+ get {
+ try {
+ return ((string)(this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescrTipoDichiaraz\' in table \'AnagTipoDichiaraz\' is DBNull." +
+ "", e);
+ }
+ }
+ set {
+ this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescrTipoDichiarazNull() {
+ return this.IsNull(this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescrTipoDichiarazNull() {
+ this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiRow[] GetStoricoEventiRows() {
+ if ((this.Table.ChildRelations["FK_StoricoEventi_AnagTipoDichiaraz"] == null)) {
+ return new StoricoEventiRow[0];
+ }
+ else {
+ return ((StoricoEventiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StoricoEventi_AnagTipoDichiaraz"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class AnagStatiProdottoRow : global::System.Data.DataRow {
+
+ private AnagStatiProdottoDataTable tableAnagStatiProdotto;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagStatiProdottoRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagStatiProdotto = ((AnagStatiProdottoDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodStato {
+ get {
+ return ((string)(this[this.tableAnagStatiProdotto.CodStatoColumn]));
+ }
+ set {
+ this[this.tableAnagStatiProdotto.CodStatoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescStato {
+ get {
+ try {
+ return ((string)(this[this.tableAnagStatiProdotto.DescStatoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescStato\' in table \'AnagStatiProdotto\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagStatiProdotto.DescStatoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescStatoNull() {
+ return this.IsNull(this.tableAnagStatiProdotto.DescStatoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescStatoNull() {
+ this[this.tableAnagStatiProdotto.DescStatoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"] == null)) {
+ return new TabStatoOdpUdcRow[0];
+ }
+ else {
+ return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class AnagImballiRow : global::System.Data.DataRow {
+
+ private AnagImballiDataTable tableAnagImballi;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagImballiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagImballi = ((AnagImballiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImballo {
+ get {
+ return ((string)(this[this.tableAnagImballi.CodImballoColumn]));
+ }
+ set {
+ this[this.tableAnagImballi.CodImballoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescImballo {
+ get {
+ try {
+ return ((string)(this[this.tableAnagImballi.DescImballoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescImballo\' in table \'AnagImballi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagImballi.DescImballoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescImballoNull() {
+ return this.IsNull(this.tableAnagImballi.DescImballoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescImballoNull() {
+ this[this.tableAnagImballi.DescImballoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi"] == null)) {
+ return new TabStatoOdpUdcRow[0];
+ }
+ else {
+ return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class AnagArticoliRow : global::System.Data.DataRow {
+
+ private AnagArticoliDataTable tableAnagArticoli;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagArticoliRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagArticoli = ((AnagArticoliDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Particolare {
+ get {
+ return ((string)(this[this.tableAnagArticoli.ParticolareColumn]));
+ }
+ set {
+ this[this.tableAnagArticoli.ParticolareColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescrArticolo {
+ get {
+ try {
+ return ((string)(this[this.tableAnagArticoli.DescrArticoloColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescrArticolo\' in table \'AnagArticoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagArticoli.DescrArticoloColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Cliente {
+ get {
+ try {
+ return ((string)(this[this.tableAnagArticoli.ClienteColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Cliente\' in table \'AnagArticoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagArticoli.ClienteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Famiglia {
+ get {
+ try {
+ return ((string)(this[this.tableAnagArticoli.FamigliaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Famiglia\' in table \'AnagArticoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagArticoli.FamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescrArticoloNull() {
+ return this.IsNull(this.tableAnagArticoli.DescrArticoloColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescrArticoloNull() {
+ this[this.tableAnagArticoli.DescrArticoloColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsClienteNull() {
+ return this.IsNull(this.tableAnagArticoli.ClienteColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetClienteNull() {
+ this[this.tableAnagArticoli.ClienteColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFamigliaNull() {
+ return this.IsNull(this.tableAnagArticoli.FamigliaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFamigliaNull() {
+ this[this.tableAnagArticoli.FamigliaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRow[] GetImpianti2ArticoliRows() {
+ if ((this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli1"] == null)) {
+ return new Impianti2ArticoliRow[0];
+ }
+ else {
+ return ((Impianti2ArticoliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Impianti2Articoli_AnagArticoli1"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
+ if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagArticoli"] == null)) {
+ return new TabStatoOdpUdcRow[0];
+ }
+ else {
+ return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagArticoli"])));
+ }
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class Impianti2ArticoliRow : global::System.Data.DataRow {
+
+ private Impianti2ArticoliDataTable tableImpianti2Articoli;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal Impianti2ArticoliRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableImpianti2Articoli = ((Impianti2ArticoliDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImpianto {
+ get {
+ return ((string)(this[this.tableImpianti2Articoli.CodImpiantoColumn]));
+ }
+ set {
+ this[this.tableImpianti2Articoli.CodImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Particolare {
+ get {
+ return ((string)(this[this.tableImpianti2Articoli.ParticolareColumn]));
+ }
+ set {
+ this[this.tableImpianti2Articoli.ParticolareColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime InizioProd {
+ get {
+ return ((global::System.DateTime)(this[this.tableImpianti2Articoli.InizioProdColumn]));
+ }
+ set {
+ this[this.tableImpianti2Articoli.InizioProdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime FineProd {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableImpianti2Articoli.FineProdColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'FineProd\' in table \'Impianti2Articoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpianti2Articoli.FineProdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodStampo {
+ get {
+ try {
+ return ((string)(this[this.tableImpianti2Articoli.CodStampoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'Impianti2Articoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpianti2Articoli.CodStampoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Figura {
+ get {
+ try {
+ return ((string)(this[this.tableImpianti2Articoli.FiguraColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'Impianti2Articoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpianti2Articoli.FiguraColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string FiguraIncisa {
+ get {
+ try {
+ return ((string)(this[this.tableImpianti2Articoli.FiguraIncisaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'FiguraIncisa\' in table \'Impianti2Articoli\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableImpianti2Articoli.FiguraIncisaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow AnagArticoliRow {
+ get {
+ return ((AnagArticoliRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagArticoli1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImpiantiRow AnagImpiantiRow {
+ get {
+ return ((AnagImpiantiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Impianti2Articoli_AnagImpianti"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFineProdNull() {
+ return this.IsNull(this.tableImpianti2Articoli.FineProdColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFineProdNull() {
+ this[this.tableImpianti2Articoli.FineProdColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodStampoNull() {
+ return this.IsNull(this.tableImpianti2Articoli.CodStampoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodStampoNull() {
+ this[this.tableImpianti2Articoli.CodStampoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraNull() {
+ return this.IsNull(this.tableImpianti2Articoli.FiguraColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraNull() {
+ this[this.tableImpianti2Articoli.FiguraColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraIncisaNull() {
+ return this.IsNull(this.tableImpianti2Articoli.FiguraIncisaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraIncisaNull() {
+ this[this.tableImpianti2Articoli.FiguraIncisaColumn] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class v_ArtInProdRow : global::System.Data.DataRow {
+
+ private v_ArtInProdDataTable tablev_ArtInProd;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal v_ArtInProdRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablev_ArtInProd = ((v_ArtInProdDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Cliente {
+ get {
+ try {
+ return ((string)(this[this.tablev_ArtInProd.ClienteColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Cliente\' in table \'v_ArtInProd\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_ArtInProd.ClienteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Famiglia {
+ get {
+ try {
+ return ((string)(this[this.tablev_ArtInProd.FamigliaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Famiglia\' in table \'v_ArtInProd\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_ArtInProd.FamigliaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Particolare {
+ get {
+ return ((string)(this[this.tablev_ArtInProd.ParticolareColumn]));
+ }
+ set {
+ this[this.tablev_ArtInProd.ParticolareColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImpianto {
+ get {
+ return ((string)(this[this.tablev_ArtInProd.CodImpiantoColumn]));
+ }
+ set {
+ this[this.tablev_ArtInProd.CodImpiantoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime InizioProd {
+ get {
+ return ((global::System.DateTime)(this[this.tablev_ArtInProd.InizioProdColumn]));
+ }
+ set {
+ this[this.tablev_ArtInProd.InizioProdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime FineProd {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tablev_ArtInProd.FineProdColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'FineProd\' in table \'v_ArtInProd\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_ArtInProd.FineProdColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodStampo {
+ get {
+ try {
+ return ((string)(this[this.tablev_ArtInProd.CodStampoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'v_ArtInProd\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_ArtInProd.CodStampoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Figura {
+ get {
+ try {
+ return ((string)(this[this.tablev_ArtInProd.FiguraColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'v_ArtInProd\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_ArtInProd.FiguraColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string FiguraIncisa {
+ get {
+ try {
+ return ((string)(this[this.tablev_ArtInProd.FiguraIncisaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'FiguraIncisa\' in table \'v_ArtInProd\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_ArtInProd.FiguraIncisaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsClienteNull() {
+ return this.IsNull(this.tablev_ArtInProd.ClienteColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetClienteNull() {
+ this[this.tablev_ArtInProd.ClienteColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFamigliaNull() {
+ return this.IsNull(this.tablev_ArtInProd.FamigliaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFamigliaNull() {
+ this[this.tablev_ArtInProd.FamigliaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFineProdNull() {
+ return this.IsNull(this.tablev_ArtInProd.FineProdColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFineProdNull() {
+ this[this.tablev_ArtInProd.FineProdColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodStampoNull() {
+ return this.IsNull(this.tablev_ArtInProd.CodStampoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodStampoNull() {
+ this[this.tablev_ArtInProd.CodStampoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraNull() {
+ return this.IsNull(this.tablev_ArtInProd.FiguraColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraNull() {
+ this[this.tablev_ArtInProd.FiguraColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraIncisaNull() {
+ return this.IsNull(this.tablev_ArtInProd.FiguraIncisaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraIncisaNull() {
+ this[this.tablev_ArtInProd.FiguraIncisaColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -4842,6 +6686,126 @@ namespace GMW_data {
}
}
+ [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 {
@@ -4872,6 +6836,26 @@ namespace GMW_data {
}
}
+ [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 {
@@ -4893,12 +6877,12 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow AnagImballiRow {
+ public AnagStatiProdottoRow AnagStatiProdottoRow {
get {
- return ((AnagImballiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagImballi"])));
+ return ((AnagStatiProdottoRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"])));
}
set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagImballi"]);
+ this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagStatiProdotto"]);
}
}
@@ -4942,6 +6926,86 @@ namespace GMW_data {
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);
@@ -4961,106 +7025,390 @@ namespace GMW_data {
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.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagTipoDichiarazRow : global::System.Data.DataRow {
+ public partial class StoricoEventiRow : global::System.Data.DataRow {
- private AnagTipoDichiarazDataTable tableAnagTipoDichiaraz;
+ private StoricoEventiDataTable tableStoricoEventi;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagTipoDichiarazRow(global::System.Data.DataRowBuilder rb) :
+ internal StoricoEventiRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
- this.tableAnagTipoDichiaraz = ((AnagTipoDichiarazDataTable)(this.Table));
+ this.tableStoricoEventi = ((StoricoEventiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int IdxEv {
+ get {
+ return ((int)(this[this.tableStoricoEventi.IdxEvColumn]));
+ }
+ set {
+ this[this.tableStoricoEventi.IdxEvColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime DataEv {
+ get {
+ return ((global::System.DateTime)(this[this.tableStoricoEventi.DataEvColumn]));
+ }
+ set {
+ this[this.tableStoricoEventi.DataEvColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodEvento {
+ get {
+ return ((string)(this[this.tableStoricoEventi.CodEventoColumn]));
+ }
+ set {
+ this[this.tableStoricoEventi.CodEventoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodOperatore {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.CodOperatoreColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodOperatore\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.CodOperatoreColumn] = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CodTipoDichiaraz {
- get {
- return ((string)(this[this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn]));
- }
- set {
- this[this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescrTipoDichiaraz {
get {
try {
- return ((string)(this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn]));
+ return ((string)(this[this.tableStoricoEventi.CodTipoDichiarazColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescrTipoDichiaraz\' in table \'AnagTipoDichiaraz\' is DBNull." +
- "", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'CodTipoDichiaraz\' in table \'StoricoEventi\' is DBNull.", e);
}
}
set {
- this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn] = value;
+ this[this.tableStoricoEventi.CodTipoDichiarazColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescrTipoDichiarazNull() {
- return this.IsNull(this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn);
+ public string CodCompany {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.CodCompanyColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodCompany\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.CodCompanyColumn] = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrTipoDichiarazNull() {
- this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn] = global::System.Convert.DBNull;
+ public string ODP {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.ODPColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'ODP\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.ODPColumn] = value;
+ }
}
- }
-
- ///
- ///Represents strongly named DataRow class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagStatiProdottoRow : global::System.Data.DataRow {
-
- private AnagStatiProdottoDataTable tableAnagStatiProdotto;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagStatiProdottoRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagStatiProdotto = ((AnagStatiProdottoDataTable)(this.Table));
+ public string UDC {
+ get {
+ return ((string)(this[this.tableStoricoEventi.UDCColumn]));
+ }
+ set {
+ this[this.tableStoricoEventi.UDCColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public decimal Qta {
+ get {
+ try {
+ return ((decimal)(this[this.tableStoricoEventi.QtaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.QtaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double PesoTot {
+ get {
+ try {
+ return ((double)(this[this.tableStoricoEventi.PesoTotColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'PesoTot\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.PesoTotColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double PesoCad {
+ get {
+ try {
+ return ((double)(this[this.tableStoricoEventi.PesoCadColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'PesoCad\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.PesoCadColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string Particolare {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.ParticolareColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Particolare\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.ParticolareColumn] = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CodStato {
- get {
- return ((string)(this[this.tableAnagStatiProdotto.CodStatoColumn]));
- }
- set {
- this[this.tableAnagStatiProdotto.CodStatoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescStato {
get {
try {
- return ((string)(this[this.tableAnagStatiProdotto.DescStatoColumn]));
+ return ((string)(this[this.tableStoricoEventi.CodStatoColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescStato\' in table \'AnagStatiProdotto\' is DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'CodStato\' in table \'StoricoEventi\' is DBNull.", e);
}
}
set {
- this[this.tableAnagStatiProdotto.DescStatoColumn] = value;
+ this[this.tableStoricoEventi.CodStatoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescStatoNull() {
- return this.IsNull(this.tableAnagStatiProdotto.DescStatoColumn);
+ public string CodStampo {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.CodStampoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.CodStampoColumn] = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescStatoNull() {
- this[this.tableAnagStatiProdotto.DescStatoColumn] = global::System.Convert.DBNull;
+ public string Figura {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.FiguraColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.FiguraColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string FiguraIncisa {
+ get {
+ try {
+ return ((string)(this[this.tableStoricoEventi.FiguraIncisaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'FiguraIncisa\' in table \'StoricoEventi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableStoricoEventi.FiguraIncisaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagTipoDichiarazRow AnagTipoDichiarazRow {
+ get {
+ return ((AnagTipoDichiarazRow)(this.GetParentRow(this.Table.ParentRelations["FK_StoricoEventi_AnagTipoDichiaraz"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_StoricoEventi_AnagTipoDichiaraz"]);
+ }
+ }
+
+ [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);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodOperatoreNull() {
+ this[this.tableStoricoEventi.CodOperatoreColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodTipoDichiarazNull() {
+ return this.IsNull(this.tableStoricoEventi.CodTipoDichiarazColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodTipoDichiarazNull() {
+ this[this.tableStoricoEventi.CodTipoDichiarazColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodCompanyNull() {
+ return this.IsNull(this.tableStoricoEventi.CodCompanyColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodCompanyNull() {
+ this[this.tableStoricoEventi.CodCompanyColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsODPNull() {
+ return this.IsNull(this.tableStoricoEventi.ODPColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetODPNull() {
+ this[this.tableStoricoEventi.ODPColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsQtaNull() {
+ return this.IsNull(this.tableStoricoEventi.QtaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetQtaNull() {
+ this[this.tableStoricoEventi.QtaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsPesoTotNull() {
+ return this.IsNull(this.tableStoricoEventi.PesoTotColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetPesoTotNull() {
+ this[this.tableStoricoEventi.PesoTotColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsPesoCadNull() {
+ return this.IsNull(this.tableStoricoEventi.PesoCadColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetPesoCadNull() {
+ this[this.tableStoricoEventi.PesoCadColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsParticolareNull() {
+ return this.IsNull(this.tableStoricoEventi.ParticolareColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetParticolareNull() {
+ this[this.tableStoricoEventi.ParticolareColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodStatoNull() {
+ return this.IsNull(this.tableStoricoEventi.CodStatoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodStatoNull() {
+ this[this.tableStoricoEventi.CodStatoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodStampoNull() {
+ return this.IsNull(this.tableStoricoEventi.CodStampoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodStampoNull() {
+ this[this.tableStoricoEventi.CodStampoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraNull() {
+ return this.IsNull(this.tableStoricoEventi.FiguraColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraNull() {
+ this[this.tableStoricoEventi.FiguraColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsFiguraIncisaNull() {
+ return this.IsNull(this.tableStoricoEventi.FiguraIncisaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetFiguraIncisaNull() {
+ this[this.tableStoricoEventi.FiguraIncisaColumn] = global::System.Convert.DBNull;
}
}
@@ -5068,120 +7416,33 @@ namespace GMW_data {
///Represents strongly named DataRow class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagImballiRow : global::System.Data.DataRow {
+ public partial class RelazUDCRow : global::System.Data.DataRow {
- private AnagImballiDataTable tableAnagImballi;
+ private RelazUDCDataTable tableRelazUDC;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagImballiRow(global::System.Data.DataRowBuilder rb) :
+ internal RelazUDCRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
- this.tableAnagImballi = ((AnagImballiDataTable)(this.Table));
+ this.tableRelazUDC = ((RelazUDCDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodImballo {
+ public string UDC_parent {
get {
- return ((string)(this[this.tableAnagImballi.CodImballoColumn]));
+ return ((string)(this[this.tableRelazUDC.UDC_parentColumn]));
}
set {
- this[this.tableAnagImballi.CodImballoColumn] = value;
+ this[this.tableRelazUDC.UDC_parentColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescImballo {
+ public string UDC_child {
get {
- try {
- return ((string)(this[this.tableAnagImballi.DescImballoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescImballo\' in table \'AnagImballi\' is DBNull.", e);
- }
+ return ((string)(this[this.tableRelazUDC.UDC_childColumn]));
}
set {
- this[this.tableAnagImballi.DescImballoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescImballoNull() {
- return this.IsNull(this.tableAnagImballi.DescImballoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescImballoNull() {
- this[this.tableAnagImballi.DescImballoColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() {
- if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi"] == null)) {
- return new TabStatoOdpUdcRow[0];
- }
- else {
- return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagImballi"])));
- }
- }
- }
-
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class Impianti2ArticoliRowChangeEvent : global::System.EventArgs {
-
- private Impianti2ArticoliRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRowChangeEvent(Impianti2ArticoliRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagArticoliRowChangeEvent : global::System.EventArgs {
-
- private AnagArticoliRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRowChangeEvent(AnagArticoliRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
+ this[this.tableRelazUDC.UDC_childColumn] = value;
}
}
}
@@ -5372,37 +7633,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
///
@@ -5495,776 +7725,197 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagArticoliRowChangeEvent : global::System.EventArgs {
+
+ private AnagArticoliRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRowChangeEvent(AnagArticoliRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class Impianti2ArticoliRowChangeEvent : global::System.EventArgs {
+
+ private Impianti2ArticoliRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRowChangeEvent(Impianti2ArticoliRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class v_ArtInProdRowChangeEvent : global::System.EventArgs {
+
+ private v_ArtInProdRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public v_ArtInProdRowChangeEvent(v_ArtInProdRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public v_ArtInProdRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class TabStatoOdpUdcRowChangeEvent : global::System.EventArgs {
+
+ private TabStatoOdpUdcRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabStatoOdpUdcRowChangeEvent(TabStatoOdpUdcRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TabStatoOdpUdcRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class StoricoEventiRowChangeEvent : global::System.EventArgs {
+
+ private StoricoEventiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiRowChangeEvent(StoricoEventiRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public StoricoEventiRow 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 RelazUDCRowChangeEvent : global::System.EventArgs {
+
+ private RelazUDCRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCRowChangeEvent(RelazUDCRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public RelazUDCRow 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 Impianti2ArticoliTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Impianti2ArticoliTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "Impianti2Articoli";
- tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
- tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
- tableMapping.ColumnMappings.Add("InizioProd", "InizioProd");
- tableMapping.ColumnMappings.Add("FineProd", "FineProd");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [CodArticolo], [InizioProd], [FineProd]) VALUES (@CodImpianto, @CodArticolo, @InizioProd, @FineProd);
-SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [CodArticolo] = @CodArticolo, [InizioProd] = @InizioProd, [FineProd] = @FineProd WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)));
-SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM dbo.Impianti2Articoli";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year" +
- ", 2, GETDATE())) AS FineProd\r\nFROM Impianti2Articoli\r\nWHERE (F" +
- "ineProd IS NULL) AND (CodImpianto = @CodImpianto)";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", 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 = "SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year" +
- ", 2, GETDATE())) AS FineProd\r\nFROM Impianti2Articoli\r\nWHERE (F" +
- "ineProd IS NULL)";
- this._commandCollection[2].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.Impianti2ArticoliDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.Impianti2ArticoliDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_Applicazione.Impianti2ArticoliDataTable getCurrByImpianto(string CodImpianto) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_Applicazione.Impianti2ArticoliDataTable getCurrProd() {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.Impianti2ArticoliDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione dataSet) {
- return this.Adapter.Update(dataSet, "Impianti2Articoli");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd) {
- if ((Original_CodImpianto == null)) {
- throw new global::System.ArgumentNullException("Original_CodImpianto");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_CodArticolo == null)) {
- throw new global::System.ArgumentNullException("Original_CodArticolo");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodArticolo));
- }
- this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_InizioProd));
- if ((Original_FineProd.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_FineProd.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodImpianto, string CodArticolo, System.DateTime InizioProd, global::System.Nullable FineProd) {
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- if ((CodArticolo == null)) {
- throw new global::System.ArgumentNullException("CodArticolo");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo));
- }
- this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioProd));
- if ((FineProd.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodImpianto, string CodArticolo, System.DateTime InizioProd, global::System.Nullable FineProd, string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd) {
- if ((CodImpianto == null)) {
- throw new global::System.ArgumentNullException("CodImpianto");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
- }
- if ((CodArticolo == null)) {
- throw new global::System.ArgumentNullException("CodArticolo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo));
- }
- this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioProd));
- if ((FineProd.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((Original_CodImpianto == null)) {
- throw new global::System.ArgumentNullException("Original_CodImpianto");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodImpianto));
- }
- if ((Original_CodArticolo == null)) {
- throw new global::System.ArgumentNullException("Original_CodArticolo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodArticolo));
- }
- this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_InizioProd));
- if ((Original_FineProd.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_FineProd.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(global::System.Nullable FineProd, string Original_CodImpianto, string Original_CodArticolo, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd) {
- return this.Update(Original_CodImpianto, Original_CodArticolo, Original_InizioProd, FineProd, Original_CodImpianto, Original_CodArticolo, Original_InizioProd, Original_FineProd);
- }
- }
-
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AnagArticoliTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagArticoliTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "AnagArticoli";
- tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
- tableMapping.ColumnMappings.Add("DescrArticolo", "DescrArticolo");
- tableMapping.ColumnMappings.Add("Figura", "Figura");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagArticoli] ([CodArticolo], [DescrArticolo], [Figura]) VALUE" +
- "S (@CodArticolo, @DescrArticolo, @Figura);\r\nSELECT CodArticolo, DescrArticolo, F" +
- "igura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescrArticolo] = @DescrArticolo, [Figura] = @Figura WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)));
-SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_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 * FROM dbo.AnagArticoli";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.AnagArticoliDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.AnagArticoliDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagArticoliDataTable dataTable = new DS_Applicazione.AnagArticoliDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagArticoliDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione dataSet) {
- return this.Adapter.Update(dataSet, "AnagArticoli");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) {
- if ((Original_CodArticolo == null)) {
- throw new global::System.ArgumentNullException("Original_CodArticolo");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodArticolo));
- }
- if ((Original_DescrArticolo == null)) {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrArticolo));
- }
- if ((Original_Figura == null)) {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Figura));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodArticolo, string DescrArticolo, string Figura) {
- if ((CodArticolo == null)) {
- throw new global::System.ArgumentNullException("CodArticolo");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodArticolo));
- }
- if ((DescrArticolo == null)) {
- this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrArticolo));
- }
- if ((Figura == null)) {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Figura));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodArticolo, string DescrArticolo, string Figura, string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) {
- if ((CodArticolo == null)) {
- throw new global::System.ArgumentNullException("CodArticolo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodArticolo));
- }
- if ((DescrArticolo == null)) {
- this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrArticolo));
- }
- if ((Figura == null)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Figura));
- }
- if ((Original_CodArticolo == null)) {
- throw new global::System.ArgumentNullException("Original_CodArticolo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodArticolo));
- }
- if ((Original_DescrArticolo == null)) {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_DescrArticolo));
- }
- if ((Original_Figura == null)) {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Figura));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string DescrArticolo, string Figura, string Original_CodArticolo, string Original_DescrArticolo, string Original_Figura) {
- return this.Update(Original_CodArticolo, DescrArticolo, Figura, Original_CodArticolo, Original_DescrArticolo, Original_Figura);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -8651,733 +10302,6 @@ SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato)";
}
}
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class TabStatoOdpUdcTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public TabStatoOdpUdcTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "TabStatoOdpUdc";
- tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
- tableMapping.ColumnMappings.Add("ODP", "ODP");
- tableMapping.ColumnMappings.Add("UDC", "UDC");
- tableMapping.ColumnMappings.Add("Tara", "Tara");
- tableMapping.ColumnMappings.Add("IdxStato", "IdxStato");
- tableMapping.ColumnMappings.Add("Qta", "Qta");
- tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
- tableMapping.ColumnMappings.Add("CreateDate", "CreateDate");
- tableMapping.ColumnMappings.Add("ModDate", "ModDate");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate);
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)));
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tara", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tara", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tara", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CreateDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ModDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT * FROM 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_getStatoByUdc";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_insNewOdpUdc";
- 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("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].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[2].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[2].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[2].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[3] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dbo.stp_updateByBilancia";
- 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("@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].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(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.Select, false)]
- public virtual DS_Applicazione.TabStatoOdpUdcDataTable getByUdc(string UDC) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((UDC == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
- }
- DS_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_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[2];
- 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 updateByBilancia(string CodCompany, string UDC, string CodArticolo, global::System.Nullable qta) {
- 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 ((UDC == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(UDC));
- }
- if ((CodArticolo == null)) {
- this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodArticolo));
- }
- if ((qta.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[4].Value = ((int)(qta.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- 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, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate) {
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCompany));
- }
- if ((Original_ODP == null)) {
- throw new global::System.ArgumentNullException("Original_ODP");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ODP));
- }
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UDC));
- }
- if ((Original_Tara.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Tara.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Original_IdxStato.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdxStato.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- if ((Original_Qta.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Qta.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- if ((Original_CodImballo == null)) {
- this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_CodImballo));
- }
- if ((Original_CreateDate.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_CreateDate.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
- }
- if ((Original_ModDate.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_ModDate.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCompany, string ODP, string UDC, global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((ODP == null)) {
- throw new global::System.ArgumentNullException("ODP");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ODP));
- }
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UDC));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((IdxStato.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxStato.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Qta.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(Qta.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodImballo));
- }
- if ((CreateDate.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(CreateDate.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- if ((ModDate.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ModDate.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(
- string CodCompany,
- string ODP,
- string UDC,
- global::System.Nullable Tara,
- global::System.Nullable IdxStato,
- global::System.Nullable Qta,
- string CodImballo,
- global::System.Nullable CreateDate,
- global::System.Nullable ModDate,
- string Original_CodCompany,
- string Original_ODP,
- string Original_UDC,
- global::System.Nullable Original_Tara,
- global::System.Nullable Original_IdxStato,
- global::System.Nullable Original_Qta,
- string Original_CodImballo,
- global::System.Nullable Original_CreateDate,
- global::System.Nullable Original_ModDate) {
- if ((CodCompany == null)) {
- throw new global::System.ArgumentNullException("CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCompany));
- }
- if ((ODP == null)) {
- throw new global::System.ArgumentNullException("ODP");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ODP));
- }
- if ((UDC == null)) {
- throw new global::System.ArgumentNullException("UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UDC));
- }
- if ((Tara.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Tara.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((IdxStato.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxStato.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- if ((Qta.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Qta.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- if ((CodImballo == null)) {
- this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodImballo));
- }
- if ((CreateDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(CreateDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- if ((ModDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ModDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- if ((Original_CodCompany == null)) {
- throw new global::System.ArgumentNullException("Original_CodCompany");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany));
- }
- if ((Original_ODP == null)) {
- throw new global::System.ArgumentNullException("Original_ODP");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP));
- }
- if ((Original_UDC == null)) {
- throw new global::System.ArgumentNullException("Original_UDC");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_UDC));
- }
- if ((Original_Tara.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(Original_Tara.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
- }
- if ((Original_IdxStato.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxStato.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
- }
- if ((Original_Qta.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_Qta.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
- }
- if ((Original_CodImballo == null)) {
- this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodImballo));
- }
- if ((Original_CreateDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_CreateDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
- }
- if ((Original_ModDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_ModDate.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate, string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable Original_Tara, global::System.Nullable Original_IdxStato, global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate) {
- return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CreateDate, Original_ModDate);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -10388,6 +11312,3618 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class AnagArticoliTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagArticoliTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "AnagArticoli";
+ tableMapping.ColumnMappings.Add("Particolare", "Particolare");
+ tableMapping.ColumnMappings.Add("DescrArticolo", "DescrArticolo");
+ tableMapping.ColumnMappings.Add("Cliente", "Cliente");
+ tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagArticoli] WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Famiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagArticoli] ([Particolare], [DescrArticolo], [Cliente], [Fam" +
+ "iglia]) VALUES (@Particolare, @DescrArticolo, @Cliente, @Famiglia);\r\nSELECT Part" +
+ "icolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare =" +
+ " @Particolare)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagArticoli] SET [Particolare] = @Particolare, [DescrArticolo] = @DescrArticolo, [Cliente] = @Cliente, [Famiglia] = @Famiglia WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)));
+SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare = @Particolare)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Famiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM dbo.AnagArticoli";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Applicazione.AnagArticoliDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Applicazione.AnagArticoliDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.AnagArticoliDataTable dataTable = new DS_Applicazione.AnagArticoliDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.AnagArticoliDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione dataSet) {
+ return this.Adapter.Update(dataSet, "AnagArticoli");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_Particolare, string Original_DescrArticolo, string Original_Cliente, string Original_Famiglia) {
+ if ((Original_Particolare == null)) {
+ throw new global::System.ArgumentNullException("Original_Particolare");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_DescrArticolo == null)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrArticolo));
+ }
+ if ((Original_Cliente == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Cliente));
+ }
+ if ((Original_Famiglia == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Famiglia));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string Particolare, string DescrArticolo, string Cliente, string Famiglia) {
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Particolare));
+ }
+ if ((DescrArticolo == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrArticolo));
+ }
+ if ((Cliente == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Cliente));
+ }
+ if ((Famiglia == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Famiglia));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string Particolare, string DescrArticolo, string Cliente, string Famiglia, string Original_Particolare, string Original_DescrArticolo, string Original_Cliente, string Original_Famiglia) {
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Particolare));
+ }
+ if ((DescrArticolo == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrArticolo));
+ }
+ if ((Cliente == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Cliente));
+ }
+ if ((Famiglia == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Famiglia));
+ }
+ if ((Original_Particolare == null)) {
+ throw new global::System.ArgumentNullException("Original_Particolare");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_DescrArticolo == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrArticolo));
+ }
+ if ((Original_Cliente == null)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Cliente));
+ }
+ if ((Original_Famiglia == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Famiglia));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string DescrArticolo, string Cliente, string Famiglia, string Original_Particolare, string Original_DescrArticolo, string Original_Cliente, string Original_Famiglia) {
+ return this.Update(Original_Particolare, DescrArticolo, Cliente, Famiglia, Original_Particolare, Original_DescrArticolo, Original_Cliente, Original_Famiglia);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class Impianti2ArticoliTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public Impianti2ArticoliTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "Impianti2Articoli";
+ tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
+ tableMapping.ColumnMappings.Add("Particolare", "Particolare");
+ tableMapping.ColumnMappings.Add("InizioProd", "InizioProd");
+ tableMapping.ColumnMappings.Add("FineProd", "FineProd");
+ tableMapping.ColumnMappings.Add("CodStampo", "CodStampo");
+ tableMapping.ColumnMappings.Add("Figura", "Figura");
+ tableMapping.ColumnMappings.Add("FiguraIncisa", "FiguraIncisa");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodStampo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FiguraIncisa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [Particolare], [InizioProd], [FineProd], [CodStampo], [Figura], [FiguraIncisa]) VALUES (@CodImpianto, @Particolare, @InizioProd, @FineProd, @CodStampo, @Figura, @FiguraIncisa);
+SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [InizioProd] = @InizioProd, [FineProd] = @FineProd, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)));
+SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Particolare", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineProd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineProd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodStampo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStampo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStampo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Figura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Figura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Figura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FiguraIncisa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FiguraIncisa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FiguraIncisa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraI" +
+ "ncisa FROM dbo.Impianti2Articoli";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_getImp2Art_ByImpData";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_getImp2Art_currProd";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Applicazione.Impianti2ArticoliDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Applicazione.Impianti2ArticoliDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.Impianti2ArticoliDataTable stp_byImpData(string CodImpianto, global::System.Nullable DataRif) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodImpianto == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImpianto));
+ }
+ if ((DataRif.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataRif.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.Impianti2ArticoliDataTable stp_curr(string CodImpianto, global::System.Nullable DataRif) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((CodImpianto == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImpianto));
+ }
+ if ((DataRif.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataRif.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.Impianti2ArticoliDataTable dataTable = new DS_Applicazione.Impianti2ArticoliDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.Impianti2ArticoliDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione dataSet) {
+ return this.Adapter.Update(dataSet, "Impianti2Articoli");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodImpianto, string Original_Particolare, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd, string Original_CodStampo, string Original_Figura, string Original_FiguraIncisa) {
+ if ((Original_CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("Original_CodImpianto");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImpianto));
+ }
+ if ((Original_Particolare == null)) {
+ throw new global::System.ArgumentNullException("Original_Particolare");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Particolare));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_InizioProd));
+ if ((Original_FineProd.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_FineProd.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodStampo == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodStampo));
+ }
+ if ((Original_Figura == null)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Figura));
+ }
+ if ((Original_FiguraIncisa == null)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_FiguraIncisa));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodImpianto, string Particolare, System.DateTime InizioProd, global::System.Nullable FineProd, string CodStampo, string Figura, string FiguraIncisa) {
+ if ((CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("CodImpianto");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImpianto));
+ }
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Particolare));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioProd));
+ if ((FineProd.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(FiguraIncisa));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodImpianto, string Particolare, System.DateTime InizioProd, global::System.Nullable FineProd, string CodStampo, string Figura, string FiguraIncisa, string Original_CodImpianto, string Original_Particolare, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd, string Original_CodStampo, string Original_Figura, string Original_FiguraIncisa) {
+ if ((CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("CodImpianto");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImpianto));
+ }
+ if ((Particolare == null)) {
+ throw new global::System.ArgumentNullException("Particolare");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Particolare));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioProd));
+ if ((FineProd.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(FineProd.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(FiguraIncisa));
+ }
+ if ((Original_CodImpianto == null)) {
+ throw new global::System.ArgumentNullException("Original_CodImpianto");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodImpianto));
+ }
+ if ((Original_Particolare == null)) {
+ throw new global::System.ArgumentNullException("Original_Particolare");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Particolare));
+ }
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_InizioProd));
+ if ((Original_FineProd.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_FineProd.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodStampo == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodStampo));
+ }
+ if ((Original_Figura == null)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Figura));
+ }
+ if ((Original_FiguraIncisa == null)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_FiguraIncisa));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(global::System.Nullable FineProd, string CodStampo, string Figura, string FiguraIncisa, string Original_CodImpianto, string Original_Particolare, System.DateTime Original_InizioProd, global::System.Nullable Original_FineProd, string Original_CodStampo, string Original_Figura, string Original_FiguraIncisa) {
+ return this.Update(Original_CodImpianto, Original_Particolare, Original_InizioProd, FineProd, CodStampo, Figura, FiguraIncisa, Original_CodImpianto, Original_Particolare, Original_InizioProd, Original_FineProd, Original_CodStampo, Original_Figura, Original_FiguraIncisa);
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [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 v_ArtInProdTableAdapter : 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 v_ArtInProdTableAdapter() {
+ 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 = "v_ArtInProd";
+ tableMapping.ColumnMappings.Add("Cliente", "Cliente");
+ tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
+ tableMapping.ColumnMappings.Add("Particolare", "Particolare");
+ tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto");
+ tableMapping.ColumnMappings.Add("InizioProd", "InizioProd");
+ tableMapping.ColumnMappings.Add("FineProd", "FineProd");
+ tableMapping.ColumnMappings.Add("CodStampo", "CodStampo");
+ tableMapping.ColumnMappings.Add("Figura", "Figura");
+ tableMapping.ColumnMappings.Add("FiguraIncisa", "FiguraIncisa");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [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 Cliente, Famiglia, Particolare, CodImpianto, InizioProd, FineProd, CodStam" +
+ "po, Figura, FiguraIncisa FROM dbo.v_ArtInProd";
+ 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_ArtiInProd_ByImpData";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [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.v_ArtInProdDataTable 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.v_ArtInProdDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.v_ArtInProdDataTable dataTable = new DS_Applicazione.v_ArtInProdDataTable();
+ 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.v_ArtInProdDataTable stp_byImpData(string CodImpianto, global::System.Nullable DataRif) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodImpianto == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImpianto));
+ }
+ if ((DataRif.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataRif.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.v_ArtInProdDataTable dataTable = new DS_Applicazione.v_ArtInProdDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+ }
+
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class 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[4];
+ 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_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_insNewOdpUdcFull";
+ 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("@ODP", global::System.Data.SqlDbType.VarChar, 20, 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("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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[3].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[3].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[3].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[3].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[3].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[3].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[3].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[3].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, "", "", ""));
+ }
+
+ [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[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.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[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 ((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);
+ }
+ }
+
+ ///
+ ///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 StoricoEventiTableAdapter : 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 StoricoEventiTableAdapter() {
+ 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 = "StoricoEventi";
+ tableMapping.ColumnMappings.Add("IdxEv", "IdxEv");
+ tableMapping.ColumnMappings.Add("DataEv", "DataEv");
+ tableMapping.ColumnMappings.Add("CodEvento", "CodEvento");
+ tableMapping.ColumnMappings.Add("CodOperatore", "CodOperatore");
+ tableMapping.ColumnMappings.Add("CodTipoDichiaraz", "CodTipoDichiaraz");
+ tableMapping.ColumnMappings.Add("CodCompany", "CodCompany");
+ tableMapping.ColumnMappings.Add("ODP", "ODP");
+ tableMapping.ColumnMappings.Add("UDC", "UDC");
+ tableMapping.ColumnMappings.Add("Qta", "Qta");
+ tableMapping.ColumnMappings.Add("PesoTot", "PesoTot");
+ tableMapping.ColumnMappings.Add("PesoCad", "PesoCad");
+ 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");
+ 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].[StoricoEventi] WHERE (([IdxEv] = @Original_IdxEv) AND ([DataEv] = @Original_DataEv) AND ([CodEvento] = @Original_CodEvento) AND ((@IsNull_CodOperatore = 1 AND [CodOperatore] IS NULL) OR ([CodOperatore] = @Original_CodOperatore)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_ODP = 1 AND [ODP] IS NULL) OR ([ODP] = @Original_ODP)) AND ([UDC] = @Original_UDC) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) 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_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)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxEv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxEv", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataEv", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataEv", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperatore", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodOperatore", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperatore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodTipoDichiaraz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoDichiaraz", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoDichiaraz", 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_ODP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, true, 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_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_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_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.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[StoricoEventi] ([DataEv], [CodEvento], [CodOperatore], [CodTipoDichiaraz], [CodCompany], [ODP], [UDC], [Qta], [PesoTot], [PesoCad], [Particolare], [CodStato], [CodStampo], [Figura], [FiguraIncisa]) VALUES (@DataEv, @CodEvento, @CodOperatore, @CodTipoDichiaraz, @CodCompany, @ODP, @UDC, @Qta, @PesoTot, @PesoCad, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa);
+SELECT IdxEv, DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCompany, ODP, UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa FROM StoricoEventi WHERE (IdxEv = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataEv", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataEv", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOperatore", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperatore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoDichiaraz", 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("@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("@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("@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("@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.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[StoricoEventi] SET [DataEv] = @DataEv, [CodEvento] = @CodEvento, [C" +
+ "odOperatore] = @CodOperatore, [CodTipoDichiaraz] = @CodTipoDichiaraz, [CodCompan" +
+ "y] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Qta] = @Qta, [PesoTot] = @PesoTot" +
+ ", [PesoCad] = @PesoCad, [Particolare] = @Particolare, [CodStato] = @CodStato, [C" +
+ "odStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa WHERE" +
+ " (([IdxEv] = @Original_IdxEv) AND ([DataEv] = @Original_DataEv) AND ([CodEvento]" +
+ " = @Original_CodEvento) AND ((@IsNull_CodOperatore = 1 AND [CodOperatore] IS NUL" +
+ "L) OR ([CodOperatore] = @Original_CodOperatore)) AND ((@IsNull_CodTipoDichiaraz " +
+ "= 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDi" +
+ "chiaraz)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany" +
+ "] = @Original_CodCompany)) AND ((@IsNull_ODP = 1 AND [ODP] IS NULL) OR ([ODP] = " +
+ "@Original_ODP)) AND ([UDC] = @Original_UDC) AND ((@IsNull_Qta = 1 AND [Qta] IS N" +
+ "ULL) OR ([Qta] = @Original_Qta)) 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_Particolare = 1 AND [Pa" +
+ "rticolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_Co" +
+ "dStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@" +
+ "IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodSta" +
+ "mpo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Fi" +
+ "gura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraInc" +
+ "isa] = @Original_FiguraIncisa)));\r\nSELECT IdxEv, DataEv, CodEvento, CodOperatore" +
+ ", CodTipoDichiaraz, CodCompany, ODP, UDC, Qta, PesoTot, PesoCad, Particolare, Co" +
+ "dStato, CodStampo, Figura, FiguraIncisa FROM StoricoEventi WHERE (IdxEv = @IdxEv" +
+ ")";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataEv", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataEv", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOperatore", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperatore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoDichiaraz", 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("@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("@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("@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("@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("@Original_IdxEv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxEv", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataEv", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataEv", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperatore", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodOperatore", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperatore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodTipoDichiaraz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoDichiaraz", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoDichiaraz", 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_ODP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, true, 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_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_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_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("@IdxEv", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxEv", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxEv, DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCompany, ODP," +
+ " UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraInc" +
+ "isa FROM dbo.StoricoEventi";
+ 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.StoricoEventiDataTable 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.StoricoEventiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.StoricoEventiDataTable dataTable = new DS_Applicazione.StoricoEventiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.StoricoEventiDataTable 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, "StoricoEventi");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(
+ int Original_IdxEv,
+ System.DateTime Original_DataEv,
+ string Original_CodEvento,
+ string Original_CodOperatore,
+ string Original_CodTipoDichiaraz,
+ string Original_CodCompany,
+ string Original_ODP,
+ string Original_UDC,
+ global::System.Nullable Original_Qta,
+ global::System.Nullable Original_PesoTot,
+ global::System.Nullable Original_PesoCad,
+ string Original_Particolare,
+ string Original_CodStato,
+ string Original_CodStampo,
+ string Original_Figura,
+ string Original_FiguraIncisa) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxEv));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_DataEv));
+ if ((Original_CodEvento == null)) {
+ throw new global::System.ArgumentNullException("Original_CodEvento");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodEvento));
+ }
+ if ((Original_CodOperatore == 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_CodOperatore));
+ }
+ if ((Original_CodTipoDichiaraz == 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_CodTipoDichiaraz));
+ }
+ if ((Original_CodCompany == 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_CodCompany));
+ }
+ if ((Original_ODP == 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_ODP));
+ }
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_UDC));
+ }
+ if ((Original_Qta.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((decimal)(Original_Qta.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ if ((Original_PesoTot.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((double)(Original_PesoTot.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ if ((Original_PesoCad.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((double)(Original_PesoCad.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Particolare == null)) {
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_CodStato == null)) {
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((string)(Original_CodStato));
+ }
+ if ((Original_CodStampo == null)) {
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_CodStampo));
+ }
+ if ((Original_Figura == null)) {
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_Figura));
+ }
+ if ((Original_FiguraIncisa == null)) {
+ this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[27].Value = ((string)(Original_FiguraIncisa));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(System.DateTime DataEv, string CodEvento, string CodOperatore, string CodTipoDichiaraz, string CodCompany, string ODP, string UDC, global::System.Nullable Qta, global::System.Nullable PesoTot, global::System.Nullable PesoCad, string Particolare, string CodStato, string CodStampo, string Figura, string FiguraIncisa) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DataEv));
+ if ((CodEvento == null)) {
+ throw new global::System.ArgumentNullException("CodEvento");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodEvento));
+ }
+ if ((CodOperatore == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodOperatore));
+ }
+ if ((CodTipoDichiaraz == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodTipoDichiaraz));
+ }
+ if ((CodCompany == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodCompany));
+ }
+ if ((ODP == null)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ODP));
+ }
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(UDC));
+ }
+ if ((Qta.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(Qta.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((PesoTot.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((double)(PesoTot.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((PesoCad.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((double)(PesoCad.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((Particolare == null)) {
+ this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Particolare));
+ }
+ if ((CodStato == null)) {
+ this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[11].Value = ((string)(CodStato));
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[12].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[13].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[14].Value = ((string)(FiguraIncisa));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ System.DateTime DataEv,
+ string CodEvento,
+ string CodOperatore,
+ string CodTipoDichiaraz,
+ string CodCompany,
+ string ODP,
+ string UDC,
+ global::System.Nullable Qta,
+ global::System.Nullable PesoTot,
+ global::System.Nullable PesoCad,
+ string Particolare,
+ string CodStato,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa,
+ int Original_IdxEv,
+ System.DateTime Original_DataEv,
+ string Original_CodEvento,
+ string Original_CodOperatore,
+ string Original_CodTipoDichiaraz,
+ string Original_CodCompany,
+ string Original_ODP,
+ string Original_UDC,
+ global::System.Nullable Original_Qta,
+ global::System.Nullable Original_PesoTot,
+ global::System.Nullable Original_PesoCad,
+ string Original_Particolare,
+ string Original_CodStato,
+ string Original_CodStampo,
+ string Original_Figura,
+ string Original_FiguraIncisa,
+ int IdxEv) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DataEv));
+ if ((CodEvento == null)) {
+ throw new global::System.ArgumentNullException("CodEvento");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodEvento));
+ }
+ if ((CodOperatore == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodOperatore));
+ }
+ if ((CodTipoDichiaraz == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodTipoDichiaraz));
+ }
+ if ((CodCompany == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodCompany));
+ }
+ if ((ODP == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ODP));
+ }
+ if ((UDC == null)) {
+ throw new global::System.ArgumentNullException("UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(UDC));
+ }
+ if ((Qta.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Qta.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((PesoTot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(PesoTot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((PesoCad.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((double)(PesoCad.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((Particolare == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Particolare));
+ }
+ if ((CodStato == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(CodStato));
+ }
+ if ((CodStampo == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(CodStampo));
+ }
+ if ((Figura == null)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Figura));
+ }
+ if ((FiguraIncisa == null)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(FiguraIncisa));
+ }
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxEv));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_DataEv));
+ if ((Original_CodEvento == null)) {
+ throw new global::System.ArgumentNullException("Original_CodEvento");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_CodEvento));
+ }
+ if ((Original_CodOperatore == null)) {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodOperatore));
+ }
+ if ((Original_CodTipoDichiaraz == null)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_CodTipoDichiaraz));
+ }
+ if ((Original_CodCompany == null)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_CodCompany));
+ }
+ if ((Original_ODP == null)) {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_ODP));
+ }
+ if ((Original_UDC == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_UDC));
+ }
+ if ((Original_Qta.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((decimal)(Original_Qta.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
+ }
+ if ((Original_PesoTot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((double)(Original_PesoTot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
+ }
+ if ((Original_PesoCad.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((double)(Original_PesoCad.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Particolare == null)) {
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_Particolare));
+ }
+ if ((Original_CodStato == null)) {
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_CodStato));
+ }
+ if ((Original_CodStampo == null)) {
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_CodStampo));
+ }
+ if ((Original_Figura == null)) {
+ this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_Figura));
+ }
+ if ((Original_FiguraIncisa == null)) {
+ this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_FiguraIncisa));
+ }
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(IdxEv));
+ 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(
+ System.DateTime DataEv,
+ string CodEvento,
+ string CodOperatore,
+ string CodTipoDichiaraz,
+ string CodCompany,
+ string ODP,
+ string UDC,
+ global::System.Nullable Qta,
+ global::System.Nullable PesoTot,
+ global::System.Nullable PesoCad,
+ string Particolare,
+ string CodStato,
+ string CodStampo,
+ string Figura,
+ string FiguraIncisa,
+ int Original_IdxEv,
+ System.DateTime Original_DataEv,
+ string Original_CodEvento,
+ string Original_CodOperatore,
+ string Original_CodTipoDichiaraz,
+ string Original_CodCompany,
+ string Original_ODP,
+ string Original_UDC,
+ global::System.Nullable Original_Qta,
+ global::System.Nullable Original_PesoTot,
+ global::System.Nullable Original_PesoCad,
+ string Original_Particolare,
+ string Original_CodStato,
+ string Original_CodStampo,
+ string Original_Figura,
+ string Original_FiguraIncisa) {
+ return this.Update(DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCompany, ODP, UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, Original_IdxEv, Original_DataEv, Original_CodEvento, Original_CodOperatore, Original_CodTipoDichiaraz, Original_CodCompany, Original_ODP, Original_UDC, Original_Qta, Original_PesoTot, Original_PesoCad, Original_Particolare, Original_CodStato, Original_CodStampo, Original_Figura, Original_FiguraIncisa, Original_IdxEv);
+ }
+ }
+
+ ///
+ ///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 RelazUDCTableAdapter : 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 RelazUDCTableAdapter() {
+ 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 = "RelazUDC";
+ tableMapping.ColumnMappings.Add("UDC_parent", "UDC_parent");
+ tableMapping.ColumnMappings.Add("UDC_child", "UDC_child");
+ 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].[RelazUDC] WHERE (([UDC_parent] = @Original_UDC_parent) AND ([U" +
+ "DC_child] = @Original_UDC_child))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC_parent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_parent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC_child", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_child", 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].[RelazUDC] ([UDC_parent], [UDC_child]) VALUES (@UDC_parent, @UD" +
+ "C_child);\r\nSELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_ch" +
+ "ild) AND (UDC_parent = @UDC_parent)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC_parent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_parent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC_child", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_child", 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].[RelazUDC] SET [UDC_parent] = @UDC_parent, [UDC_child] = @UDC_child WHERE (([UDC_parent] = @Original_UDC_parent) AND ([UDC_child] = @Original_UDC_child));
+SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (UDC_parent = @UDC_parent)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC_parent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_parent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC_child", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_child", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC_parent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_parent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC_child", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC_child", 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 UDC_parent, UDC_child FROM dbo.RelazUDC";
+ 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.RelazUDCDataTable 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.RelazUDCDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.RelazUDCDataTable dataTable = new DS_Applicazione.RelazUDCDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.RelazUDCDataTable 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, "RelazUDC");
+ }
+
+ [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_UDC_parent, string Original_UDC_child) {
+ if ((Original_UDC_parent == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC_parent");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UDC_parent));
+ }
+ if ((Original_UDC_child == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC_child");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UDC_child));
+ }
+ 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 UDC_parent, string UDC_child) {
+ if ((UDC_parent == null)) {
+ throw new global::System.ArgumentNullException("UDC_parent");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC_parent));
+ }
+ if ((UDC_child == null)) {
+ throw new global::System.ArgumentNullException("UDC_child");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UDC_child));
+ }
+ 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 UDC_parent, string UDC_child, string Original_UDC_parent, string Original_UDC_child) {
+ if ((UDC_parent == null)) {
+ throw new global::System.ArgumentNullException("UDC_parent");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC_parent));
+ }
+ if ((UDC_child == null)) {
+ throw new global::System.ArgumentNullException("UDC_child");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UDC_child));
+ }
+ if ((Original_UDC_parent == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC_parent");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_UDC_parent));
+ }
+ if ((Original_UDC_child == null)) {
+ throw new global::System.ArgumentNullException("Original_UDC_child");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_UDC_child));
+ }
+ 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 Original_UDC_parent, string Original_UDC_child) {
+ return this.Update(Original_UDC_parent, Original_UDC_child, Original_UDC_parent, Original_UDC_child);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -10401,10 +14937,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
private UpdateOrderOption _updateOrder;
- private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter;
-
- private AnagArticoliTableAdapter _anagArticoliTableAdapter;
-
private AnagImpiantiTableAdapter _anagImpiantiTableAdapter;
private AnagCompanyTableAdapter _anagCompanyTableAdapter;
@@ -10417,14 +14949,22 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
private AnagStatiTableAdapter _anagStatiTableAdapter;
- private TabStatoOdpUdcTableAdapter _tabStatoOdpUdcTableAdapter;
-
private AnagTipoDichiarazTableAdapter _anagTipoDichiarazTableAdapter;
private AnagStatiProdottoTableAdapter _anagStatiProdottoTableAdapter;
private AnagImballiTableAdapter _anagImballiTableAdapter;
+ private AnagArticoliTableAdapter _anagArticoliTableAdapter;
+
+ private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter;
+
+ private TabStatoOdpUdcTableAdapter _tabStatoOdpUdcTableAdapter;
+
+ private StoricoEventiTableAdapter _storicoEventiTableAdapter;
+
+ private RelazUDCTableAdapter _relazUDCTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -10439,32 +14979,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public Impianti2ArticoliTableAdapter Impianti2ArticoliTableAdapter {
- get {
- return this._impianti2ArticoliTableAdapter;
- }
- set {
- this._impianti2ArticoliTableAdapter = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public AnagArticoliTableAdapter AnagArticoliTableAdapter {
- get {
- return this._anagArticoliTableAdapter;
- }
- set {
- this._anagArticoliTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
@@ -10543,19 +15057,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
}
}
- [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" +
@@ -10595,6 +15096,71 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public AnagArticoliTableAdapter AnagArticoliTableAdapter {
+ get {
+ return this._anagArticoliTableAdapter;
+ }
+ set {
+ this._anagArticoliTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public Impianti2ArticoliTableAdapter Impianti2ArticoliTableAdapter {
+ get {
+ return this._impianti2ArticoliTableAdapter;
+ }
+ set {
+ this._impianti2ArticoliTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
+ "", "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" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public StoricoEventiTableAdapter StoricoEventiTableAdapter {
+ get {
+ return this._storicoEventiTableAdapter;
+ }
+ set {
+ this._storicoEventiTableAdapter = 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 RelazUDCTableAdapter RelazUDCTableAdapter {
+ get {
+ return this._relazUDCTableAdapter;
+ }
+ set {
+ this._relazUDCTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool BackupDataSetBeforeUpdate {
get {
@@ -10612,14 +15178,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
if ((this._connection != null)) {
return this._connection;
}
- if (((this._impianti2ArticoliTableAdapter != null)
- && (this._impianti2ArticoliTableAdapter.Connection != null))) {
- return this._impianti2ArticoliTableAdapter.Connection;
- }
- if (((this._anagArticoliTableAdapter != null)
- && (this._anagArticoliTableAdapter.Connection != null))) {
- return this._anagArticoliTableAdapter.Connection;
- }
if (((this._anagImpiantiTableAdapter != null)
&& (this._anagImpiantiTableAdapter.Connection != null))) {
return this._anagImpiantiTableAdapter.Connection;
@@ -10644,10 +15202,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
&& (this._anagStatiTableAdapter.Connection != null))) {
return this._anagStatiTableAdapter.Connection;
}
- if (((this._tabStatoOdpUdcTableAdapter != null)
- && (this._tabStatoOdpUdcTableAdapter.Connection != null))) {
- return this._tabStatoOdpUdcTableAdapter.Connection;
- }
if (((this._anagTipoDichiarazTableAdapter != null)
&& (this._anagTipoDichiarazTableAdapter.Connection != null))) {
return this._anagTipoDichiarazTableAdapter.Connection;
@@ -10660,6 +15214,26 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
&& (this._anagImballiTableAdapter.Connection != null))) {
return this._anagImballiTableAdapter.Connection;
}
+ if (((this._anagArticoliTableAdapter != null)
+ && (this._anagArticoliTableAdapter.Connection != null))) {
+ return this._anagArticoliTableAdapter.Connection;
+ }
+ if (((this._impianti2ArticoliTableAdapter != null)
+ && (this._impianti2ArticoliTableAdapter.Connection != null))) {
+ return this._impianti2ArticoliTableAdapter.Connection;
+ }
+ if (((this._tabStatoOdpUdcTableAdapter != null)
+ && (this._tabStatoOdpUdcTableAdapter.Connection != null))) {
+ return this._tabStatoOdpUdcTableAdapter.Connection;
+ }
+ if (((this._storicoEventiTableAdapter != null)
+ && (this._storicoEventiTableAdapter.Connection != null))) {
+ return this._storicoEventiTableAdapter.Connection;
+ }
+ if (((this._relazUDCTableAdapter != null)
+ && (this._relazUDCTableAdapter.Connection != null))) {
+ return this._relazUDCTableAdapter.Connection;
+ }
return null;
}
set {
@@ -10672,12 +15246,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
public int TableAdapterInstanceCount {
get {
int count = 0;
- if ((this._impianti2ArticoliTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._anagArticoliTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._anagImpiantiTableAdapter != null)) {
count = (count + 1);
}
@@ -10696,9 +15264,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
if ((this._anagStatiTableAdapter != null)) {
count = (count + 1);
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._anagTipoDichiarazTableAdapter != null)) {
count = (count + 1);
}
@@ -10708,6 +15273,21 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
if ((this._anagImballiTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagArticoliTableAdapter != null)) {
+ count = (count + 1);
+ }
+ 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);
+ }
return count;
}
}
@@ -10727,12 +15307,12 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagSitiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ 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._anagSitiTableAdapter.Update(updatedRows));
+ result = (result + this._anagOdpTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -10745,24 +15325,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -10772,15 +15334,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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);
@@ -10790,12 +15343,30 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagSitiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._impianti2ArticoliTableAdapter.Update(updatedRows));
+ result = (result + this._anagSitiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagImballiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
+ if ((this._tabStatoOdpUdcTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._tabStatoOdpUdcTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -10808,6 +15379,33 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._relazUDCTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
if ((this._anagBilanceTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -10817,12 +15415,12 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._tabStatoOdpUdcTableAdapter.Update(updatedRows));
+ result = (result + this._impianti2ArticoliTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -10843,11 +15441,11 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagSitiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Added);
+ 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._anagSitiTableAdapter.Update(addedRows));
+ result = (result + this._anagOdpTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -10859,22 +15457,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -10883,14 +15465,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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)
@@ -10899,11 +15473,27 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allAddedRows.AddRange(addedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagSitiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._impianti2ArticoliTableAdapter.Update(addedRows));
+ result = (result + this._anagSitiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagImballiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
+ if ((this._tabStatoOdpUdcTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._tabStatoOdpUdcTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -10915,6 +15505,30 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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)
+ && (0 < addedRows.Length))) {
+ result = (result + this._relazUDCTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
if ((this._anagBilanceTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagBilance.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -10923,11 +15537,11 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allAddedRows.AddRange(addedRows);
}
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._tabStatoOdpUdcTableAdapter.Update(addedRows));
+ result = (result + this._impianti2ArticoliTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -10940,11 +15554,11 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ 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._tabStatoOdpUdcTableAdapter.Update(deletedRows));
+ result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -10956,27 +15570,19 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagTipoDichiarazTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagTipoDichiarazTableAdapter.Update(deletedRows));
+ result = (result + this._relazUDCTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
- 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));
- 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));
+ result = (result + this._storicoEventiTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -10988,11 +15594,19 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._anagTipoDichiarazTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagArticoliTableAdapter.Update(deletedRows));
+ result = (result + this._anagTipoDichiarazTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
+ if ((this._tabStatoOdpUdcTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.TabStatoOdpUdc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._tabStatoOdpUdcTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -11004,11 +15618,27 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagOdpTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ 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._anagOdpTableAdapter.Update(deletedRows));
+ 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);
}
}
@@ -11020,11 +15650,11 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagSitiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagSiti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._anagOdpTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagOdp.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagSitiTableAdapter.Update(deletedRows));
+ result = (result + this._anagOdpTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -11073,16 +15703,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
if ((dataSet.HasChanges() == false)) {
return 0;
}
- if (((this._impianti2ArticoliTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._impianti2ArticoliTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
- if (((this._anagArticoliTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagArticoliTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
if (((this._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" +
@@ -11113,11 +15733,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
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._anagTipoDichiarazTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagTipoDichiarazTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
@@ -11133,6 +15748,31 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._anagArticoliTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagArticoliTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._impianti2ArticoliTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._impianti2ArticoliTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
+ if (((this._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" +
+ "tring.");
+ }
+ if (((this._relazUDCTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._relazUDCTableAdapter.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" +
@@ -11165,24 +15805,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
try {
// ---- Prepare for update -----------
//
- if ((this._impianti2ArticoliTableAdapter != null)) {
- revertConnections.Add(this._impianti2ArticoliTableAdapter, this._impianti2ArticoliTableAdapter.Connection);
- this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._impianti2ArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._impianti2ArticoliTableAdapter.Adapter);
- }
- }
- if ((this._anagArticoliTableAdapter != null)) {
- revertConnections.Add(this._anagArticoliTableAdapter, this._anagArticoliTableAdapter.Connection);
- this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagArticoliTableAdapter.Adapter);
- }
- }
if ((this._anagImpiantiTableAdapter != null)) {
revertConnections.Add(this._anagImpiantiTableAdapter, this._anagImpiantiTableAdapter.Connection);
this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -11237,15 +15859,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiTableAdapter.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._anagTipoDichiarazTableAdapter != null)) {
revertConnections.Add(this._anagTipoDichiarazTableAdapter, this._anagTipoDichiarazTableAdapter.Connection);
this._anagTipoDichiarazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -11273,6 +15886,51 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
adaptersWithAcceptChangesDuringUpdate.Add(this._anagImballiTableAdapter.Adapter);
}
}
+ if ((this._anagArticoliTableAdapter != null)) {
+ revertConnections.Add(this._anagArticoliTableAdapter, this._anagArticoliTableAdapter.Connection);
+ this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagArticoliTableAdapter.Adapter);
+ }
+ }
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ revertConnections.Add(this._impianti2ArticoliTableAdapter, this._impianti2ArticoliTableAdapter.Connection);
+ this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._impianti2ArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._impianti2ArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._impianti2ArticoliTableAdapter.Adapter);
+ }
+ }
+ if ((this._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));
+ this._storicoEventiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._storicoEventiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._storicoEventiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._storicoEventiTableAdapter.Adapter);
+ }
+ }
+ if ((this._relazUDCTableAdapter != null)) {
+ revertConnections.Add(this._relazUDCTableAdapter, this._relazUDCTableAdapter.Connection);
+ this._relazUDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._relazUDCTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._relazUDCTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._relazUDCTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._relazUDCTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -11331,14 +15989,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
if (workConnOpened) {
workConnection.Close();
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._impianti2ArticoliTableAdapter]));
- this._impianti2ArticoliTableAdapter.Transaction = null;
- }
- if ((this._anagArticoliTableAdapter != null)) {
- this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter]));
- this._anagArticoliTableAdapter.Transaction = null;
- }
if ((this._anagImpiantiTableAdapter != null)) {
this._anagImpiantiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImpiantiTableAdapter]));
this._anagImpiantiTableAdapter.Transaction = null;
@@ -11363,10 +16013,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
this._anagStatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiTableAdapter]));
this._anagStatiTableAdapter.Transaction = null;
}
- if ((this._tabStatoOdpUdcTableAdapter != null)) {
- this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabStatoOdpUdcTableAdapter]));
- this._tabStatoOdpUdcTableAdapter.Transaction = null;
- }
if ((this._anagTipoDichiarazTableAdapter != null)) {
this._anagTipoDichiarazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTipoDichiarazTableAdapter]));
this._anagTipoDichiarazTableAdapter.Transaction = null;
@@ -11379,6 +16025,26 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImballiTableAdapter]));
this._anagImballiTableAdapter.Transaction = null;
}
+ if ((this._anagArticoliTableAdapter != null)) {
+ this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter]));
+ this._anagArticoliTableAdapter.Transaction = null;
+ }
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ this._impianti2ArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._impianti2ArticoliTableAdapter]));
+ this._impianti2ArticoliTableAdapter.Transaction = null;
+ }
+ if ((this._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;
+ }
+ if ((this._relazUDCTableAdapter != null)) {
+ this._relazUDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._relazUDCTableAdapter]));
+ this._relazUDCTableAdapter.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 e6246b1a..4a823a85 100644
--- a/GMW/GMW_data/DS_Applicazione.xsd
+++ b/GMW/GMW_data/DS_Applicazione.xsd
@@ -7,146 +7,6 @@
-
-
-
-
-
- DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)))
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [CodArticolo], [InizioProd], [FineProd]) VALUES (@CodImpianto, @CodArticolo, @InizioProd, @FineProd);
-SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)
-
-
-
-
-
-
-
-
-
-
- SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM dbo.Impianti2Articoli
-
-
-
-
-
- UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [CodArticolo] = @CodArticolo, [InizioProd] = @InizioProd, [FineProd] = @FineProd WHERE (([CodImpianto] = @Original_CodImpianto) AND ([CodArticolo] = @Original_CodArticolo) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)));
-SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHERE (CodArticolo = @CodArticolo) AND (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year, 2, GETDATE())) AS FineProd
-FROM Impianti2Articoli
-WHERE (FineProd IS NULL) AND (CodImpianto = @CodImpianto)
-
-
-
-
-
-
-
-
-
- SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year, 2, GETDATE())) AS FineProd
-FROM Impianti2Articoli
-WHERE (FineProd IS NULL)
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)))
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagArticoli] ([CodArticolo], [DescrArticolo], [Figura]) VALUES (@CodArticolo, @DescrArticolo, @Figura);
-SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)
-
-
-
-
-
-
-
-
-
- SELECT * FROM dbo.AnagArticoli
-
-
-
-
-
- UPDATE [dbo].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescrArticolo] = @DescrArticolo, [Figura] = @Figura WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)));
-SELECT CodArticolo, DescrArticolo, Figura FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -553,147 +413,6 @@ SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato)
-
-
-
-
-
- DELETE FROM [TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate);
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT * FROM TabStatoOdpUdc
-
-
-
-
-
- UPDATE [TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)));
-SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_getStatoByUdc
-
-
-
-
-
-
-
-
-
-
- dbo.stp_insNewOdpUdc
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_updateByBilancia
-
-
-
-
-
-
-
-
-
-
-
-
@@ -856,6 +575,614 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
+
+
+
+
+
+ DELETE FROM [dbo].[AnagArticoli] WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagArticoli] ([Particolare], [DescrArticolo], [Cliente], [Famiglia]) VALUES (@Particolare, @DescrArticolo, @Cliente, @Famiglia);
+SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare = @Particolare)
+
+
+
+
+
+
+
+
+
+
+ SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM dbo.AnagArticoli
+
+
+
+
+
+ UPDATE [dbo].[AnagArticoli] SET [Particolare] = @Particolare, [DescrArticolo] = @DescrArticolo, [Cliente] = @Cliente, [Famiglia] = @Famiglia WHERE (([Particolare] = @Original_Particolare) AND ((@IsNull_DescrArticolo = 1 AND [DescrArticolo] IS NULL) OR ([DescrArticolo] = @Original_DescrArticolo)) AND ((@IsNull_Cliente = 1 AND [Cliente] IS NULL) OR ([Cliente] = @Original_Cliente)) AND ((@IsNull_Famiglia = 1 AND [Famiglia] IS NULL) OR ([Famiglia] = @Original_Famiglia)));
+SELECT Particolare, DescrArticolo, Cliente, Famiglia FROM AnagArticoli WHERE (Particolare = @Particolare)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[Impianti2Articoli] WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Impianti2Articoli] ([CodImpianto], [Particolare], [InizioProd], [FineProd], [CodStampo], [Figura], [FiguraIncisa]) VALUES (@CodImpianto, @Particolare, @InizioProd, @FineProd, @CodStampo, @Figura, @FiguraIncisa);
+SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM dbo.Impianti2Articoli
+
+
+
+
+
+ UPDATE [dbo].[Impianti2Articoli] SET [CodImpianto] = @CodImpianto, [Particolare] = @Particolare, [InizioProd] = @InizioProd, [FineProd] = @FineProd, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa WHERE (([CodImpianto] = @Original_CodImpianto) AND ([Particolare] = @Original_Particolare) AND ([InizioProd] = @Original_InizioProd) AND ((@IsNull_FineProd = 1 AND [FineProd] IS NULL) OR ([FineProd] = @Original_FineProd)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Figura)) AND ((@IsNull_FiguraIncisa = 1 AND [FiguraIncisa] IS NULL) OR ([FiguraIncisa] = @Original_FiguraIncisa)));
+SELECT CodImpianto, Particolare, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM Impianti2Articoli WHERE (CodImpianto = @CodImpianto) AND (InizioProd = @InizioProd) AND (Particolare = @Particolare)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_getImp2Art_ByImpData
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_getImp2Art_currProd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT Cliente, Famiglia, Particolare, CodImpianto, InizioProd, FineProd, CodStampo, Figura, FiguraIncisa FROM dbo.v_ArtInProd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ArtiInProd_ByImpData
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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_getStatoByUdc
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_insNewOdpUdcFull
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[StoricoEventi] WHERE (([IdxEv] = @Original_IdxEv) AND ([DataEv] = @Original_DataEv) AND ([CodEvento] = @Original_CodEvento) AND ((@IsNull_CodOperatore = 1 AND [CodOperatore] IS NULL) OR ([CodOperatore] = @Original_CodOperatore)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_ODP = 1 AND [ODP] IS NULL) OR ([ODP] = @Original_ODP)) AND ([UDC] = @Original_UDC) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) 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_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)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[StoricoEventi] ([DataEv], [CodEvento], [CodOperatore], [CodTipoDichiaraz], [CodCompany], [ODP], [UDC], [Qta], [PesoTot], [PesoCad], [Particolare], [CodStato], [CodStampo], [Figura], [FiguraIncisa]) VALUES (@DataEv, @CodEvento, @CodOperatore, @CodTipoDichiaraz, @CodCompany, @ODP, @UDC, @Qta, @PesoTot, @PesoCad, @Particolare, @CodStato, @CodStampo, @Figura, @FiguraIncisa);
+SELECT IdxEv, DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCompany, ODP, UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa FROM StoricoEventi WHERE (IdxEv = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT IdxEv, DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCompany, ODP, UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa FROM dbo.StoricoEventi
+
+
+
+
+
+ UPDATE [dbo].[StoricoEventi] SET [DataEv] = @DataEv, [CodEvento] = @CodEvento, [CodOperatore] = @CodOperatore, [CodTipoDichiaraz] = @CodTipoDichiaraz, [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Qta] = @Qta, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [Particolare] = @Particolare, [CodStato] = @CodStato, [CodStampo] = @CodStampo, [Figura] = @Figura, [FiguraIncisa] = @FiguraIncisa WHERE (([IdxEv] = @Original_IdxEv) AND ([DataEv] = @Original_DataEv) AND ([CodEvento] = @Original_CodEvento) AND ((@IsNull_CodOperatore = 1 AND [CodOperatore] IS NULL) OR ([CodOperatore] = @Original_CodOperatore)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz)) AND ((@IsNull_CodCompany = 1 AND [CodCompany] IS NULL) OR ([CodCompany] = @Original_CodCompany)) AND ((@IsNull_ODP = 1 AND [ODP] IS NULL) OR ([ODP] = @Original_ODP)) AND ([UDC] = @Original_UDC) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) 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_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)));
+SELECT IdxEv, DataEv, CodEvento, CodOperatore, CodTipoDichiaraz, CodCompany, ODP, UDC, Qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa FROM StoricoEventi WHERE (IdxEv = @IdxEv)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[RelazUDC] WHERE (([UDC_parent] = @Original_UDC_parent) AND ([UDC_child] = @Original_UDC_child))
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[RelazUDC] ([UDC_parent], [UDC_child]) VALUES (@UDC_parent, @UDC_child);
+SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (UDC_parent = @UDC_parent)
+
+
+
+
+
+
+
+
+ SELECT UDC_parent, UDC_child FROM dbo.RelazUDC
+
+
+
+
+
+ UPDATE [dbo].[RelazUDC] SET [UDC_parent] = @UDC_parent, [UDC_child] = @UDC_child WHERE (([UDC_parent] = @Original_UDC_parent) AND ([UDC_child] = @Original_UDC_child));
+SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (UDC_parent = @UDC_parent)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -864,55 +1191,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1099,45 +1377,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1198,19 +1437,334 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
@@ -1236,12 +1790,6 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
-
-
-
-
-
-
@@ -1254,18 +1802,53 @@ SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss
index 0fe15cc6..65177248 100644
--- a/GMW/GMW_data/DS_Applicazione.xss
+++ b/GMW/GMW_data/DS_Applicazione.xss
@@ -4,47 +4,25 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 377
- 122
-
-
- 471
- 122
-
-
-
-
-
-
- 830
- 136
-
-
- 714
- 136
-
-
-
-
+
963
@@ -56,7 +34,7 @@
-
+
821
@@ -68,19 +46,19 @@
-
+
1078
- 404
+ 411
- 1109
- 404
+ 1169
+ 411
-
+
591
@@ -92,39 +70,127 @@
-
+
- 346
- 516
+ 385
+ 80
- 434
- 516
+ 489
+ 80
-
+
- 823
- 590
+ 830
+ 133
- 734
- 590
+ 760
+ 133
-
+
+
+
+ 368
+ 196
+
+
+ 368
+ 546
+
+
+ 467
+ 546
+
+
+
+
360
- 620
+ 588
- 434
- 620
+ 467
+ 588
+
+
+
+
+
+
+ 329
+ 526
+
+
+ 329
+ 554
+
+
+ 467
+ 554
+
+
+
+
+
+
+ 867
+ 574
+
+
+ 767
+ 574
+
+
+
+
+
+
+ 321
+ 722
+
+
+ 321
+ 602
+
+
+ 467
+ 602
+
+
+
+
+
+
+ 1185
+ 811
+
+
+ 1185
+ 850
+
+
+ 1076
+ 850
+
+
+
+
+
+
+ 767
+ 797
+
+
+ 855
+ 797
diff --git a/GMW/GMW_data/DataProxy.cs b/GMW/GMW_data/DataProxy.cs
index a0a4cd25..85dad08b 100644
--- a/GMW/GMW_data/DataProxy.cs
+++ b/GMW/GMW_data/DataProxy.cs
@@ -21,6 +21,8 @@ namespace GMW_data
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;
///
/// init dei table adapters
@@ -35,6 +37,8 @@ namespace GMW_data
taStatoOdpUdc = new GMW_data.DS_ApplicazioneTableAdapters.TabStatoOdpUdcTableAdapter();
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();
}
///
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -50,6 +54,8 @@ namespace GMW_data
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");
}
#endregion
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index 0d80b7a5..97405dfd 100644
Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll
index 676c2f3e..459d8c12 100644
Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index 0d80b7a5..97405dfd 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 2d8f6932..5a48ba35 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll
index 676c2f3e..459d8c12 100644
Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll
index db645f66..f5a489a9 100644
Binary files a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/GMW/GMW_data/reportExporter.cs b/GMW/GMW_data/reportExporter.cs
index 9d3fad0c..f3bf6756 100644
--- a/GMW/GMW_data/reportExporter.cs
+++ b/GMW/GMW_data/reportExporter.cs
@@ -53,7 +53,7 @@ public class reportExporter
// tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
// break;
case reportRichiesto.CartellinoTara:
- tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.getByUdc(UDC);
+ tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC);
break;
default:
break;
diff --git a/GMW/GMW_data/reportPrinter.cs b/GMW/GMW_data/reportPrinter.cs
index 8d95f697..b4ee6786 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.getByUdc(UDC);
+ tab = (DataTable)GMW_data.DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC);
break;
default:
break;