diff --git a/GMW/GMW/Default.aspx b/GMW/GMW/Default.aspx index 78ca5c70..e2ff5ba2 100644 --- a/GMW/GMW/Default.aspx +++ b/GMW/GMW/Default.aspx @@ -1,17 +1,15 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GMW._Default" %> - - + Untitled Page
- -
- -
+ +
+
diff --git a/GMW/GMW/Default.aspx.cs b/GMW/GMW/Default.aspx.cs index cfaac0e1..124d0e07 100644 --- a/GMW/GMW/Default.aspx.cs +++ b/GMW/GMW/Default.aspx.cs @@ -13,9 +13,9 @@ namespace GMW { public partial class _Default : System.Web.UI.Page { + protected void Page_Load(object sender, EventArgs e) { - } } } diff --git a/GMW/GMW/Default.aspx.designer.cs b/GMW/GMW/Default.aspx.designer.cs index f4acaa7b..f2fc9b0a 100644 --- a/GMW/GMW/Default.aspx.designer.cs +++ b/GMW/GMW/Default.aspx.designer.cs @@ -1,18 +1,34 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.42 +// 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 _Default - { - protected System.Web.UI.HtmlControls.HtmlForm form1; +namespace GMW { + + + public partial class _Default { + + /// + /// 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; + + /// + /// ScriptManager1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.ScriptManager ScriptManager1; } } diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index 6ebd0334..17456314 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -79,10 +79,16 @@ + + bilance.asmx Component + + entrataMerce.asmx + Component + @@ -99,6 +105,7 @@ + diff --git a/GMW/GMW/Type/Prodotto.cs b/GMW/GMW/Type/Prodotto.cs new file mode 100644 index 00000000..360f10d2 --- /dev/null +++ b/GMW/GMW/Type/Prodotto.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace GMW.Type +{ + public class Prodotto + { + } +} diff --git a/GMW/GMW/Type/StatiProdotto.cs b/GMW/GMW/Type/StatiProdotto.cs new file mode 100644 index 00000000..8d7185ea --- /dev/null +++ b/GMW/GMW/Type/StatiProdotto.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using GMW_data; + +namespace GMW.Type +{ + public class StatiProdotto + { + public StatiProdotto() + { + } + + protected string _CodStato; + protected string _DescStato; + + /// + /// codice dello stato del prodotto + /// + public string CodStato + { + get + { + return _CodStato; + } + set + { + _CodStato = value; + } + } + + /// + /// descrizione dello stato del prodotto + /// + public string DescrStato + { + get + { + return _DescStato; + } + set + { + _DescStato = value; + } + } + + /// + /// inizializza a partire da una riga tipoDichiaraz tipizzata + /// + /// + public void setFromTabRow(DS_Applicazione.AnagStatiProdottoRow riga) + { + CodStato= riga.CodStato; + DescrStato= riga.DescStato; + } + } +} diff --git a/GMW/GMW/Type/TipoDichiarazione.cs b/GMW/GMW/Type/TipoDichiarazione.cs new file mode 100644 index 00000000..81ce48fd --- /dev/null +++ b/GMW/GMW/Type/TipoDichiarazione.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using GMW_data; + +namespace GMW.Type +{ + public class TipoDichiarazione + { + public TipoDichiarazione() + { + } + + protected string _CodTipoDichiaraz; + protected string _DescrTipoDichiaraz; + + /// + /// codice del tipo di dichiarazione + /// + public string CodTipoDichiaraz + { + get + { + return _CodTipoDichiaraz; + } + set + { + _CodTipoDichiaraz = value; + } + } + + /// + /// descrizione del tipo di dichiarazione + /// + public string DescrTipoDichiaraz + { + get + { + return _DescrTipoDichiaraz; + } + set + { + _DescrTipoDichiaraz = value; + } + } + + /// + /// inizializza a partire da una riga tipoDichiaraz tipizzata + /// + /// + public void setFromTabRow(DS_Applicazione.AnagTipoDichiarazRow riga) + { + CodTipoDichiaraz= riga.CodTipoDichiaraz; + DescrTipoDichiaraz = riga.DescrTipoDichiaraz; + } + } +} diff --git a/GMW/GMW/Type/elenchi.cs b/GMW/GMW/Type/elenchi.cs index ef813400..0402cdf6 100644 --- a/GMW/GMW/Type/elenchi.cs +++ b/GMW/GMW/Type/elenchi.cs @@ -12,6 +12,77 @@ namespace GMW.Type { } + #region area tipo dichiarazione + + protected TipoDichiarazione[] _elencoTipoDichiaraz; + + /// + /// legge una tab di tipo AnagTipoDichiaraz e la converte ad un array di tipo TipoDichiarazione[] + /// + /// + public void caricaTipoDichiarazioni(DS_Applicazione.AnagTipoDichiarazDataTable tabTipoDichiaraz) + { + // conto quanti elementi ha la tab x inizializzare l'array... + int numRighe = tabTipoDichiaraz.Rows.Count; + _elencoTipoDichiaraz = new TipoDichiarazione[numRighe]; + // prendo un obj impianto da valorizzare di volta in volta... + TipoDichiarazione obj; + for (int i = 0; i < numRighe; i++) + { + obj = new TipoDichiarazione(); + obj.setFromTabRow(tabTipoDichiaraz[i]); + _elencoTipoDichiaraz[i] = obj; + } + } + /// + /// Elenco tipo di dichiarazioni ammesse + /// + public TipoDichiarazione[] elencoTipoDichiaraz + { + get + { + return _elencoTipoDichiaraz; + } + } + + #endregion + + #region area stato prodotti + + protected StatiProdotto[] _elencoStatiProdotto; + + /// + /// legge una tab di tipo AnagStatiProdotto e la converte ad un array di tipo StatiProdotto[] + /// + /// + public void caricaStatiProdotto(DS_Applicazione.AnagStatiProdottoDataTable tabStatiProd) + { + // conto quanti elementi ha la tab x inizializzare l'array... + int numRighe = tabStatiProd.Rows.Count; + _elencoStatiProdotto = new StatiProdotto[numRighe]; + // prendo un obj impianto da valorizzare di volta in volta... + StatiProdotto obj; + for (int i = 0; i < numRighe; i++) + { + obj = new StatiProdotto(); + obj.setFromTabRow(tabStatiProd[i]); + _elencoStatiProdotto[i] = obj; + } + } + /// + /// Elenco degli stati del prodotto ammessi + /// + public StatiProdotto[] elencoStatiProdotto + { + get + { + return _elencoStatiProdotto; + } + } + + #endregion + + #region area articoli protected Articolo[] _elencoArticoli; diff --git a/GMW/GMW/WS/bilance.asmx.cs b/GMW/GMW/WS/bilance.asmx.cs index afcce629..0c735e3e 100644 --- a/GMW/GMW/WS/bilance.asmx.cs +++ b/GMW/GMW/WS/bilance.asmx.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; +using System.Linq; +using System.Data; using System.Web; using System.Web.Services; -using System.Data; using GMW_data; using GMW; using SteamWare; @@ -10,9 +11,9 @@ using SteamWare; namespace GMW.WS { /// - /// Summary description for bilance + /// WebService per gestioen sw bilance /// - [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.1.0.14")] + [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.1.0.15")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class bilance : System.Web.Services.WebService @@ -26,10 +27,11 @@ namespace GMW.WS public bilance() { gestEl = new GMW.Type.elenchi(); + logLevel = memLayer.ML.confReadInt("_logLevel"); } protected GMW.Type.elenchi gestEl; - + protected int logLevel = 0; #endregion #region area anagrafiche @@ -45,7 +47,26 @@ namespace GMW.WS gestEl.caricaArticoli(DataProxy.obj.taAnagArt.GetData()); return gestEl.elencoArticoli; } + /// + /// Fornisce l'elenco dei tipi di dichiarazione ammessi + /// + [WebMethod(Description = "Fornisce l'elenco dei tipi di dichiarazione ammessi")] + public GMW.Type.TipoDichiarazione[] ElencoTipoDichiarazioni() + { + gestEl.caricaTipoDichiarazioni(DataProxy.obj.taTipoDich.GetData()); + return gestEl.elencoTipoDichiaraz; + } + /// + /// Fornisce l'elenco degli stati dei prodotti ammessi + /// + [WebMethod(Description = "Fornisce l'elenco degli stati dei prodotti ammessi")] + public GMW.Type.StatiProdotto[] ElencoStatiProdotto() + { + + gestEl.caricaStatiProdotto(DataProxy.obj.taStatiProd.GetData()); + return gestEl.elencoStatiProdotto; + } /// /// Elenco anagrafico impianti /// @@ -64,7 +85,7 @@ namespace GMW.WS gestEl.caricaImpianti(DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito)); return gestEl.elencoImpianti; } - + /// /// fornisce l'anagrafica bilance /// @@ -111,13 +132,14 @@ namespace GMW.WS } /// - /// Fornisce un UDC a partire dalla richiesta e salva i dati + /// Fornisce un UDC tipo TEMP (per la tara) a partire dalla richiesta e salva i dati /// /// codice anagrafico della bilanca che effettua la richiesta (codice della pesa) /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore + /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input) /// UDC: codice univoco del contenitore - [WebMethod(Description = "Fornisce un UDC a partire dalla richiesta (per una certa stazione di pesatura) e salva i dati")] - public string UdcGetNew(string CodBilancia, double tara) + [WebMethod(Description = "Fornisce un UDC tipo TEMP (per la tara) a partire dalla richiesta e salva i dati")] + public string UdcGetNewTemp(string CodBilancia, double tara, string codImballo) { // ricavo cod company... string CodCompany = "ND"; @@ -134,7 +156,7 @@ namespace GMW.WS CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito; } // inserico riga generando il codice - DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", tara); + DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", tara, codImballo); // leggo la riga try { @@ -163,7 +185,7 @@ namespace GMW.WS return answ; } /// - /// Salva i dati aggiornati per l'UDC in quanto a numero pezzi associati + /// Crea un nuovo UDC (collegato ad un UDC parent della tara) specificando tutti i dati richiesti /// /// codice anagrafico della bilanca che effettua la richiesta (codice della pesa) /// codice dell'UDC @@ -171,7 +193,7 @@ namespace GMW.WS /// numero pezzi associati all'UDC /// restituisce true/false a seconda che sia riuscito a salvare o meno i dati [WebMethod(Description = "Salva i dati aggiornati per l'UDC in quanto a numero pezzi associati")] - public bool UdcUpdate(string CodBilancia, string UDC, string CodArticolo, int qta) + public bool UdcGetNewByUdcParent(string CodBilancia, string UDC, string CodArticolo, int qta) { // init bool answ = false; @@ -217,16 +239,17 @@ namespace GMW.WS public bool UdcPrintLabel(string place, tipoCartellino cartellino, string UDC) { bool answ = false; + string printerName = memLayer.ML.confReadString("printerCartTara"); try { - - reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, memLayer.ML.confReadString("printerCartTara"), UDC); - //reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, "PDFCreator", UDC); + if (logLevel > 5) logger.lg.scriviLog(String.Format("Sto per inviare un report alla stampante {0}", printerName), tipoLog.INFO); + reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, printerName, UDC); + if (logLevel > 5) logger.lg.scriviLog(String.Format("inviato comando print alla stampante {0}", printerName), tipoLog.INFO); answ = true; } catch (Exception e) { - logger.lg.scriviLog(e.ToString(), tipoLog.EXCEPTION); + logger.lg.scriviLog(String.Format("Errore in fase di creazione e stampa report: stampante {0}, errore riscontrato {1}", printerName, e), tipoLog.EXCEPTION); } return answ; } diff --git a/GMW/GMW/WS/entrataMerce.asmx b/GMW/GMW/WS/entrataMerce.asmx new file mode 100644 index 00000000..98da9d1a --- /dev/null +++ b/GMW/GMW/WS/entrataMerce.asmx @@ -0,0 +1 @@ +<%@ WebService Language="C#" CodeBehind="entrataMerce.asmx.cs" Class="GMW.WS.entrataMerce" %> diff --git a/GMW/GMW/WS/entrataMerce.asmx.cs b/GMW/GMW/WS/entrataMerce.asmx.cs new file mode 100644 index 00000000..527dfff0 --- /dev/null +++ b/GMW/GMW/WS/entrataMerce.asmx.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Data; +using System.Web; +using System.Web.Services; +using GMW_data; +using GMW; +using SteamWare; + +namespace GMW.WS +{ + /// + /// Summary description for entrataMerce + /// + [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per la gestione dell'entrata merce integrate a GMW v.1.0.15")] + [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] + [System.ComponentModel.ToolboxItem(false)] + // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. + [System.Web.Script.Services.ScriptService] + public class entrataMerce : System.Web.Services.WebService + { + + #region area init + + /// + /// init del metodo + /// + public entrataMerce() + { + gestEl = new GMW.Type.elenchi(); + logLevel = memLayer.ML.confReadInt("_logLevel"); + } + + protected GMW.Type.elenchi gestEl; + protected int logLevel = 0; + + #endregion + + /// + /// Crea tanti cartellini gemelli per lo stesso lotto e con la stessa quantità dati codice company e sito, codice lotto, quantità totale, num cartellini + /// + /// + /// + /// + /// + /// + /// + [WebMethod(Description = "Crea tanti cartellini gemelli per lo stesso lotto e con la stessa quantità dati codice company e sito, codice lotto, quantità totale, num cartellini")] + public bool CreaCartelliniPerLottoQta(string CodCompany, string CodSito, string CodLotto, float qtaTotale, int numCartellini) + { + bool answ = false; + // dovrebbe allocare i cartellini... + return answ; + } + } +} diff --git a/GMW/GMW/Web.config b/GMW/GMW/Web.config index b2cc97c4..76d4bb1e 100644 --- a/GMW/GMW/Web.config +++ b/GMW/GMW/Web.config @@ -1,5 +1,4 @@ - - + @@ -35,7 +34,10 @@ - + + + + @@ -78,8 +80,8 @@ - - + + @@ -122,4 +124,4 @@ - + \ No newline at end of file diff --git a/GMW/GMW/bin/AjaxControlToolkit.dll b/GMW/GMW/bin/AjaxControlToolkit.dll new file mode 100644 index 00000000..0f57b2a2 Binary files /dev/null and b/GMW/GMW/bin/AjaxControlToolkit.dll differ diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 59398f78..b32affcf 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 e8aff844..db59936b 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 bb36e2b5..6809ec2a 100644 --- a/GMW/GMW/bin/SteamWare.XML +++ b/GMW/GMW/bin/SteamWare.XML @@ -4,3101 +4,5 @@ SteamWare - - - 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 - - - - - 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 - - - - - 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 - - - - - - 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) - - - - - 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... - - - - - 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... - - - - - 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 - - - - 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 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. - - - - - 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 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 - - - - - 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 - - - - - 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 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 - - - - - 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 - - - - - 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. - - - - - 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 - - - - - - - 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... - - - - - 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 - - - - - - - - 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 - - - - - diff --git a/GMW/GMW/bin/SteamWare.dll b/GMW/GMW/bin/SteamWare.dll index 6980cf83..2a90c2c0 100644 Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ diff --git a/GMW/GMW/bin/System.Web.Ajax.dll b/GMW/GMW/bin/System.Web.Ajax.dll new file mode 100644 index 00000000..61515ec1 Binary files /dev/null and b/GMW/GMW/bin/System.Web.Ajax.dll differ diff --git a/GMW/GMW/bin/ar/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/ar/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..e9d9d28a Binary files /dev/null and b/GMW/GMW/bin/ar/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/cs/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/cs/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..29d72c08 Binary files /dev/null and b/GMW/GMW/bin/cs/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/de/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/de/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..84ff3b90 Binary files /dev/null and b/GMW/GMW/bin/de/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/es/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/es/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..8123499e Binary files /dev/null and b/GMW/GMW/bin/es/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/fr/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/fr/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..2698d63e Binary files /dev/null and b/GMW/GMW/bin/fr/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/he/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/he/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..9736f270 Binary files /dev/null and b/GMW/GMW/bin/he/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/hi/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/hi/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..11120acf Binary files /dev/null and b/GMW/GMW/bin/hi/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/it/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/it/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..9c9e0c1f Binary files /dev/null and b/GMW/GMW/bin/it/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/ja/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/ja/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..1b8ffcb2 Binary files /dev/null and b/GMW/GMW/bin/ja/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/ko/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/ko/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..7f761bbb Binary files /dev/null and b/GMW/GMW/bin/ko/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/nl/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/nl/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..e3f72c62 Binary files /dev/null and b/GMW/GMW/bin/nl/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/pt/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/pt/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..d1e480f1 Binary files /dev/null and b/GMW/GMW/bin/pt/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/ru/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/ru/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..21079952 Binary files /dev/null and b/GMW/GMW/bin/ru/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/tr-TR/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/tr-TR/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..3754b53d Binary files /dev/null and b/GMW/GMW/bin/tr-TR/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/zh-CHS/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/zh-CHS/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..f9660883 Binary files /dev/null and b/GMW/GMW/bin/zh-CHS/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/bin/zh-CHT/AjaxControlToolkit.resources.dll b/GMW/GMW/bin/zh-CHT/AjaxControlToolkit.resources.dll new file mode 100644 index 00000000..7979b963 Binary files /dev/null and b/GMW/GMW/bin/zh-CHT/AjaxControlToolkit.resources.dll differ diff --git a/GMW/GMW/mazzAppSettings.config b/GMW/GMW/mazzAppSettings.config index 85d9da69..62cc312a 100644 --- a/GMW/GMW/mazzAppSettings.config +++ b/GMW/GMW/mazzAppSettings.config @@ -1,7 +1,7 @@  - - + + \ No newline at end of file diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 029549aa..b32affcf 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/RdlCompile.cache b/GMW/GMW/obj/Debug/RdlCompile.cache index cecbf1af..a130a1c6 100644 Binary files a/GMW/GMW/obj/Debug/RdlCompile.cache and b/GMW/GMW/obj/Debug/RdlCompile.cache differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index 8b5e064a..252b4978 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll index 59398f78..0d0f91ae 100644 Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache index d166e1a1..6ecbdec7 100644 Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_Reports/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_Reports/obj/Release/ResolveAssemblyReference.cache new file mode 100644 index 00000000..8e2ac94a Binary files /dev/null and b/GMW/GMW_Reports/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs index c5333a6d..7b77b72a 100644 --- a/GMW/GMW_data/DS_Applicazione.Designer.cs +++ b/GMW/GMW_data/DS_Applicazione.Designer.cs @@ -43,6 +43,10 @@ namespace GMW_data { private TabStatoOdpUdcDataTable tableTabStatoOdpUdc; + private AnagTipoDichiarazDataTable tableAnagTipoDichiaraz; + + private AnagStatiProdottoDataTable tableAnagStatiProdotto; + private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli; private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagImpianti; @@ -59,6 +63,8 @@ namespace GMW_data { private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagStati; + private global::System.Data.DataRelation relationFK_TabStatoOdpUdc_AnagTipoDichiaraz; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -112,6 +118,12 @@ namespace GMW_data { if ((ds.Tables["TabStatoOdpUdc"] != null)) { base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"])); } + if ((ds.Tables["AnagTipoDichiaraz"] != null)) { + base.Tables.Add(new AnagTipoDichiarazDataTable(ds.Tables["AnagTipoDichiaraz"])); + } + if ((ds.Tables["AnagStatiProdotto"] != null)) { + base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -211,6 +223,24 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagTipoDichiarazDataTable AnagTipoDichiaraz { + get { + return this.tableAnagTipoDichiaraz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagStatiProdottoDataTable AnagStatiProdotto { + get { + return this.tableAnagStatiProdotto; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -297,6 +327,12 @@ namespace GMW_data { if ((ds.Tables["TabStatoOdpUdc"] != null)) { base.Tables.Add(new TabStatoOdpUdcDataTable(ds.Tables["TabStatoOdpUdc"])); } + if ((ds.Tables["AnagTipoDichiaraz"] != null)) { + base.Tables.Add(new AnagTipoDichiarazDataTable(ds.Tables["AnagTipoDichiaraz"])); + } + if ((ds.Tables["AnagStatiProdotto"] != null)) { + base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -381,6 +417,18 @@ namespace GMW_data { this.tableTabStatoOdpUdc.InitVars(); } } + this.tableAnagTipoDichiaraz = ((AnagTipoDichiarazDataTable)(base.Tables["AnagTipoDichiaraz"])); + if ((initTable == true)) { + if ((this.tableAnagTipoDichiaraz != null)) { + this.tableAnagTipoDichiaraz.InitVars(); + } + } + this.tableAnagStatiProdotto = ((AnagStatiProdottoDataTable)(base.Tables["AnagStatiProdotto"])); + if ((initTable == true)) { + if ((this.tableAnagStatiProdotto != null)) { + this.tableAnagStatiProdotto.InitVars(); + } + } this.relationFK_Impianti2Articoli_AnagArticoli = this.Relations["FK_Impianti2Articoli_AnagArticoli"]; this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"]; this.relationFK_AnagImpianti_AnagSiti = this.Relations["FK_AnagImpianti_AnagSiti"]; @@ -389,6 +437,7 @@ namespace GMW_data { this.relationFK_AnagOdp_AnagCompany = this.Relations["FK_AnagOdp_AnagCompany"]; this.relationFK_TabStatoOdpUdc_AnagOdp = this.Relations["FK_TabStatoOdpUdc_AnagOdp"]; this.relationFK_TabStatoOdpUdc_AnagStati = this.Relations["FK_TabStatoOdpUdc_AnagStati"]; + this.relationFK_TabStatoOdpUdc_AnagTipoDichiaraz = this.Relations["FK_TabStatoOdpUdc_AnagTipoDichiaraz"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -416,6 +465,10 @@ namespace GMW_data { base.Tables.Add(this.tableAnagStati); this.tableTabStatoOdpUdc = new TabStatoOdpUdcDataTable(); base.Tables.Add(this.tableTabStatoOdpUdc); + this.tableAnagTipoDichiaraz = new AnagTipoDichiarazDataTable(); + base.Tables.Add(this.tableAnagTipoDichiaraz); + this.tableAnagStatiProdotto = new AnagStatiProdottoDataTable(); + base.Tables.Add(this.tableAnagStatiProdotto); this.relationFK_Impianti2Articoli_AnagArticoli = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli", new global::System.Data.DataColumn[] { this.tableAnagArticoli.CodArticoloColumn}, new global::System.Data.DataColumn[] { this.tableImpianti2Articoli.CodArticoloColumn}, false); @@ -454,6 +507,10 @@ namespace GMW_data { this.tableAnagStati.IdxStatoColumn}, new global::System.Data.DataColumn[] { this.tableTabStatoOdpUdc.IdxStatoColumn}, false); this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagStati); + this.relationFK_TabStatoOdpUdc_AnagTipoDichiaraz = new global::System.Data.DataRelation("FK_TabStatoOdpUdc_AnagTipoDichiaraz", new global::System.Data.DataColumn[] { + this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn}, new global::System.Data.DataColumn[] { + this.tableTabStatoOdpUdc.CodTipoDichiarazColumn}, false); + this.Relations.Add(this.relationFK_TabStatoOdpUdc_AnagTipoDichiaraz); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -501,6 +558,16 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagTipoDichiaraz() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeAnagStatiProdotto() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -572,6 +639,10 @@ namespace GMW_data { public delegate void TabStatoOdpUdcRowChangeEventHandler(object sender, TabStatoOdpUdcRowChangeEvent e); + public delegate void AnagTipoDichiarazRowChangeEventHandler(object sender, AnagTipoDichiarazRowChangeEvent e); + + public delegate void AnagStatiProdottoRowChangeEventHandler(object sender, AnagStatiProdottoRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2815,6 +2886,8 @@ namespace GMW_data { private global::System.Data.DataColumn columnModDate; + private global::System.Data.DataColumn columnCodTipoDichiaraz; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public TabStatoOdpUdcDataTable() { this.TableName = "TabStatoOdpUdc"; @@ -2908,6 +2981,13 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn CodTipoDichiarazColumn { + get { + return this.columnCodTipoDichiaraz; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Browsable(false)] public int Count { @@ -2937,7 +3017,7 @@ namespace GMW_data { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public TabStatoOdpUdcRow AddTabStatoOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate) { + public TabStatoOdpUdcRow AddTabStatoOdpUdcRow(string CodCompany, string ODP, string UDC, double Tara, AnagStatiRow parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati, decimal Qta, string CodImballo, System.DateTime CreateDate, System.DateTime ModDate, AnagTipoDichiarazRow parentAnagTipoDichiarazRowByFK_TabStatoOdpUdc_AnagTipoDichiaraz) { TabStatoOdpUdcRow rowTabStatoOdpUdcRow = ((TabStatoOdpUdcRow)(this.NewRow())); object[] columnValuesArray = new object[] { CodCompany, @@ -2948,10 +3028,14 @@ namespace GMW_data { Qta, CodImballo, CreateDate, - ModDate}; + ModDate, + null}; if ((parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati != null)) { columnValuesArray[4] = parentAnagStatiRowByFK_TabStatoOdpUdc_AnagStati[0]; } + if ((parentAnagTipoDichiarazRowByFK_TabStatoOdpUdc_AnagTipoDichiaraz != null)) { + columnValuesArray[9] = parentAnagTipoDichiarazRowByFK_TabStatoOdpUdc_AnagTipoDichiaraz[0]; + } rowTabStatoOdpUdcRow.ItemArray = columnValuesArray; this.Rows.Add(rowTabStatoOdpUdcRow); return rowTabStatoOdpUdcRow; @@ -2988,6 +3072,7 @@ namespace GMW_data { this.columnCodImballo = base.Columns["CodImballo"]; this.columnCreateDate = base.Columns["CreateDate"]; this.columnModDate = base.Columns["ModDate"]; + this.columnCodTipoDichiaraz = base.Columns["CodTipoDichiaraz"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3010,6 +3095,8 @@ namespace GMW_data { 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.columnCodTipoDichiaraz = new global::System.Data.DataColumn("CodTipoDichiaraz", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTipoDichiaraz); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnCodCompany, this.columnODP, @@ -3021,6 +3108,7 @@ namespace GMW_data { this.columnUDC.AllowDBNull = false; this.columnUDC.MaxLength = 50; this.columnCodImballo.MaxLength = 50; + this.columnCodTipoDichiaraz.MaxLength = 1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3138,6 +3226,502 @@ 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 AnagTipoDichiarazDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodTipoDichiaraz; + + private global::System.Data.DataColumn columnDescrTipoDichiaraz; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazDataTable() { + this.TableName = "AnagTipoDichiaraz"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagTipoDichiarazDataTable(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 AnagTipoDichiarazDataTable(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 CodTipoDichiarazColumn { + get { + return this.columnCodTipoDichiaraz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescrTipoDichiarazColumn { + get { + return this.columnDescrTipoDichiaraz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRow this[int index] { + get { + return ((AnagTipoDichiarazRow)(this.Rows[index])); + } + } + + public event AnagTipoDichiarazRowChangeEventHandler AnagTipoDichiarazRowChanging; + + public event AnagTipoDichiarazRowChangeEventHandler AnagTipoDichiarazRowChanged; + + public event AnagTipoDichiarazRowChangeEventHandler AnagTipoDichiarazRowDeleting; + + public event AnagTipoDichiarazRowChangeEventHandler AnagTipoDichiarazRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagTipoDichiarazRow(AnagTipoDichiarazRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRow AddAnagTipoDichiarazRow(string CodTipoDichiaraz, string DescrTipoDichiaraz) { + AnagTipoDichiarazRow rowAnagTipoDichiarazRow = ((AnagTipoDichiarazRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodTipoDichiaraz, + DescrTipoDichiaraz}; + rowAnagTipoDichiarazRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagTipoDichiarazRow); + return rowAnagTipoDichiarazRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRow FindByCodTipoDichiaraz(string CodTipoDichiaraz) { + return ((AnagTipoDichiarazRow)(this.Rows.Find(new object[] { + CodTipoDichiaraz}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagTipoDichiarazDataTable cln = ((AnagTipoDichiarazDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagTipoDichiarazDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodTipoDichiaraz = base.Columns["CodTipoDichiaraz"]; + this.columnDescrTipoDichiaraz = base.Columns["DescrTipoDichiaraz"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodTipoDichiaraz = new global::System.Data.DataColumn("CodTipoDichiaraz", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTipoDichiaraz); + this.columnDescrTipoDichiaraz = new global::System.Data.DataColumn("DescrTipoDichiaraz", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrTipoDichiaraz); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodTipoDichiaraz}, true)); + this.columnCodTipoDichiaraz.AllowDBNull = false; + this.columnCodTipoDichiaraz.Unique = true; + this.columnCodTipoDichiaraz.MaxLength = 1; + this.columnDescrTipoDichiaraz.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRow NewAnagTipoDichiarazRow() { + return ((AnagTipoDichiarazRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagTipoDichiarazRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagTipoDichiarazRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagTipoDichiarazRowChanged != null)) { + this.AnagTipoDichiarazRowChanged(this, new AnagTipoDichiarazRowChangeEvent(((AnagTipoDichiarazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagTipoDichiarazRowChanging != null)) { + this.AnagTipoDichiarazRowChanging(this, new AnagTipoDichiarazRowChangeEvent(((AnagTipoDichiarazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagTipoDichiarazRowDeleted != null)) { + this.AnagTipoDichiarazRowDeleted(this, new AnagTipoDichiarazRowChangeEvent(((AnagTipoDichiarazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagTipoDichiarazRowDeleting != null)) { + this.AnagTipoDichiarazRowDeleting(this, new AnagTipoDichiarazRowChangeEvent(((AnagTipoDichiarazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagTipoDichiarazRow(AnagTipoDichiarazRow 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 = "AnagTipoDichiarazDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagStatiProdottoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodStato; + + private global::System.Data.DataColumn columnDescStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoDataTable() { + this.TableName = "AnagStatiProdotto"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagStatiProdottoDataTable(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 AnagStatiProdottoDataTable(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 CodStatoColumn { + get { + return this.columnCodStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescStatoColumn { + get { + return this.columnDescStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoRow this[int index] { + get { + return ((AnagStatiProdottoRow)(this.Rows[index])); + } + } + + public event AnagStatiProdottoRowChangeEventHandler AnagStatiProdottoRowChanging; + + public event AnagStatiProdottoRowChangeEventHandler AnagStatiProdottoRowChanged; + + public event AnagStatiProdottoRowChangeEventHandler AnagStatiProdottoRowDeleting; + + public event AnagStatiProdottoRowChangeEventHandler AnagStatiProdottoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddAnagStatiProdottoRow(AnagStatiProdottoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoRow AddAnagStatiProdottoRow(string CodStato, string DescStato) { + AnagStatiProdottoRow rowAnagStatiProdottoRow = ((AnagStatiProdottoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodStato, + DescStato}; + rowAnagStatiProdottoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagStatiProdottoRow); + return rowAnagStatiProdottoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoRow FindByCodStato(string CodStato) { + return ((AnagStatiProdottoRow)(this.Rows.Find(new object[] { + CodStato}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + AnagStatiProdottoDataTable cln = ((AnagStatiProdottoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagStatiProdottoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnCodStato = base.Columns["CodStato"]; + this.columnDescStato = base.Columns["DescStato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnCodStato = new global::System.Data.DataColumn("CodStato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodStato); + this.columnDescStato = new global::System.Data.DataColumn("DescStato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescStato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodStato}, true)); + this.columnCodStato.AllowDBNull = false; + this.columnCodStato.Unique = true; + this.columnCodStato.MaxLength = 50; + this.columnDescStato.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoRow NewAnagStatiProdottoRow() { + return ((AnagStatiProdottoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagStatiProdottoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(AnagStatiProdottoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagStatiProdottoRowChanged != null)) { + this.AnagStatiProdottoRowChanged(this, new AnagStatiProdottoRowChangeEvent(((AnagStatiProdottoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagStatiProdottoRowChanging != null)) { + this.AnagStatiProdottoRowChanging(this, new AnagStatiProdottoRowChangeEvent(((AnagStatiProdottoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagStatiProdottoRowDeleted != null)) { + this.AnagStatiProdottoRowDeleted(this, new AnagStatiProdottoRowChangeEvent(((AnagStatiProdottoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagStatiProdottoRowDeleting != null)) { + this.AnagStatiProdottoRowDeleting(this, new AnagStatiProdottoRowChangeEvent(((AnagStatiProdottoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveAnagStatiProdottoRow(AnagStatiProdottoRow 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 = "AnagStatiProdottoDataTable"; + 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. /// @@ -4022,6 +4606,21 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodTipoDichiaraz { + get { + try { + return ((string)(this[this.tableTabStatoOdpUdc.CodTipoDichiarazColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodTipoDichiaraz\' in table \'TabStatoOdpUdc\' is DBNull.", e); + } + } + set { + this[this.tableTabStatoOdpUdc.CodTipoDichiarazColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public AnagOdpRow AnagOdpRowParent { get { @@ -4042,6 +4641,16 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRow AnagTipoDichiarazRow { + get { + return ((AnagTipoDichiarazRow)(this.GetParentRow(this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagTipoDichiaraz"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TabStatoOdpUdc_AnagTipoDichiaraz"]); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsTaraNull() { return this.IsNull(this.tableTabStatoOdpUdc.TaraColumn); @@ -4101,6 +4710,127 @@ namespace GMW_data { public void SetModDateNull() { this[this.tableTabStatoOdpUdc.ModDateColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsCodTipoDichiarazNull() { + return this.IsNull(this.tableTabStatoOdpUdc.CodTipoDichiarazColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetCodTipoDichiarazNull() { + this[this.tableTabStatoOdpUdc.CodTipoDichiarazColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagTipoDichiarazRow : global::System.Data.DataRow { + + private AnagTipoDichiarazDataTable tableAnagTipoDichiaraz; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagTipoDichiarazRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagTipoDichiaraz = ((AnagTipoDichiarazDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodTipoDichiaraz { + get { + return ((string)(this[this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn])); + } + set { + this[this.tableAnagTipoDichiaraz.CodTipoDichiarazColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescrTipoDichiaraz { + get { + try { + return ((string)(this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrTipoDichiaraz\' in table \'AnagTipoDichiaraz\' is DBNull." + + "", e); + } + } + set { + this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescrTipoDichiarazNull() { + return this.IsNull(this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescrTipoDichiarazNull() { + this[this.tableAnagTipoDichiaraz.DescrTipoDichiarazColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public TabStatoOdpUdcRow[] GetTabStatoOdpUdcRows() { + if ((this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagTipoDichiaraz"] == null)) { + return new TabStatoOdpUdcRow[0]; + } + else { + return ((TabStatoOdpUdcRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TabStatoOdpUdc_AnagTipoDichiaraz"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class AnagStatiProdottoRow : global::System.Data.DataRow { + + private AnagStatiProdottoDataTable tableAnagStatiProdotto; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal AnagStatiProdottoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagStatiProdotto = ((AnagStatiProdottoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string CodStato { + get { + return ((string)(this[this.tableAnagStatiProdotto.CodStatoColumn])); + } + set { + this[this.tableAnagStatiProdotto.CodStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string DescStato { + get { + try { + return ((string)(this[this.tableAnagStatiProdotto.DescStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescStato\' in table \'AnagStatiProdotto\' is DBNull.", e); + } + } + set { + this[this.tableAnagStatiProdotto.DescStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IsDescStatoNull() { + return this.IsNull(this.tableAnagStatiProdotto.DescStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetDescStatoNull() { + this[this.tableAnagStatiProdotto.DescStatoColumn] = global::System.Convert.DBNull; + } } /// @@ -4381,6 +5111,68 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class AnagTipoDichiarazRowChangeEvent : global::System.EventArgs { + + private AnagTipoDichiarazRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRowChangeEvent(AnagTipoDichiarazRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagTipoDichiarazRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class AnagStatiProdottoRowChangeEvent : global::System.EventArgs { + + private AnagStatiProdottoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoRowChangeEvent(AnagStatiProdottoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AnagStatiProdottoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_ApplicazioneTableAdapters { @@ -7661,10 +8453,11 @@ SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato)"; tableMapping.ColumnMappings.Add("CodImballo", "CodImballo"); tableMapping.ColumnMappings.Add("CreateDate", "CreateDate"); tableMapping.ColumnMappings.Add("ModDate", "ModDate"); + tableMapping.ColumnMappings.Add("CodTipoDichiaraz", "CodTipoDichiaraz"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz)))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -7681,10 +8474,12 @@ SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato)"; 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.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.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate); -SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate], [CodTipoDichiaraz]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate, @CodTipoDichiaraz); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, CodTipoDichiaraz FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -7695,10 +8490,11 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.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.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate))); -SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate, [CodTipoDichiaraz] = @CodTipoDichiaraz WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz))); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, CodTipoDichiaraz FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -7709,6 +8505,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CreateDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CreateDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ModDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ModDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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("@Original_CodCompany", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ODP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ODP", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -7724,6 +8521,8 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat 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, "", "", "")); + 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, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -7737,8 +8536,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate" + - " FROM dbo.TabStatoOdpUdc"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.TabStatoOdpUdc"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -7757,6 +8555,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].CommandText = "dbo.stp_updateByBilancia"; @@ -7809,7 +8608,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_Applicazione.TabStatoOdpUdcDataTable stp_insNewOdpUdc(string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable Tara) { + public virtual DS_Applicazione.TabStatoOdpUdcDataTable stp_insNewOdpUdc(string CodCompany, string CodSito, string Flusso, string Anno, string ODP, global::System.Nullable Tara, string CodImballo) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((CodCompany == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -7847,6 +8646,12 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat else { this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; } + if ((CodImballo == null)) { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodImballo)); + } DS_Applicazione.TabStatoOdpUdcDataTable dataTable = new DS_Applicazione.TabStatoOdpUdcDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -7914,7 +8719,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable Original_Tara, global::System.Nullable Original_IdxStato, global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate) { + public virtual int Delete(string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable Original_Tara, global::System.Nullable Original_IdxStato, global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate, string Original_CodTipoDichiaraz) { if ((Original_CodCompany == null)) { throw new global::System.ArgumentNullException("Original_CodCompany"); } @@ -7981,6 +8786,14 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; } + if ((Original_CodTipoDichiaraz == 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_CodTipoDichiaraz)); + } 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)) { @@ -8000,7 +8813,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string CodCompany, string ODP, string UDC, global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate) { + public virtual int Insert(string CodCompany, string ODP, string UDC, global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate, string CodTipoDichiaraz) { if ((CodCompany == null)) { throw new global::System.ArgumentNullException("CodCompany"); } @@ -8055,6 +8868,12 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat else { this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; } + if ((CodTipoDichiaraz == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(CodTipoDichiaraz)); + } 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)) { @@ -8084,6 +8903,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate, + string CodTipoDichiaraz, string Original_CodCompany, string Original_ODP, string Original_UDC, @@ -8092,7 +8912,8 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, - global::System.Nullable Original_ModDate) { + global::System.Nullable Original_ModDate, + string Original_CodTipoDichiaraz) { if ((CodCompany == null)) { throw new global::System.ArgumentNullException("CodCompany"); } @@ -8147,71 +8968,85 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat else { this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; } + if ((CodTipoDichiaraz == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(CodTipoDichiaraz)); + } if ((Original_CodCompany == null)) { throw new global::System.ArgumentNullException("Original_CodCompany"); } else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCompany)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodCompany)); } if ((Original_ODP == null)) { throw new global::System.ArgumentNullException("Original_ODP"); } else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ODP)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_ODP)); } if ((Original_UDC == null)) { throw new global::System.ArgumentNullException("Original_UDC"); } else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_UDC)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_UDC)); } if ((Original_Tara.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(Original_Tara.Value)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(Original_Tara.Value)); } else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; } if ((Original_IdxStato.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxStato.Value)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_IdxStato.Value)); } else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; } if ((Original_Qta.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_Qta.Value)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(Original_Qta.Value)); } else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; } if ((Original_CodImballo == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodImballo)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_CodImballo)); } if ((Original_CreateDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_CreateDate.Value)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((System.DateTime)(Original_CreateDate.Value)); } else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; } if ((Original_ModDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_ModDate.Value)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((System.DateTime)(Original_ModDate.Value)); } else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + if ((Original_CodTipoDichiaraz == null)) { + this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_CodTipoDichiaraz)); } global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) @@ -8232,8 +9067,684 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(global::System.Nullable Tara, global::System.Nullable IdxStato, global::System.Nullable Qta, string CodImballo, global::System.Nullable CreateDate, global::System.Nullable ModDate, string Original_CodCompany, string Original_ODP, string Original_UDC, global::System.Nullable Original_Tara, global::System.Nullable Original_IdxStato, global::System.Nullable Original_Qta, string Original_CodImballo, global::System.Nullable Original_CreateDate, global::System.Nullable Original_ModDate) { - return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CreateDate, Original_ModDate); + public virtual int Update( + global::System.Nullable Tara, + global::System.Nullable IdxStato, + global::System.Nullable Qta, + string CodImballo, + global::System.Nullable CreateDate, + global::System.Nullable ModDate, + string CodTipoDichiaraz, + string Original_CodCompany, + string Original_ODP, + string Original_UDC, + global::System.Nullable Original_Tara, + global::System.Nullable Original_IdxStato, + global::System.Nullable Original_Qta, + string Original_CodImballo, + global::System.Nullable Original_CreateDate, + global::System.Nullable Original_ModDate, + string Original_CodTipoDichiaraz) { + return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, CodTipoDichiaraz, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CreateDate, Original_ModDate, Original_CodTipoDichiaraz); + } + } + + /// + ///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 AnagTipoDichiarazTableAdapter : 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 AnagTipoDichiarazTableAdapter() { + 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 = "AnagTipoDichiaraz"; + tableMapping.ColumnMappings.Add("CodTipoDichiaraz", "CodTipoDichiaraz"); + tableMapping.ColumnMappings.Add("DescrTipoDichiaraz", "DescrTipoDichiaraz"); + 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].[AnagTipoDichiaraz] WHERE (([CodTipoDichiaraz] = @Original_CodT" + + "ipoDichiaraz) AND ((@IsNull_DescrTipoDichiaraz = 1 AND [DescrTipoDichiaraz] IS N" + + "ULL) OR ([DescrTipoDichiaraz] = @Original_DescrTipoDichiaraz)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + 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_DescrTipoDichiaraz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrTipoDichiaraz", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrTipoDichiaraz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrTipoDichiaraz", 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].[AnagTipoDichiaraz] ([CodTipoDichiaraz], [DescrTipoDichiaraz]) " + + "VALUES (@CodTipoDichiaraz, @DescrTipoDichiaraz);\r\nSELECT CodTipoDichiaraz, Descr" + + "TipoDichiaraz FROM AnagTipoDichiaraz WHERE (CodTipoDichiaraz = @CodTipoDichiaraz" + + ")"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + 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("@DescrTipoDichiaraz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrTipoDichiaraz", 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].[AnagTipoDichiaraz] SET [CodTipoDichiaraz] = @CodTipoDichiaraz, [DescrTipoDichiaraz] = @DescrTipoDichiaraz WHERE (([CodTipoDichiaraz] = @Original_CodTipoDichiaraz) AND ((@IsNull_DescrTipoDichiaraz = 1 AND [DescrTipoDichiaraz] IS NULL) OR ([DescrTipoDichiaraz] = @Original_DescrTipoDichiaraz))); +SELECT CodTipoDichiaraz, DescrTipoDichiaraz FROM AnagTipoDichiaraz WHERE (CodTipoDichiaraz = @CodTipoDichiaraz)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + 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("@DescrTipoDichiaraz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrTipoDichiaraz", global::System.Data.DataRowVersion.Current, false, 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_DescrTipoDichiaraz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrTipoDichiaraz", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrTipoDichiaraz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrTipoDichiaraz", 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 CodTipoDichiaraz, DescrTipoDichiaraz FROM dbo.AnagTipoDichiaraz"; + 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.AnagTipoDichiarazDataTable 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.AnagTipoDichiarazDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.AnagTipoDichiarazDataTable dataTable = new DS_Applicazione.AnagTipoDichiarazDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione.AnagTipoDichiarazDataTable 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, "AnagTipoDichiaraz"); + } + + [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_CodTipoDichiaraz, string Original_DescrTipoDichiaraz) { + if ((Original_CodTipoDichiaraz == null)) { + throw new global::System.ArgumentNullException("Original_CodTipoDichiaraz"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodTipoDichiaraz)); + } + if ((Original_DescrTipoDichiaraz == 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_DescrTipoDichiaraz)); + } + 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 CodTipoDichiaraz, string DescrTipoDichiaraz) { + if ((CodTipoDichiaraz == null)) { + throw new global::System.ArgumentNullException("CodTipoDichiaraz"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodTipoDichiaraz)); + } + if ((DescrTipoDichiaraz == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrTipoDichiaraz)); + } + 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 CodTipoDichiaraz, string DescrTipoDichiaraz, string Original_CodTipoDichiaraz, string Original_DescrTipoDichiaraz) { + if ((CodTipoDichiaraz == null)) { + throw new global::System.ArgumentNullException("CodTipoDichiaraz"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodTipoDichiaraz)); + } + if ((DescrTipoDichiaraz == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrTipoDichiaraz)); + } + if ((Original_CodTipoDichiaraz == null)) { + throw new global::System.ArgumentNullException("Original_CodTipoDichiaraz"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodTipoDichiaraz)); + } + if ((Original_DescrTipoDichiaraz == 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_DescrTipoDichiaraz)); + } + 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 DescrTipoDichiaraz, string Original_CodTipoDichiaraz, string Original_DescrTipoDichiaraz) { + return this.Update(Original_CodTipoDichiaraz, DescrTipoDichiaraz, Original_CodTipoDichiaraz, Original_DescrTipoDichiaraz); + } + } + + /// + ///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 AnagStatiProdottoTableAdapter : 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 AnagStatiProdottoTableAdapter() { + 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 = "AnagStatiProdotto"; + tableMapping.ColumnMappings.Add("CodStato", "CodStato"); + tableMapping.ColumnMappings.Add("DescStato", "DescStato"); + 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].[AnagStatiProdotto] WHERE (([CodStato] = @Original_CodStato) AN" + + "D ((@IsNull_DescStato = 1 AND [DescStato] IS NULL) OR ([DescStato] = @Original_D" + + "escStato)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + 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_DescStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescStato", 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].[AnagStatiProdotto] ([CodStato], [DescStato]) VALUES (@CodStato" + + ", @DescStato);\r\nSELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStat" + + "o = @CodStato)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + 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("@DescStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescStato", 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].[AnagStatiProdotto] SET [CodStato] = @CodStato, [DescStato] = @DescStato WHERE (([CodStato] = @Original_CodStato) AND ((@IsNull_DescStato = 1 AND [DescStato] IS NULL) OR ([DescStato] = @Original_DescStato))); +SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + 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("@DescStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescStato", global::System.Data.DataRowVersion.Current, false, 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_DescStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescStato", 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 CodStato, DescStato FROM dbo.AnagStatiProdotto"; + 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.AnagStatiProdottoDataTable 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.AnagStatiProdottoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.AnagStatiProdottoDataTable dataTable = new DS_Applicazione.AnagStatiProdottoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione.AnagStatiProdottoDataTable 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, "AnagStatiProdotto"); + } + + [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_CodStato, string Original_DescStato) { + if ((Original_CodStato == null)) { + throw new global::System.ArgumentNullException("Original_CodStato"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodStato)); + } + if ((Original_DescStato == 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_DescStato)); + } + 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 CodStato, string DescStato) { + if ((CodStato == null)) { + throw new global::System.ArgumentNullException("CodStato"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodStato)); + } + if ((DescStato == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescStato)); + } + 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 CodStato, string DescStato, string Original_CodStato, string Original_DescStato) { + if ((CodStato == null)) { + throw new global::System.ArgumentNullException("CodStato"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodStato)); + } + if ((DescStato == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescStato)); + } + if ((Original_CodStato == null)) { + throw new global::System.ArgumentNullException("Original_CodStato"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodStato)); + } + if ((Original_DescStato == 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_DescStato)); + } + 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 DescStato, string Original_CodStato, string Original_DescStato) { + return this.Update(Original_CodStato, DescStato, Original_CodStato, Original_DescStato); } } @@ -8268,6 +9779,10 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat private TabStatoOdpUdcTableAdapter _tabStatoOdpUdcTableAdapter; + private AnagTipoDichiarazTableAdapter _anagTipoDichiarazTableAdapter; + + private AnagStatiProdottoTableAdapter _anagStatiProdottoTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -8399,6 +9914,32 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat } } + [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 AnagTipoDichiarazTableAdapter AnagTipoDichiarazTableAdapter { + get { + return this._anagTipoDichiarazTableAdapter; + } + set { + this._anagTipoDichiarazTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" + + "", "System.Drawing.Design.UITypeEditor")] + public AnagStatiProdottoTableAdapter AnagStatiProdottoTableAdapter { + get { + return this._anagStatiProdottoTableAdapter; + } + set { + this._anagStatiProdottoTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool BackupDataSetBeforeUpdate { get { @@ -8452,6 +9993,14 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat && (this._tabStatoOdpUdcTableAdapter.Connection != null))) { return this._tabStatoOdpUdcTableAdapter.Connection; } + if (((this._anagTipoDichiarazTableAdapter != null) + && (this._anagTipoDichiarazTableAdapter.Connection != null))) { + return this._anagTipoDichiarazTableAdapter.Connection; + } + if (((this._anagStatiProdottoTableAdapter != null) + && (this._anagStatiProdottoTableAdapter.Connection != null))) { + return this._anagStatiProdottoTableAdapter.Connection; + } return null; } set { @@ -8491,6 +10040,12 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat if ((this._tabStatoOdpUdcTableAdapter != null)) { count = (count + 1); } + if ((this._anagTipoDichiarazTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagStatiProdottoTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -8528,12 +10083,21 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat allChangedRows.AddRange(updatedRows); } } - if ((this._anagStatiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagStati.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._anagStatiTableAdapter.Update(updatedRows)); + result = (result + this._anagTipoDichiarazTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -8546,12 +10110,21 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat allChangedRows.AddRange(updatedRows); } } - if ((this._anagArticoliTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._anagStatiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._anagArticoliTableAdapter.Update(updatedRows)); + result = (result + this._anagStatiTableAdapter.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); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagStatiProdottoTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -8615,11 +10188,19 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat allAddedRows.AddRange(addedRows); } } - if ((this._anagStatiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagStati.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._anagStatiTableAdapter.Update(addedRows)); + result = (result + this._anagTipoDichiarazTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -8631,11 +10212,19 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat allAddedRows.AddRange(addedRows); } } - if ((this._anagArticoliTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._anagStatiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._anagArticoliTableAdapter.Update(addedRows)); + result = (result + this._anagStatiTableAdapter.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) + && (0 < addedRows.Length))) { + result = (result + this._anagStatiProdottoTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -8696,11 +10285,19 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat allChangedRows.AddRange(deletedRows); } } - if ((this._anagArticoliTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._anagStatiProdottoTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagArticoliTableAdapter.Update(deletedRows)); + result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagStatiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagStatiTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -8712,11 +10309,19 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat allChangedRows.AddRange(deletedRows); } } - if ((this._anagStatiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagStati.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagStatiTableAdapter.Update(deletedRows)); + result = (result + this._anagArticoliTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagTipoDichiarazTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoDichiaraz.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagTipoDichiarazTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -8826,6 +10431,16 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._anagTipoDichiarazTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagTipoDichiarazTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagStatiProdottoTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagStatiProdottoTableAdapter.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" + @@ -8939,6 +10554,24 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat adaptersWithAcceptChangesDuringUpdate.Add(this._tabStatoOdpUdcTableAdapter.Adapter); } } + if ((this._anagTipoDichiarazTableAdapter != null)) { + revertConnections.Add(this._anagTipoDichiarazTableAdapter, this._anagTipoDichiarazTableAdapter.Connection); + this._anagTipoDichiarazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagTipoDichiarazTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagTipoDichiarazTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagTipoDichiarazTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagTipoDichiarazTableAdapter.Adapter); + } + } + if ((this._anagStatiProdottoTableAdapter != null)) { + revertConnections.Add(this._anagStatiProdottoTableAdapter, this._anagStatiProdottoTableAdapter.Connection); + this._anagStatiProdottoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagStatiProdottoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagStatiProdottoTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagStatiProdottoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiProdottoTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -9033,6 +10666,14 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat this._tabStatoOdpUdcTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabStatoOdpUdcTableAdapter])); this._tabStatoOdpUdcTableAdapter.Transaction = null; } + if ((this._anagTipoDichiarazTableAdapter != null)) { + this._anagTipoDichiarazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTipoDichiarazTableAdapter])); + this._anagTipoDichiarazTableAdapter.Transaction = null; + } + if ((this._anagStatiProdottoTableAdapter != null)) { + this._anagStatiProdottoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiProdottoTableAdapter])); + this._anagStatiProdottoTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd index 16dc386e..7a20ff7a 100644 --- a/GMW/GMW_data/DS_Applicazione.xsd +++ b/GMW/GMW_data/DS_Applicazione.xsd @@ -558,7 +558,7 @@ SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato) - DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate))) + DELETE FROM [dbo].[TabStatoOdpUdc] WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz))) @@ -575,13 +575,15 @@ SELECT IdxStato, DescrStato FROM AnagStati WHERE (IdxStato = @IdxStato) + + - INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate); -SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC) + INSERT INTO [dbo].[TabStatoOdpUdc] ([CodCompany], [ODP], [UDC], [Tara], [IdxStato], [Qta], [CodImballo], [CreateDate], [ModDate], [CodTipoDichiaraz]) VALUES (@CodCompany, @ODP, @UDC, @Tara, @IdxStato, @Qta, @CodImballo, @CreateDate, @ModDate, @CodTipoDichiaraz); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, CodTipoDichiaraz FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC) @@ -592,19 +594,21 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + - - SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM dbo.TabStatoOdpUdc + + SELECT * +FROM dbo.TabStatoOdpUdc - UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate))); -SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC) + UPDATE [dbo].[TabStatoOdpUdc] SET [CodCompany] = @CodCompany, [ODP] = @ODP, [UDC] = @UDC, [Tara] = @Tara, [IdxStato] = @IdxStato, [Qta] = @Qta, [CodImballo] = @CodImballo, [CreateDate] = @CreateDate, [ModDate] = @ModDate, [CodTipoDichiaraz] = @CodTipoDichiaraz WHERE (([CodCompany] = @Original_CodCompany) AND ([ODP] = @Original_ODP) AND ([UDC] = @Original_UDC) AND ((@IsNull_Tara = 1 AND [Tara] IS NULL) OR ([Tara] = @Original_Tara)) AND ((@IsNull_IdxStato = 1 AND [IdxStato] IS NULL) OR ([IdxStato] = @Original_IdxStato)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_CodImballo = 1 AND [CodImballo] IS NULL) OR ([CodImballo] = @Original_CodImballo)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_ModDate = 1 AND [ModDate] IS NULL) OR ([ModDate] = @Original_ModDate)) AND ((@IsNull_CodTipoDichiaraz = 1 AND [CodTipoDichiaraz] IS NULL) OR ([CodTipoDichiaraz] = @Original_CodTipoDichiaraz))); +SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDate, CodTipoDichiaraz FROM TabStatoOdpUdc WHERE (CodCompany = @CodCompany) AND (ODP = @ODP) AND (UDC = @UDC) @@ -615,6 +619,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + @@ -630,6 +635,8 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + + @@ -645,6 +652,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + @@ -670,6 +678,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + @@ -690,6 +699,106 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + + + + + + DELETE FROM [dbo].[AnagTipoDichiaraz] WHERE (([CodTipoDichiaraz] = @Original_CodTipoDichiaraz) AND ((@IsNull_DescrTipoDichiaraz = 1 AND [DescrTipoDichiaraz] IS NULL) OR ([DescrTipoDichiaraz] = @Original_DescrTipoDichiaraz))) + + + + + + + + + + INSERT INTO [dbo].[AnagTipoDichiaraz] ([CodTipoDichiaraz], [DescrTipoDichiaraz]) VALUES (@CodTipoDichiaraz, @DescrTipoDichiaraz); +SELECT CodTipoDichiaraz, DescrTipoDichiaraz FROM AnagTipoDichiaraz WHERE (CodTipoDichiaraz = @CodTipoDichiaraz) + + + + + + + + + SELECT CodTipoDichiaraz, DescrTipoDichiaraz FROM dbo.AnagTipoDichiaraz + + + + + + UPDATE [dbo].[AnagTipoDichiaraz] SET [CodTipoDichiaraz] = @CodTipoDichiaraz, [DescrTipoDichiaraz] = @DescrTipoDichiaraz WHERE (([CodTipoDichiaraz] = @Original_CodTipoDichiaraz) AND ((@IsNull_DescrTipoDichiaraz = 1 AND [DescrTipoDichiaraz] IS NULL) OR ([DescrTipoDichiaraz] = @Original_DescrTipoDichiaraz))); +SELECT CodTipoDichiaraz, DescrTipoDichiaraz FROM AnagTipoDichiaraz WHERE (CodTipoDichiaraz = @CodTipoDichiaraz) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagStatiProdotto] WHERE (([CodStato] = @Original_CodStato) AND ((@IsNull_DescStato = 1 AND [DescStato] IS NULL) OR ([DescStato] = @Original_DescStato))) + + + + + + + + + + INSERT INTO [dbo].[AnagStatiProdotto] ([CodStato], [DescStato]) VALUES (@CodStato, @DescStato); +SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato) + + + + + + + + + SELECT CodStato, DescStato FROM dbo.AnagStatiProdotto + + + + + + UPDATE [dbo].[AnagStatiProdotto] SET [CodStato] = @CodStato, [DescStato] = @DescStato WHERE (([CodStato] = @Original_CodStato) AND ((@IsNull_DescStato = 1 AND [DescStato] IS NULL) OR ([DescStato] = @Original_DescStato))); +SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato) + + + + + + + + + + + + + + + + + @@ -701,43 +810,43 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat - + - + - - + + - + - + - + @@ -750,95 +859,14 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -862,68 +890,149 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat - + - + - + - + - + + + + + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + - + + + + + + + + - - + + + + + + + + + - - + + @@ -936,39 +1045,86 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat - + - + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - @@ -1016,6 +1172,14 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + + + + + + + + @@ -1027,6 +1191,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CreateDate, ModDat + \ No newline at end of file diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss index 931db709..cf31c1f1 100644 --- a/GMW/GMW_data/DS_Applicazione.xss +++ b/GMW/GMW_data/DS_Applicazione.xss @@ -6,18 +6,20 @@ --> - - - - - - - - - + + + + + + + + + + + - + 377 @@ -29,7 +31,7 @@ - + 830 @@ -41,7 +43,7 @@ - + 963 @@ -53,7 +55,7 @@ - + 821 @@ -65,7 +67,7 @@ - + 1078 @@ -77,7 +79,7 @@ - + 591 @@ -89,7 +91,7 @@ - + 346 @@ -101,7 +103,7 @@ - + 823 @@ -113,5 +115,17 @@ + + + + 1018 + 755 + + + 734 + 755 + + + \ No newline at end of file diff --git a/GMW/GMW_data/DataProxy.cs b/GMW/GMW_data/DataProxy.cs index bd23cb04..58fb0eb4 100644 --- a/GMW/GMW_data/DataProxy.cs +++ b/GMW/GMW_data/DataProxy.cs @@ -18,6 +18,8 @@ namespace GMW_data public DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter taAnagBil; public DS_ApplicazioneTableAdapters.Impianti2ArticoliTableAdapter taImp2Art; public DS_ApplicazioneTableAdapters.TabStatoOdpUdcTableAdapter taStatoOdpUdc; + public DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter taTipoDich; + public DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter taStatiProd; /// /// init dei table adapters @@ -27,8 +29,10 @@ namespace GMW_data taAnagArt = new GMW_data.DS_ApplicazioneTableAdapters.AnagArticoliTableAdapter(); taAnagImp = new GMW_data.DS_ApplicazioneTableAdapters.AnagImpiantiTableAdapter(); taAnagBil = new GMW_data.DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter(); + taTipoDich = new GMW_data.DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter(); taImp2Art = new GMW_data.DS_ApplicazioneTableAdapters.Impianti2ArticoliTableAdapter(); taStatoOdpUdc = new GMW_data.DS_ApplicazioneTableAdapters.TabStatoOdpUdcTableAdapter(); + taStatiProd = new GMW_data.DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter(); } /// /// effettua setup dei connection strings da web.config delal singola applicazione @@ -41,6 +45,8 @@ namespace GMW_data taAnagBil.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); taImp2Art.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); taStatoOdpUdc.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); + taTipoDich.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); + taStatiProd.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString"); } #endregion diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index 51c6cdc1..db59936b 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.xml b/GMW/GMW_data/bin/Debug/SteamWare.xml index bb36e2b5..6809ec2a 100644 --- a/GMW/GMW_data/bin/Debug/SteamWare.xml +++ b/GMW/GMW_data/bin/Debug/SteamWare.xml @@ -4,3101 +4,5 @@ SteamWare - - - 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 - - - - - 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 - - - - - 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 - - - - - - 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) - - - - - 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... - - - - - 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... - - - - - 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 - - - - 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 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. - - - - - 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 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 - - - - - 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 - - - - - 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 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 - - - - - 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 - - - - - 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. - - - - - 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 - - - - - - - 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... - - - - - 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 - - - - - - - - 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 - - - - - diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll index e8aff844..676c2f3e 100644 Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index 51c6cdc1..db59936b 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/Refactor/GMW_data.dll b/GMW/GMW_data/obj/Debug/Refactor/GMW_data.dll new file mode 100644 index 00000000..2abf3b6e Binary files /dev/null and b/GMW/GMW_data/obj/Debug/Refactor/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache index 67aec45e..9cf799ba 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 976b1cb2..43f067a6 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll index e8aff844..676c2f3e 100644 Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache index fdf34e0d..83ac7b83 100644 Binary files a/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_data/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Release/bin/GMW.dll b/GMW/GMW_deploy/Release/bin/GMW.dll index 59398f78..0d0f91ae 100644 Binary files a/GMW/GMW_deploy/Release/bin/GMW.dll and b/GMW/GMW_deploy/Release/bin/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/bin/GMW_data.dll b/GMW/GMW_deploy/Release/bin/GMW_data.dll index e8aff844..676c2f3e 100644 Binary files a/GMW/GMW_deploy/Release/bin/GMW_data.dll and b/GMW/GMW_deploy/Release/bin/GMW_data.dll differ diff --git a/GMW/GMW_deploy/Release/mazzAppSettings.config b/GMW/GMW_deploy/Release/mazzAppSettings.config index 85d9da69..62cc312a 100644 --- a/GMW/GMW_deploy/Release/mazzAppSettings.config +++ b/GMW/GMW_deploy/Release/mazzAppSettings.config @@ -1,7 +1,7 @@  - - + + \ No newline at end of file diff --git a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll index 029549aa..bee3afbc 100644 Binary files a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache index 8b5e064a..7f336237 100644 Binary files a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Release/obj/Release/GMW.dll b/GMW/GMW_deploy/Release/obj/Release/GMW.dll index 59398f78..0d0f91ae 100644 Binary files a/GMW/GMW_deploy/Release/obj/Release/GMW.dll and b/GMW/GMW_deploy/Release/obj/Release/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache index d166e1a1..6ecbdec7 100644 Binary files a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Release/web.config b/GMW/GMW_deploy/Release/web.config index 9f881b96..a9358989 100644 --- a/GMW/GMW_deploy/Release/web.config +++ b/GMW/GMW_deploy/Release/web.config @@ -49,8 +49,8 @@ - - + + diff --git a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs index afcce629..d0243663 100644 --- a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs +++ b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs @@ -12,7 +12,7 @@ namespace GMW.WS /// /// Summary description for bilance /// - [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.1.0.14")] + [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.1.0.15")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class bilance : System.Web.Services.WebService @@ -26,10 +26,11 @@ namespace GMW.WS public bilance() { gestEl = new GMW.Type.elenchi(); + logLevel = memLayer.ML.confReadInt("_logLevel"); } protected GMW.Type.elenchi gestEl; - + protected int logLevel = 0; #endregion #region area anagrafiche @@ -64,7 +65,7 @@ namespace GMW.WS gestEl.caricaImpianti(DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito)); return gestEl.elencoImpianti; } - + /// /// fornisce l'anagrafica bilance /// @@ -217,16 +218,17 @@ namespace GMW.WS public bool UdcPrintLabel(string place, tipoCartellino cartellino, string UDC) { bool answ = false; + string printerName = memLayer.ML.confReadString("printerCartTara"); try { - - reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, memLayer.ML.confReadString("printerCartTara"), UDC); - //reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, "PDFCreator", UDC); + if (logLevel > 5) logger.lg.scriviLog(String.Format("Sto per inviare un report alla stampante {0}", printerName), tipoLog.INFO); + reportPrinter.obj.printReport(reportRichiesto.CartellinoTara, printerName, UDC); + if (logLevel > 5) logger.lg.scriviLog(String.Format("inviato comando print alla stampante {0}", printerName), tipoLog.INFO); answ = true; } catch (Exception e) { - logger.lg.scriviLog(e.ToString(), tipoLog.EXCEPTION); + logger.lg.scriviLog(String.Format("Errore in fase di creazione e stampa report: stampante {0}, errore riscontrato {1}", printerName, e), tipoLog.EXCEPTION); } return answ; } diff --git a/GMW/GMW_deploy/Source/Web.config b/GMW/GMW_deploy/Source/Web.config index b2cc97c4..427cbebf 100644 --- a/GMW/GMW_deploy/Source/Web.config +++ b/GMW/GMW_deploy/Source/Web.config @@ -78,8 +78,8 @@ - - + + diff --git a/GMW/GMW_deploy/Source/bin/GMW.dll b/GMW/GMW_deploy/Source/bin/GMW.dll index 59398f78..0d0f91ae 100644 Binary files a/GMW/GMW_deploy/Source/bin/GMW.dll and b/GMW/GMW_deploy/Source/bin/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/bin/GMW_data.dll b/GMW/GMW_deploy/Source/bin/GMW_data.dll index e8aff844..676c2f3e 100644 Binary files a/GMW/GMW_deploy/Source/bin/GMW_data.dll and b/GMW/GMW_deploy/Source/bin/GMW_data.dll differ diff --git a/GMW/GMW_deploy/Source/mazzAppSettings.config b/GMW/GMW_deploy/Source/mazzAppSettings.config index 85d9da69..62cc312a 100644 --- a/GMW/GMW_deploy/Source/mazzAppSettings.config +++ b/GMW/GMW_deploy/Source/mazzAppSettings.config @@ -1,7 +1,7 @@  - - + + \ No newline at end of file diff --git a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll index 029549aa..bee3afbc 100644 Binary files a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache index 8b5e064a..7f336237 100644 Binary files a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Source/obj/Release/GMW.dll b/GMW/GMW_deploy/Source/obj/Release/GMW.dll index 59398f78..0d0f91ae 100644 Binary files a/GMW/GMW_deploy/Source/obj/Release/GMW.dll and b/GMW/GMW_deploy/Source/obj/Release/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache index d166e1a1..6ecbdec7 100644 Binary files a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_installer/GMW_installer.vdproj b/GMW/GMW_installer/GMW_installer.vdproj index 1f3fab61..15b8c439 100644 --- a/GMW/GMW_installer/GMW_installer.vdproj +++ b/GMW/GMW_installer/GMW_installer.vdproj @@ -349,14 +349,14 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:GMW" - "ProductCode" = "8:{911BD0AB-494A-4D74-8E34-D68B6D7EAD1C}" - "PackageCode" = "8:{66F10CFD-0859-43DE-8FB8-A8CE37AC80C3}" + "ProductCode" = "8:{ACF28274-A9DA-4570-8041-73C008174AD5}" + "PackageCode" = "8:{3CF58AFF-D485-4AE0-BF57-B02D61BA4626}" "UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}" "RestartWWWService" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.14" + "ProductVersion" = "8:1.0.15" "Manufacturer" = "8:SteamWare s.r.l." "ARPHELPTELEPHONE" = "8:+39-035460560" "ARPHELPLINK" = "8:http://www.steamware.net" diff --git a/GMW/GMW_installer/Release/GMW_installer.msi b/GMW/GMW_installer/Release/GMW_installer.msi index d7bbce29..ba59db3c 100644 Binary files a/GMW/GMW_installer/Release/GMW_installer.msi and b/GMW/GMW_installer/Release/GMW_installer.msi differ