diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index 734b895c..9c9749d7 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -119,6 +119,20 @@ forceUser.aspx + + GestDelibere.aspx + ASPXCodeBehind + + + GestDelibere.aspx + + + jumper.aspx + ASPXCodeBehind + + + jumper.aspx + login.aspx ASPXCodeBehind @@ -274,6 +288,13 @@ mod_creaDatiTest.ascx + + mod_delibera.ascx + ASPXCodeBehind + + + mod_delibera.ascx + mod_detailCelle.ascx ASPXCodeBehind @@ -821,6 +842,7 @@ + @@ -864,9 +886,11 @@ + + diff --git a/GMW/GMW/GestDelibere.aspx b/GMW/GMW/GestDelibere.aspx new file mode 100644 index 00000000..6d2746a9 --- /dev/null +++ b/GMW/GMW/GestDelibere.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="GestDelibere.aspx.cs" Inherits="GMW.GestDelibere" %> +<%@ Register src="WebUserControls/mod_delibera.ascx" tagname="mod_delibera" tagprefix="uc1" %> + + + diff --git a/GMW/GMW/GestDelibere.aspx.cs b/GMW/GMW/GestDelibere.aspx.cs new file mode 100644 index 00000000..cb6bb78c --- /dev/null +++ b/GMW/GMW/GestDelibere.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW +{ + public partial class GestDelibere : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/GMW/GMW/GestDelibere.aspx.designer.cs b/GMW/GMW/GestDelibere.aspx.designer.cs new file mode 100644 index 00000000..67bb82ca --- /dev/null +++ b/GMW/GMW/GestDelibere.aspx.designer.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4927 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW { + + + public partial class GestDelibere { + + /// + /// mod_delibera1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_delibera mod_delibera1; + } +} diff --git a/GMW/GMW/WebUserControls/mod_creaDatiTest.ascx.cs b/GMW/GMW/WebUserControls/mod_creaDatiTest.ascx.cs index 8e25630d..ef1c5dc1 100644 --- a/GMW/GMW/WebUserControls/mod_creaDatiTest.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_creaDatiTest.ascx.cs @@ -22,7 +22,7 @@ namespace GMW.WebUserControls /// protected void btnCreaUDC_Click(object sender, EventArgs e) { - int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere !!! + int IdxPosizione = 80; // hard coded: è la postazione POST fusione di ambivere !!! int contArtInProd = 0; // carico dati init Random rdnGen = new Random(); diff --git a/GMW/GMW/WebUserControls/mod_delibera.ascx b/GMW/GMW/WebUserControls/mod_delibera.ascx new file mode 100644 index 00000000..24e8fe30 --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_delibera.ascx @@ -0,0 +1,118 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_delibera.ascx.cs" + Inherits="GMW.WebUserControls.mod_delibera" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %> +<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> +<%@ Register Src="mod_detailUDC.ascx" TagName="mod_detailUDC" TagPrefix="uc3" %> +
+ + + + + +
+ + + + + +
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +    + + + +
+ + + +
+
diff --git a/GMW/GMW/WebUserControls/mod_delibera.ascx.cs b/GMW/GMW/WebUserControls/mod_delibera.ascx.cs new file mode 100644 index 00000000..7a10524c --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_delibera.ascx.cs @@ -0,0 +1,302 @@ +using System; +using System.Data; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; +using GMW_data; + +namespace GMW.WebUserControls +{ + public partial class mod_delibera : SteamWare.ApplicationUserControl + { + #region area da NON modificare + + #region area protected + + protected string _idxGridView; + protected string _idxGridViewExt; + protected string _tabCache; + + /// + /// aggiorna controlli datagrid e numero righe in pagina + /// + protected override void aggiornaControlliDataGL() + { + base.aggiornaControlliDataGL(); + grView.PageSize = _righeDataGridMed; + } + /// + /// traduce gli header delle colonne + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// reset della selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + + /// + /// collega i controlli + /// + protected override void bindControlli() + { + base.bindControlli(); + caricaTabelle(); + } + + #endregion + + #region gestione eventi + + public event EventHandler eh_resetSelezione; + public event EventHandler eh_nuovoValore; + public event EventHandler eh_selValore; + + #endregion + + #region public + + /// + /// effettua update del modulo + /// + public void doUpdate() + { + resetSelezione(); + } + + + #endregion + + #endregion + + #region area codice variabile + + /// + /// carico le tabelle + /// + private void caricaTabelle() + { + } + /// + /// elenco colonne del datagrid + /// + /// + protected DataColumnCollection colonneObj() + { + DS_magazzino.V_MagazziniOverviewDataTable tabella = new DS_magazzino.V_MagazziniOverviewDataTable(); + DataColumnCollection colonne = tabella.Columns; + return colonne; + } + /// + /// inizializzazione valori di default + /// + /// + protected override void OnInit(EventArgs e) + { + base.OnInit(e); + _idxGridView = "UDC"; + mod_filtroDelibera.eh_selValore += new EventHandler(mod_filtroDelibera_eh_selValore); + if (!Page.IsPostBack) + { + btnDelibera.Text = traduci("btnDelibera"); + cbeBtnDelibera.ConfirmText = traduci("cbeBtnDelibera"); + mod_detailUDC1.Visible = false; + mod_filtroDelibera.ods = odsFiltroDelibera; + // imposto corretto valore x filtro + if (memLayer.ML.isInSessionObject("CodTipoDelib_sel")) + { + mod_filtroDelibera.valore = memLayer.ML.StringSessionObj("CodTipoDelib_sel"); + } + else + { + mod_filtroDelibera.reset(); + } + checkFixOds(); + } + } + /// + /// fix tipo delibera + /// + /// + /// + void mod_filtroDelibera_eh_selValore(object sender, EventArgs e) + { + // chiamo procedura che aggiorna ods principale + checkFixOds(); + } + /// + /// segnalo nuovo valore filtro attivo... + /// + private void checkFixOds() + { +#if false + // determino cosa filtrare nella filter expression... + if (mod_filtroDelibera.valore != "*") + { + ods.FilterExpression = string.Format(" CodMag = '{0}' ", mod_filtroDelibera.valore); + // salvo il valore del numero di celle max x poter scalare correttamente i barplot + try + { + maxNumCelle = MagClass.magazzino.taMagOverw.getMaxCelleByMag(memLayer.ML.StringSessionObj("CodCS"), mod_filtroDelibera.valore)[0].TotCelle; + } + catch + { + maxNumCelle = 1; + } + } + else + { + ods.FilterExpression = ""; + // salvo il valore del numero di celle max x poter scalare correttamente i barplot + try + { + maxNumCelle = MagClass.magazzino.taMagOverw.getMaxCelle(memLayer.ML.StringSessionObj("CodCS"))[0].TotCelle; + } + catch + { + maxNumCelle = 1; + } + } + grView.DataBind(); +#endif + } + /// + /// aggiorno visualizzazione + /// + private void updateOdsDaFiltro() + { + grView.DataBind(); + } + /// + /// chiamata post page change gridview + /// + /// + /// + protected void grView_PageIndexChanged(object sender, EventArgs e) + { + // sistemazione dell'ods post evento cambio pagina + checkFixOds(); + } + /// + /// chiamata post sort gridview + /// + /// + /// + protected void grView_Sorted(object sender, EventArgs e) + { + // sistemazione dell'ods post evento sort + checkFixOds(); + } + /// + /// gestione cambio selezione valore + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // salvo in session il valore selezionato... + SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true); + + mod_detailUDC1.Visible = true; + mod_detailUDC1.doUpdate(); + + //// sollevo evento nuovo valore... + //if (eh_selValore != null) + //{ + // eh_selValore(this, new EventArgs()); + //} + } + /// + /// seleziona/deseleziona le righe indicate... + /// + /// + /// + protected void btnSelAll_Click(object sender, EventArgs e) + { + // seleziono tutti i valori visibili nel datagrid + CheckBox chkbox = ((CheckBox)sender); + bool isChecked = chkbox.Checked; + if (!isChecked) + { + chkbox.ToolTip = traduci("btnSelAll"); + } + else + { + chkbox.ToolTip = traduci("btnDeselAll"); + } + foreach (GridViewRow riga in grView.Rows) + { + ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; + } + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + mod_detailUDC1.Visible = false; + SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); + grView.SelectedIndex = -1; + grView.DataBind(); + lblWarning.Visible = false; + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// effettua delibera per gli UDC selezionati + /// + /// + /// + protected void btnDelibera_Click(object sender, EventArgs e) + { + DateTime start; + foreach (GridViewRow riga in grView.Rows) + { + if (((CheckBox)riga.FindControl("chkSelect")).Checked) + { + start = DateTime.Now; + // recupero codice UDC... + string UDC = ((Label)riga.FindControl("lblUDC")).Text; + // chiamo stored x fare delibera con state machine + StateMachine.SM.deliberaUdc(UDC, mod_filtroDelibera.valore); + } + } + grView.DataBind(); + } + + #endregion + + } +} \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_delibera.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_delibera.ascx.designer.cs new file mode 100644 index 00000000..f94eaa40 --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_delibera.ascx.designer.cs @@ -0,0 +1,106 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4927 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW.WebUserControls { + + + public partial class mod_delibera { + + /// + /// mod_filtroDelibera control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_filtro mod_filtroDelibera; + + /// + /// odsFiltroDelibera control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroDelibera; + + /// + /// mod_periodoAnalisi1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_periodoAnalisi mod_periodoAnalisi1; + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// lblWarning control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblWarning; + + /// + /// mod_detailUDC1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_detailUDC mod_detailUDC1; + + /// + /// btnDelibera control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnDelibera; + + /// + /// cbeBtnDelibera control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::AjaxControlToolkit.ConfirmButtonExtender cbeBtnDelibera; + } +} diff --git a/GMW/GMW/WebUserControls/mod_main_help.ascx b/GMW/GMW/WebUserControls/mod_main_help.ascx index 84862848..59167dc4 100644 --- a/GMW/GMW/WebUserControls/mod_main_help.ascx +++ b/GMW/GMW/WebUserControls/mod_main_help.ascx @@ -18,12 +18,23 @@ - - - - + + + + + + + + - diff --git a/GMW/GMW/WebUserControls/mod_statoMag.ascx.cs b/GMW/GMW/WebUserControls/mod_statoMag.ascx.cs index a0434521..3b472f43 100644 --- a/GMW/GMW/WebUserControls/mod_statoMag.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_statoMag.ascx.cs @@ -274,8 +274,8 @@ namespace GMW.WebUserControls // salvo in session il valore selezionato... SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true); // salvo anche codBlocco... - string codBlocco = MagClass.magazzino.taBlocchi.getByIdx(Convert.ToInt32(grView.SelectedValue))[0].CodMag; - SteamWare.memLayer.ML.setSessionVal("CodMag_sel", codBlocco, true); + string codMag = MagClass.magazzino.taBlocchi.getByIdx(Convert.ToInt32(grView.SelectedValue))[0].CodMag; + SteamWare.memLayer.ML.setSessionVal("CodMag_sel", codMag, true); // sollevo evento nuovo valore... if (eh_selValore != null) diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index e3355c08..8941f68d 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 44e52cc6..b4d40ab1 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/bin/SteamWare.XML b/GMW/GMW/bin/SteamWare.XML index 6809ec2a..919cc404 100644 --- a/GMW/GMW/bin/SteamWare.XML +++ b/GMW/GMW/bin/SteamWare.XML @@ -4,5 +4,3153 @@ SteamWare + + + classe gesione log files applicazioni + + + + + directory base x logs + + + + + nome del file corrente + + + + + max mb di log da accumulare + + + + + singleton del logger + + + + + avvio del logger nella dir desiderata + + + + + avvio del logger nella dir desiderata + + + + + avvio del logger nella dir desiderata con il max di dati indicato + + + + + scrive sul file log di default il valore della variabile string passata su una riga... (tab delim?!?) + + testo iniziale del log + + + + + scrive un messaggio di log con etichetta pre + + testo messaggio + tipo di log da registrare (etichetta [...]) + + + + + fornisce il nome del file in cui loggare (ed eventualmente crea...) + + + + + provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb + + + + + fornisce il file + vecchio + + + + + + + tipo di log ammesso + + + + + informazioni di debug + + + + + errori + + + + + eccezioni nell'esecuzione try/catch + + + + + errori fatali + + + + + informazioni opzionali + + + + + fase di avvio componente + + + + + avvisi + + + + + classe di wrap verso i TableAdapter impiegati + + + + + metodo protected di avvio della classe + + + + + procedura di avvio dei tableAdapter + + + + + procedura di avvio dei tableAdapter + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + setup delle tabelle vocabolario + + + + + prende l'oggetto tabVocabolario in ram e lo trasforma in dictionary + + + + + + tableAdapter diritti + + + + + tableAdapter permessi + + + + + tableAdapter funzione + + + + + tableAdapter permessi2funzione + + + + + tableAdapter CdC + + + + + tableAdapter utenti + + + + + table adapter lingue + + + + + table adapter vocabolario + + + + + table adapter versione vocabolario + + + + + table adapter versione anagrafica + + + + + oggetto vocabolario organizzato come dizionario con chiave lang#lemma e valore la traduzione + + + + + resetta il vocabolario rileggendo i dati... + + + + + crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--" + + + + + + + classe singleton x la gestione dei tableadapters + + + + + elenco lingue ammesse da vocabolario... + + + + + classe di gestione lettura + + + + + esegue parsing fornendo dati ed headers + + + + + + + + esegue parsing fornendo dati + + + + + + + esegue parsing fornendo dati come stream + + + + + + + esegue parsing fornendo dati come stream ed headers + + + + + + + + struttura di comando da input utente (es: via barcode) + + + + + definisce se il comando sia valido o no + + + + + testo da mostrare dato il comando + + + + + comando registrato + + + + + comando precedentemente inserito + + + + + descrizione del comando + + + + + descrizione del comando precedente + + + + + valore del comando + + + + + valore tradotto del comando + + + + + costruttore del metodo... + + + + + Base class for every user control in the application, containing some common + behaviour and utility methods. + It is not meant to be be used directly. + + + + + tipo id controllo con classi di base comune da cui derivare gli *.asmx + + + + + nome della pagina correntemente caricata + + + + + memorizza la pagina precedente (ovvero la corrente ma non da page-object ma in session... + + + + + stringa con CDC in (...) dei cdc abilitati (da permesso gerarchicamente a discendere...) + + + + + stringa con elenco CDC abilitati (da permesso gerarchicamente a discendere...) + + + + + tabella diritti + + + + + tabella di tutti i cdc + + + + + tipo di anagrafica usata + + + + + importo il tipo di vista del modulo + + + + + elenco testuale csv dei cdc accessibili all'utente (x filtri tipo IN(...)) + + + + + numero di righe standard x i datagrid + + + + + numero di righe standard x i datagrid di anagrafica + + + + + numero di righe standard x i datagrid lunghi + + + + + numero di righe standard x i datagrid medi + + + + + numero di righe standard x i datagrid su mezza pagina + + + + + numero di righe standard x i selettori popup + + + + + indirizzo email dell'admin applicativo cui vanno le email in caso di anomalie... + + + + + indirizzo email dell'applicativo da cui partono le email in caso di anomalie... + + + + + indirizzo server SMTP + + + + + elenco delle pagine "safe" ovvero da non autorizzare - da web.config + + + + + elenco delle pagine "common" ovvero da autorizzare ma senza bisogno diritti in anagrafica - da web.config + + + + + valore che determina se è possibile forzare impersonificazioen utente... + + + + + livello di log (1-->5) + + + + + dir di logging + + + + + MAIN: esecuzione al caricamento del modulo delle routines di controllo utente e creazione pagina + + + + + + + predisposizione dati x pagina da cache/database a seconda della disponibilità in cache o refresh (B.1.4) + + + + + popola gli oggetti e le labels... (B.1.6) + + + + + disegna la pagina: prima i controlli poi il datagrid + + + + + aggiunge i link x i selettori + + + + + sistema i vari controlli della pagina + + + + + aggiorna eventuali datalist e datagrid + + + + + sistema tutte le labels traducendo i lemmi nella lingua utente ed in inglese + + + + + calcola come percentuale la radio dividendo/divisore + + + + + + + + limita una stringa al numero max di caratteri imposto + + + + + + + + Reads data from a stream until the end is reached. The + data is returned as a byte array. An IOException is + thrown if any of the underlying IO calls fail. + + The stream to read data from + The initial buffer length + + + + converte una data in formato aaaammgg in stringa gg/mm/aaaa + + + + + + + converte una data in formato aaaammgg in stringa aaaa-mm-gg + + + + + + + converte una stringa in formato gg/mm/aaaa in stringa(intero data) in formato aaaammgg + + + + + + + converte una datetime in un intero tipo yyyymmddhhmmss + + + + + + + formatta la data in formato dateTime in una data formato italiano come stringa gg/mm/aaaa + + + + + + + invia un alert jscript con messaggio indicato... + + messaggio dell'alert da mandare + + + + scrive immediatamente sulla pagina web il messaggio di avanzamento... + + + + + + restituisce una scringa formattata in testa e coda x essere un corretto comando javascript + + + + + + + invio email senza log + + + + + + + + + + invio email con log + + + + + + + + + + caricamento dati applicazione da sessione (B.1.3) + + + + + setup datamanagers... + + + + + reset update del modulo corrente + + + + + (ri)carica i dataset del modulo + + + + + verifica se tutti i dataset richiesti sono disponibili i cache + + + + + + salva nella cache i dataset caricati + + + + + carica dalla cache i dataset necessari + + + + + legge i valori standard x dataset e parametri + + + + + leggi i parametri di configurazione standard dell'applicativo + + + + + genera la stringa dei cdc autorizzati dell'utente + + + + + legge il dataset dei CdC + + + + + caricamento dati user da sessione (B.1.1) + + + + + verifica che l'utente abbia almeno un permesso per la pagina corrente altrimenti redirect ad unauthorized + + + + + salva in variabile pagina il nome della pagina corrente + + + + + selezione delle posizioni cdc autorizzate come stringa di filtraggio su POSIZIONE LIKE, se non ce ne fossero redirige su unauthorized.aspx + + + + + + risponde alla domanda se l'utente abbia permesso tipo writable (S) nel permessi2funzione + + + + + + verifica la condizione booleana e formatta di conseguenza la stringa di filtraggio da accodare al filtro x CdC autorizzati + + condizione + tipo di eguaglianza + nome parametro + valore parametro + + + + + crea la stringa di filtraggio x data secondo modalità tipo inizio/fine/durante... + + + + + + crea la stringa di filtraggio x data secondo modalità tipo minoreUguale / uguale / maggioreUguale... + + + + + + verifica la condizione booleana e formatta di conseguenza la stringa di filtraggio tipo LIKE x i campi inseriti separati da # SE valParam !="" + + + + + + + + esegue la ricerca dei cdc nelle posizioni indicate dal filtro e restituisce elenco distinct degli stessi + + filtro con cui cercare i cdc (del tipo " (POSIZIONE LIKE 'T.1.2.3%') OR ... " + stringa di filtraggio ricostruita per l'elenco dei cdc fino a quel momento trovati + ultimo cdc trovato + cdc corrente + + + + + restituisce il cdc dell'utente data la sua matricola + + + + + + + restituisce l'utente AS dall'utente win + + + + + + + restituisce la descr del CdC + + + + + + + invia la stringa jscript di conferma pre-cancellazione + + + + + + restituisce la stringa del path corretto per l'immagine richiesta nel formato "~/images/{0}{1}" + + verrà usato x posizione {0}, tipo "view" + verrà usato x posizione {1}, tipo "_s.png" + + + + + restituisce la stringa del path corretto per l'immagine richiesta nel formato "~/images/{0}{1}" + + verrà usato x posizione {0}, tipo "view" + verrà usato x posizione {1}, tipo "_s.png" + tipo del file richiesto..." + + + + + effettua traduzione del lemma + + + + + + + effettua traduzione in inglese del lemma + + + + + + + definisce visibilità + + + + + + + effettua la registrazione degli eventi + + + + + effettua l'inserimento vero e proprio dell'evento letto dai valori in session x l'utente corrente... + + evento da loggare + valori originali + nuovi valori + filtro associato + + + + salva in sessione i valori indicati + + dictionary dei valori vecchi + dictionary dei valori nuovi + bool su abilitazione al log dell'oggetto + descrizione evento da loggare + filtro associato all'evento + restituisce il numero di elementi contenuti, -1 significa nessuna differenza... + + + + salva in sessione i valori per un oggetto che sta x essere eliminato + + dictionary dei valori vecchi + bool su abilitazione al log dell'oggetto + descrizione evento da loggare + filtro associato all'evento + restituisce il numero di elementi contenuti, -1 significa nessuna differenza... + + + + imposto il tipo di anagrafica del controlloS + + + + + variabile salvata in view state x la stringa di sorting - dg 2 + + + + + variabile salvata in view state x la stringa di sorting - dg 2 + + + + + legge e scrive in viewState la stringa di filtraggio... + + + + + variabile salvata in viewstate x la direzione del sorting + + + + + genera la stringa filtro x i cdc autorizzati x l'user + + + + + + tipo di vista del modulo + + + + + Summary description for selettori + + + + + + + + + + + + + + + carica i dati CdC se in cache o da TableAdapter + + + + + restituisce l'elenco di tutti i cdc + + + + + + restituisce l'elenco di tutti i cdc della gerarchia dell'utente + + + + + + Represents a strongly typed in-memory cache of data. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + classe di gestione dei db x creazione/update alla versione richiesta + + + + + oggetto connessione + + + + + stringa di connessione + + + + + dir che contiene gli script da eseguire... + + + + + formato del file SQL impiegato (nel senso di formato come iFormat del tipo "App_{0:0000}.sql" --> da App_0001.sql ad App_9999.sql) + + + + + avvio protected della classe + + + + + esegue gli script di sql di update dal file richiesto + + + + + + + + Aggiorna il db eseguendo gli script dalla versione di partenza a quella di arrivo + + NB: per definizione rev 0 = resetta svuotando DB, rev 1 crea tabelle iniziali, rev 2 inserisce i valori di default + + nome DB di cui cercare script + revisione di partenza + revisione di arrivo + timeout max per ogni operazione + + + + + verifica se il db indicato esiste o meno... + + + + + + + + crea il db indicato con i parametri di connessione specificati + + + + + + + + Represents a strongly typed in-memory cache of data. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + classe con funzioni specifiche di calcolo + + + + + inizializzazione classe + + + + + elenco dei caratteri base 36: 0..9A..Z + + + + + + converte da base di dimensione nBase a valore intero + + valore in formato nBase + base, max 36 (0..9A..Z) + + + + + metodo di accesso singleton + + + + + tipo di chart (2D/3D) + + + + + 2D + + + + + 3D + + + + + web control che disegna un grafico a torta + + + + + altezza di default + + + + + larghezza di default + + + + + padding di default + + + + + legenda visibile di default + + + + + soglia minima 5% per mostrare il dato + + + + + renderizza il contenuto + + + + + + disegna la leggenda html laterale... + + + + + + disegna piechart 2-dim + + + + + + disegna piechart 3d ellittica + + + + + + traduce la stringa colore in oggetto colore + + + + + + + converte intero a stringa esadecimale + + + + + + + converte stringa esadecimale a intero + + + + + + + tipo di grafico (2D/3D) + + + + + ampiezza del grafico + + + + + altezza del grafico + + + + + padding grafico/container + + + + + boolean se si debba mostrale la legenda + + + + + percentuale minima da mostrare + + + + + serie di dati (tipizzata) ma mostrare + + + + + testo associato al controllo + + + + + layer gestione vari tipi di memoria: cache, session... + + + + + lettore file configurazione + + + + + oggetto singleton x accesso al layer di memoria + + + + + classe gestione accessi a Session, cache, viewstate, configuration... + + + + + legge dalla config un valore bool + + + + + + + legge dalla config un valore string + + + + + + + legge dalla config un valore int + + + + + + + carica dalla sessione un dato di tipo object generico + + + + + + + carica dalla sessione un dato di tipo boolean (se vuoto false) + + + + + + + carica dalla sessione un dato di tipo string + + + + + + + carica dalla sessione un dato di tipo long + + + + + + + carica dalla sessione un dato di tipo int + + + + + + + inserisce in session un valore + + + + + + + salvo un valore come cookie + + + + + + + + restituisco un valore da cookie + + + + + + + inserisce in session un valore + + nome della variabile + valore associato + indica se debba sopravvivere ad update (inserita in elenco valSess2SurvUpd) + + + + + svuota una variabile dalla session + + + + + + restituisce true se è presente in session l'oggetto richiesto + + + + + + + carica dalla Cache un dato di tipo object generico + + + + + + + carica dalla Cachee un dato di tipo boolean (se vuoto false) + + + + + + + carica dalla Cachee un dato di tipo string + + + + + + + inserisce in Cache un valore + + nome della variabile + valore + + + + inserisce in Cache un valore e su richiesta regitra tra le tab in cache da svuotare on update.. + + nome della variabile + valore + da registrare come tabella da svuotare on update? + + + + + svuota una variabile dalla Cache + + + + + + restituisce true se è presente in cache l'oggetto richiesto + + + + + + + aggiunge la stringa corrente nel dictionary delle tabelle messe in cache e da aggiornare su comando update + + + + + + aggiunge la stringa corrente nel dictionary delle tabelle messe in session che vanno preservate da comando update (es: oggetto selezionato...) + + + + + + + forza lo svuotamento delel tabelle indicate come in cache... + + + + + elenco dictionary delle tab in cache da aggiornare con update svuotando da cache... + + + + + elenco dictionary dei valori in session da NON aggiornare con update... + + + + + classe gestione parametri deviceper stampa + + + + + creazione oggetto parametri per stampa + + + + + + + + + + + + formato output + + + + + altezza + + + + + larghezza + + + + + margine Sx + + + + + margine Dx + + + + + margine Top + + + + + margine Bottom + + + + + enumeratore modalità login + + + + + login AD normale + + + + + forza utente fornendo password + + + + + forza ad un utente standard scelto dall'elenco + + + + + enumeratore modalità scrittura tag siteMap + + + + + nodo di tipo iniziale - apertura + + + + + nodo di tipo foglia + + + + + nodo di tipo finale - chiusura + + + + + enumeratore tipi di anagrafica + + + + + tipo di anagrafica Brembo + + + + + tipo di anagrafica generica + + + + + tipo di vista del modulo + + + + + modalità selezione + + + + + modalità editing + + + + + tipologia di file immagine + + + + + formato gif (no alpha channel) + + + + + formato jpeg + + + + + formato png + + + + + tipo di immagini usate per le icone di comando in web applications + + + + + icona annulla (croce rossa) + + + + + icona approva (simbolo coccarda) + + + + + icona barcode in campo bianco + + + + + icona barcode in campo arancio + + + + + icona clona (magic wand) + + + + + icona converma (spunta verde) + + + + + icona elimina (cestino) + + + + + icona modifica (matita) + + + + + icona notepad (blocco note) + + + + + icona notepad + pdf (blocco note) + + + + + icona nuovo (segno +) + + + + + icona seleziona (lente) + + + + + icona semaforo giallo + + + + + icona semaforo rosso + + + + + icona semaforo verde + + + + + icona stampa (printer) + + + + + dimensione immagini usate per le icone di comando in web applications + + + + + formato piccolo + + + + + formato medio + + + + + formato grande + + + + + definisce un intervalo di 2 date + + + + + data inizio + + + + + data fine + + + + + struttura orario ordinarie/strordinarie + + + + + ore ordinarie + + + + + ore straordinarie + + + + + classe di funzioni inerenti le date + + + + + inizializzazione empty + + + + + effettua l'operazione di intersezione tra 2 intervali di date restituendo ulteriore intervallo: NB se sono intervali disgiunti restituisce 9/9/9999 x inizio e fine + + + + + + + + oggetto mese precedente alla dataLilmite + + + + + + oggetto mese corrente fino alla dataLilmite + + + + + + confronta le date e restituisce true se le date sono nello stesso mese + + + + + + + + restituisce l'intervallo del giorno completo che comprende la data indicata + + + + + + + restituisce l'intervallo di N giorni fino alla data indicata + + + + + + + + restituisce l'intervallo della settimana corrente per la data indicata + + + + + + + restituisce l'intervallo del mese corrente per la data indicata + + + + + + + restituisce l'intervallo del mese che comprendela data indicata + + + + + + + restituisce l'intervallo dell'anno corrente per la data indicata + + + + + + + classe di gestione delle email + + + + + stringa nel nome DNS o dell'ip del server SMTP + + + + + metodo static per la gestione delle email + + + + + + metodo static per la gestione delle email + + + + + + + procedura invio email + + email mittente + email destinatario + oggetto dell'email + corpo del messaggio + + + + procedura invio email + scrittura in log! + + email mittente + email destinatario + oggetto dell'email + corpo del messaggio + + + + metodo singleton gestione email... + + + + + Tipo di comparazione, Binary == CaseSensitive, Text = insensitive + + + + + tipo controllo : binario + + + + + tipo controllo : text + + + + + Funzione di splitting compatibile con multi-character e multi-line + + + + + stringa da splittare + + + + + Delimiter con cui splittare + + + + + Costruttore dello Splitter + + + + + comparatore case sensitive + + + + + + + + comparatore case insensitive + + + + + + + + parte principale dello splitter + + stringa da splittare + delimitatore ricercato + true=il delimiter è un blocco unico, false=qualsiasi oggetto del delimiter fa split (come split base) + + 0 -> Binary=CaseSensitive, 1 -> Text=case insensitive + + + + + elimina dal nome file il tipo (desinenza) + + + + + + + Classe di metodi che estendono quelli base applicati alle string + + + + + Trasforma in MAIUSCOLo il primo carattere della stringa + + stringa da processare + stringa processata + + + + restituisce la stringa completa e corretta del filepath del server (anche con vDir) + + path relativo alla cartella iis dell'applicativo + path fisico tradotto + + + + effettua escape di stringhe di ricerca di tipo filtro per apici e altri caratteri non ammessi + + + + + + + fornisce dati di base per l'utente + + + + + fornisce cognome e nome utente formattati a partire dall'username e dalla tabella UTENTE + + + + + + + restituisce la riga completa dall'username richiesto + + + + + + + Represents a strongly typed in-memory cache of data. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents the strongly named DataTable class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Represents strongly named DataRow class. + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Row event argument class + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + Represents the connection and commands used to retrieve and save data. + + + + + classe gestione utente: auth e permission/ruoli - versione GENERICA + + + + + cancella da session l'utente + + + + + carica la riga dati utente + + + + + Carica la tabella diritti dell'utente da db e salva in session + + + + + Carica la tabella diritti dell'utente da db e salva in session SOLO per il CDC indicato + + + + + + Effettua setup dei permessi una volta salvati i diritti + + + + + imposta la lingua utente dal valore della riga DB + + + + + costruisce la mappa del sito per l'utente + + + + + formatta un nodo in modo corretto dai dati indicati + + + + + + + + + inizializza la gestione utente... + + + + + traduce il lemma nella lingua dell'user corrente + + + + + + + traduce il lemma in inglese + + + + + + + traduce il lemma nella lingua dell'user e in inglese tra parentesi + + + + + + + Procedura da chiamare DOPO aver messo in session i dati utente/dominio x caricare gli altri dati + + + + + + + + Procedura da chiamare DOPO aver messo in session i dati utente/dominio x caricare gli altri dati CON I DIRITTI SOLO per il CDC indicato + + + + + + + + + salva dati accessori quali il cdc dell'utente... + + + + + verifica nella tab diritti se l'utente abbia il right richiesto e fornisce bool in risposta + + + + + + + verifica le credenziali AD dell'utente... + + + + + + + + conta il numero di permessi utente per la pagina attuale e restituisce true se ne trova almeno 1 + + + + + + + verifica se il permesso utente per la pagina attuale sia write per almeno 1 diritto assegnato (restituisce true se ne trova almeno 1 con permessi2funzione.readwrite='S') + + + + + + + ricarica e ri-traduce la mappa sito per l'utente... + + + + + retituisce il nome apgina dai permessi utente + + + + + + restituisce cognome e nome di un utente dato username... + + username + + + + + restituisce cognome e nome di un utente data la matricola... + + matricola + + + + + restituisce cognome e nome di un utente dato username e dominio... + + username + dominio + + + + + restituisce cognome e nome di un utente dato username... + + username + + + + + restituisce cognome e nome di un utente dato username e dominio... + + username + dominio + + + + + restituisce cognome e nome di un utente dato username eventualmente comprensivo di dominio... + + {dominio\}userName + + + + + restituisce l'elenco delle funzioni abilitate dato modulo ed username partendo dalla radice dell'albero dei diritti + + + + + + + + restituisce l'elenco degli utenti dato i diritti che devono avere come modulo/funzione + + nome del modulo + nome della funzione + tabella utenti + + + + restituisce l'elenco delle email degli utenti dato i diritti che devono avere come modulo/funzione + + nome del modulo + nome della funzione + stringa di email separate da "," + + + + crea un nuovo utente con le credenziali indicate + + + + + + + + + + + + assegna il diritto all'utente indicato + + + + + + + + + + + toglier il diritto all'utente indicato + + + + + + + + + + + restituisce la tabella (per utente corrente) dei CDC abilitati per l'applicazione attuale da sessione (se non c'è salva...) + + modulo di cui si testano i diritti + + + + + versione statica della classe utente come singleton UtenTeSignletoN + + + + + restituisce la tabella diritti da session + + + + + tabella dei permessi utente + + + + + tabella dei permessi utente di tipo "WRITE" enabled + + + + + retituisce username AD + + + + + oggetto utente con metodi get/set + + + + + oggetto dominio con metodi get/set + + + + + oggetto modulo (applicazione) con metodi get/set + + + + + oggetto lingua utente con metodi get/set + + + + + restituisce true se utente forzato da forceUser.aspx + + + + + restituisce i valori della riga utente da db + + + + + restituisce una stringa formattata con cognome, nome e matricola + + + + + restituisce una stringa della sigla dell'utente + + + + + restituisce una stringa formattata con cognome e nome + + + + + restituisce una stringa formattata con cognome + + + + + restituisce una stringa formattata con nome + + + + + fornisce un file XML della mappa del sito abilitato per l'utente... + + + + + è un boolean che indica se in session ci siano user/dominio e quindi utente autenticato in rpecedenza... + + + + + Accesso in lettura e scrittura al filesystem per gestione files upload e download + + + + + path di lavoro dei metodi leggi/scrivi + + + + + verifica esistenza directory ed eventualmente crea restituendo nome completo di "/" finale + + + + + + + restituisce una tab di files dato l'elenco dei files + + + + + + + setta le directory + + + + + + oggetto WebClient + + + + + inizializza il metodo alla cartella indicata + + + non serve +... x retrocompatibilità... + + + + metodo di avvio empty + + + + + cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + + + + + + + cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile + + + + + + + + cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath + + + + + + + Legge i dati da uno stream fino a quando arriva alla fine. + I dati sono restituiti come un byte[] array. un eccezione IOException è + sollevata se una delle chiamate IO sottostanti fallisce. + + Lo stream da cui leggere + Lunghezza buffer iniziale (-1 = default 32k) + + + + verifica esistenza directory, eventualmente crea e restituisce controllo DirectoryInfo + + + + + + ottiene il dataset dei files presenti nella directory indicata esplicitamente + + dir da indicizzare... già mappata! ( es SteamwareStrings.getFilePath(...) ) + + + + + ottiene il dataset dei files presenti nella directory indicata all'istanziazione dell'oggetto + + + + + + ottiene il dataset dei files DEL TIPO "like {param}" presenti nella directory indicata all'istanziazione dell'oggetto + + + + + + elenco dei files come array di oggetti FileInfo + + + + + + elenco dei files come array di oggetti FileInfo filtrati per parametro + + + + + + + elimina la directory di lavoro se è dir virtuale mappata + + + + + + elimina tutti i files con la regexp indicata da una directory, true se cancellato almeno uno + + regexp selezione files in dir (* = tutti!!!) + + + + + verifica se il file indicato esista in workDir + + + + + + + elimina il file indicato dalla directory di lavoro + + + + + + + restituisce lo stream del file richiesto + + + + + + + restituisce la stringa letta dal file richiesto + + + + + + + scrive il file dallo stream byte[] inviato + + + + + + + + scrive il file dalla stringa inviata + + + + + + + + converte una string in un byte[] + + + + + + + converte un byte[] in una string + + + + + + + sposta il file da From a To... + + + + + + + + + copia il file da From a To... + + + + + + + + + copia il file da From a To... + + + + + + + + + + imposta la dir di lavoro + + + + + + imposta la dir di lavoro + + + non serve +... x retrocompatibilità... + + + + imposta la dir di lavoro impostandola dal mapPath corretto della web app... + + + + + + esegue un comando in shell + + + + + + + + + esegue un comando in shell + + + + + + + + + Scarica un file dall'url fornito nella directory indicata x il filemover col nome richiesto + + url del file + nome con cui salvare il file + + + + + comprime zip il file indicato + + + + + + + comprime zip i files corrispondenti alla RegExp indicata nella dir corrente + + Espressione ricerca, come *.txt + Nome del file zip da creare + + + + + calcola la dim della directory corrente... + + + + + + + elimina il file + vecchio + + + + + + + versione statica (singleton) del'oggetto fileMover + + + + + classe per effettuare confronto tra valori disomogeneri per tipo e costruire diff testuali + + + + + valore originale + + + + + nuovo valore + + + + + dictionary dei parametri vecchi + + + + + dictionary dei parametri nuovi + + + + + inizializzazione classe + + + + + valorizza i diff dei valori old e new + + + + + calcola solo il vettore dei valori old (x delete) + + + + + oggetto statico per il confronto valori + + + + + stringa diff dei valori originali modificati + + + + + stringa diff dei valori nuovi modificati + + + + + dictionary dei parametri old + + + + + dictionary dei parametri new + + + + + classe gestione logging esteso di eventi e note utente (correlabili) + + + + + TableAdapter di accesso alla tabella anagrafica filtraggi + + + + + TableAdapter di accesso alla tabella anagrafica record + + + + + TableAdapter di accesso alla tabella logging record di eventi + + + + + TableAdapter di accesso alla tabella logging utente + + + + + TableAdapter di accesso alla vista logging eventi + + + + + TableAdapter di accesso alla vista logging utente + + + + + effettua setup dei connection strings da web.config delal singola applicazione + + + + + avvio i tari tableAdapters + + + + + avvio della classe istanziando db e + + + + + oggetto statico di accesso ai metodi della classe... + + + + + tabella eventi + + + + + + tabella note + + + + + + tabella eventi secondo filtro + + filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento + + + + + tabella note secondo filtro + + filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento + + + + + tabella eventi secondo filtro e condizione ulteriore WHERE esplicitata + + filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento + ulteriore condizione WHERE per filtrare i dati (testo {0} della condizione "WHERE {0}" + + + + + tabella note secondo filtro e condizione ulteriore WHERE esplicitata + + filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento + ulteriore condizione WHERE per filtrare i dati (testo {0} della condizione "WHERE {0}" + + + + + tabella note secondo filtro + + filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento + + + + + inserisce l'evento indicato dai parametri + + user che ha generato l'evento + pagina/form applicaizone in cui l'evento si è generato + valore originale(se c'è) + valore nuovo/modificato + descrizione evento (poi gestita con anagrafica interna) + filtro logico evento (poi gestita con anagrafica interna) + + + + inserisce la nota utente indicata dai parametri, restituisce idx della nota creata... + + user che ha inserito la nota + testo della nota + valore ulteriore da associare alla nota (es: label, codice, versione, ...) + filtro logico evento (poi gestita con anagrafica interna) + intero dell'idx della nota creata + + + + associa l'evento e la nota indicati + + idx del record da associare + idx chiave della nota da associare + + + + associa l'ultimo evento del filtro indicato alla nota + + filtro associato all'ultimo evento... + idx chiave della nota da associare + + + + segna come cestinati tutti gli eventi dell'utente indicato non ancora associati o cestinati + + utente generatore dell'evento + + + + segna come cestinati tutti gli eventi dell'utente indicato non ancora associati o cestinati + + utente generatore dell'evento + + + + Elimina gli eventi cestinati generati dall'utente indicato + + utente generatore dell'evento + + + + Elimina gli eventi cestinati anteriori alla data selezionata + + dataOra dell'evento + + + + effettua la registrazione dell'evento in session + + + + + metodo di comportamento del controllo di logging + + + + + nasconde pannello log + + + + + memorizza log inserito + + + + + mostra pannello log + + + + + metodo di comportamento del controllo di logging + + + + + indica il primo step del doppio livello di approvazione (completamento) + + + + + SOLO con incremento indice di revisione dell'oggetto approvato + + + + + SOLO mantenendo indice di revisione corrente + + + + + permette SIA con revisione che senza (e anche rev -1) + + + + + Pagina base applicazioni SteamWare da cui derivare le altre + + + + + Iniziazlizzazione void (non fa nulla) + + + + + Metodo MAIN: viene eseguita al caricamento ed effettua delle routines per il controllo utente e istanzia l'oggetto memLayer + + + + + + + rimanda alla pagina di Work In Progress salvando in session un titolo ed una descrizione che al pagina wip poi mostrerà all'utente + + titolo da mostrare nella pagina WIP + descrizione da mostrare nella pagina WIP + diff --git a/GMW/GMW/bin/SteamWare.dll b/GMW/GMW/bin/SteamWare.dll index 7cb0786b..ebfdfba8 100644 Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ diff --git a/GMW/GMW/images/SchemaMag.png b/GMW/GMW/images/SchemaMag.png index afbb1ea0..e21df37a 100644 Binary files a/GMW/GMW/images/SchemaMag.png and b/GMW/GMW/images/SchemaMag.png differ diff --git a/GMW/GMW/images/lista_02-PreCli_l.png b/GMW/GMW/images/lista_02-PreCli_l.png new file mode 100644 index 00000000..e003351c Binary files /dev/null and b/GMW/GMW/images/lista_02-PreCli_l.png differ diff --git a/GMW/GMW/images/lista_02-PreCli_m.png b/GMW/GMW/images/lista_02-PreCli_m.png new file mode 100644 index 00000000..9f02b002 Binary files /dev/null and b/GMW/GMW/images/lista_02-PreCli_m.png differ diff --git a/GMW/GMW/images/lista_02-PreCli_s.png b/GMW/GMW/images/lista_02-PreCli_s.png new file mode 100644 index 00000000..a92d6668 Binary files /dev/null and b/GMW/GMW/images/lista_02-PreCli_s.png differ diff --git a/GMW/GMW/images/logo_sw.png b/GMW/GMW/images/logo_sw.png index a8298254..e1933231 100644 Binary files a/GMW/GMW/images/logo_sw.png and b/GMW/GMW/images/logo_sw.png differ diff --git a/GMW/GMW/jumper.aspx b/GMW/GMW/jumper.aspx new file mode 100644 index 00000000..87c1ff0a --- /dev/null +++ b/GMW/GMW/jumper.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jumper.aspx.cs" Inherits="GMW.jumper" %> + + + + + + + + +
+
+ +
+
+ + diff --git a/GMW/GMW/jumper.aspx.cs b/GMW/GMW/jumper.aspx.cs new file mode 100644 index 00000000..38b0438b --- /dev/null +++ b/GMW/GMW/jumper.aspx.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW +{ + public partial class jumper : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + // carico informazioni da URL + string nextPage = Request.QueryString["nextPage"]; + // a seconda della pag richiesta salvo in sessione e rimbalzo.. + switch (nextPage) + { + case "GestDelibere.aspx": + Session["CodTipoDelib_sel"] = Request.QueryString["CodTipoDelib_sel"]; + Response.Redirect("~/GestDelibere.aspx"); + break; + default: + Response.Redirect("~/menu.aspx"); + break; + } + } + } +} diff --git a/GMW/GMW/jumper.aspx.designer.cs b/GMW/GMW/jumper.aspx.designer.cs new file mode 100644 index 00000000..525d7426 --- /dev/null +++ b/GMW/GMW/jumper.aspx.designer.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW +{ + + + public partial class jumper + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt b/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt index 321a7b02..106d858d 100644 --- a/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt +++ b/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt @@ -1,36 +1,3 @@ -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\ResolveAssemblyReference.cache -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.pdb -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ICSharpCode.SharpZipLib.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.pdb -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.pdb -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.pdb -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ar\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\cs\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\de\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\es\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\fr\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\he\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\hi\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\it\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ja\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ko\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\nl\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\pt\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ru\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\tr-TR\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\zh-CHS\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\zh-CHT\AjaxControlToolkit.resources.dll -c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.dll C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.pdb C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.dll @@ -64,3 +31,36 @@ C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\ C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.pdb +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ICSharpCode.SharpZipLib.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.pdb +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.pdb +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.pdb +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ar\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\cs\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\de\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\es\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\fr\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\he\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\hi\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\it\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ja\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ko\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\nl\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\pt\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ru\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\tr-TR\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\zh-CHS\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\zh-CHT\AjaxControlToolkit.resources.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\ResolveAssemblyReference.cache +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll +c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index e3355c08..8941f68d 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 35288600..d5f50146 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs index bfc94135..f79a52e6 100644 --- a/GMW/GMW_data/DS_Applicazione.Designer.cs +++ b/GMW/GMW_data/DS_Applicazione.Designer.cs @@ -31,8 +31,6 @@ namespace GMW_data { private AnagStatiProdottoDataTable tableAnagStatiProdotto; - private StoricoEventiDataTable tableStoricoEventi; - private RelazUDCDataTable tableRelazUDC; private AnagImpiantiDataTable tableAnagImpianti; @@ -59,8 +57,6 @@ namespace GMW_data { private Soggetti2UtenteDataTable tableSoggetti2Utente; - private global::System.Data.DataRelation relationFK_StoricoEventi_AnagTipoDichiaraz; - private global::System.Data.DataRelation relationFK_AnagImpianti_AnagCompanySito; private global::System.Data.DataRelation relationFK_ElencoCartellini_AnagCompanySito; @@ -108,9 +104,6 @@ namespace GMW_data { if ((ds.Tables["AnagStatiProdotto"] != null)) { base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"])); } - 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"])); } @@ -195,15 +188,6 @@ namespace GMW_data { } } - [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)] @@ -389,9 +373,6 @@ namespace GMW_data { if ((ds.Tables["AnagStatiProdotto"] != null)) { base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"])); } - 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"])); } @@ -479,12 +460,6 @@ namespace GMW_data { this.tableAnagStatiProdotto.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)) { @@ -563,7 +538,6 @@ namespace GMW_data { this.tableSoggetti2Utente.InitVars(); } } - this.relationFK_StoricoEventi_AnagTipoDichiaraz = this.Relations["FK_StoricoEventi_AnagTipoDichiaraz"]; this.relationFK_AnagImpianti_AnagCompanySito = this.Relations["FK_AnagImpianti_AnagCompanySito"]; this.relationFK_ElencoCartellini_AnagCompanySito = this.Relations["FK_ElencoCartellini_AnagCompanySito"]; this.relationFK_ElencoCartellini_AnagStatiProdotto = this.Relations["FK_ElencoCartellini_AnagStatiProdotto"]; @@ -585,8 +559,6 @@ namespace GMW_data { base.Tables.Add(this.tableAnagTipoDichiaraz); this.tableAnagStatiProdotto = new AnagStatiProdottoDataTable(); base.Tables.Add(this.tableAnagStatiProdotto); - this.tableStoricoEventi = new StoricoEventiDataTable(); - base.Tables.Add(this.tableStoricoEventi); this.tableRelazUDC = new RelazUDCDataTable(); base.Tables.Add(this.tableRelazUDC); this.tableAnagImpianti = new AnagImpiantiDataTable(); @@ -613,10 +585,6 @@ namespace GMW_data { base.Tables.Add(this.tableAnagFamiglie); this.tableSoggetti2Utente = new Soggetti2UtenteDataTable(); base.Tables.Add(this.tableSoggetti2Utente); - 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_AnagImpianti_AnagCompanySito = new global::System.Data.DataRelation("FK_AnagImpianti_AnagCompanySito", new global::System.Data.DataColumn[] { this.tableAnagCompanySito.CodCSColumn}, new global::System.Data.DataColumn[] { this.tableAnagImpianti.CodCSColumn}, false); @@ -658,11 +626,6 @@ namespace GMW_data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private bool ShouldSerializeStoricoEventi() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeRelazUDC() { return false; @@ -787,8 +750,6 @@ namespace GMW_data { public delegate void AnagStatiProdottoRowChangeEventHandler(object sender, AnagStatiProdottoRowChangeEvent e); - public delegate void StoricoEventiRowChangeEventHandler(object sender, StoricoEventiRowChangeEvent e); - public delegate void RelazUDCRowChangeEventHandler(object sender, RelazUDCRowChangeEvent e); public delegate void AnagImpiantiRowChangeEventHandler(object sender, AnagImpiantiRowChangeEvent e); @@ -1558,455 +1519,6 @@ namespace GMW_data { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class 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. /// @@ -3575,7 +3087,7 @@ namespace GMW_data { this.columnCodStampo.MaxLength = 8; this.columnFigura.MaxLength = 4; this.columnCodImballo.MaxLength = 15; - this.columnCodSoggetto.MaxLength = 16; + this.columnCodSoggetto.MaxLength = 17; this.columnCodStato.MaxLength = 50; } @@ -4662,7 +4174,7 @@ namespace GMW_data { this.columnCodSoggetto}, true)); this.columnCodSoggetto.AllowDBNull = false; this.columnCodSoggetto.Unique = true; - this.columnCodSoggetto.MaxLength = 16; + this.columnCodSoggetto.MaxLength = 17; this.columnCodCS.AllowDBNull = false; this.columnCodCS.MaxLength = 2; this.columnCodDipendente.MaxLength = 7; @@ -5108,6 +4620,10 @@ namespace GMW_data { private global::System.Data.DataColumn columndescimballo; + private global::System.Data.DataColumn columnCodFamiglia; + + private global::System.Data.DataColumn columnDescFamiglia; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public stp_prtCartByUDCDataTable() { this.TableName = "stp_prtCartByUDC"; @@ -5341,6 +4857,20 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodFamigliaColumn { + get { + return this.columnCodFamiglia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescFamigliaColumn { + get { + return this.columnDescFamiglia; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Browsable(false)] public int Count { @@ -5399,7 +4929,9 @@ namespace GMW_data { string cognome, string nome, string descstato, - string descimballo) { + string descimballo, + string CodFamiglia, + string DescFamiglia) { stp_prtCartByUDCRow rowstp_prtCartByUDCRow = ((stp_prtCartByUDCRow)(this.NewRow())); object[] columnValuesArray = new object[] { UDC, @@ -5430,7 +4962,9 @@ namespace GMW_data { cognome, nome, descstato, - descimballo}; + descimballo, + CodFamiglia, + DescFamiglia}; rowstp_prtCartByUDCRow.ItemArray = columnValuesArray; this.Rows.Add(rowstp_prtCartByUDCRow); return rowstp_prtCartByUDCRow; @@ -5485,6 +5019,8 @@ namespace GMW_data { this.columnnome = base.Columns["nome"]; this.columndescstato = base.Columns["descstato"]; this.columndescimballo = base.Columns["descimballo"]; + this.columnCodFamiglia = base.Columns["CodFamiglia"]; + this.columnDescFamiglia = base.Columns["DescFamiglia"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5547,6 +5083,10 @@ namespace GMW_data { base.Columns.Add(this.columndescstato); this.columndescimballo = new global::System.Data.DataColumn("descimballo", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columndescimballo); + this.columnCodFamiglia = new global::System.Data.DataColumn("CodFamiglia", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodFamiglia); + this.columnDescFamiglia = new global::System.Data.DataColumn("DescFamiglia", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescFamiglia); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnUDC}, true)); this.columnUDC.AllowDBNull = false; @@ -5578,7 +5118,7 @@ namespace GMW_data { this.columncodimballo.ReadOnly = true; this.columncodimballo.MaxLength = 15; this.columncodsoggetto.ReadOnly = true; - this.columncodsoggetto.MaxLength = 16; + this.columncodsoggetto.MaxLength = 17; this.columnnumcont.ReadOnly = true; this.columntara.ReadOnly = true; this.columnqta.ReadOnly = true; @@ -5595,6 +5135,8 @@ namespace GMW_data { this.columndescstato.MaxLength = 50; this.columndescimballo.ReadOnly = true; this.columndescimballo.MaxLength = 30; + this.columnCodFamiglia.MaxLength = 4; + this.columnDescFamiglia.MaxLength = 100; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -6636,16 +6178,6 @@ namespace GMW_data { 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"]))); - } - } } /// @@ -6708,371 +6240,6 @@ namespace GMW_data { } } - /// - ///Represents strongly named DataRow class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class StoricoEventiRow : global::System.Data.DataRow { - - private StoricoEventiDataTable tableStoricoEventi; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal StoricoEventiRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - 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 { - try { - return ((string)(this[this.tableStoricoEventi.CodTipoDichiarazColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodTipoDichiaraz\' in table \'StoricoEventi\' is DBNull.", e); - } - } - set { - this[this.tableStoricoEventi.CodTipoDichiarazColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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 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; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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 { - try { - return ((string)(this[this.tableStoricoEventi.CodStatoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodStato\' in table \'StoricoEventi\' is DBNull.", e); - } - } - set { - this[this.tableStoricoEventi.CodStatoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - 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 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 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; - } - } - /// ///Represents strongly named DataRow class. /// @@ -9212,6 +8379,36 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodFamiglia { + get { + try { + return ((string)(this[this.tablestp_prtCartByUDC.CodFamigliaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodFamiglia\' in table \'stp_prtCartByUDC\' is DBNull.", e); + } + } + set { + this[this.tablestp_prtCartByUDC.CodFamigliaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescFamiglia { + get { + try { + return ((string)(this[this.tablestp_prtCartByUDC.DescFamigliaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescFamiglia\' in table \'stp_prtCartByUDC\' is DBNull.", e); + } + } + set { + this[this.tablestp_prtCartByUDC.DescFamigliaColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsCodCSNull() { return this.IsNull(this.tablestp_prtCartByUDC.CodCSColumn); @@ -9491,6 +8688,26 @@ namespace GMW_data { public void SetdescimballoNull() { this[this.tablestp_prtCartByUDC.descimballoColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodFamigliaNull() { + return this.IsNull(this.tablestp_prtCartByUDC.CodFamigliaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodFamigliaNull() { + this[this.tablestp_prtCartByUDC.CodFamigliaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescFamigliaNull() { + return this.IsNull(this.tablestp_prtCartByUDC.DescFamigliaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescFamigliaNull() { + this[this.tablestp_prtCartByUDC.DescFamigliaColumn] = global::System.Convert.DBNull; + } } /// @@ -9821,37 +9038,6 @@ namespace GMW_data { } } - /// - ///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 /// @@ -11248,865 +10434,6 @@ SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato)"; } } - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DataObjectAttribute(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + - ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class 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. /// @@ -17344,6 +15671,8 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl tableMapping.ColumnMappings.Add("nome", "nome"); tableMapping.ColumnMappings.Add("descstato", "descstato"); tableMapping.ColumnMappings.Add("descimballo", "descimballo"); + tableMapping.ColumnMappings.Add("CodFamiglia", "CodFamiglia"); + tableMapping.ColumnMappings.Add("DescFamiglia", "DescFamiglia"); this._adapter.TableMappings.Add(tableMapping); } @@ -18650,8 +16979,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = private AnagStatiProdottoTableAdapter _anagStatiProdottoTableAdapter; - private StoricoEventiTableAdapter _storicoEventiTableAdapter; - private RelazUDCTableAdapter _relazUDCTableAdapter; private AnagImpiantiTableAdapter _anagImpiantiTableAdapter; @@ -18727,19 +17054,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = } } - [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" + @@ -18912,10 +17226,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = && (this._anagStatiProdottoTableAdapter.Connection != null))) { return this._anagStatiProdottoTableAdapter.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; @@ -18981,9 +17291,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = if ((this._anagStatiProdottoTableAdapter != null)) { count = (count + 1); } - if ((this._storicoEventiTableAdapter != null)) { - count = (count + 1); - } if ((this._relazUDCTableAdapter != null)) { count = (count + 1); } @@ -19036,15 +17343,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allChangedRows.AddRange(updatedRows); } } - if ((this._anagOperatoriTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagOperatoriTableAdapter.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); @@ -19054,12 +17352,12 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allChangedRows.AddRange(updatedRows); } } - if ((this._anagTipoDichiarazTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._anagOperatoriTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._anagTipoDichiarazTableAdapter.Update(updatedRows)); + result = (result + this._anagOperatoriTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -19108,12 +17406,12 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allChangedRows.AddRange(updatedRows); } } - if ((this._storicoEventiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._anagTipoDichiarazTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoDichiaraz.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)); + result = (result + this._anagTipoDichiarazTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -19179,14 +17477,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allAddedRows.AddRange(addedRows); } } - if ((this._anagOperatoriTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagOperatoriTableAdapter.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) @@ -19195,11 +17485,11 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allAddedRows.AddRange(addedRows); } } - if ((this._anagTipoDichiarazTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._anagOperatoriTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._anagTipoDichiarazTableAdapter.Update(addedRows)); + result = (result + this._anagOperatoriTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -19243,11 +17533,11 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allAddedRows.AddRange(addedRows); } } - if ((this._storicoEventiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.StoricoEventi.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._anagTipoDichiarazTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._storicoEventiTableAdapter.Update(addedRows)); + result = (result + this._anagTipoDichiarazTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -19340,11 +17630,11 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allChangedRows.AddRange(deletedRows); } } - if ((this._storicoEventiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.StoricoEventi.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._storicoEventiTableAdapter.Update(deletedRows)); + result = (result + this._anagTipoDichiarazTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -19388,11 +17678,11 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allChangedRows.AddRange(deletedRows); } } - if ((this._anagTipoDichiarazTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._anagOperatoriTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagTipoDichiarazTableAdapter.Update(deletedRows)); + result = (result + this._anagOperatoriTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -19404,14 +17694,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = allChangedRows.AddRange(deletedRows); } } - if ((this._anagOperatoriTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._anagOperatoriTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._anagCompanySitoTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagCompanySito.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -19472,11 +17754,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = 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" + @@ -19591,15 +17868,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiProdottoTableAdapter.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)); @@ -19769,10 +18037,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = this._anagStatiProdottoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiProdottoTableAdapter])); this._anagStatiProdottoTableAdapter.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; diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd index 7705ca8c..9e2cedeb 100644 --- a/GMW/GMW_data/DS_Applicazione.xsd +++ b/GMW/GMW_data/DS_Applicazione.xsd @@ -169,147 +169,6 @@ where CodStato=@CodStato - - - - - - 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) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1222,7 +1081,7 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl - + dbo.stp_prtCartByUDC @@ -1264,6 +1123,8 @@ SELECT CodCliente, RagSociale FROM RilPro.AnagClienti WHERE (CodCliente = @CodCl + + @@ -1503,8 +1364,8 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - - + + @@ -1517,14 +1378,14 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + @@ -1537,102 +1398,14 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1645,14 +1418,14 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + @@ -1665,35 +1438,35 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - + - + - + @@ -1706,35 +1479,35 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - + - + - + @@ -1747,21 +1520,21 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - + @@ -1774,128 +1547,128 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - + - - - - + + + + - - - - - + + + + + - + @@ -1922,96 +1695,96 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - - - + + + - - - - + + + + - + - + - + - + - + - + - + - + - + @@ -2027,7 +1800,7 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + @@ -2093,14 +1866,14 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + @@ -2113,191 +1886,205 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - + - - - - + + + + - - - - - - + + + + + + - + - + - + + + + + + + + + + + + + + + - + - + - + - + - + - + @@ -2310,14 +2097,14 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + @@ -2330,21 +2117,21 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - + - + - + @@ -2368,10 +2155,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - - - - @@ -2425,7 +2208,6 @@ SELECT CodSoggetto, USER_NAME, DOMINIO FROM Soggetti2Utente WHERE (CodSoggetto = - diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss index 5c7dc893..471d63a2 100644 --- a/GMW/GMW_data/DS_Applicazione.xss +++ b/GMW/GMW_data/DS_Applicazione.xss @@ -4,39 +4,26 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - + + + - + - + - - - - + + + + - - - - 948 - 769 - - - 948 - 889 - - - @@ -49,7 +36,7 @@ - + 1188 @@ -81,7 +68,7 @@ - + 1138 @@ -97,7 +84,7 @@ - + 1248 @@ -109,7 +96,7 @@ - + 488 diff --git a/GMW/GMW_data/DS_SM.Designer.cs b/GMW/GMW_data/DS_SM.Designer.cs index 81b48cc8..153e2d25 100644 --- a/GMW/GMW_data/DS_SM.Designer.cs +++ b/GMW/GMW_data/DS_SM.Designer.cs @@ -35,8 +35,6 @@ namespace GMW_data { private AnagTipoDelibereDataTable tableAnagTipoDelibere; - private ElencoCartelliniDataTable tableElencoCartellini; - private global::System.Data.DataRelation relationFK_TabTranPosizEventi_AnagTipoEvento; private global::System.Data.DataRelation relationFK_TabTranPosizEventi_AnagPosizioni; @@ -45,8 +43,6 @@ namespace GMW_data { private global::System.Data.DataRelation relationFK_AnagTipoDelibere_AnagTipoEvento; - private global::System.Data.DataRelation relationFK_ElencoCartellini_AnagPosizioni; - private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -88,9 +84,6 @@ namespace GMW_data { if ((ds.Tables["AnagTipoDelibere"] != null)) { base.Tables.Add(new AnagTipoDelibereDataTable(ds.Tables["AnagTipoDelibere"])); } - if ((ds.Tables["ElencoCartellini"] != null)) { - base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"])); - } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -154,15 +147,6 @@ namespace GMW_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public ElencoCartelliniDataTable ElencoCartellini { - get { - return this.tableElencoCartellini; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -237,9 +221,6 @@ namespace GMW_data { if ((ds.Tables["AnagTipoDelibere"] != null)) { base.Tables.Add(new AnagTipoDelibereDataTable(ds.Tables["AnagTipoDelibere"])); } - if ((ds.Tables["ElencoCartellini"] != null)) { - base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"])); - } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -300,17 +281,10 @@ namespace GMW_data { this.tableAnagTipoDelibere.InitVars(); } } - this.tableElencoCartellini = ((ElencoCartelliniDataTable)(base.Tables["ElencoCartellini"])); - if ((initTable == true)) { - if ((this.tableElencoCartellini != null)) { - this.tableElencoCartellini.InitVars(); - } - } this.relationFK_TabTranPosizEventi_AnagTipoEvento = this.Relations["FK_TabTranPosizEventi_AnagTipoEvento"]; this.relationFK_TabTranPosizEventi_AnagPosizioni = this.Relations["FK_TabTranPosizEventi_AnagPosizioni"]; this.relationFK_Delibere_AnagTipoDelibere = this.Relations["FK_Delibere_AnagTipoDelibere"]; this.relationFK_AnagTipoDelibere_AnagTipoEvento = this.Relations["FK_AnagTipoDelibere_AnagTipoEvento"]; - this.relationFK_ElencoCartellini_AnagPosizioni = this.Relations["FK_ElencoCartellini_AnagPosizioni"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -330,8 +304,6 @@ namespace GMW_data { base.Tables.Add(this.tableAnagPosizioni); this.tableAnagTipoDelibere = new AnagTipoDelibereDataTable(); base.Tables.Add(this.tableAnagTipoDelibere); - this.tableElencoCartellini = new ElencoCartelliniDataTable(); - base.Tables.Add(this.tableElencoCartellini); this.relationFK_TabTranPosizEventi_AnagTipoEvento = new global::System.Data.DataRelation("FK_TabTranPosizEventi_AnagTipoEvento", new global::System.Data.DataColumn[] { this.tableAnagTipoEvento.CodEventoColumn}, new global::System.Data.DataColumn[] { this.tableTabTranPosizEventi.CodEventoColumn}, false); @@ -348,10 +320,6 @@ namespace GMW_data { this.tableAnagTipoEvento.CodEventoColumn}, new global::System.Data.DataColumn[] { this.tableAnagTipoDelibere.CodEventoColumn}, false); this.Relations.Add(this.relationFK_AnagTipoDelibere_AnagTipoEvento); - this.relationFK_ElencoCartellini_AnagPosizioni = new global::System.Data.DataRelation("FK_ElencoCartellini_AnagPosizioni", new global::System.Data.DataColumn[] { - this.tableAnagPosizioni.IdxPosizioneColumn}, new global::System.Data.DataColumn[] { - this.tableElencoCartellini.IdxPosizioneColumn}, false); - this.Relations.Add(this.relationFK_ElencoCartellini_AnagPosizioni); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -379,11 +347,6 @@ namespace GMW_data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private bool ShouldSerializeElencoCartellini() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -447,8 +410,6 @@ namespace GMW_data { public delegate void AnagTipoDelibereRowChangeEventHandler(object sender, AnagTipoDelibereRowChangeEvent e); - public delegate void ElencoCartelliniRowChangeEventHandler(object sender, ElencoCartelliniRowChangeEvent e); - /// ///Represents the strongly named DataTable class. /// @@ -1759,594 +1720,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 ElencoCartelliniDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnUDC; - - private global::System.Data.DataColumn columnCodCS; - - private global::System.Data.DataColumn columnCodCliente; - - private global::System.Data.DataColumn columnRagSociale; - - private global::System.Data.DataColumn columnParticolare; - - private global::System.Data.DataColumn columnDescParticolare; - - private global::System.Data.DataColumn columnDisegnoGrezzo; - - private global::System.Data.DataColumn columnEsponente; - - private global::System.Data.DataColumn columnCodImpianto; - - private global::System.Data.DataColumn columnDescImpianto; - - private global::System.Data.DataColumn columnCodStampo; - - private global::System.Data.DataColumn columnFigura; - - private global::System.Data.DataColumn columnDataFus; - - private global::System.Data.DataColumn columnTurnoFus; - - private global::System.Data.DataColumn columnCodImballo; - - private global::System.Data.DataColumn columnCodSoggetto; - - private global::System.Data.DataColumn columnNumCont; - - private global::System.Data.DataColumn columnTara; - - private global::System.Data.DataColumn columnQta; - - private global::System.Data.DataColumn columnCodStato; - - private global::System.Data.DataColumn columnIdxPosizione; - - 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 ElencoCartelliniDataTable() { - this.TableName = "ElencoCartellini"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal ElencoCartelliniDataTable(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 ElencoCartelliniDataTable(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 UDCColumn { - get { - return this.columnUDC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodCSColumn { - get { - return this.columnCodCS; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodClienteColumn { - get { - return this.columnCodCliente; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn RagSocialeColumn { - get { - return this.columnRagSociale; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn ParticolareColumn { - get { - return this.columnParticolare; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DescParticolareColumn { - get { - return this.columnDescParticolare; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DisegnoGrezzoColumn { - get { - return this.columnDisegnoGrezzo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn EsponenteColumn { - get { - return this.columnEsponente; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodImpiantoColumn { - get { - return this.columnCodImpianto; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn DescImpiantoColumn { - get { - return this.columnDescImpianto; - } - } - - [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 DataFusColumn { - get { - return this.columnDataFus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn TurnoFusColumn { - get { - return this.columnTurnoFus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodImballoColumn { - get { - return this.columnCodImballo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodSoggettoColumn { - get { - return this.columnCodSoggetto; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn NumContColumn { - get { - return this.columnNumCont; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn TaraColumn { - get { - return this.columnTara; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn QtaColumn { - get { - return this.columnQta; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn CodStatoColumn { - get { - return this.columnCodStato; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn IdxPosizioneColumn { - get { - return this.columnIdxPosizione; - } - } - - [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 ElencoCartelliniRow this[int index] { - get { - return ((ElencoCartelliniRow)(this.Rows[index])); - } - } - - public event ElencoCartelliniRowChangeEventHandler ElencoCartelliniRowChanging; - - public event ElencoCartelliniRowChangeEventHandler ElencoCartelliniRowChanged; - - public event ElencoCartelliniRowChangeEventHandler ElencoCartelliniRowDeleting; - - public event ElencoCartelliniRowChangeEventHandler ElencoCartelliniRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void AddElencoCartelliniRow(ElencoCartelliniRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRow AddElencoCartelliniRow( - string UDC, - string CodCS, - string CodCliente, - string RagSociale, - string Particolare, - string DescParticolare, - string DisegnoGrezzo, - string Esponente, - string CodImpianto, - string DescImpianto, - string CodStampo, - string Figura, - System.DateTime DataFus, - int TurnoFus, - string CodImballo, - string CodSoggetto, - int NumCont, - double Tara, - decimal Qta, - string CodStato, - AnagPosizioniRow parentAnagPosizioniRowByFK_ElencoCartellini_AnagPosizioni, - double PesoTot, - double PesoCad, - System.DateTime CreateDate, - System.DateTime ModDate) { - ElencoCartelliniRow rowElencoCartelliniRow = ((ElencoCartelliniRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - UDC, - CodCS, - CodCliente, - RagSociale, - Particolare, - DescParticolare, - DisegnoGrezzo, - Esponente, - CodImpianto, - DescImpianto, - CodStampo, - Figura, - DataFus, - TurnoFus, - CodImballo, - CodSoggetto, - NumCont, - Tara, - Qta, - CodStato, - null, - PesoTot, - PesoCad, - CreateDate, - ModDate}; - if ((parentAnagPosizioniRowByFK_ElencoCartellini_AnagPosizioni != null)) { - columnValuesArray[20] = parentAnagPosizioniRowByFK_ElencoCartellini_AnagPosizioni[0]; - } - rowElencoCartelliniRow.ItemArray = columnValuesArray; - this.Rows.Add(rowElencoCartelliniRow); - return rowElencoCartelliniRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRow FindByUDC(string UDC) { - return ((ElencoCartelliniRow)(this.Rows.Find(new object[] { - UDC}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override global::System.Data.DataTable Clone() { - ElencoCartelliniDataTable cln = ((ElencoCartelliniDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataTable CreateInstance() { - return new ElencoCartelliniDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal void InitVars() { - this.columnUDC = base.Columns["UDC"]; - this.columnCodCS = base.Columns["CodCS"]; - this.columnCodCliente = base.Columns["CodCliente"]; - this.columnRagSociale = base.Columns["RagSociale"]; - this.columnParticolare = base.Columns["Particolare"]; - this.columnDescParticolare = base.Columns["DescParticolare"]; - this.columnDisegnoGrezzo = base.Columns["DisegnoGrezzo"]; - this.columnEsponente = base.Columns["Esponente"]; - this.columnCodImpianto = base.Columns["CodImpianto"]; - this.columnDescImpianto = base.Columns["DescImpianto"]; - this.columnCodStampo = base.Columns["CodStampo"]; - this.columnFigura = base.Columns["Figura"]; - this.columnDataFus = base.Columns["DataFus"]; - this.columnTurnoFus = base.Columns["TurnoFus"]; - this.columnCodImballo = base.Columns["CodImballo"]; - this.columnCodSoggetto = base.Columns["CodSoggetto"]; - this.columnNumCont = base.Columns["NumCont"]; - this.columnTara = base.Columns["Tara"]; - this.columnQta = base.Columns["Qta"]; - this.columnCodStato = base.Columns["CodStato"]; - this.columnIdxPosizione = base.Columns["IdxPosizione"]; - 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.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnUDC); - this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodCS); - this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodCliente); - this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnRagSociale); - this.columnParticolare = new global::System.Data.DataColumn("Particolare", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnParticolare); - this.columnDescParticolare = new global::System.Data.DataColumn("DescParticolare", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDescParticolare); - this.columnDisegnoGrezzo = new global::System.Data.DataColumn("DisegnoGrezzo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDisegnoGrezzo); - this.columnEsponente = new global::System.Data.DataColumn("Esponente", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEsponente); - this.columnCodImpianto = new global::System.Data.DataColumn("CodImpianto", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodImpianto); - this.columnDescImpianto = new global::System.Data.DataColumn("DescImpianto", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDescImpianto); - 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.columnDataFus = new global::System.Data.DataColumn("DataFus", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDataFus); - this.columnTurnoFus = new global::System.Data.DataColumn("TurnoFus", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTurnoFus); - this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodImballo); - this.columnCodSoggetto = new global::System.Data.DataColumn("CodSoggetto", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodSoggetto); - this.columnNumCont = new global::System.Data.DataColumn("NumCont", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNumCont); - this.columnTara = new global::System.Data.DataColumn("Tara", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTara); - this.columnQta = new global::System.Data.DataColumn("Qta", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnQta); - this.columnCodStato = new global::System.Data.DataColumn("CodStato", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodStato); - this.columnIdxPosizione = new global::System.Data.DataColumn("IdxPosizione", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnIdxPosizione); - 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.columnUDC}, true)); - this.columnUDC.AllowDBNull = false; - this.columnUDC.Unique = true; - this.columnUDC.MaxLength = 50; - this.columnCodCS.MaxLength = 2; - this.columnCodCliente.MaxLength = 6; - this.columnRagSociale.MaxLength = 35; - this.columnParticolare.MaxLength = 15; - this.columnDescParticolare.MaxLength = 30; - this.columnDisegnoGrezzo.MaxLength = 30; - this.columnEsponente.MaxLength = 6; - this.columnCodImpianto.MaxLength = 50; - this.columnDescImpianto.MaxLength = 50; - this.columnCodStampo.MaxLength = 8; - this.columnFigura.MaxLength = 4; - this.columnCodImballo.MaxLength = 15; - this.columnCodSoggetto.MaxLength = 16; - this.columnCodStato.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRow NewElencoCartelliniRow() { - return ((ElencoCartelliniRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new ElencoCartelliniRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Type GetRowType() { - return typeof(ElencoCartelliniRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.ElencoCartelliniRowChanged != null)) { - this.ElencoCartelliniRowChanged(this, new ElencoCartelliniRowChangeEvent(((ElencoCartelliniRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.ElencoCartelliniRowChanging != null)) { - this.ElencoCartelliniRowChanging(this, new ElencoCartelliniRowChangeEvent(((ElencoCartelliniRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.ElencoCartelliniRowDeleted != null)) { - this.ElencoCartelliniRowDeleted(this, new ElencoCartelliniRowChangeEvent(((ElencoCartelliniRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.ElencoCartelliniRowDeleting != null)) { - this.ElencoCartelliniRowDeleting(this, new ElencoCartelliniRowChangeEvent(((ElencoCartelliniRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void RemoveElencoCartelliniRow(ElencoCartelliniRow 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_SM ds = new DS_SM(); - 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 = "ElencoCartelliniDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - /// ///Represents strongly named DataRow class. /// @@ -2620,16 +1993,6 @@ namespace GMW_data { return ((TabTranPosizEventiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabTranPosizEventi_AnagPosizioni"]))); } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRow[] GetElencoCartelliniRows() { - if ((this.Table.ChildRelations["FK_ElencoCartellini_AnagPosizioni"] == null)) { - return new ElencoCartelliniRow[0]; - } - else { - return ((ElencoCartelliniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoCartellini_AnagPosizioni"]))); - } - } } /// @@ -2727,641 +2090,6 @@ namespace GMW_data { } } - /// - ///Represents strongly named DataRow class. - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class ElencoCartelliniRow : global::System.Data.DataRow { - - private ElencoCartelliniDataTable tableElencoCartellini; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal ElencoCartelliniRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableElencoCartellini = ((ElencoCartelliniDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string UDC { - get { - return ((string)(this[this.tableElencoCartellini.UDCColumn])); - } - set { - this[this.tableElencoCartellini.UDCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodCS { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodCSColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodCS\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodCSColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodCliente { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodClienteColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodCliente\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodClienteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string RagSociale { - get { - try { - return ((string)(this[this.tableElencoCartellini.RagSocialeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RagSociale\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.RagSocialeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string Particolare { - get { - try { - return ((string)(this[this.tableElencoCartellini.ParticolareColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Particolare\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.ParticolareColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string DescParticolare { - get { - try { - return ((string)(this[this.tableElencoCartellini.DescParticolareColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescParticolare\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.DescParticolareColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string DisegnoGrezzo { - get { - try { - return ((string)(this[this.tableElencoCartellini.DisegnoGrezzoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DisegnoGrezzo\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.DisegnoGrezzoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string Esponente { - get { - try { - return ((string)(this[this.tableElencoCartellini.EsponenteColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Esponente\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.EsponenteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodImpianto { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodImpiantoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodImpianto\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodImpiantoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string DescImpianto { - get { - try { - return ((string)(this[this.tableElencoCartellini.DescImpiantoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescImpianto\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.DescImpiantoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodStampo { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodStampoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodStampo\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodStampoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string Figura { - get { - try { - return ((string)(this[this.tableElencoCartellini.FiguraColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Figura\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.FiguraColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.DateTime DataFus { - get { - try { - return ((global::System.DateTime)(this[this.tableElencoCartellini.DataFusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DataFus\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.DataFusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public int TurnoFus { - get { - try { - return ((int)(this[this.tableElencoCartellini.TurnoFusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TurnoFus\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.TurnoFusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodImballo { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodImballoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodImballo\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodImballoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodSoggetto { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodSoggettoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodSoggetto\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodSoggettoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public int NumCont { - get { - try { - return ((int)(this[this.tableElencoCartellini.NumContColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumCont\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.NumContColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public double Tara { - get { - try { - return ((double)(this[this.tableElencoCartellini.TaraColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Tara\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.TaraColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public decimal Qta { - get { - try { - return ((decimal)(this[this.tableElencoCartellini.QtaColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Qta\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.QtaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public string CodStato { - get { - try { - return ((string)(this[this.tableElencoCartellini.CodStatoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodStato\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CodStatoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public int IdxPosizione { - get { - try { - return ((int)(this[this.tableElencoCartellini.IdxPosizioneColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizione\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.IdxPosizioneColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public double PesoTot { - get { - try { - return ((double)(this[this.tableElencoCartellini.PesoTotColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PesoTot\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.PesoTotColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public double PesoCad { - get { - try { - return ((double)(this[this.tableElencoCartellini.PesoCadColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PesoCad\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.PesoCadColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.DateTime CreateDate { - get { - try { - return ((global::System.DateTime)(this[this.tableElencoCartellini.CreateDateColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CreateDate\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.CreateDateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.DateTime ModDate { - get { - try { - return ((global::System.DateTime)(this[this.tableElencoCartellini.ModDateColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ModDate\' in table \'ElencoCartellini\' is DBNull.", e); - } - } - set { - this[this.tableElencoCartellini.ModDateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public AnagPosizioniRow AnagPosizioniRow { - get { - return ((AnagPosizioniRow)(this.GetParentRow(this.Table.ParentRelations["FK_ElencoCartellini_AnagPosizioni"]))); - } - set { - this.SetParentRow(value, this.Table.ParentRelations["FK_ElencoCartellini_AnagPosizioni"]); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodCSNull() { - return this.IsNull(this.tableElencoCartellini.CodCSColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodCSNull() { - this[this.tableElencoCartellini.CodCSColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodClienteNull() { - return this.IsNull(this.tableElencoCartellini.CodClienteColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodClienteNull() { - this[this.tableElencoCartellini.CodClienteColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsRagSocialeNull() { - return this.IsNull(this.tableElencoCartellini.RagSocialeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetRagSocialeNull() { - this[this.tableElencoCartellini.RagSocialeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsParticolareNull() { - return this.IsNull(this.tableElencoCartellini.ParticolareColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetParticolareNull() { - this[this.tableElencoCartellini.ParticolareColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsDescParticolareNull() { - return this.IsNull(this.tableElencoCartellini.DescParticolareColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetDescParticolareNull() { - this[this.tableElencoCartellini.DescParticolareColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsDisegnoGrezzoNull() { - return this.IsNull(this.tableElencoCartellini.DisegnoGrezzoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetDisegnoGrezzoNull() { - this[this.tableElencoCartellini.DisegnoGrezzoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsEsponenteNull() { - return this.IsNull(this.tableElencoCartellini.EsponenteColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetEsponenteNull() { - this[this.tableElencoCartellini.EsponenteColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodImpiantoNull() { - return this.IsNull(this.tableElencoCartellini.CodImpiantoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodImpiantoNull() { - this[this.tableElencoCartellini.CodImpiantoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsDescImpiantoNull() { - return this.IsNull(this.tableElencoCartellini.DescImpiantoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetDescImpiantoNull() { - this[this.tableElencoCartellini.DescImpiantoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodStampoNull() { - return this.IsNull(this.tableElencoCartellini.CodStampoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodStampoNull() { - this[this.tableElencoCartellini.CodStampoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsFiguraNull() { - return this.IsNull(this.tableElencoCartellini.FiguraColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetFiguraNull() { - this[this.tableElencoCartellini.FiguraColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsDataFusNull() { - return this.IsNull(this.tableElencoCartellini.DataFusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetDataFusNull() { - this[this.tableElencoCartellini.DataFusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsTurnoFusNull() { - return this.IsNull(this.tableElencoCartellini.TurnoFusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetTurnoFusNull() { - this[this.tableElencoCartellini.TurnoFusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodImballoNull() { - return this.IsNull(this.tableElencoCartellini.CodImballoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodImballoNull() { - this[this.tableElencoCartellini.CodImballoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodSoggettoNull() { - return this.IsNull(this.tableElencoCartellini.CodSoggettoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodSoggettoNull() { - this[this.tableElencoCartellini.CodSoggettoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsNumContNull() { - return this.IsNull(this.tableElencoCartellini.NumContColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetNumContNull() { - this[this.tableElencoCartellini.NumContColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsTaraNull() { - return this.IsNull(this.tableElencoCartellini.TaraColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetTaraNull() { - this[this.tableElencoCartellini.TaraColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsQtaNull() { - return this.IsNull(this.tableElencoCartellini.QtaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetQtaNull() { - this[this.tableElencoCartellini.QtaColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCodStatoNull() { - return this.IsNull(this.tableElencoCartellini.CodStatoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCodStatoNull() { - this[this.tableElencoCartellini.CodStatoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsIdxPosizioneNull() { - return this.IsNull(this.tableElencoCartellini.IdxPosizioneColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetIdxPosizioneNull() { - this[this.tableElencoCartellini.IdxPosizioneColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsPesoTotNull() { - return this.IsNull(this.tableElencoCartellini.PesoTotColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetPesoTotNull() { - this[this.tableElencoCartellini.PesoTotColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsPesoCadNull() { - return this.IsNull(this.tableElencoCartellini.PesoCadColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetPesoCadNull() { - this[this.tableElencoCartellini.PesoCadColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsCreateDateNull() { - return this.IsNull(this.tableElencoCartellini.CreateDateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetCreateDateNull() { - this[this.tableElencoCartellini.CreateDateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsModDateNull() { - return this.IsNull(this.tableElencoCartellini.ModDateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetModDateNull() { - this[this.tableElencoCartellini.ModDateColumn] = global::System.Convert.DBNull; - } - } - /// ///Row event argument class /// @@ -3516,37 +2244,6 @@ namespace GMW_data { } } } - - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public class ElencoCartelliniRowChangeEvent : global::System.EventArgs { - - private ElencoCartelliniRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRowChangeEvent(ElencoCartelliniRow row, global::System.Data.DataRowAction action) { - this.eventRow = row; - this.eventAction = action; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public ElencoCartelliniRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } } } namespace GMW_data.DS_SMTableAdapters { @@ -5251,1389 +3948,6 @@ SELECT CodTipoDelibera, DescDelibera, CodEvento FROM AnagTipoDelibere WHERE (Cod } } - /// - ///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 ElencoCartelliniTableAdapter : 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 ElencoCartelliniTableAdapter() { - 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 = "ElencoCartellini"; - tableMapping.ColumnMappings.Add("UDC", "UDC"); - tableMapping.ColumnMappings.Add("CodCS", "CodCS"); - tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); - tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); - tableMapping.ColumnMappings.Add("Particolare", "Particolare"); - tableMapping.ColumnMappings.Add("DescParticolare", "DescParticolare"); - tableMapping.ColumnMappings.Add("DisegnoGrezzo", "DisegnoGrezzo"); - tableMapping.ColumnMappings.Add("Esponente", "Esponente"); - tableMapping.ColumnMappings.Add("CodImpianto", "CodImpianto"); - tableMapping.ColumnMappings.Add("DescImpianto", "DescImpianto"); - tableMapping.ColumnMappings.Add("CodStampo", "CodStampo"); - tableMapping.ColumnMappings.Add("Figura", "Figura"); - tableMapping.ColumnMappings.Add("DataFus", "DataFus"); - tableMapping.ColumnMappings.Add("TurnoFus", "TurnoFus"); - tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); - tableMapping.ColumnMappings.Add("CodSoggetto", "CodSoggetto"); - tableMapping.ColumnMappings.Add("NumCont", "NumCont"); - tableMapping.ColumnMappings.Add("Tara", "Tara"); - tableMapping.ColumnMappings.Add("Qta", "Qta"); - tableMapping.ColumnMappings.Add("CodStato", "CodStato"); - tableMapping.ColumnMappings.Add("IdxPosizione", "IdxPosizione"); - 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].[ElencoCartellini] WHERE (([UDC] = @Original_UDC) AND ((@IsNull" + - "_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_Co" + - "dCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente))" + - " AND ((@IsNull_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Orig" + - "inal_RagSociale)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([" + - "Particolare] = @Original_Particolare)) AND ((@IsNull_DescParticolare = 1 AND [De" + - "scParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND " + - "((@IsNull_DisegnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @" + - "Original_DisegnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR" + - " ([Esponente] = @Original_Esponente)) AND ((@IsNull_CodImpianto = 1 AND [CodImpi" + - "anto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_DescImp" + - "ianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpiant" + - "o)) AND ((@IsNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Orig" + - "inal_CodStampo)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @" + - "Original_Figura)) AND ((@IsNull_DataFus = 1 AND [DataFus] IS NULL) OR ([DataFus]" + - " = @Original_DataFus)) AND ((@IsNull_TurnoFus = 1 AND [TurnoFus] IS NULL) OR ([T" + - "urnoFus] = @Original_TurnoFus)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS" + - " NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodSoggetto = 1 A" + - "ND [CodSoggetto] IS NULL) OR ([CodSoggetto] = @Original_CodSoggetto)) AND ((@IsN" + - "ull_NumCont = 1 AND [NumCont] IS NULL) OR ([NumCont] = @Original_NumCont)) AND (" + - "(@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNul" + - "l_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodStato " + - "= 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_" + - "IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxP" + - "osizione)) AND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Ori" + - "ginal_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_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_CodCS", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RagSociale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", 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_DescParticolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DisegnoGrezzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Esponente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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_DescImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_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_DataFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFus", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataFus", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFus", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TurnoFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoFus", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TurnoFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoFus", 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_CodSoggetto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumCont", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumCont", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumCont", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumCont", 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_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_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_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", 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].[ElencoCartellini] ([UDC], [CodCS], [CodCliente], [RagSociale], [Particolare], [DescParticolare], [DisegnoGrezzo], [Esponente], [CodImpianto], [DescImpianto], [CodStampo], [Figura], [DataFus], [TurnoFus], [CodImballo], [CodSoggetto], [NumCont], [Tara], [Qta], [CodStato], [IdxPosizione], [PesoTot], [PesoCad], [CreateDate], [ModDate]) VALUES (@UDC, @CodCS, @CodCliente, @RagSociale, @Particolare, @DescParticolare, @DisegnoGrezzo, @Esponente, @CodImpianto, @DescImpianto, @CodStampo, @Figura, @DataFus, @TurnoFus, @CodImballo, @CodSoggetto, @NumCont, @Tara, @Qta, @CodStato, @IdxPosizione, @PesoTot, @PesoCad, @CreateDate, @ModDate); -SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM ElencoCartellini WHERE (UDC = @UDC)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - 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("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", 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("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@DataFus", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoFus", 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("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumCont", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumCont", 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("@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("@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("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", 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].[ElencoCartellini] SET [UDC] = @UDC, [CodCS] = @CodCS, [CodCliente] " + - "= @CodCliente, [RagSociale] = @RagSociale, [Particolare] = @Particolare, [DescPa" + - "rticolare] = @DescParticolare, [DisegnoGrezzo] = @DisegnoGrezzo, [Esponente] = @" + - "Esponente, [CodImpianto] = @CodImpianto, [DescImpianto] = @DescImpianto, [CodSta" + - "mpo] = @CodStampo, [Figura] = @Figura, [DataFus] = @DataFus, [TurnoFus] = @Turno" + - "Fus, [CodImballo] = @CodImballo, [CodSoggetto] = @CodSoggetto, [NumCont] = @NumC" + - "ont, [Tara] = @Tara, [Qta] = @Qta, [CodStato] = @CodStato, [IdxPosizione] = @Idx" + - "Posizione, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [CreateDate] = @CreateDat" + - "e, [ModDate] = @ModDate WHERE (([UDC] = @Original_UDC) AND ((@IsNull_CodCS = 1 A" + - "ND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodCliente = 1" + - " AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNu" + - "ll_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSoci" + - "ale)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare]" + - " = @Original_Particolare)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolar" + - "e] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_Di" + - "segnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_Dis" + - "egnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente" + - "] = @Original_Esponente)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NUL" + - "L) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_DescImpianto = 1 AN" + - "D [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) AND ((@I" + - "sNull_CodStampo = 1 AND [CodStampo] IS NULL) OR ([CodStampo] = @Original_CodStam" + - "po)) AND ((@IsNull_Figura = 1 AND [Figura] IS NULL) OR ([Figura] = @Original_Fig" + - "ura)) AND ((@IsNull_DataFus = 1 AND [DataFus] IS NULL) OR ([DataFus] = @Original" + - "_DataFus)) AND ((@IsNull_TurnoFus = 1 AND [TurnoFus] IS NULL) OR ([TurnoFus] = @" + - "Original_TurnoFus)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([" + - "CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodSoggetto = 1 AND [CodSogge" + - "tto] IS NULL) OR ([CodSoggetto] = @Original_CodSoggetto)) AND ((@IsNull_NumCont " + - "= 1 AND [NumCont] IS NULL) OR ([NumCont] = @Original_NumCont)) AND ((@IsNull_Tar" + - "a = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_Qta = 1 AN" + - "D [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodStato = 1 AND [Cod" + - "Stato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_IdxPosizione" + - " = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) A" + - "ND ((@IsNull_PesoTot = 1 AND [PesoTot] IS NULL) OR ([PesoTot] = @Original_PesoTo" + - "t)) AND ((@IsNull_PesoCad = 1 AND [PesoCad] IS NULL) OR ([PesoCad] = @Original_P" + - "esoCad)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate]" + - " = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([" + - "ModDate] = @Original_ModDate)));\r\nSELECT UDC, CodCS, CodCliente, RagSociale, Par" + - "ticolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, " + - "CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qt" + - "a, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM ElencoCart" + - "ellini WHERE (UDC = @UDC)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - 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("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", 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("@DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@DataFus", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFus", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoFus", 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("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumCont", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumCont", 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("@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("@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("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", 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_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_CodCS", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RagSociale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", 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_DescParticolare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescParticolare", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescParticolare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DisegnoGrezzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DisegnoGrezzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DisegnoGrezzo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Esponente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Esponente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Esponente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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_DescImpianto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImpianto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImpianto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_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_DataFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFus", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataFus", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataFus", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TurnoFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoFus", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TurnoFus", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoFus", 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_CodSoggetto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumCont", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumCont", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumCont", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumCont", 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_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_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_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", 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[2]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = @"SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.ElencoCartellini"; - 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_UDC_getByTipoDelibera"; - 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("@CodTipoDelibera", global::System.Data.SqlDbType.NVarChar, 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("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", 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_SM.ElencoCartelliniDataTable 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_SM.ElencoCartelliniDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_SM.ElencoCartelliniDataTable dataTable = new DS_SM.ElencoCartelliniDataTable(); - 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_SM.ElencoCartelliniDataTable GetByTipoDelibera(string CodTipoDelibera, global::System.Nullable DataFrom, global::System.Nullable DataTo) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((CodTipoDelibera == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodTipoDelibera)); - } - if ((DataFrom.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataFrom.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((DataTo.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(DataTo.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - DS_SM.ElencoCartelliniDataTable dataTable = new DS_SM.ElencoCartelliniDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_SM.ElencoCartelliniDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_SM dataSet) { - return this.Adapter.Update(dataSet, "ElencoCartellini"); - } - - [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, - string Original_CodCS, - string Original_CodCliente, - string Original_RagSociale, - string Original_Particolare, - string Original_DescParticolare, - string Original_DisegnoGrezzo, - string Original_Esponente, - string Original_CodImpianto, - string Original_DescImpianto, - string Original_CodStampo, - string Original_Figura, - global::System.Nullable Original_DataFus, - global::System.Nullable Original_TurnoFus, - string Original_CodImballo, - string Original_CodSoggetto, - global::System.Nullable Original_NumCont, - global::System.Nullable Original_Tara, - global::System.Nullable Original_Qta, - string Original_CodStato, - global::System.Nullable Original_IdxPosizione, - global::System.Nullable Original_PesoTot, - global::System.Nullable Original_PesoCad, - global::System.Nullable Original_CreateDate, - global::System.Nullable Original_ModDate) { - if ((Original_UDC == null)) { - throw new global::System.ArgumentNullException("Original_UDC"); - } - else { - this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UDC)); - } - if ((Original_CodCS == 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_CodCS)); - } - if ((Original_CodCliente == 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_CodCliente)); - } - if ((Original_RagSociale == 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_RagSociale)); - } - if ((Original_Particolare == 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_Particolare)); - } - if ((Original_DescParticolare == 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_DescParticolare)); - } - if ((Original_DisegnoGrezzo == 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_DisegnoGrezzo)); - } - if ((Original_Esponente == 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_Esponente)); - } - if ((Original_CodImpianto == 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_CodImpianto)); - } - if ((Original_DescImpianto == 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_DescImpianto)); - } - if ((Original_CodStampo == 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_CodStampo)); - } - if ((Original_Figura == 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_Figura)); - } - if ((Original_DataFus.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[24].Value = ((System.DateTime)(Original_DataFus.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((Original_TurnoFus.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_TurnoFus.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; - } - if ((Original_CodImballo == null)) { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_CodImballo)); - } - if ((Original_CodSoggetto == null)) { - this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_CodSoggetto)); - } - if ((Original_NumCont.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[32].Value = ((int)(Original_NumCont.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; - } - if ((Original_Tara.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[34].Value = ((double)(Original_Tara.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value; - } - if ((Original_Qta.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[36].Value = ((decimal)(Original_Qta.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value; - } - if ((Original_CodStato == null)) { - this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[38].Value = ((string)(Original_CodStato)); - } - if ((Original_IdxPosizione.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[40].Value = ((int)(Original_IdxPosizione.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value; - } - if ((Original_PesoTot.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[42].Value = ((double)(Original_PesoTot.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value; - } - if ((Original_PesoCad.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[44].Value = ((double)(Original_PesoCad.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value; - } - if ((Original_CreateDate.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[46].Value = ((System.DateTime)(Original_CreateDate.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value; - } - if ((Original_ModDate.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[48].Value = ((System.DateTime)(Original_ModDate.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[48].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 UDC, - string CodCS, - string CodCliente, - string RagSociale, - string Particolare, - string DescParticolare, - string DisegnoGrezzo, - string Esponente, - string CodImpianto, - string DescImpianto, - string CodStampo, - string Figura, - global::System.Nullable DataFus, - global::System.Nullable TurnoFus, - string CodImballo, - string CodSoggetto, - global::System.Nullable NumCont, - global::System.Nullable Tara, - global::System.Nullable Qta, - string CodStato, - global::System.Nullable IdxPosizione, - global::System.Nullable PesoTot, - global::System.Nullable PesoCad, - global::System.Nullable CreateDate, - global::System.Nullable ModDate) { - if ((UDC == null)) { - throw new global::System.ArgumentNullException("UDC"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UDC)); - } - if ((CodCS == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS)); - } - if ((CodCliente == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCliente)); - } - if ((RagSociale == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(RagSociale)); - } - if ((Particolare == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Particolare)); - } - if ((DescParticolare == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(DescParticolare)); - } - if ((DisegnoGrezzo == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(DisegnoGrezzo)); - } - if ((Esponente == null)) { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Esponente)); - } - if ((CodImpianto == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(CodImpianto)); - } - if ((DescImpianto == null)) { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(DescImpianto)); - } - 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 ((DataFus.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[12].Value = ((System.DateTime)(DataFus.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((TurnoFus.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[13].Value = ((int)(TurnoFus.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((CodImballo == null)) { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(CodImballo)); - } - if ((CodSoggetto == null)) { - this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = ((string)(CodSoggetto)); - } - if ((NumCont.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[16].Value = ((int)(NumCont.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; - } - if ((Tara.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[17].Value = ((double)(Tara.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; - } - if ((Qta.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[18].Value = ((decimal)(Qta.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; - } - if ((CodStato == null)) { - this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[19].Value = ((string)(CodStato)); - } - if ((IdxPosizione.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[20].Value = ((int)(IdxPosizione.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; - } - if ((PesoTot.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[21].Value = ((double)(PesoTot.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((PesoCad.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[22].Value = ((double)(PesoCad.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; - } - if ((CreateDate.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[23].Value = ((System.DateTime)(CreateDate.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((ModDate.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[24].Value = ((System.DateTime)(ModDate.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[24].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 UDC, - string CodCS, - string CodCliente, - string RagSociale, - string Particolare, - string DescParticolare, - string DisegnoGrezzo, - string Esponente, - string CodImpianto, - string DescImpianto, - string CodStampo, - string Figura, - global::System.Nullable DataFus, - global::System.Nullable TurnoFus, - string CodImballo, - string CodSoggetto, - global::System.Nullable NumCont, - global::System.Nullable Tara, - global::System.Nullable Qta, - string CodStato, - global::System.Nullable IdxPosizione, - global::System.Nullable PesoTot, - global::System.Nullable PesoCad, - global::System.Nullable CreateDate, - global::System.Nullable ModDate, - string Original_UDC, - string Original_CodCS, - string Original_CodCliente, - string Original_RagSociale, - string Original_Particolare, - string Original_DescParticolare, - string Original_DisegnoGrezzo, - string Original_Esponente, - string Original_CodImpianto, - string Original_DescImpianto, - string Original_CodStampo, - string Original_Figura, - global::System.Nullable Original_DataFus, - global::System.Nullable Original_TurnoFus, - string Original_CodImballo, - string Original_CodSoggetto, - global::System.Nullable Original_NumCont, - global::System.Nullable Original_Tara, - global::System.Nullable Original_Qta, - string Original_CodStato, - global::System.Nullable Original_IdxPosizione, - global::System.Nullable Original_PesoTot, - global::System.Nullable Original_PesoCad, - global::System.Nullable Original_CreateDate, - global::System.Nullable Original_ModDate) { - if ((UDC == null)) { - throw new global::System.ArgumentNullException("UDC"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UDC)); - } - if ((CodCS == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS)); - } - if ((CodCliente == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCliente)); - } - if ((RagSociale == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(RagSociale)); - } - if ((Particolare == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Particolare)); - } - if ((DescParticolare == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(DescParticolare)); - } - if ((DisegnoGrezzo == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(DisegnoGrezzo)); - } - if ((Esponente == null)) { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Esponente)); - } - if ((CodImpianto == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(CodImpianto)); - } - if ((DescImpianto == null)) { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(DescImpianto)); - } - 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 ((DataFus.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(DataFus.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((TurnoFus.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(TurnoFus.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((CodImballo == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(CodImballo)); - } - if ((CodSoggetto == null)) { - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(CodSoggetto)); - } - if ((NumCont.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(NumCont.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; - } - if ((Tara.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[17].Value = ((double)(Tara.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; - } - if ((Qta.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(Qta.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; - } - if ((CodStato == null)) { - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(CodStato)); - } - if ((IdxPosizione.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(IdxPosizione.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; - } - if ((PesoTot.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(PesoTot.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((PesoCad.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((double)(PesoCad.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; - } - if ((CreateDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(CreateDate.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((ModDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((System.DateTime)(ModDate.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((Original_UDC == null)) { - throw new global::System.ArgumentNullException("Original_UDC"); - } - else { - this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_UDC)); - } - if ((Original_CodCS == 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_CodCS)); - } - if ((Original_CodCliente == 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_CodCliente)); - } - if ((Original_RagSociale == 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_RagSociale)); - } - if ((Original_Particolare == 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_Particolare)); - } - if ((Original_DescParticolare == 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_DescParticolare)); - } - if ((Original_DisegnoGrezzo == 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_DisegnoGrezzo)); - } - if ((Original_Esponente == 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_Esponente)); - } - if ((Original_CodImpianto == null)) { - this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_CodImpianto)); - } - if ((Original_DescImpianto == null)) { - this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_DescImpianto)); - } - if ((Original_CodStampo == null)) { - this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(Original_CodStampo)); - } - if ((Original_Figura == null)) { - this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(Original_Figura)); - } - if ((Original_DataFus.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[49].Value = ((System.DateTime)(Original_DataFus.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; - } - if ((Original_TurnoFus.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[51].Value = ((int)(Original_TurnoFus.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; - } - if ((Original_CodImballo == null)) { - this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_CodImballo)); - } - if ((Original_CodSoggetto == null)) { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_CodSoggetto)); - } - if ((Original_NumCont.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[57].Value = ((int)(Original_NumCont.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; - } - if ((Original_Tara.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[59].Value = ((double)(Original_Tara.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; - } - if ((Original_Qta.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[61].Value = ((decimal)(Original_Qta.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; - } - if ((Original_CodStato == null)) { - this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_CodStato)); - } - if ((Original_IdxPosizione.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[65].Value = ((int)(Original_IdxPosizione.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; - } - if ((Original_PesoTot.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[67].Value = ((double)(Original_PesoTot.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; - } - if ((Original_PesoCad.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[69].Value = ((double)(Original_PesoCad.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; - } - if ((Original_CreateDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[71].Value = ((System.DateTime)(Original_CreateDate.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; - } - if ((Original_ModDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[73].Value = ((System.DateTime)(Original_ModDate.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string CodCS, - string CodCliente, - string RagSociale, - string Particolare, - string DescParticolare, - string DisegnoGrezzo, - string Esponente, - string CodImpianto, - string DescImpianto, - string CodStampo, - string Figura, - global::System.Nullable DataFus, - global::System.Nullable TurnoFus, - string CodImballo, - string CodSoggetto, - global::System.Nullable NumCont, - global::System.Nullable Tara, - global::System.Nullable Qta, - string CodStato, - global::System.Nullable IdxPosizione, - global::System.Nullable PesoTot, - global::System.Nullable PesoCad, - global::System.Nullable CreateDate, - global::System.Nullable ModDate, - string Original_UDC, - string Original_CodCS, - string Original_CodCliente, - string Original_RagSociale, - string Original_Particolare, - string Original_DescParticolare, - string Original_DisegnoGrezzo, - string Original_Esponente, - string Original_CodImpianto, - string Original_DescImpianto, - string Original_CodStampo, - string Original_Figura, - global::System.Nullable Original_DataFus, - global::System.Nullable Original_TurnoFus, - string Original_CodImballo, - string Original_CodSoggetto, - global::System.Nullable Original_NumCont, - global::System.Nullable Original_Tara, - global::System.Nullable Original_Qta, - string Original_CodStato, - global::System.Nullable Original_IdxPosizione, - global::System.Nullable Original_PesoTot, - global::System.Nullable Original_PesoCad, - global::System.Nullable Original_CreateDate, - global::System.Nullable Original_ModDate) { - return this.Update(Original_UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate, Original_UDC, Original_CodCS, Original_CodCliente, Original_RagSociale, Original_Particolare, Original_DescParticolare, Original_DisegnoGrezzo, Original_Esponente, Original_CodImpianto, Original_DescImpianto, Original_CodStampo, Original_Figura, Original_DataFus, Original_TurnoFus, Original_CodImballo, Original_CodSoggetto, Original_NumCont, Original_Tara, Original_Qta, Original_CodStato, Original_IdxPosizione, Original_PesoTot, Original_PesoCad, Original_CreateDate, Original_ModDate); - } - } - /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -6657,8 +3971,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno private AnagTipoDelibereTableAdapter _anagTipoDelibereTableAdapter; - private ElencoCartelliniTableAdapter _elencoCartelliniTableAdapter; - private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -6738,19 +4050,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno } } - [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 ElencoCartelliniTableAdapter ElencoCartelliniTableAdapter { - get { - return this._elencoCartelliniTableAdapter; - } - set { - this._elencoCartelliniTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool BackupDataSetBeforeUpdate { get { @@ -6788,10 +4087,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno && (this._anagTipoDelibereTableAdapter.Connection != null))) { return this._anagTipoDelibereTableAdapter.Connection; } - if (((this._elencoCartelliniTableAdapter != null) - && (this._elencoCartelliniTableAdapter.Connection != null))) { - return this._elencoCartelliniTableAdapter.Connection; - } return null; } set { @@ -6819,9 +4114,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno if ((this._anagTipoDelibereTableAdapter != null)) { count = (count + 1); } - if ((this._elencoCartelliniTableAdapter != null)) { - count = (count + 1); - } return count; } } @@ -6841,15 +4133,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno allChangedRows.AddRange(updatedRows); } } - if ((this._anagTipoDelibereTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoDelibere.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._anagTipoDelibereTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._anagPosizioniTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -6859,12 +4142,12 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno allChangedRows.AddRange(updatedRows); } } - if ((this._elencoCartelliniTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._anagTipoDelibereTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagTipoDelibere.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._elencoCartelliniTableAdapter.Update(updatedRows)); + result = (result + this._anagTipoDelibereTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -6903,14 +4186,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno allAddedRows.AddRange(addedRows); } } - if ((this._anagTipoDelibereTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagTipoDelibere.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._anagTipoDelibereTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._anagPosizioniTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -6919,11 +4194,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno allAddedRows.AddRange(addedRows); } } - if ((this._elencoCartelliniTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._anagTipoDelibereTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagTipoDelibere.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._elencoCartelliniTableAdapter.Update(addedRows)); + result = (result + this._anagTipoDelibereTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -6968,11 +4243,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno allChangedRows.AddRange(deletedRows); } } - if ((this._elencoCartelliniTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._anagTipoDelibereTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDelibere.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows)); + result = (result + this._anagTipoDelibereTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -6984,14 +4259,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno allChangedRows.AddRange(deletedRows); } } - if ((this._anagTipoDelibereTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDelibere.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._anagTipoDelibereTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._anagTipoEventoTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoEvento.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -7062,11 +4329,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._elencoCartelliniTableAdapter != null) - && (this.MatchTableAdapterConnection(this._elencoCartelliniTableAdapter.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" + @@ -7144,15 +4406,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno adaptersWithAcceptChangesDuringUpdate.Add(this._anagTipoDelibereTableAdapter.Adapter); } } - if ((this._elencoCartelliniTableAdapter != null)) { - revertConnections.Add(this._elencoCartelliniTableAdapter, this._elencoCartelliniTableAdapter.Connection); - this._elencoCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._elencoCartelliniTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._elencoCartelliniTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._elencoCartelliniTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._elencoCartelliniTableAdapter.Adapter); - } - } // //---- Perform updates ----------- // @@ -7231,10 +4484,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno this._anagTipoDelibereTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTipoDelibereTableAdapter])); this._anagTipoDelibereTableAdapter.Transaction = null; } - if ((this._elencoCartelliniTableAdapter != null)) { - this._elencoCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoCartelliniTableAdapter])); - this._elencoCartelliniTableAdapter.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_SM.xsd b/GMW/GMW_data/DS_SM.xsd index 84bae210..2b900eb8 100644 --- a/GMW/GMW_data/DS_SM.xsd +++ b/GMW/GMW_data/DS_SM.xsd @@ -277,231 +277,6 @@ SELECT CodTipoDelibera, DescDelibera, CodEvento FROM AnagTipoDelibere WHERE (Cod - - - - - - DELETE FROM [dbo].[ElencoCartellini] WHERE (([UDC] = @Original_UDC) AND ((@IsNull_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSociale)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_DisegnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_DisegnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente] = @Original_Esponente)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_DescImpianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) 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_DataFus = 1 AND [DataFus] IS NULL) OR ([DataFus] = @Original_DataFus)) AND ((@IsNull_TurnoFus = 1 AND [TurnoFus] IS NULL) OR ([TurnoFus] = @Original_TurnoFus)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodSoggetto = 1 AND [CodSoggetto] IS NULL) OR ([CodSoggetto] = @Original_CodSoggetto)) AND ((@IsNull_NumCont = 1 AND [NumCont] IS NULL) OR ([NumCont] = @Original_NumCont)) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) 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].[ElencoCartellini] ([UDC], [CodCS], [CodCliente], [RagSociale], [Particolare], [DescParticolare], [DisegnoGrezzo], [Esponente], [CodImpianto], [DescImpianto], [CodStampo], [Figura], [DataFus], [TurnoFus], [CodImballo], [CodSoggetto], [NumCont], [Tara], [Qta], [CodStato], [IdxPosizione], [PesoTot], [PesoCad], [CreateDate], [ModDate]) VALUES (@UDC, @CodCS, @CodCliente, @RagSociale, @Particolare, @DescParticolare, @DisegnoGrezzo, @Esponente, @CodImpianto, @DescImpianto, @CodStampo, @Figura, @DataFus, @TurnoFus, @CodImballo, @CodSoggetto, @NumCont, @Tara, @Qta, @CodStato, @IdxPosizione, @PesoTot, @PesoCad, @CreateDate, @ModDate); -SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM ElencoCartellini WHERE (UDC = @UDC) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.ElencoCartellini - - - - - - UPDATE [dbo].[ElencoCartellini] SET [UDC] = @UDC, [CodCS] = @CodCS, [CodCliente] = @CodCliente, [RagSociale] = @RagSociale, [Particolare] = @Particolare, [DescParticolare] = @DescParticolare, [DisegnoGrezzo] = @DisegnoGrezzo, [Esponente] = @Esponente, [CodImpianto] = @CodImpianto, [DescImpianto] = @DescImpianto, [CodStampo] = @CodStampo, [Figura] = @Figura, [DataFus] = @DataFus, [TurnoFus] = @TurnoFus, [CodImballo] = @CodImballo, [CodSoggetto] = @CodSoggetto, [NumCont] = @NumCont, [Tara] = @Tara, [Qta] = @Qta, [CodStato] = @CodStato, [IdxPosizione] = @IdxPosizione, [PesoTot] = @PesoTot, [PesoCad] = @PesoCad, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([UDC] = @Original_UDC) AND ((@IsNull_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_RagSociale = 1 AND [RagSociale] IS NULL) OR ([RagSociale] = @Original_RagSociale)) AND ((@IsNull_Particolare = 1 AND [Particolare] IS NULL) OR ([Particolare] = @Original_Particolare)) AND ((@IsNull_DescParticolare = 1 AND [DescParticolare] IS NULL) OR ([DescParticolare] = @Original_DescParticolare)) AND ((@IsNull_DisegnoGrezzo = 1 AND [DisegnoGrezzo] IS NULL) OR ([DisegnoGrezzo] = @Original_DisegnoGrezzo)) AND ((@IsNull_Esponente = 1 AND [Esponente] IS NULL) OR ([Esponente] = @Original_Esponente)) AND ((@IsNull_CodImpianto = 1 AND [CodImpianto] IS NULL) OR ([CodImpianto] = @Original_CodImpianto)) AND ((@IsNull_DescImpianto = 1 AND [DescImpianto] IS NULL) OR ([DescImpianto] = @Original_DescImpianto)) 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_DataFus = 1 AND [DataFus] IS NULL) OR ([DataFus] = @Original_DataFus)) AND ((@IsNull_TurnoFus = 1 AND [TurnoFus] IS NULL) OR ([TurnoFus] = @Original_TurnoFus)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CodSoggetto = 1 AND [CodSoggetto] IS NULL) OR ([CodSoggetto] = @Original_CodSoggetto)) AND ((@IsNull_NumCont = 1 AND [NumCont] IS NULL) OR ([NumCont] = @Original_NumCont)) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) 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 UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM ElencoCartellini WHERE (UDC = @UDC) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_UDC_getByTipoDelibera - - - - - - - - - - - @@ -614,127 +389,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -759,10 +413,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno - - - - @@ -770,7 +420,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno - \ No newline at end of file diff --git a/GMW/GMW_data/DS_SM.xss b/GMW/GMW_data/DS_SM.xss index 93a45d91..f08bff57 100644 --- a/GMW/GMW_data/DS_SM.xss +++ b/GMW/GMW_data/DS_SM.xss @@ -6,15 +6,14 @@ --> - - - - - - + + + + + - + 1013 @@ -26,7 +25,7 @@ - + 740 @@ -38,7 +37,7 @@ - + 526 @@ -50,7 +49,7 @@ - + 884 @@ -62,21 +61,5 @@ - - - - 581 - 496 - - - 581 - 504 - - - 429 - 504 - - - \ No newline at end of file diff --git a/GMW/GMW_data/DS_Utility.Designer.cs b/GMW/GMW_data/DS_Utility.Designer.cs index f57acff2..85f051b4 100644 --- a/GMW/GMW_data/DS_Utility.Designer.cs +++ b/GMW/GMW_data/DS_Utility.Designer.cs @@ -5022,7 +5022,7 @@ namespace GMW_data.DS_UtilityTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[9]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "dbo.stp_dummy"; @@ -5085,6 +5085,14 @@ namespace GMW_data.DS_UtilityTableAdapters { this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[8].Connection = this.Connection; + this._commandCollection[8].CommandText = "dbo.stp_UDC_delibera"; + this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDelibera", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5435,6 +5443,45 @@ namespace GMW_data.DS_UtilityTableAdapters { } return returnValue; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_UDC_delibera(string CodTipoDelibera, string UDC, string CodSoggetto) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; + if ((CodTipoDelibera == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodTipoDelibera)); + } + if ((UDC == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(UDC)); + } + if ((CodSoggetto == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(CodSoggetto)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// diff --git a/GMW/GMW_data/DS_Utility.xsd b/GMW/GMW_data/DS_Utility.xsd index b8976a2b..8652ccd6 100644 --- a/GMW/GMW_data/DS_Utility.xsd +++ b/GMW/GMW_data/DS_Utility.xsd @@ -250,6 +250,19 @@ WHERE (value = @value) + + + + dbo.stp_UDC_delibera + + + + + + + + + @@ -373,21 +386,21 @@ where conditio = @conditio - + - + - + @@ -400,22 +413,22 @@ where conditio = @conditio - - + + - + - + @@ -428,35 +441,15 @@ where conditio = @conditio - - + + - - - - - - - - - - - - - - - - - - - - - + @@ -470,21 +463,41 @@ where conditio = @conditio - + + + + + + + - + + + + + + + + + + + + + + + - + @@ -497,29 +510,29 @@ where conditio = @conditio - - + + - + - + - + @@ -532,8 +545,8 @@ where conditio = @conditio - - + + @@ -546,14 +559,14 @@ where conditio = @conditio - + - + @@ -566,21 +579,21 @@ where conditio = @conditio - + - + - + @@ -590,17 +603,17 @@ where conditio = @conditio - + - + - + diff --git a/GMW/GMW_data/DS_Utility.xss b/GMW/GMW_data/DS_Utility.xss index 92d9f16e..b1483fce 100644 --- a/GMW/GMW_data/DS_Utility.xss +++ b/GMW/GMW_data/DS_Utility.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs index 38d6d13c..0b534d0e 100644 --- a/GMW/GMW_data/DS_magazzino.Designer.cs +++ b/GMW/GMW_data/DS_magazzino.Designer.cs @@ -59,6 +59,8 @@ namespace GMW_data { private v_particolariEsponenteFiguraDataTable tablev_particolariEsponenteFigura; + private AnagPosizioniDataTable tableAnagPosizioni; + private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini; private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini; @@ -77,6 +79,8 @@ namespace GMW_data { private global::System.Data.DataRelation relationFK_ElencoListePrelievo_TipoListaPrelievo11; + private global::System.Data.DataRelation relationFK_ElencoCartellini_AnagPosizioni; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -154,6 +158,9 @@ namespace GMW_data { if ((ds.Tables["v_particolariEsponenteFigura"] != null)) { base.Tables.Add(new v_particolariEsponenteFiguraDataTable(ds.Tables["v_particolariEsponenteFigura"])); } + if ((ds.Tables["AnagPosizioni"] != null)) { + base.Tables.Add(new AnagPosizioniDataTable(ds.Tables["AnagPosizioni"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -325,6 +332,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagPosizioniDataTable AnagPosizioni { + get { + return this.tableAnagPosizioni; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -435,6 +451,9 @@ namespace GMW_data { if ((ds.Tables["v_particolariEsponenteFigura"] != null)) { base.Tables.Add(new v_particolariEsponenteFiguraDataTable(ds.Tables["v_particolariEsponenteFigura"])); } + if ((ds.Tables["AnagPosizioni"] != null)) { + base.Tables.Add(new AnagPosizioniDataTable(ds.Tables["AnagPosizioni"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -567,6 +586,12 @@ namespace GMW_data { this.tablev_particolariEsponenteFigura.InitVars(); } } + this.tableAnagPosizioni = ((AnagPosizioniDataTable)(base.Tables["AnagPosizioni"])); + if ((initTable == true)) { + if ((this.tableAnagPosizioni != null)) { + this.tableAnagPosizioni.InitVars(); + } + } this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"]; this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"]; this.relationFK_Blocchi_AnagMag = this.Relations["FK_Blocchi_AnagMag"]; @@ -576,6 +601,7 @@ namespace GMW_data { this.relationFK_RigheListePrelievo_ElencoCartellini = this.Relations["FK_RigheListePrelievo_ElencoCartellini"]; this.relationFK_RigheListePrelievo_ElencoListePrelievo11 = this.Relations["FK_RigheListePrelievo_ElencoListePrelievo11"]; this.relationFK_ElencoListePrelievo_TipoListaPrelievo11 = this.Relations["FK_ElencoListePrelievo_TipoListaPrelievo11"]; + this.relationFK_ElencoCartellini_AnagPosizioni = this.Relations["FK_ElencoCartellini_AnagPosizioni"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -619,6 +645,8 @@ namespace GMW_data { base.Tables.Add(this.tablev_righeListePrelievoPosizione); this.tablev_particolariEsponenteFigura = new v_particolariEsponenteFiguraDataTable(); base.Tables.Add(this.tablev_particolariEsponenteFigura); + this.tableAnagPosizioni = new AnagPosizioniDataTable(); + base.Tables.Add(this.tableAnagPosizioni); this.relationFK_PosizioneUdcCorrente_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_ElencoCartellini", new global::System.Data.DataColumn[] { this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] { this.tablePosizioneUdcCorrente.UDCColumn}, false); @@ -659,6 +687,10 @@ namespace GMW_data { this.tableTipoListaPrelievo.CodTipoListaColumn}, new global::System.Data.DataColumn[] { this.tableElencoListePrelievo.CodTipoListaColumn}, false); this.Relations.Add(this.relationFK_ElencoListePrelievo_TipoListaPrelievo11); + this.relationFK_ElencoCartellini_AnagPosizioni = new global::System.Data.DataRelation("FK_ElencoCartellini_AnagPosizioni", new global::System.Data.DataColumn[] { + this.tableAnagPosizioni.IdxPosizioneColumn}, new global::System.Data.DataColumn[] { + this.tableElencoCartellini.IdxPosizioneColumn}, false); + this.Relations.Add(this.relationFK_ElencoCartellini_AnagPosizioni); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -746,6 +778,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagPosizioni() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -833,6 +870,8 @@ namespace GMW_data { public delegate void v_particolariEsponenteFiguraRowChangeEventHandler(object sender, v_particolariEsponenteFiguraRowChangeEvent e); + public delegate void AnagPosizioniRowChangeEventHandler(object sender, AnagPosizioniRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1146,7 +1185,7 @@ namespace GMW_data { double Tara, decimal Qta, string CodStato, - int IdxPosizione, + AnagPosizioniRow parentAnagPosizioniRowByFK_ElencoCartellini_AnagPosizioni, double PesoTot, double PesoCad, System.DateTime CreateDate, @@ -1173,11 +1212,14 @@ namespace GMW_data { Tara, Qta, CodStato, - IdxPosizione, + null, PesoTot, PesoCad, CreateDate, ModDate}; + if ((parentAnagPosizioniRowByFK_ElencoCartellini_AnagPosizioni != null)) { + columnValuesArray[20] = parentAnagPosizioniRowByFK_ElencoCartellini_AnagPosizioni[0]; + } rowElencoCartelliniRow.ItemArray = columnValuesArray; this.Rows.Add(rowElencoCartelliniRow); return rowElencoCartelliniRow; @@ -1299,7 +1341,7 @@ namespace GMW_data { this.columnCodStampo.MaxLength = 8; this.columnFigura.MaxLength = 4; this.columnCodImballo.MaxLength = 15; - this.columnCodSoggetto.MaxLength = 16; + this.columnCodSoggetto.MaxLength = 17; this.columnCodStato.MaxLength = 50; } @@ -6904,6 +6946,253 @@ 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 AnagPosizioniDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPosizione; + + private global::System.Data.DataColumn columnDescPosizione; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniDataTable() { + this.TableName = "AnagPosizioni"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagPosizioniDataTable(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 AnagPosizioniDataTable(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 IdxPosizioneColumn { + get { + return this.columnIdxPosizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescPosizioneColumn { + get { + return this.columnDescPosizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRow this[int index] { + get { + return ((AnagPosizioniRow)(this.Rows[index])); + } + } + + public event AnagPosizioniRowChangeEventHandler AnagPosizioniRowChanging; + + public event AnagPosizioniRowChangeEventHandler AnagPosizioniRowChanged; + + public event AnagPosizioniRowChangeEventHandler AnagPosizioniRowDeleting; + + public event AnagPosizioniRowChangeEventHandler AnagPosizioniRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagPosizioniRow(AnagPosizioniRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRow AddAnagPosizioniRow(int IdxPosizione, string DescPosizione) { + AnagPosizioniRow rowAnagPosizioniRow = ((AnagPosizioniRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxPosizione, + DescPosizione}; + rowAnagPosizioniRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagPosizioniRow); + return rowAnagPosizioniRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRow FindByIdxPosizione(int IdxPosizione) { + return ((AnagPosizioniRow)(this.Rows.Find(new object[] { + IdxPosizione}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagPosizioniDataTable cln = ((AnagPosizioniDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagPosizioniDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnIdxPosizione = base.Columns["IdxPosizione"]; + this.columnDescPosizione = base.Columns["DescPosizione"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnIdxPosizione = new global::System.Data.DataColumn("IdxPosizione", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxPosizione); + this.columnDescPosizione = new global::System.Data.DataColumn("DescPosizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescPosizione); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxPosizione}, true)); + this.columnIdxPosizione.AllowDBNull = false; + this.columnIdxPosizione.Unique = true; + this.columnDescPosizione.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRow NewAnagPosizioniRow() { + return ((AnagPosizioniRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagPosizioniRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagPosizioniRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagPosizioniRowChanged != null)) { + this.AnagPosizioniRowChanged(this, new AnagPosizioniRowChangeEvent(((AnagPosizioniRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagPosizioniRowChanging != null)) { + this.AnagPosizioniRowChanging(this, new AnagPosizioniRowChangeEvent(((AnagPosizioniRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagPosizioniRowDeleted != null)) { + this.AnagPosizioniRowDeleted(this, new AnagPosizioniRowChangeEvent(((AnagPosizioniRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagPosizioniRowDeleting != null)) { + this.AnagPosizioniRowDeleting(this, new AnagPosizioniRowChangeEvent(((AnagPosizioniRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagPosizioniRow(AnagPosizioniRow 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_magazzino ds = new DS_magazzino(); + 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 = "AnagPosizioniDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -7288,6 +7577,16 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRow AnagPosizioniRow { + get { + return ((AnagPosizioniRow)(this.GetParentRow(this.Table.ParentRelations["FK_ElencoCartellini_AnagPosizioni"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_ElencoCartellini_AnagPosizioni"]); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsCodCSNull() { return this.IsNull(this.tableElencoCartellini.CodCSColumn); @@ -10420,6 +10719,66 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagPosizioniRow : global::System.Data.DataRow { + + private AnagPosizioniDataTable tableAnagPosizioni; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagPosizioniRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagPosizioni = ((AnagPosizioniDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int IdxPosizione { + get { + return ((int)(this[this.tableAnagPosizioni.IdxPosizioneColumn])); + } + set { + this[this.tableAnagPosizioni.IdxPosizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescPosizione { + get { + try { + return ((string)(this[this.tableAnagPosizioni.DescPosizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescPosizione\' in table \'AnagPosizioni\' is DBNull.", e); + } + } + set { + this[this.tableAnagPosizioni.DescPosizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescPosizioneNull() { + return this.IsNull(this.tableAnagPosizioni.DescPosizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescPosizioneNull() { + this[this.tableAnagPosizioni.DescPosizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ElencoCartelliniRow[] GetElencoCartelliniRows() { + if ((this.Table.ChildRelations["FK_ElencoCartellini_AnagPosizioni"] == null)) { + return new ElencoCartelliniRow[0]; + } + else { + return ((ElencoCartelliniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoCartellini_AnagPosizioni"]))); + } + } + } + /// ///Row event argument class /// @@ -10946,6 +11305,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class AnagPosizioniRowChangeEvent : global::System.EventArgs { + + private AnagPosizioniRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRowChangeEvent(AnagPosizioniRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagPosizioniRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_magazzinoTableAdapters { @@ -11331,41 +11721,49 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = @"SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.ElencoCartellini"; 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_getDetailsUdcByUdc"; + this._commandCollection[1].CommandText = "dbo.stp_UDC_getByTipoDelibera"; this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 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("@CodTipoDelibera", global::System.Data.SqlDbType.NVarChar, 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("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", 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_getUDC_Older"; + this._commandCollection[2].CommandText = "dbo.stp_getDetailsUdcByUdc"; 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("@Esponente", 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("@Particolare", 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("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 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_getUDC_UnusedOlder"; + this._commandCollection[3].CommandText = "dbo.stp_getUDC_Older"; 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("@CodLista", global::System.Data.SqlDbType.VarChar, 12, 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("@Esponente", 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("@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("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_UDC_updateQty"; + this._commandCollection[4].CommandText = "dbo.stp_getUDC_UnusedOlder"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_UDC_updateQty"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -11393,8 +11791,36 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno [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_magazzino.ElencoCartelliniDataTable getDetailsUdcByUdc(string UDC) { + public virtual DS_magazzino.ElencoCartelliniDataTable getByTipoDelibera(string CodTipoDelibera, global::System.Nullable DataFrom, global::System.Nullable DataTo) { this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodTipoDelibera == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodTipoDelibera)); + } + if ((DataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(DataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_magazzino.ElencoCartelliniDataTable dataTable = new DS_magazzino.ElencoCartelliniDataTable(); + 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_magazzino.ElencoCartelliniDataTable getDetailsUdcByUdc(string UDC) { + this.Adapter.SelectCommand = this.CommandCollection[2]; if ((UDC == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -11410,7 +11836,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_magazzino.ElencoCartelliniDataTable getOlderUDC(string Esponente, string Particolare, global::System.Nullable IdxPosizione) { - this.Adapter.SelectCommand = this.CommandCollection[2]; + this.Adapter.SelectCommand = this.CommandCollection[3]; if ((Esponente == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -11438,7 +11864,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_magazzino.ElencoCartelliniDataTable getUdcUnusedOlder(string CodLista) { - this.Adapter.SelectCommand = this.CommandCollection[3]; + this.Adapter.SelectCommand = this.CommandCollection[4]; if ((CodLista == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -11454,7 +11880,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_magazzino.ElencoCartelliniDataTable updateQty(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable Qta) { - this.Adapter.SelectCommand = this.CommandCollection[4]; + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((UDC == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -19604,6 +20030,315 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co } } + /// + ///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 AnagPosizioniTableAdapter : 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 AnagPosizioniTableAdapter() { + 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 = "AnagPosizioni"; + tableMapping.ColumnMappings.Add("IdxPosizione", "IdxPosizione"); + tableMapping.ColumnMappings.Add("DescPosizione", "DescPosizione"); + 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].[AnagPosizioni] WHERE (([IdxPosizione] = @Original_IdxPosizione" + + ") AND ((@IsNull_DescPosizione = 1 AND [DescPosizione] IS NULL) OR ([DescPosizion" + + "e] = @Original_DescPosizione)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescPosizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPosizione", 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].[AnagPosizioni] ([IdxPosizione], [DescPosizione]) VALUES (@IdxP" + + "osizione, @DescPosizione);\r\nSELECT IdxPosizione, DescPosizione FROM AnagPosizion" + + "i WHERE (IdxPosizione = @IdxPosizione)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescPosizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPosizione", 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].[AnagPosizioni] SET [IdxPosizione] = @IdxPosizione, [DescPosizione] = @DescPosizione WHERE (([IdxPosizione] = @Original_IdxPosizione) AND ((@IsNull_DescPosizione = 1 AND [DescPosizione] IS NULL) OR ([DescPosizione] = @Original_DescPosizione))); +SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @IdxPosizione)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescPosizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescPosizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPosizione", 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 IdxPosizione, DescPosizione FROM dbo.AnagPosizioni"; + 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_magazzino.AnagPosizioniDataTable 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_magazzino.AnagPosizioniDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_magazzino.AnagPosizioniDataTable dataTable = new DS_magazzino.AnagPosizioniDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_magazzino.AnagPosizioniDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_magazzino dataSet) { + return this.Adapter.Update(dataSet, "AnagPosizioni"); + } + + [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_IdxPosizione, string Original_DescPosizione) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxPosizione)); + if ((Original_DescPosizione == 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_DescPosizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxPosizione, string DescPosizione) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPosizione)); + if ((DescPosizione == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescPosizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxPosizione, string DescPosizione, int Original_IdxPosizione, string Original_DescPosizione) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPosizione)); + if ((DescPosizione == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescPosizione)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxPosizione)); + if ((Original_DescPosizione == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescPosizione)); + } + 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 DescPosizione, int Original_IdxPosizione, string Original_DescPosizione) { + return this.Update(Original_IdxPosizione, DescPosizione, Original_IdxPosizione, Original_DescPosizione); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -19637,6 +20372,8 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co private RigheListePrelievoTableAdapter _righeListePrelievoTableAdapter; + private AnagPosizioniTableAdapter _anagPosizioniTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -19781,6 +20518,19 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co } } + [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 AnagPosizioniTableAdapter AnagPosizioniTableAdapter { + get { + return this._anagPosizioniTableAdapter; + } + set { + this._anagPosizioniTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool BackupDataSetBeforeUpdate { get { @@ -19838,6 +20588,10 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co && (this._righeListePrelievoTableAdapter.Connection != null))) { return this._righeListePrelievoTableAdapter.Connection; } + if (((this._anagPosizioniTableAdapter != null) + && (this._anagPosizioniTableAdapter.Connection != null))) { + return this._anagPosizioniTableAdapter.Connection; + } return null; } set { @@ -19880,6 +20634,9 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co if ((this._righeListePrelievoTableAdapter != null)) { count = (count + 1); } + if ((this._anagPosizioniTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -19917,12 +20674,12 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } - if ((this._celleTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._anagPosizioniTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._celleTableAdapter.Update(updatedRows)); + result = (result + this._anagPosizioniTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -19935,30 +20692,12 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } - if ((this._righeListePrelievoTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._celleTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._righeListePrelievoTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._posizioneUdcStoricoTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows)); + result = (result + this._celleTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -19971,6 +20710,15 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } + if ((this._righeListePrelievoTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._righeListePrelievoTableAdapter.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); @@ -19980,6 +20728,24 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(updatedRows); } } + if ((this._posizioneUdcStoricoTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._tipoCellaTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -20013,11 +20779,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } - if ((this._celleTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._anagPosizioniTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._celleTableAdapter.Update(addedRows)); + result = (result + this._anagPosizioniTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -20029,27 +20795,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } - if ((this._righeListePrelievoTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._celleTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._righeListePrelievoTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._posizioneUdcStoricoTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows)); + result = (result + this._celleTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -20061,6 +20811,14 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } + if ((this._righeListePrelievoTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._righeListePrelievoTableAdapter.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) @@ -20069,6 +20827,22 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allAddedRows.AddRange(addedRows); } } + if ((this._posizioneUdcStoricoTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._tipoCellaTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -20078,19 +20852,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private int UpdateDeletedRows(DS_magazzino dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._anagImballiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._tipoCellaTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagImballiTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._posizioneUdcCorrenteTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows)); + result = (result + this._tipoCellaTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -20102,11 +20868,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } - if ((this._tipoCellaTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._anagImballiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._tipoCellaTableAdapter.Update(deletedRows)); + result = (result + this._anagImballiTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -20118,11 +20884,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } - if ((this._elencoCartelliniTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._posizioneUdcCorrenteTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows)); + result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -20134,6 +20900,22 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co allChangedRows.AddRange(deletedRows); } } + if ((this._elencoCartelliniTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagPosizioniTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagPosizioniTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._blocchiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -20245,6 +21027,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._anagPosizioniTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagPosizioniTableAdapter.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" + @@ -20367,6 +21154,15 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co adaptersWithAcceptChangesDuringUpdate.Add(this._righeListePrelievoTableAdapter.Adapter); } } + if ((this._anagPosizioniTableAdapter != null)) { + revertConnections.Add(this._anagPosizioniTableAdapter, this._anagPosizioniTableAdapter.Connection); + this._anagPosizioniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagPosizioniTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagPosizioniTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagPosizioniTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagPosizioniTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -20465,6 +21261,10 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co this._righeListePrelievoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._righeListePrelievoTableAdapter])); this._righeListePrelievoTableAdapter.Transaction = null; } + if ((this._anagPosizioniTableAdapter != null)) { + this._anagPosizioniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagPosizioniTableAdapter])); + this._anagPosizioniTableAdapter.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_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd index c3b404f0..431887d7 100644 --- a/GMW/GMW_data/DS_magazzino.xsd +++ b/GMW/GMW_data/DS_magazzino.xsd @@ -217,6 +217,19 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno + + + + dbo.stp_UDC_getByTipoDelibera + + + + + + + + + @@ -1900,6 +1913,56 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co + + + + + + DELETE FROM [dbo].[AnagPosizioni] WHERE (([IdxPosizione] = @Original_IdxPosizione) AND ((@IsNull_DescPosizione = 1 AND [DescPosizione] IS NULL) OR ([DescPosizione] = @Original_DescPosizione))) + + + + + + + + + + INSERT INTO [dbo].[AnagPosizioni] ([IdxPosizione], [DescPosizione]) VALUES (@IdxPosizione, @DescPosizione); +SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @IdxPosizione) + + + + + + + + + SELECT IdxPosizione, DescPosizione FROM dbo.AnagPosizioni + + + + + + UPDATE [dbo].[AnagPosizioni] SET [IdxPosizione] = @IdxPosizione, [DescPosizione] = @DescPosizione WHERE (([IdxPosizione] = @Original_IdxPosizione) AND ((@IsNull_DescPosizione = 1 AND [DescPosizione] IS NULL) OR ([DescPosizione] = @Original_DescPosizione))); +SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @IdxPosizione) + + + + + + + + + + + + + + + + + @@ -1911,273 +1974,127 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - + - - - - + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2192,17 +2109,17 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - - - - - - - + + + + + + + - + @@ -2212,14 +2129,271 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2233,101 +2407,307 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - + + + + + + + + + + - + - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2344,341 +2724,38 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + @@ -2769,6 +2846,10 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co + + + + @@ -2781,6 +2862,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co + \ No newline at end of file diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss index aef63ee7..9c93584a 100644 --- a/GMW/GMW_data/DS_magazzino.xss +++ b/GMW/GMW_data/DS_magazzino.xss @@ -6,26 +6,27 @@ --> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + 368 @@ -37,7 +38,7 @@ - + 368 @@ -49,7 +50,7 @@ - + 1116 @@ -61,7 +62,7 @@ - + 712 @@ -73,7 +74,7 @@ - + 1014 @@ -85,7 +86,7 @@ - + 1107 @@ -97,7 +98,7 @@ - + 133 @@ -109,7 +110,7 @@ - + 393 @@ -121,7 +122,7 @@ - + 724 @@ -133,5 +134,21 @@ + + + + 392 + 218 + + + 392 + 350 + + + 368 + 350 + + + \ No newline at end of file diff --git a/GMW/GMW_data/GMW_data.csproj b/GMW/GMW_data/GMW_data.csproj index dcc363d2..55b26033 100644 --- a/GMW/GMW_data/GMW_data.csproj +++ b/GMW/GMW_data/GMW_data.csproj @@ -87,6 +87,7 @@ + diff --git a/GMW/GMW_data/StateMachine.cs b/GMW/GMW_data/StateMachine.cs new file mode 100644 index 00000000..4e28c74a --- /dev/null +++ b/GMW/GMW_data/StateMachine.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using SteamWare; + +namespace GMW_data +{ + /// + /// classe gestioen amcchina a stati + /// + public class StateMachine + { + protected StateMachine() + { + } + + /// + /// effettua la delibera dell'UDC andando a processare tramite macchina a stati l'eventuale spostamento di IdxPosizione + /// + /// + /// + /// + public void deliberaUdc(string UDC, string CodTipoDelibera) + { + try + { + utils.obj.taSTP.stp_UDC_delibera(CodTipoDelibera, UDC, MagClass.magazzino.CodSoggCurrUser()); + } + catch (Exception e) + { + logger.lg.scriviLog(string.Format("Non sono riuscito a fare la delibera di tipo {0} per l'UDC {1} da parte dell'user {2}, messaggio d'errore {3}{4}", CodTipoDelibera, UDC, user_std.UtSn.userNameAD, Environment.NewLine, e), SteamWare.tipoLog.ERROR); + } + } + /// + /// Singleton accesos a state machine + /// + public static StateMachine SM = new StateMachine(); + } +} diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index bb900230..b4d40ab1 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/bin/Debug/SteamWare.dll b/GMW/GMW_data/bin/Debug/SteamWare.dll index 366190e2..ebfdfba8 100644 Binary files a/GMW/GMW_data/bin/Debug/SteamWare.dll and b/GMW/GMW_data/bin/Debug/SteamWare.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index bb900230..b4d40ab1 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/ResolveAssemblyReference.cache b/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache index 32b28def..f904352f 100644 Binary files a/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache 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 b0263d62..79837601 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_SM.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_SM.Designer.cs.dll index 26bf4a76..34a0ff63 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_SM.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_SM.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll index ef2f3c5b..860d28b0 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll index c987d7ab..58c612ce 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll index c0e6e312..5b110569 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/obj/Release/TempPE/DS_SM.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_SM.Designer.cs.dll new file mode 100644 index 00000000..bf4dc5eb Binary files /dev/null and b/GMW/GMW_data/obj/Release/TempPE/DS_SM.Designer.cs.dll differ