diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj
index dcac2a05..50955b3a 100644
--- a/GMW/GMW/GMW.csproj
+++ b/GMW/GMW/GMW.csproj
@@ -71,20 +71,6 @@
-
- anagBlocchi.aspx
- ASPXCodeBehind
-
-
- anagBlocchi.aspx
-
-
- anagCelle.aspx
- ASPXCodeBehind
-
-
- anagCelle.aspx
-
anagMagazzini.aspx
ASPXCodeBehind
@@ -92,13 +78,6 @@
anagMagazzini.aspx
-
- anagMappe.aspx
- ASPXCodeBehind
-
-
- anagMappe.aspx
-
Default.aspx
ASPXCodeBehind
@@ -217,13 +196,6 @@
mod_anagMagazzini.ascx
-
- mod_anagMappe.ascx
- ASPXCodeBehind
-
-
- mod_anagMappe.ascx
-
mod_chLang.ascx
ASPXCodeBehind
@@ -231,6 +203,13 @@
mod_chLang.ascx
+
+ mod_confMag.ascx
+ ASPXCodeBehind
+
+
+ mod_confMag.ascx
+
mod_filtro.ascx
ASPXCodeBehind
@@ -308,6 +287,13 @@
mod_selettore_ajax.ascx
+
+ mod_tipoCella.ascx
+ ASPXCodeBehind
+
+
+ mod_tipoCella.ascx
+
mod_vocabolario.ascx
ASPXCodeBehind
@@ -346,10 +332,7 @@
-
-
-
@@ -478,8 +461,8 @@
-
+
@@ -491,6 +474,7 @@
+
diff --git a/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx b/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx
index 8e3067bb..3aa1ea4d 100644
--- a/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx
+++ b/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx
@@ -1 +1,2 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagBlocchi.ascx.cs" Inherits="GMW.WebUserControls.mod_anagBlocchi" %>
+gestione blocchi
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx.designer.cs
index a7b21c3d..10c33aa5 100644
--- a/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx.designer.cs
+++ b/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx.designer.cs
@@ -1,18 +1,16 @@
//------------------------------------------------------------------------------
//
// 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.WebUserControls
-{
-
-
- public partial class mod_anagBlocchi
- {
+namespace GMW.WebUserControls {
+
+
+ public partial class mod_anagBlocchi {
}
}
diff --git a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx
index d684c99c..f339a25e 100644
--- a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx
+++ b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx
@@ -19,7 +19,7 @@
+ Visible="true" />
0)
{
answ = false;
- }
+ }
+#endif
}
return answ;
}
diff --git a/GMW/GMW/WebUserControls/mod_confMag.ascx b/GMW/GMW/WebUserControls/mod_confMag.ascx
new file mode 100644
index 00000000..bbe66a41
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_confMag.ascx
@@ -0,0 +1,2 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_confMag.ascx.cs" Inherits="GMW.WebUserControls.mod_confMag" %>
+statistiche magazzino
\ No newline at end of file
diff --git a/GMW/GMW/anagCelle.aspx.cs b/GMW/GMW/WebUserControls/mod_confMag.ascx.cs
similarity index 68%
rename from GMW/GMW/anagCelle.aspx.cs
rename to GMW/GMW/WebUserControls/mod_confMag.ascx.cs
index cc615a2e..b86b675c 100644
--- a/GMW/GMW/anagCelle.aspx.cs
+++ b/GMW/GMW/WebUserControls/mod_confMag.ascx.cs
@@ -5,13 +5,13 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
-namespace GMW
+namespace GMW.WebUserControls
{
- public partial class anagCelle : System.Web.UI.Page
+ public partial class mod_confMag : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
-}
+}
\ No newline at end of file
diff --git a/GMW/GMW/anagCelle.aspx.designer.cs b/GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs
similarity index 50%
rename from GMW/GMW/anagCelle.aspx.designer.cs
rename to GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs
index 2a8617d0..dd3d0895 100644
--- a/GMW/GMW/anagCelle.aspx.designer.cs
+++ b/GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs
@@ -8,18 +8,9 @@
//
//------------------------------------------------------------------------------
-namespace GMW {
+namespace GMW.WebUserControls {
- public partial class anagCelle {
-
- ///
- /// mod_anagCelle1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::GMW.WebUserControls.mod_anagCelle mod_anagCelle1;
+ public partial class mod_confMag {
}
}
diff --git a/GMW/GMW/WebUserControls/mod_tipoCella.ascx b/GMW/GMW/WebUserControls/mod_tipoCella.ascx
new file mode 100644
index 00000000..d4566b0e
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_tipoCella.ascx
@@ -0,0 +1,2 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_tipoCella.ascx.cs" Inherits="GMW.WebUserControls.mod_tipoCella" %>
+setup tipo celle mag
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_tipoCella.ascx.cs b/GMW/GMW/WebUserControls/mod_tipoCella.ascx.cs
new file mode 100644
index 00000000..e25271fb
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_tipoCella.ascx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace GMW.WebUserControls
+{
+ public partial class mod_tipoCella : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_tipoCella.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_tipoCella.ascx.designer.cs
new file mode 100644
index 00000000..26cee801
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_tipoCella.ascx.designer.cs
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.4927
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GMW.WebUserControls {
+
+
+ public partial class mod_tipoCella {
+ }
+}
diff --git a/GMW/GMW/anagCelle.aspx b/GMW/GMW/anagCelle.aspx
deleted file mode 100644
index aa6af2d2..00000000
--- a/GMW/GMW/anagCelle.aspx
+++ /dev/null
@@ -1,5 +0,0 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="anagCelle.aspx.cs" Inherits="GMW.anagCelle" %>
-<%@ Register src="WebUserControls/mod_anagCelle.ascx" tagname="mod_anagCelle" tagprefix="uc1" %>
-
-
-
diff --git a/GMW/GMW/anagMagazzini.aspx b/GMW/GMW/anagMagazzini.aspx
index cd4f265c..a6277c67 100644
--- a/GMW/GMW/anagMagazzini.aspx
+++ b/GMW/GMW/anagMagazzini.aspx
@@ -3,6 +3,27 @@
<%@ Register Src="WebUserControls/mod_anagMagazzini.ascx" TagName="mod_anagMagazzini"
TagPrefix="uc1" %>
+<%@ Register Src="WebUserControls/mod_confMag.ascx" TagName="mod_confMag" TagPrefix="uc2" %>
+<%@ Register Src="WebUserControls/mod_tipoCella.ascx" TagName="mod_tipoCella" TagPrefix="uc3" %>
+<%@ Register Src="WebUserControls/mod_anagBlocchi.ascx" TagName="mod_anagBlocchi"
+ TagPrefix="uc4" %>
-
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
diff --git a/GMW/GMW/anagMagazzini.aspx.cs b/GMW/GMW/anagMagazzini.aspx.cs
index 2b2615ab..6e5a7733 100644
--- a/GMW/GMW/anagMagazzini.aspx.cs
+++ b/GMW/GMW/anagMagazzini.aspx.cs
@@ -12,11 +12,21 @@ namespace GMW
protected void Page_Load(object sender, EventArgs e)
{
mod_anagMagazzini1.eh_selValore += new EventHandler(mod_anagMagazzini1_eh_selValore);
+ mod_anagMagazzini1.eh_resetSelezione += new EventHandler(mod_anagMagazzini1_eh_resetSelezione);
+ }
+
+ void mod_anagMagazzini1_eh_resetSelezione(object sender, EventArgs e)
+ {
+ // nascondo i 3 moduli aggiuntivi!
+ pnlMagStat.Visible = false;
+ pnlMagConf.Visible = false;
}
void mod_anagMagazzini1_eh_selValore(object sender, EventArgs e)
{
- Response.Redirect("anagMappe.aspx");
+ // mostro i 3 moduli aggiuntivi!
+ pnlMagStat.Visible = true;
+ pnlMagConf.Visible = true;
}
}
}
diff --git a/GMW/GMW/anagMagazzini.aspx.designer.cs b/GMW/GMW/anagMagazzini.aspx.designer.cs
index 8197decd..4449fba2 100644
--- a/GMW/GMW/anagMagazzini.aspx.designer.cs
+++ b/GMW/GMW/anagMagazzini.aspx.designer.cs
@@ -21,5 +21,50 @@ namespace GMW {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::GMW.WebUserControls.mod_anagMagazzini mod_anagMagazzini1;
+
+ ///
+ /// pnlMagStat control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel pnlMagStat;
+
+ ///
+ /// mod_confMag1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GMW.WebUserControls.mod_confMag mod_confMag1;
+
+ ///
+ /// pnlMagConf control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel pnlMagConf;
+
+ ///
+ /// mod_tipoCella1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GMW.WebUserControls.mod_tipoCella mod_tipoCella1;
+
+ ///
+ /// mod_anagBlocchi1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GMW.WebUserControls.mod_anagBlocchi mod_anagBlocchi1;
}
}
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 669a2d80..2abf2ae6 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 7d817364..14e01869 100644
Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ
diff --git a/GMW/GMW/bin/SteamWare.XML b/GMW/GMW/bin/SteamWare.XML
index 6809ec2a..b329ff6c 100644
--- a/GMW/GMW/bin/SteamWare.XML
+++ b/GMW/GMW/bin/SteamWare.XML
@@ -4,5 +4,3153 @@
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 gestione parametri deviceper stampa
+
+
+
+
+ creazione oggetto parametri per stampa
+
+
+
+
+
+
+
+
+
+
+
+ formato output
+
+
+
+
+ altezza
+
+
+
+
+ larghezza
+
+
+
+
+ margine Sx
+
+
+
+
+ margine Dx
+
+
+
+
+ margine Top
+
+
+
+
+ margine Bottom
+
+
+
+
+ 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 313b0c0d..2843a925 100644
Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index 669a2d80..2abf2ae6 100644
Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ
diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache
index dc9f5281..36158138 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_data/DS_Utility.xsd b/GMW/GMW_data/DS_Utility.xsd
index cf5c8559..437c1246 100644
--- a/GMW/GMW_data/DS_Utility.xsd
+++ b/GMW/GMW_data/DS_Utility.xsd
@@ -4,7 +4,7 @@
-
+
@@ -50,21 +50,21 @@ ORDER BY label
-
+
-
+
-
+
diff --git a/GMW/GMW_data/DS_Utility.xss b/GMW/GMW_data/DS_Utility.xss
index 4edb1104..aa5d9230 100644
--- a/GMW/GMW_data/DS_Utility.xss
+++ b/GMW/GMW_data/DS_Utility.xss
@@ -6,7 +6,8 @@
-->
-
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs
index d7cbdc40..a3ec81e1 100644
--- a/GMW/GMW_data/DS_magazzino.Designer.cs
+++ b/GMW/GMW_data/DS_magazzino.Designer.cs
@@ -37,23 +37,19 @@ namespace GMW_data {
private CelleDataTable tableCelle;
- private Celle2BlocchiDataTable tableCelle2Blocchi;
-
- private MappeDataTable tableMappe;
+ private TipoCellaDataTable tableTipoCella;
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini;
private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini;
+ private global::System.Data.DataRelation relationFK_Blocchi_AnagMag;
+
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_Celle;
- private global::System.Data.DataRelation relationFK_Celle2Blocchi_Blocchi;
+ private global::System.Data.DataRelation relationFK_Celle_Blocchi1;
- private global::System.Data.DataRelation relationFK_Celle2Blocchi_Celle;
-
- private global::System.Data.DataRelation relationFK_Blocchi_Mappe;
-
- private global::System.Data.DataRelation relationFK_Mappe_AnagMag;
+ private global::System.Data.DataRelation relationFK_TipoCella_AnagMag;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
@@ -99,11 +95,8 @@ namespace GMW_data {
if ((ds.Tables["Celle"] != null)) {
base.Tables.Add(new CelleDataTable(ds.Tables["Celle"]));
}
- if ((ds.Tables["Celle2Blocchi"] != null)) {
- base.Tables.Add(new Celle2BlocchiDataTable(ds.Tables["Celle2Blocchi"]));
- }
- if ((ds.Tables["Mappe"] != null)) {
- base.Tables.Add(new MappeDataTable(ds.Tables["Mappe"]));
+ if ((ds.Tables["TipoCella"] != null)) {
+ base.Tables.Add(new TipoCellaDataTable(ds.Tables["TipoCella"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
@@ -180,18 +173,9 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public Celle2BlocchiDataTable Celle2Blocchi {
+ public TipoCellaDataTable TipoCella {
get {
- return this.tableCelle2Blocchi;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public MappeDataTable Mappe {
- get {
- return this.tableMappe;
+ return this.tableTipoCella;
}
}
@@ -272,11 +256,8 @@ namespace GMW_data {
if ((ds.Tables["Celle"] != null)) {
base.Tables.Add(new CelleDataTable(ds.Tables["Celle"]));
}
- if ((ds.Tables["Celle2Blocchi"] != null)) {
- base.Tables.Add(new Celle2BlocchiDataTable(ds.Tables["Celle2Blocchi"]));
- }
- if ((ds.Tables["Mappe"] != null)) {
- base.Tables.Add(new MappeDataTable(ds.Tables["Mappe"]));
+ if ((ds.Tables["TipoCella"] != null)) {
+ base.Tables.Add(new TipoCellaDataTable(ds.Tables["TipoCella"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
@@ -344,25 +325,18 @@ namespace GMW_data {
this.tableCelle.InitVars();
}
}
- this.tableCelle2Blocchi = ((Celle2BlocchiDataTable)(base.Tables["Celle2Blocchi"]));
+ this.tableTipoCella = ((TipoCellaDataTable)(base.Tables["TipoCella"]));
if ((initTable == true)) {
- if ((this.tableCelle2Blocchi != null)) {
- this.tableCelle2Blocchi.InitVars();
- }
- }
- this.tableMappe = ((MappeDataTable)(base.Tables["Mappe"]));
- if ((initTable == true)) {
- if ((this.tableMappe != null)) {
- this.tableMappe.InitVars();
+ if ((this.tableTipoCella != null)) {
+ this.tableTipoCella.InitVars();
}
}
this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"];
this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"];
+ this.relationFK_Blocchi_AnagMag = this.Relations["FK_Blocchi_AnagMag"];
this.relationFK_PosizioneUdcCorrente_Celle = this.Relations["FK_PosizioneUdcCorrente_Celle"];
- this.relationFK_Celle2Blocchi_Blocchi = this.Relations["FK_Celle2Blocchi_Blocchi"];
- this.relationFK_Celle2Blocchi_Celle = this.Relations["FK_Celle2Blocchi_Celle"];
- this.relationFK_Blocchi_Mappe = this.Relations["FK_Blocchi_Mappe"];
- this.relationFK_Mappe_AnagMag = this.Relations["FK_Mappe_AnagMag"];
+ this.relationFK_Celle_Blocchi1 = this.Relations["FK_Celle_Blocchi1"];
+ this.relationFK_TipoCella_AnagMag = this.Relations["FK_TipoCella_AnagMag"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -384,10 +358,8 @@ namespace GMW_data {
base.Tables.Add(this.tableBlocchi);
this.tableCelle = new CelleDataTable();
base.Tables.Add(this.tableCelle);
- this.tableCelle2Blocchi = new Celle2BlocchiDataTable();
- base.Tables.Add(this.tableCelle2Blocchi);
- this.tableMappe = new MappeDataTable();
- base.Tables.Add(this.tableMappe);
+ this.tableTipoCella = new TipoCellaDataTable();
+ base.Tables.Add(this.tableTipoCella);
this.relationFK_PosizioneUdcCorrente_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_ElencoCartellini", new global::System.Data.DataColumn[] {
this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] {
this.tablePosizioneUdcCorrente.UDCColumn}, false);
@@ -396,28 +368,26 @@ namespace GMW_data {
this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] {
this.tablePosizioneUdcStorico.UDCColumn}, false);
this.Relations.Add(this.relationFK_PosizioneUdcStorico_ElencoCartellini);
+ this.relationFK_Blocchi_AnagMag = new global::System.Data.DataRelation("FK_Blocchi_AnagMag", new global::System.Data.DataColumn[] {
+ this.tableAnagMag.CodMagColumn,
+ this.tableAnagMag.CodCSColumn}, new global::System.Data.DataColumn[] {
+ this.tableBlocchi.CodMagColumn,
+ this.tableBlocchi.CodCSColumn}, false);
+ this.Relations.Add(this.relationFK_Blocchi_AnagMag);
this.relationFK_PosizioneUdcCorrente_Celle = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_Celle", new global::System.Data.DataColumn[] {
this.tableCelle.IdxCellaColumn}, new global::System.Data.DataColumn[] {
this.tablePosizioneUdcCorrente.IdxCellaColumn}, false);
this.Relations.Add(this.relationFK_PosizioneUdcCorrente_Celle);
- this.relationFK_Celle2Blocchi_Blocchi = new global::System.Data.DataRelation("FK_Celle2Blocchi_Blocchi", new global::System.Data.DataColumn[] {
+ this.relationFK_Celle_Blocchi1 = new global::System.Data.DataRelation("FK_Celle_Blocchi1", new global::System.Data.DataColumn[] {
this.tableBlocchi.IdxBloccoColumn}, new global::System.Data.DataColumn[] {
- this.tableCelle2Blocchi.IdxBloccoColumn}, false);
- this.Relations.Add(this.relationFK_Celle2Blocchi_Blocchi);
- this.relationFK_Celle2Blocchi_Celle = new global::System.Data.DataRelation("FK_Celle2Blocchi_Celle", new global::System.Data.DataColumn[] {
- this.tableCelle.IdxCellaColumn}, new global::System.Data.DataColumn[] {
- this.tableCelle2Blocchi.IdxCellaColumn}, false);
- this.Relations.Add(this.relationFK_Celle2Blocchi_Celle);
- this.relationFK_Blocchi_Mappe = new global::System.Data.DataRelation("FK_Blocchi_Mappe", new global::System.Data.DataColumn[] {
- this.tableMappe.IdxMappaColumn}, new global::System.Data.DataColumn[] {
- this.tableBlocchi.IdxMappaColumn}, false);
- this.Relations.Add(this.relationFK_Blocchi_Mappe);
- this.relationFK_Mappe_AnagMag = new global::System.Data.DataRelation("FK_Mappe_AnagMag", new global::System.Data.DataColumn[] {
+ this.tableCelle.IdxBloccoColumn}, false);
+ this.Relations.Add(this.relationFK_Celle_Blocchi1);
+ this.relationFK_TipoCella_AnagMag = new global::System.Data.DataRelation("FK_TipoCella_AnagMag", new global::System.Data.DataColumn[] {
this.tableAnagMag.CodMagColumn,
this.tableAnagMag.CodCSColumn}, new global::System.Data.DataColumn[] {
- this.tableMappe.CodMagColumn,
- this.tableMappe.CodCSColumn}, false);
- this.Relations.Add(this.relationFK_Mappe_AnagMag);
+ this.tableTipoCella.CodMagColumn,
+ this.tableTipoCella.CodCSColumn}, false);
+ this.Relations.Add(this.relationFK_TipoCella_AnagMag);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -451,12 +421,7 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeCelle2Blocchi() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeMappe() {
+ private bool ShouldSerializeTipoCella() {
return false;
}
@@ -525,9 +490,7 @@ namespace GMW_data {
public delegate void CelleRowChangeEventHandler(object sender, CelleRowChangeEvent e);
- public delegate void Celle2BlocchiRowChangeEventHandler(object sender, Celle2BlocchiRowChangeEvent e);
-
- public delegate void MappeRowChangeEventHandler(object sender, MappeRowChangeEvent e);
+ public delegate void TipoCellaRowChangeEventHandler(object sender, TipoCellaRowChangeEvent e);
///
///Represents the strongly named DataTable class.
@@ -1964,7 +1927,9 @@ namespace GMW_data {
private global::System.Data.DataColumn columnIdxBlocco;
- private global::System.Data.DataColumn columnIdxMappa;
+ private global::System.Data.DataColumn columnCodMag;
+
+ private global::System.Data.DataColumn columnCodCS;
private global::System.Data.DataColumn columnCodBlocco;
@@ -2014,9 +1979,16 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn IdxMappaColumn {
+ public global::System.Data.DataColumn CodMagColumn {
get {
- return this.columnIdxMappa;
+ return this.columnCodMag;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodCSColumn {
+ get {
+ return this.columnCodCS;
}
}
@@ -2084,19 +2056,17 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BlocchiRow AddBlocchiRow(int IdxBlocco, MappeRow parentMappeRowByFK_Blocchi_Mappe, string CodBlocco, string DescBlocco, int NumX, int NumY, int NumZ) {
+ public BlocchiRow AddBlocchiRow(string CodMag, string CodCS, string CodBlocco, string DescBlocco, int NumX, int NumY, int NumZ) {
BlocchiRow rowBlocchiRow = ((BlocchiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
- IdxBlocco,
null,
+ CodMag,
+ CodCS,
CodBlocco,
DescBlocco,
NumX,
NumY,
NumZ};
- if ((parentMappeRowByFK_Blocchi_Mappe != null)) {
- columnValuesArray[1] = parentMappeRowByFK_Blocchi_Mappe[0];
- }
rowBlocchiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowBlocchiRow);
return rowBlocchiRow;
@@ -2123,7 +2093,8 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnIdxBlocco = base.Columns["IdxBlocco"];
- this.columnIdxMappa = base.Columns["IdxMappa"];
+ this.columnCodMag = base.Columns["CodMag"];
+ this.columnCodCS = base.Columns["CodCS"];
this.columnCodBlocco = base.Columns["CodBlocco"];
this.columnDescBlocco = base.Columns["DescBlocco"];
this.columnNumX = base.Columns["NumX"];
@@ -2135,8 +2106,10 @@ namespace GMW_data {
private void InitClass() {
this.columnIdxBlocco = new global::System.Data.DataColumn("IdxBlocco", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxBlocco);
- this.columnIdxMappa = new global::System.Data.DataColumn("IdxMappa", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIdxMappa);
+ this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodMag);
+ this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCS);
this.columnCodBlocco = new global::System.Data.DataColumn("CodBlocco", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodBlocco);
this.columnDescBlocco = new global::System.Data.DataColumn("DescBlocco", typeof(string), null, global::System.Data.MappingType.Element);
@@ -2149,10 +2122,15 @@ namespace GMW_data {
base.Columns.Add(this.columnNumZ);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxBlocco}, true));
+ this.columnIdxBlocco.AutoIncrement = true;
+ this.columnIdxBlocco.AutoIncrementSeed = -1;
+ this.columnIdxBlocco.AutoIncrementStep = -1;
this.columnIdxBlocco.AllowDBNull = false;
+ this.columnIdxBlocco.ReadOnly = true;
this.columnIdxBlocco.Unique = true;
- this.columnIdxMappa.AllowDBNull = false;
- this.columnCodBlocco.MaxLength = 50;
+ this.columnCodMag.MaxLength = 50;
+ this.columnCodCS.MaxLength = 2;
+ this.columnCodBlocco.MaxLength = 3;
this.columnDescBlocco.MaxLength = 50;
}
@@ -2285,10 +2263,20 @@ namespace GMW_data {
private global::System.Data.DataColumn columnCodCella;
- private global::System.Data.DataColumn columnCapacita;
+ private global::System.Data.DataColumn columnIdxTipoCella;
private global::System.Data.DataColumn columnDescrizione;
+ private global::System.Data.DataColumn columnAttiva;
+
+ private global::System.Data.DataColumn columnIdxBlocco;
+
+ private global::System.Data.DataColumn columnX;
+
+ private global::System.Data.DataColumn columnY;
+
+ private global::System.Data.DataColumn columnZ;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CelleDataTable() {
this.TableName = "Celle";
@@ -2341,9 +2329,9 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CapacitaColumn {
+ public global::System.Data.DataColumn IdxTipoCellaColumn {
get {
- return this.columnCapacita;
+ return this.columnIdxTipoCella;
}
}
@@ -2354,6 +2342,41 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn AttivaColumn {
+ get {
+ return this.columnAttiva;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn IdxBloccoColumn {
+ get {
+ return this.columnIdxBlocco;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn XColumn {
+ get {
+ return this.columnX;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn YColumn {
+ get {
+ return this.columnY;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn ZColumn {
+ get {
+ return this.columnZ;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
@@ -2383,14 +2406,22 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CelleRow AddCelleRow(string CodCS, string CodCella, int Capacita, string Descrizione) {
+ public CelleRow AddCelleRow(string CodCS, string CodCella, int IdxTipoCella, string Descrizione, bool Attiva, BlocchiRow parentBlocchiRowByFK_Celle_Blocchi1, int X, int Y, int Z) {
CelleRow rowCelleRow = ((CelleRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
CodCS,
CodCella,
- Capacita,
- Descrizione};
+ IdxTipoCella,
+ Descrizione,
+ Attiva,
+ null,
+ X,
+ Y,
+ Z};
+ if ((parentBlocchiRowByFK_Celle_Blocchi1 != null)) {
+ columnValuesArray[6] = parentBlocchiRowByFK_Celle_Blocchi1[0];
+ }
rowCelleRow.ItemArray = columnValuesArray;
this.Rows.Add(rowCelleRow);
return rowCelleRow;
@@ -2419,8 +2450,13 @@ namespace GMW_data {
this.columnIdxCella = base.Columns["IdxCella"];
this.columnCodCS = base.Columns["CodCS"];
this.columnCodCella = base.Columns["CodCella"];
- this.columnCapacita = base.Columns["Capacita"];
+ this.columnIdxTipoCella = base.Columns["IdxTipoCella"];
this.columnDescrizione = base.Columns["Descrizione"];
+ this.columnAttiva = base.Columns["Attiva"];
+ this.columnIdxBlocco = base.Columns["IdxBlocco"];
+ this.columnX = base.Columns["X"];
+ this.columnY = base.Columns["Y"];
+ this.columnZ = base.Columns["Z"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2431,10 +2467,20 @@ namespace GMW_data {
base.Columns.Add(this.columnCodCS);
this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodCella);
- this.columnCapacita = new global::System.Data.DataColumn("Capacita", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCapacita);
+ this.columnIdxTipoCella = new global::System.Data.DataColumn("IdxTipoCella", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxTipoCella);
this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrizione);
+ this.columnAttiva = new global::System.Data.DataColumn("Attiva", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnAttiva);
+ this.columnIdxBlocco = new global::System.Data.DataColumn("IdxBlocco", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxBlocco);
+ this.columnX = new global::System.Data.DataColumn("X", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnX);
+ this.columnY = new global::System.Data.DataColumn("Y", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnY);
+ this.columnZ = new global::System.Data.DataColumn("Z", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnZ);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxCella}, true));
this.columnIdxCella.AutoIncrement = true;
@@ -2571,319 +2617,36 @@ namespace GMW_data {
[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 Celle2BlocchiDataTable : global::System.Data.TypedTableBase {
+ public partial class TipoCellaDataTable : global::System.Data.TypedTableBase {
- private global::System.Data.DataColumn columnIdxBlocco;
-
- private global::System.Data.DataColumn columnIdxCella;
-
- private global::System.Data.DataColumn columnX;
-
- private global::System.Data.DataColumn columnY;
-
- private global::System.Data.DataColumn columnZ;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiDataTable() {
- this.TableName = "Celle2Blocchi";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal Celle2BlocchiDataTable(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 Celle2BlocchiDataTable(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 IdxBloccoColumn {
- get {
- return this.columnIdxBlocco;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn IdxCellaColumn {
- get {
- return this.columnIdxCella;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn XColumn {
- get {
- return this.columnX;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn YColumn {
- get {
- return this.columnY;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ZColumn {
- get {
- return this.columnZ;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow this[int index] {
- get {
- return ((Celle2BlocchiRow)(this.Rows[index]));
- }
- }
-
- public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowChanging;
-
- public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowChanged;
-
- public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowDeleting;
-
- public event Celle2BlocchiRowChangeEventHandler Celle2BlocchiRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddCelle2BlocchiRow(Celle2BlocchiRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow AddCelle2BlocchiRow(BlocchiRow parentBlocchiRowByFK_Celle2Blocchi_Blocchi, CelleRow parentCelleRowByFK_Celle2Blocchi_Celle, int X, int Y, int Z) {
- Celle2BlocchiRow rowCelle2BlocchiRow = ((Celle2BlocchiRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- null,
- null,
- X,
- Y,
- Z};
- if ((parentBlocchiRowByFK_Celle2Blocchi_Blocchi != null)) {
- columnValuesArray[0] = parentBlocchiRowByFK_Celle2Blocchi_Blocchi[0];
- }
- if ((parentCelleRowByFK_Celle2Blocchi_Celle != null)) {
- columnValuesArray[1] = parentCelleRowByFK_Celle2Blocchi_Celle[0];
- }
- rowCelle2BlocchiRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowCelle2BlocchiRow);
- return rowCelle2BlocchiRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow FindByIdxBloccoIdxCella(int IdxBlocco, int IdxCella) {
- return ((Celle2BlocchiRow)(this.Rows.Find(new object[] {
- IdxBlocco,
- IdxCella})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- Celle2BlocchiDataTable cln = ((Celle2BlocchiDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new Celle2BlocchiDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnIdxBlocco = base.Columns["IdxBlocco"];
- this.columnIdxCella = base.Columns["IdxCella"];
- this.columnX = base.Columns["X"];
- this.columnY = base.Columns["Y"];
- this.columnZ = base.Columns["Z"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnIdxBlocco = new global::System.Data.DataColumn("IdxBlocco", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIdxBlocco);
- this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIdxCella);
- this.columnX = new global::System.Data.DataColumn("X", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnX);
- this.columnY = new global::System.Data.DataColumn("Y", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnY);
- this.columnZ = new global::System.Data.DataColumn("Z", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnZ);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnIdxBlocco,
- this.columnIdxCella}, true));
- this.columnIdxBlocco.AllowDBNull = false;
- this.columnIdxCella.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow NewCelle2BlocchiRow() {
- return ((Celle2BlocchiRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new Celle2BlocchiRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(Celle2BlocchiRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.Celle2BlocchiRowChanged != null)) {
- this.Celle2BlocchiRowChanged(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.Celle2BlocchiRowChanging != null)) {
- this.Celle2BlocchiRowChanging(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.Celle2BlocchiRowDeleted != null)) {
- this.Celle2BlocchiRowDeleted(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.Celle2BlocchiRowDeleting != null)) {
- this.Celle2BlocchiRowDeleting(this, new Celle2BlocchiRowChangeEvent(((Celle2BlocchiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveCelle2BlocchiRow(Celle2BlocchiRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- DS_magazzino ds = new DS_magazzino();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "Celle2BlocchiDataTable";
- 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 MappeDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnIdxMappa;
+ private global::System.Data.DataColumn columnIdxTipoCella;
private global::System.Data.DataColumn columnCodMag;
private global::System.Data.DataColumn columnCodCS;
- private global::System.Data.DataColumn columnDescMappa;
+ private global::System.Data.DataColumn columnQuantita;
+
+ private global::System.Data.DataColumn columnCapienza;
+
+ private global::System.Data.DataColumn columnMax_X;
+
+ private global::System.Data.DataColumn columnMax_Y;
+
+ private global::System.Data.DataColumn columnMax_Z;
+
+ private global::System.Data.DataColumn columnMax_Kg;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeDataTable() {
- this.TableName = "Mappe";
+ public TipoCellaDataTable() {
+ this.TableName = "TipoCella";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal MappeDataTable(global::System.Data.DataTable table) {
+ internal TipoCellaDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
@@ -2899,15 +2662,15 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected MappeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ protected TipoCellaDataTable(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 IdxMappaColumn {
+ public global::System.Data.DataColumn IdxTipoCellaColumn {
get {
- return this.columnIdxMappa;
+ return this.columnIdxTipoCella;
}
}
@@ -2926,9 +2689,44 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescMappaColumn {
+ public global::System.Data.DataColumn QuantitaColumn {
get {
- return this.columnDescMappa;
+ return this.columnQuantita;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CapienzaColumn {
+ get {
+ return this.columnCapienza;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn Max_XColumn {
+ get {
+ return this.columnMax_X;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn Max_YColumn {
+ get {
+ return this.columnMax_Y;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn Max_ZColumn {
+ get {
+ return this.columnMax_Z;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn Max_KgColumn {
+ get {
+ return this.columnMax_Kg;
}
}
@@ -2941,135 +2739,159 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow this[int index] {
+ public TipoCellaRow this[int index] {
get {
- return ((MappeRow)(this.Rows[index]));
+ return ((TipoCellaRow)(this.Rows[index]));
}
}
- public event MappeRowChangeEventHandler MappeRowChanging;
+ public event TipoCellaRowChangeEventHandler TipoCellaRowChanging;
- public event MappeRowChangeEventHandler MappeRowChanged;
+ public event TipoCellaRowChangeEventHandler TipoCellaRowChanged;
- public event MappeRowChangeEventHandler MappeRowDeleting;
+ public event TipoCellaRowChangeEventHandler TipoCellaRowDeleting;
- public event MappeRowChangeEventHandler MappeRowDeleted;
+ public event TipoCellaRowChangeEventHandler TipoCellaRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddMappeRow(MappeRow row) {
+ public void AddTipoCellaRow(TipoCellaRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow AddMappeRow(int IdxMappa, string CodMag, string CodCS, string DescMappa) {
- MappeRow rowMappeRow = ((MappeRow)(this.NewRow()));
+ public TipoCellaRow AddTipoCellaRow(string CodMag, string CodCS, int Quantita, int Capienza, double Max_X, double Max_Y, double Max_Z, double Max_Kg) {
+ TipoCellaRow rowTipoCellaRow = ((TipoCellaRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
- IdxMappa,
+ null,
CodMag,
CodCS,
- DescMappa};
- rowMappeRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowMappeRow);
- return rowMappeRow;
+ Quantita,
+ Capienza,
+ Max_X,
+ Max_Y,
+ Max_Z,
+ Max_Kg};
+ rowTipoCellaRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowTipoCellaRow);
+ return rowTipoCellaRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow FindByIdxMappa(int IdxMappa) {
- return ((MappeRow)(this.Rows.Find(new object[] {
- IdxMappa})));
+ public TipoCellaRow FindByIdxTipoCella(int IdxTipoCella) {
+ return ((TipoCellaRow)(this.Rows.Find(new object[] {
+ IdxTipoCella})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
- MappeDataTable cln = ((MappeDataTable)(base.Clone()));
+ TipoCellaDataTable cln = ((TipoCellaDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
- return new MappeDataTable();
+ return new TipoCellaDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
- this.columnIdxMappa = base.Columns["IdxMappa"];
+ this.columnIdxTipoCella = base.Columns["IdxTipoCella"];
this.columnCodMag = base.Columns["CodMag"];
this.columnCodCS = base.Columns["CodCS"];
- this.columnDescMappa = base.Columns["DescMappa"];
+ this.columnQuantita = base.Columns["Quantita"];
+ this.columnCapienza = base.Columns["Capienza"];
+ this.columnMax_X = base.Columns["Max_X"];
+ this.columnMax_Y = base.Columns["Max_Y"];
+ this.columnMax_Z = base.Columns["Max_Z"];
+ this.columnMax_Kg = base.Columns["Max_Kg"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
- this.columnIdxMappa = new global::System.Data.DataColumn("IdxMappa", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIdxMappa);
+ this.columnIdxTipoCella = new global::System.Data.DataColumn("IdxTipoCella", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxTipoCella);
this.columnCodMag = new global::System.Data.DataColumn("CodMag", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodMag);
this.columnCodCS = new global::System.Data.DataColumn("CodCS", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodCS);
- this.columnDescMappa = new global::System.Data.DataColumn("DescMappa", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescMappa);
+ this.columnQuantita = new global::System.Data.DataColumn("Quantita", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnQuantita);
+ this.columnCapienza = new global::System.Data.DataColumn("Capienza", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCapienza);
+ this.columnMax_X = new global::System.Data.DataColumn("Max_X", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnMax_X);
+ this.columnMax_Y = new global::System.Data.DataColumn("Max_Y", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnMax_Y);
+ this.columnMax_Z = new global::System.Data.DataColumn("Max_Z", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnMax_Z);
+ this.columnMax_Kg = new global::System.Data.DataColumn("Max_Kg", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnMax_Kg);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnIdxMappa}, true));
- this.columnIdxMappa.AllowDBNull = false;
- this.columnIdxMappa.Unique = true;
+ this.columnIdxTipoCella}, true));
+ this.columnIdxTipoCella.AutoIncrement = true;
+ this.columnIdxTipoCella.AutoIncrementSeed = -1;
+ this.columnIdxTipoCella.AutoIncrementStep = -1;
+ this.columnIdxTipoCella.AllowDBNull = false;
+ this.columnIdxTipoCella.ReadOnly = true;
+ this.columnIdxTipoCella.Unique = true;
this.columnCodMag.AllowDBNull = false;
this.columnCodMag.MaxLength = 50;
this.columnCodCS.AllowDBNull = false;
this.columnCodCS.MaxLength = 2;
- this.columnDescMappa.AllowDBNull = false;
- this.columnDescMappa.MaxLength = 50;
+ this.columnQuantita.AllowDBNull = false;
+ this.columnCapienza.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow NewMappeRow() {
- return ((MappeRow)(this.NewRow()));
+ public TipoCellaRow NewTipoCellaRow() {
+ return ((TipoCellaRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new MappeRow(builder);
+ return new TipoCellaRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
- return typeof(MappeRow);
+ return typeof(TipoCellaRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
- if ((this.MappeRowChanged != null)) {
- this.MappeRowChanged(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ if ((this.TipoCellaRowChanged != null)) {
+ this.TipoCellaRowChanged(this, new TipoCellaRowChangeEvent(((TipoCellaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
- if ((this.MappeRowChanging != null)) {
- this.MappeRowChanging(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ if ((this.TipoCellaRowChanging != null)) {
+ this.TipoCellaRowChanging(this, new TipoCellaRowChangeEvent(((TipoCellaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
- if ((this.MappeRowDeleted != null)) {
- this.MappeRowDeleted(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ if ((this.TipoCellaRowDeleted != null)) {
+ this.TipoCellaRowDeleted(this, new TipoCellaRowChangeEvent(((TipoCellaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
- if ((this.MappeRowDeleting != null)) {
- this.MappeRowDeleting(this, new MappeRowChangeEvent(((MappeRow)(e.Row)), e.Action));
+ if ((this.TipoCellaRowDeleting != null)) {
+ this.TipoCellaRowDeleting(this, new TipoCellaRowChangeEvent(((TipoCellaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveMappeRow(MappeRow row) {
+ public void RemoveTipoCellaRow(TipoCellaRow row) {
this.Rows.Remove(row);
}
@@ -3095,7 +2917,7 @@ namespace GMW_data {
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "MappeDataTable";
+ attribute2.FixedValue = "TipoCellaDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
@@ -3841,12 +3663,22 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow[] GetMappeRows() {
- if ((this.Table.ChildRelations["FK_Mappe_AnagMag"] == null)) {
- return new MappeRow[0];
+ public BlocchiRow[] GetBlocchiRows() {
+ if ((this.Table.ChildRelations["FK_Blocchi_AnagMag"] == null)) {
+ return new BlocchiRow[0];
}
else {
- return ((MappeRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Mappe_AnagMag"])));
+ return ((BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Blocchi_AnagMag"])));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public TipoCellaRow[] GetTipoCellaRows() {
+ if ((this.Table.ChildRelations["FK_TipoCella_AnagMag"] == null)) {
+ return new TipoCellaRow[0];
+ }
+ else {
+ return ((TipoCellaRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TipoCella_AnagMag"])));
}
}
}
@@ -4056,12 +3888,32 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int IdxMappa {
+ public string CodMag {
get {
- return ((int)(this[this.tableBlocchi.IdxMappaColumn]));
+ try {
+ return ((string)(this[this.tableBlocchi.CodMagColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodMag\' in table \'Blocchi\' is DBNull.", e);
+ }
}
set {
- this[this.tableBlocchi.IdxMappaColumn] = value;
+ this[this.tableBlocchi.CodMagColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCS {
+ get {
+ try {
+ return ((string)(this[this.tableBlocchi.CodCSColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodCS\' in table \'Blocchi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBlocchi.CodCSColumn] = value;
}
}
@@ -4141,15 +3993,35 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow MappeRow {
+ public AnagMagRow AnagMagRowParent {
get {
- return ((MappeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Blocchi_Mappe"])));
+ return ((AnagMagRow)(this.GetParentRow(this.Table.ParentRelations["FK_Blocchi_AnagMag"])));
}
set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Blocchi_Mappe"]);
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Blocchi_AnagMag"]);
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodMagNull() {
+ return this.IsNull(this.tableBlocchi.CodMagColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodMagNull() {
+ this[this.tableBlocchi.CodMagColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodCSNull() {
+ return this.IsNull(this.tableBlocchi.CodCSColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodCSNull() {
+ this[this.tableBlocchi.CodCSColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsCodBloccoNull() {
return this.IsNull(this.tableBlocchi.CodBloccoColumn);
@@ -4201,12 +4073,12 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow[] GetCelle2BlocchiRows() {
- if ((this.Table.ChildRelations["FK_Celle2Blocchi_Blocchi"] == null)) {
- return new Celle2BlocchiRow[0];
+ public CelleRow[] GetCelleRows() {
+ if ((this.Table.ChildRelations["FK_Celle_Blocchi1"] == null)) {
+ return new CelleRow[0];
}
else {
- return ((Celle2BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Celle2Blocchi_Blocchi"])));
+ return ((CelleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Celle_Blocchi1"])));
}
}
}
@@ -4256,17 +4128,17 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int Capacita {
+ public int IdxTipoCella {
get {
try {
- return ((int)(this[this.tableCelle.CapacitaColumn]));
+ return ((int)(this[this.tableCelle.IdxTipoCellaColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Capacita\' in table \'Celle\' is DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'IdxTipoCella\' in table \'Celle\' is DBNull.", e);
}
}
set {
- this[this.tableCelle.CapacitaColumn] = value;
+ this[this.tableCelle.IdxTipoCellaColumn] = value;
}
}
@@ -4286,13 +4158,98 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsCapacitaNull() {
- return this.IsNull(this.tableCelle.CapacitaColumn);
+ public bool Attiva {
+ get {
+ try {
+ return ((bool)(this[this.tableCelle.AttivaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Attiva\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.AttivaColumn] = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetCapacitaNull() {
- this[this.tableCelle.CapacitaColumn] = global::System.Convert.DBNull;
+ public int IdxBlocco {
+ get {
+ try {
+ return ((int)(this[this.tableCelle.IdxBloccoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'IdxBlocco\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.IdxBloccoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int X {
+ get {
+ try {
+ return ((int)(this[this.tableCelle.XColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'X\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.XColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Y {
+ get {
+ try {
+ return ((int)(this[this.tableCelle.YColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Y\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.YColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Z {
+ get {
+ try {
+ return ((int)(this[this.tableCelle.ZColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Z\' in table \'Celle\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableCelle.ZColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public BlocchiRow BlocchiRow {
+ get {
+ return ((BlocchiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Celle_Blocchi1"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Celle_Blocchi1"]);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsIdxTipoCellaNull() {
+ return this.IsNull(this.tableCelle.IdxTipoCellaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetIdxTipoCellaNull() {
+ this[this.tableCelle.IdxTipoCellaColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4305,6 +4262,56 @@ namespace GMW_data {
this[this.tableCelle.DescrizioneColumn] = global::System.Convert.DBNull;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsAttivaNull() {
+ return this.IsNull(this.tableCelle.AttivaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetAttivaNull() {
+ this[this.tableCelle.AttivaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsIdxBloccoNull() {
+ return this.IsNull(this.tableCelle.IdxBloccoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetIdxBloccoNull() {
+ this[this.tableCelle.IdxBloccoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsXNull() {
+ return this.IsNull(this.tableCelle.XColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetXNull() {
+ this[this.tableCelle.XColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsYNull() {
+ return this.IsNull(this.tableCelle.YColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetYNull() {
+ this[this.tableCelle.YColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsZNull() {
+ return this.IsNull(this.tableCelle.ZColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetZNull() {
+ this[this.tableCelle.ZColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public PosizioneUdcCorrenteRow[] GetPosizioneUdcCorrenteRows() {
if ((this.Table.ChildRelations["FK_PosizioneUdcCorrente_Celle"] == null)) {
@@ -4314,220 +4321,180 @@ namespace GMW_data {
return ((PosizioneUdcCorrenteRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PosizioneUdcCorrente_Celle"])));
}
}
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow[] GetCelle2BlocchiRows() {
- if ((this.Table.ChildRelations["FK_Celle2Blocchi_Celle"] == null)) {
- return new Celle2BlocchiRow[0];
- }
- else {
- return ((Celle2BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Celle2Blocchi_Celle"])));
- }
- }
}
///
///Represents strongly named DataRow class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class Celle2BlocchiRow : global::System.Data.DataRow {
+ public partial class TipoCellaRow : global::System.Data.DataRow {
- private Celle2BlocchiDataTable tableCelle2Blocchi;
+ private TipoCellaDataTable tableTipoCella;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal Celle2BlocchiRow(global::System.Data.DataRowBuilder rb) :
+ internal TipoCellaRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
- this.tableCelle2Blocchi = ((Celle2BlocchiDataTable)(this.Table));
+ this.tableTipoCella = ((TipoCellaDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int IdxBlocco {
+ public int IdxTipoCella {
get {
- return ((int)(this[this.tableCelle2Blocchi.IdxBloccoColumn]));
+ return ((int)(this[this.tableTipoCella.IdxTipoCellaColumn]));
}
set {
- this[this.tableCelle2Blocchi.IdxBloccoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int IdxCella {
- get {
- return ((int)(this[this.tableCelle2Blocchi.IdxCellaColumn]));
- }
- set {
- this[this.tableCelle2Blocchi.IdxCellaColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int X {
- get {
- try {
- return ((int)(this[this.tableCelle2Blocchi.XColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'X\' in table \'Celle2Blocchi\' is DBNull.", e);
- }
- }
- set {
- this[this.tableCelle2Blocchi.XColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int Y {
- get {
- try {
- return ((int)(this[this.tableCelle2Blocchi.YColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Y\' in table \'Celle2Blocchi\' is DBNull.", e);
- }
- }
- set {
- this[this.tableCelle2Blocchi.YColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int Z {
- get {
- try {
- return ((int)(this[this.tableCelle2Blocchi.ZColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Z\' in table \'Celle2Blocchi\' is DBNull.", e);
- }
- }
- set {
- this[this.tableCelle2Blocchi.ZColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BlocchiRow BlocchiRow {
- get {
- return ((BlocchiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Celle2Blocchi_Blocchi"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Celle2Blocchi_Blocchi"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CelleRow CelleRow {
- get {
- return ((CelleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Celle2Blocchi_Celle"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Celle2Blocchi_Celle"]);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsXNull() {
- return this.IsNull(this.tableCelle2Blocchi.XColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetXNull() {
- this[this.tableCelle2Blocchi.XColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsYNull() {
- return this.IsNull(this.tableCelle2Blocchi.YColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetYNull() {
- this[this.tableCelle2Blocchi.YColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsZNull() {
- return this.IsNull(this.tableCelle2Blocchi.ZColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetZNull() {
- this[this.tableCelle2Blocchi.ZColumn] = 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 MappeRow : global::System.Data.DataRow {
-
- private MappeDataTable tableMappe;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal MappeRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableMappe = ((MappeDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public int IdxMappa {
- get {
- return ((int)(this[this.tableMappe.IdxMappaColumn]));
- }
- set {
- this[this.tableMappe.IdxMappaColumn] = value;
+ this[this.tableTipoCella.IdxTipoCellaColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CodMag {
get {
- return ((string)(this[this.tableMappe.CodMagColumn]));
+ return ((string)(this[this.tableTipoCella.CodMagColumn]));
}
set {
- this[this.tableMappe.CodMagColumn] = value;
+ this[this.tableTipoCella.CodMagColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CodCS {
get {
- return ((string)(this[this.tableMappe.CodCSColumn]));
+ return ((string)(this[this.tableTipoCella.CodCSColumn]));
}
set {
- this[this.tableMappe.CodCSColumn] = value;
+ this[this.tableTipoCella.CodCSColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescMappa {
+ public int Quantita {
get {
- return ((string)(this[this.tableMappe.DescMappaColumn]));
+ return ((int)(this[this.tableTipoCella.QuantitaColumn]));
}
set {
- this[this.tableMappe.DescMappaColumn] = value;
+ this[this.tableTipoCella.QuantitaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public int Capienza {
+ get {
+ return ((int)(this[this.tableTipoCella.CapienzaColumn]));
+ }
+ set {
+ this[this.tableTipoCella.CapienzaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double Max_X {
+ get {
+ try {
+ return ((double)(this[this.tableTipoCella.Max_XColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Max_X\' in table \'TipoCella\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTipoCella.Max_XColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double Max_Y {
+ get {
+ try {
+ return ((double)(this[this.tableTipoCella.Max_YColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Max_Y\' in table \'TipoCella\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTipoCella.Max_YColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double Max_Z {
+ get {
+ try {
+ return ((double)(this[this.tableTipoCella.Max_ZColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Max_Z\' in table \'TipoCella\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTipoCella.Max_ZColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public double Max_Kg {
+ get {
+ try {
+ return ((double)(this[this.tableTipoCella.Max_KgColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Max_Kg\' in table \'TipoCella\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableTipoCella.Max_KgColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public AnagMagRow AnagMagRowParent {
get {
- return ((AnagMagRow)(this.GetParentRow(this.Table.ParentRelations["FK_Mappe_AnagMag"])));
+ return ((AnagMagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TipoCella_AnagMag"])));
}
set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_Mappe_AnagMag"]);
+ this.SetParentRow(value, this.Table.ParentRelations["FK_TipoCella_AnagMag"]);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BlocchiRow[] GetBlocchiRows() {
- if ((this.Table.ChildRelations["FK_Blocchi_Mappe"] == null)) {
- return new BlocchiRow[0];
- }
- else {
- return ((BlocchiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Blocchi_Mappe"])));
- }
+ public bool IsMax_XNull() {
+ return this.IsNull(this.tableTipoCella.Max_XColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetMax_XNull() {
+ this[this.tableTipoCella.Max_XColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsMax_YNull() {
+ return this.IsNull(this.tableTipoCella.Max_YColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetMax_YNull() {
+ this[this.tableTipoCella.Max_YColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsMax_ZNull() {
+ return this.IsNull(this.tableTipoCella.Max_ZColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetMax_ZNull() {
+ this[this.tableTipoCella.Max_ZColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsMax_KgNull() {
+ return this.IsNull(this.tableTipoCella.Max_KgColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetMax_KgNull() {
+ this[this.tableTipoCella.Max_KgColumn] = global::System.Convert.DBNull;
}
}
@@ -4721,51 +4688,20 @@ namespace GMW_data {
///Row event argument class
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class Celle2BlocchiRowChangeEvent : global::System.EventArgs {
+ public class TipoCellaRowChangeEvent : global::System.EventArgs {
- private Celle2BlocchiRow eventRow;
+ private TipoCellaRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRowChangeEvent(Celle2BlocchiRow row, global::System.Data.DataRowAction action) {
+ public TipoCellaRowChangeEvent(TipoCellaRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiRow 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 MappeRowChangeEvent : global::System.EventArgs {
-
- private MappeRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRowChangeEvent(MappeRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public MappeRow Row {
+ public TipoCellaRow Row {
get {
return this.eventRow;
}
@@ -7499,7 +7435,8 @@ SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "Blocchi";
tableMapping.ColumnMappings.Add("IdxBlocco", "IdxBlocco");
- tableMapping.ColumnMappings.Add("IdxMappa", "IdxMappa");
+ tableMapping.ColumnMappings.Add("CodMag", "CodMag");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
tableMapping.ColumnMappings.Add("CodBlocco", "CodBlocco");
tableMapping.ColumnMappings.Add("DescBlocco", "DescBlocco");
tableMapping.ColumnMappings.Add("NumX", "NumX");
@@ -7508,10 +7445,13 @@ SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE
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].[Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ((@IsNull_CodMag = 1 AND [CodMag] IS NULL) OR ([CodMag] = @Original_CodMag)) AND ((@IsNull_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCS", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -7524,11 +7464,11 @@ SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", 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].[Blocchi] ([IdxBlocco], [IdxMappa], [CodBlocco], [DescBlocco], [NumX], [NumY], [NumZ]) VALUES (@IdxBlocco, @IdxMappa, @CodBlocco, @DescBlocco, @NumX, @NumY, @NumZ);
-SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Blocchi] ([CodMag], [CodCS], [CodBlocco], [DescBlocco], [NumX], [NumY], [NumZ]) VALUES (@CodMag, @CodCS, @CodBlocco, @DescBlocco, @NumX, @NumY, @NumZ);
+SELECT IdxBlocco, CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -7536,18 +7476,21 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", 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].[Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxMappa] = @IdxMappa, [CodBlocco] = @CodBlocco, [DescBlocco] = @DescBlocco, [NumX] = @NumX, [NumY] = @NumY, [NumZ] = @NumZ WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)));
-SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Blocchi] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [CodBlocco] = @CodBlocco, [DescBlocco] = @DescBlocco, [NumX] = @NumX, [NumY] = @NumY, [NumZ] = @NumZ WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ((@IsNull_CodMag = 1 AND [CodMag] IS NULL) OR ([CodMag] = @Original_CodMag)) AND ((@IsNull_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)));
+SELECT IdxBlocco, CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumX", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumX", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCS", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodBlocco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -7558,6 +7501,7 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumZ", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -7568,18 +7512,12 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ 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 IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM dbo.Bloc" +
- "chi";
+ this._commandCollection[0].CommandText = "SELECT IdxBlocco, CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM dbo" +
+ ".Blocchi";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "dbo.stp_blocchiGetByCodMappa";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -7604,22 +7542,6 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
return dataTable;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_magazzino.BlocchiDataTable getByCodMappa(global::System.Nullable IdxMappa) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((IdxMappa.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxMappa.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- DS_magazzino.BlocchiDataTable dataTable = new DS_magazzino.BlocchiDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_magazzino.BlocchiDataTable dataTable) {
@@ -7648,48 +7570,63 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(int Original_IdxBlocco, int Original_IdxMappa, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
+ public virtual int Delete(int Original_IdxBlocco, string Original_CodMag, string Original_CodCS, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxBlocco));
- this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxMappa));
- if ((Original_CodBlocco == null)) {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
+ if ((Original_CodMag == null)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CodBlocco));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodMag));
+ }
+ if ((Original_CodCS == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodBlocco == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodBlocco));
}
if ((Original_DescBlocco == null)) {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_DescBlocco));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_DescBlocco));
}
if ((Original_NumX.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_NumX.Value));
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_NumX.Value));
}
else {
- this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
}
if ((Original_NumY.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_NumY.Value));
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_NumY.Value));
}
else {
- this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
}
if ((Original_NumZ.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_NumZ.Value));
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_NumZ.Value));
}
else {
- this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -7710,9 +7647,19 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(int IdxBlocco, int IdxMappa, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ) {
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxBlocco));
- this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxMappa));
+ public virtual int Insert(string CodMag, string CodCS, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ) {
+ if ((CodMag == null)) {
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodMag));
+ }
+ if ((CodCS == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS));
+ }
if ((CodBlocco == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
@@ -7762,9 +7709,35 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(int IdxBlocco, int IdxMappa, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ, int Original_IdxBlocco, int Original_IdxMappa, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxBlocco));
- this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxMappa));
+ public virtual int Update(
+ string CodMag,
+ string CodCS,
+ string CodBlocco,
+ string DescBlocco,
+ global::System.Nullable NumX,
+ global::System.Nullable NumY,
+ global::System.Nullable NumZ,
+ int Original_IdxBlocco,
+ string Original_CodMag,
+ string Original_CodCS,
+ string Original_CodBlocco,
+ string Original_DescBlocco,
+ global::System.Nullable Original_NumX,
+ global::System.Nullable Original_NumY,
+ global::System.Nullable Original_NumZ,
+ int IdxBlocco) {
+ if ((CodMag == null)) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodMag));
+ }
+ if ((CodCS == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS));
+ }
if ((CodBlocco == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
@@ -7796,47 +7769,63 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxBlocco));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxMappa));
- if ((Original_CodBlocco == null)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ if ((Original_CodMag == null)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodBlocco));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodMag));
+ }
+ if ((Original_CodCS == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodBlocco == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodBlocco));
}
if ((Original_DescBlocco == null)) {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_DescBlocco));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_DescBlocco));
}
if ((Original_NumX.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_NumX.Value));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_NumX.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
}
if ((Original_NumY.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_NumY.Value));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_NumY.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
if ((Original_NumZ.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_NumZ.Value));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_NumZ.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IdxBlocco));
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)) {
@@ -7856,8 +7845,8 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(int IdxMappa, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ, int Original_IdxBlocco, int Original_IdxMappa, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
- return this.Update(Original_IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ, Original_IdxBlocco, Original_IdxMappa, Original_CodBlocco, Original_DescBlocco, Original_NumX, Original_NumY, Original_NumZ);
+ public virtual int Update(string CodMag, string CodCS, string CodBlocco, string DescBlocco, global::System.Nullable NumX, global::System.Nullable NumY, global::System.Nullable NumZ, int Original_IdxBlocco, string Original_CodMag, string Original_CodCS, string Original_CodBlocco, string Original_DescBlocco, global::System.Nullable Original_NumX, global::System.Nullable Original_NumY, global::System.Nullable Original_NumZ) {
+ return this.Update(CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ, Original_IdxBlocco, Original_CodMag, Original_CodCS, Original_CodBlocco, Original_DescBlocco, Original_NumX, Original_NumY, Original_NumZ, Original_IdxBlocco);
}
}
@@ -7979,46 +7968,80 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
tableMapping.ColumnMappings.Add("CodCS", "CodCS");
tableMapping.ColumnMappings.Add("CodCella", "CodCella");
- tableMapping.ColumnMappings.Add("Capacita", "Capacita");
+ tableMapping.ColumnMappings.Add("IdxTipoCella", "IdxTipoCella");
tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ tableMapping.ColumnMappings.Add("Attiva", "Attiva");
+ tableMapping.ColumnMappings.Add("IdxBlocco", "IdxBlocco");
+ tableMapping.ColumnMappings.Add("X", "X");
+ tableMapping.ColumnMappings.Add("Y", "Y");
+ tableMapping.ColumnMappings.Add("Z", "Z");
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].[Celle] WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Celle] WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxTipoCella = 1 AND [IdxTipoCella] IS NULL) OR ([IdxTipoCella] = @Original_IdxTipoCella)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Attiva = 1 AND [Attiva] IS NULL) OR ([Attiva] = @Original_Attiva)) AND ((@IsNull_IdxBlocco = 1 AND [IdxBlocco] IS NULL) OR ([IdxBlocco] = @Original_IdxBlocco)) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Attiva", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attiva", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attiva", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attiva", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", 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].[Celle] ([CodCS], [CodCella], [Capacita], [Descrizione]) VALUES" +
- " (@CodCS, @CodCella, @Capacita, @Descrizione);\r\nSELECT IdxCella, CodCS, CodCella" +
- ", Capacita, Descrizione FROM Celle WHERE (IdxCella = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Celle] ([CodCS], [CodCella], [IdxTipoCella], [Descrizione], [Attiva], [IdxBlocco], [X], [Y], [Z]) VALUES (@CodCS, @CodCella, @IdxTipoCella, @Descrizione, @Attiva, @IdxBlocco, @X, @Y, @Z);
+SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X, Y, Z FROM Celle WHERE (IdxCella = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attiva", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attiva", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", 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].[Celle] SET [CodCS] = @CodCS, [CodCella] = @CodCella, [Capacita] = @Capacita, [Descrizione] = @Descrizione WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));
-SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCella = @IdxCella)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Celle] SET [CodCS] = @CodCS, [CodCella] = @CodCella, [IdxTipoCella] = @IdxTipoCella, [Descrizione] = @Descrizione, [Attiva] = @Attiva, [IdxBlocco] = @IdxBlocco, [X] = @X, [Y] = @Y, [Z] = @Z WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxTipoCella = 1 AND [IdxTipoCella] IS NULL) OR ([IdxTipoCella] = @Original_IdxTipoCella)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Attiva = 1 AND [Attiva] IS NULL) OR ([Attiva] = @Original_Attiva)) AND ((@IsNull_IdxBlocco = 1 AND [IdxBlocco] IS NULL) OR ([IdxBlocco] = @Original_IdxBlocco)) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)));
+SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X, Y, Z FROM Celle WHERE (IdxCella = @IdxCella)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attiva", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attiva", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capacita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capacita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Attiva", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attiva", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attiva", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attiva", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -8033,7 +8056,8 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
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 IdxCella, CodCS, CodCella, Capacita, Descrizione FROM dbo.Celle";
+ this._commandCollection[0].CommandText = "SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X" +
+ ", Y, Z FROM dbo.Celle";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -8087,7 +8111,7 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
+ public virtual int Delete(int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_IdxTipoCella, string Original_Descrizione, global::System.Nullable Original_Attiva, global::System.Nullable Original_IdxBlocco, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxCella));
if ((Original_CodCS == null)) {
throw new global::System.ArgumentNullException("Original_CodCS");
@@ -8101,9 +8125,9 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCella));
}
- if ((Original_Capacita.HasValue == true)) {
+ if ((Original_IdxTipoCella.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Capacita.Value));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxTipoCella.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
@@ -8117,6 +8141,46 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Descrizione));
}
+ if ((Original_Attiva.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_Attiva.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_IdxBlocco.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_IdxBlocco.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ if ((Original_X.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_X.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Y.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_Y.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Z.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_Z.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -8136,7 +8200,7 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCS, string CodCella, global::System.Nullable Capacita, string Descrizione) {
+ public virtual int Insert(string CodCS, string CodCella, global::System.Nullable IdxTipoCella, string Descrizione, global::System.Nullable Attiva, global::System.Nullable IdxBlocco, global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z) {
if ((CodCS == null)) {
throw new global::System.ArgumentNullException("CodCS");
}
@@ -8149,8 +8213,8 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCella));
}
- if ((Capacita.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Capacita.Value));
+ if ((IdxTipoCella.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxTipoCella.Value));
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
@@ -8161,6 +8225,36 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Descrizione));
}
+ if ((Attiva.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(Attiva.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((IdxBlocco.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((int)(IdxBlocco.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((X.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((int)(X.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Y.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((int)(Y.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((Z.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((int)(Z.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -8180,7 +8274,27 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCS, string CodCella, global::System.Nullable Capacita, string Descrizione, int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione, int IdxCella) {
+ public virtual int Update(
+ string CodCS,
+ string CodCella,
+ global::System.Nullable IdxTipoCella,
+ string Descrizione,
+ global::System.Nullable Attiva,
+ global::System.Nullable IdxBlocco,
+ global::System.Nullable X,
+ global::System.Nullable Y,
+ global::System.Nullable Z,
+ int Original_IdxCella,
+ string Original_CodCS,
+ string Original_CodCella,
+ global::System.Nullable Original_IdxTipoCella,
+ string Original_Descrizione,
+ global::System.Nullable Original_Attiva,
+ global::System.Nullable Original_IdxBlocco,
+ global::System.Nullable Original_X,
+ global::System.Nullable Original_Y,
+ global::System.Nullable Original_Z,
+ int IdxCella) {
if ((CodCS == null)) {
throw new global::System.ArgumentNullException("CodCS");
}
@@ -8193,8 +8307,8 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCella));
}
- if ((Capacita.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Capacita.Value));
+ if ((IdxTipoCella.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxTipoCella.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
@@ -8205,36 +8319,106 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Descrizione));
}
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxCella));
+ if ((Attiva.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(Attiva.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((IdxBlocco.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(IdxBlocco.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((X.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(X.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Y.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Y.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((Z.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Z.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxCella));
if ((Original_CodCS == null)) {
throw new global::System.ArgumentNullException("Original_CodCS");
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodCS));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodCS));
}
if ((Original_CodCella == null)) {
throw new global::System.ArgumentNullException("Original_CodCella");
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodCella));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodCella));
}
- if ((Original_Capacita.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Capacita.Value));
+ if ((Original_IdxTipoCella.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IdxTipoCella.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
}
if ((Original_Descrizione == null)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Descrizione));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Descrizione));
}
- this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(IdxCella));
+ if ((Original_Attiva.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_Attiva.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ if ((Original_IdxBlocco.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_IdxBlocco.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ if ((Original_X.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_X.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Y.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_Y.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Z.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_Z.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(IdxCella));
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)) {
@@ -8254,8 +8438,27 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCS, string CodCella, global::System.Nullable Capacita, string Descrizione, int Original_IdxCella, string Original_CodCS, string Original_CodCella, global::System.Nullable Original_Capacita, string Original_Descrizione) {
- return this.Update(CodCS, CodCella, Capacita, Descrizione, Original_IdxCella, Original_CodCS, Original_CodCella, Original_Capacita, Original_Descrizione, Original_IdxCella);
+ public virtual int Update(
+ string CodCS,
+ string CodCella,
+ global::System.Nullable IdxTipoCella,
+ string Descrizione,
+ global::System.Nullable Attiva,
+ global::System.Nullable IdxBlocco,
+ global::System.Nullable X,
+ global::System.Nullable Y,
+ global::System.Nullable Z,
+ int Original_IdxCella,
+ string Original_CodCS,
+ string Original_CodCella,
+ global::System.Nullable Original_IdxTipoCella,
+ string Original_Descrizione,
+ global::System.Nullable Original_Attiva,
+ global::System.Nullable Original_IdxBlocco,
+ global::System.Nullable Original_X,
+ global::System.Nullable Original_Y,
+ global::System.Nullable Original_Z) {
+ return this.Update(CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X, Y, Z, Original_IdxCella, Original_CodCS, Original_CodCella, Original_IdxTipoCella, Original_Descrizione, Original_Attiva, Original_IdxBlocco, Original_X, Original_Y, Original_Z, Original_IdxCella);
}
}
@@ -8269,7 +8472,7 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
[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 Celle2BlocchiTableAdapter : global::System.ComponentModel.Component {
+ public partial class TipoCellaTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
@@ -8282,7 +8485,7 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public Celle2BlocchiTableAdapter() {
+ public TipoCellaTableAdapter() {
this.ClearBeforeFill = true;
}
@@ -8373,54 +8576,74 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
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 = "Celle2Blocchi";
- tableMapping.ColumnMappings.Add("IdxBlocco", "IdxBlocco");
- tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
- tableMapping.ColumnMappings.Add("X", "X");
- tableMapping.ColumnMappings.Add("Y", "Y");
- tableMapping.ColumnMappings.Add("Z", "Z");
+ tableMapping.DataSetTable = "TipoCella";
+ tableMapping.ColumnMappings.Add("IdxTipoCella", "IdxTipoCella");
+ tableMapping.ColumnMappings.Add("CodMag", "CodMag");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("Quantita", "Quantita");
+ tableMapping.ColumnMappings.Add("Capienza", "Capienza");
+ tableMapping.ColumnMappings.Add("Max_X", "Max_X");
+ tableMapping.ColumnMappings.Add("Max_Y", "Max_Y");
+ tableMapping.ColumnMappings.Add("Max_Z", "Max_Z");
+ tableMapping.ColumnMappings.Add("Max_Kg", "Max_Kg");
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].[Celle2Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TipoCella] WHERE (([IdxTipoCella] = @Original_IdxTipoCella) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([Quantita] = @Original_Quantita) AND ([Capienza] = @Original_Capienza) AND ((@IsNull_Max_X = 1 AND [Max_X] IS NULL) OR ([Max_X] = @Original_Max_X)) AND ((@IsNull_Max_Y = 1 AND [Max_Y] IS NULL) OR ([Max_Y] = @Original_Max_Y)) AND ((@IsNull_Max_Z = 1 AND [Max_Z] IS NULL) OR ([Max_Z] = @Original_Max_Z)) AND ((@IsNull_Max_Kg = 1 AND [Max_Kg] IS NULL) OR ([Max_Kg] = @Original_Max_Kg)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capienza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capienza", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_X", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_Y", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_Z", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Z", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_Kg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Kg", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Kg", 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].[Celle2Blocchi] ([IdxBlocco], [IdxCella], [X], [Y], [Z]) VALUES" +
- " (@IdxBlocco, @IdxCella, @X, @Y, @Z);\r\nSELECT IdxBlocco, IdxCella, X, Y, Z FROM " +
- "Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TipoCella] ([CodMag], [CodCS], [Quantita], [Capienza], [Max_X], [Max_Y], [Max_Z], [Max_Kg]) VALUES (@CodMag, @CodCS, @Quantita, @Capienza, @Max_X, @Max_Y, @Max_Z, @Max_Kg);
+SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_Kg FROM TipoCella WHERE (IdxTipoCella = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capienza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capienza", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_X", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_Y", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_Z", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Z", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Kg", 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].[Celle2Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxCella] = @IdxCella, [X] = @X, [Y] = @Y, [Z] = @Z WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)));
-SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TipoCella] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [Quantita] = @Quantita, [Capienza] = @Capienza, [Max_X] = @Max_X, [Max_Y] = @Max_Y, [Max_Z] = @Max_Z, [Max_Kg] = @Max_Kg WHERE (([IdxTipoCella] = @Original_IdxTipoCella) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([Quantita] = @Original_Quantita) AND ([Capienza] = @Original_Capienza) AND ((@IsNull_Max_X = 1 AND [Max_X] IS NULL) OR ([Max_X] = @Original_Max_X)) AND ((@IsNull_Max_Y = 1 AND [Max_Y] IS NULL) OR ([Max_Y] = @Original_Max_Y)) AND ((@IsNull_Max_Z = 1 AND [Max_Z] IS NULL) OR ([Max_Z] = @Original_Max_Z)) AND ((@IsNull_Max_Kg = 1 AND [Max_Kg] IS NULL) OR ([Max_Kg] = @Original_Max_Kg)));
+SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_Kg FROM TipoCella WHERE (IdxTipoCella = @IdxTipoCella)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxBlocco", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxBlocco", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Z", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Capienza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capienza", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_X", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_X", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_Y", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Y", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_Z", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Z", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Max_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Kg", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoCella", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Capienza", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Capienza", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_X", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_X", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_X", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_X", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_Y", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Y", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_Y", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Y", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_Z", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Z", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_Z", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Z", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Max_Kg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Kg", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Max_Kg", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Max_Kg", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8434,14 +8657,15 @@ SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBl
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 IdxBlocco, IdxCella, X, Y, Z FROM dbo.Celle2Blocchi";
+ this._commandCollection[0].CommandText = "SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_" +
+ "Kg FROM dbo.TipoCella";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_magazzino.Celle2BlocchiDataTable dataTable) {
+ public virtual int Fill(DS_magazzino.TipoCellaDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
@@ -8453,23 +8677,23 @@ SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBl
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_magazzino.Celle2BlocchiDataTable GetData() {
+ public virtual DS_magazzino.TipoCellaDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_magazzino.Celle2BlocchiDataTable dataTable = new DS_magazzino.Celle2BlocchiDataTable();
+ DS_magazzino.TipoCellaDataTable dataTable = new DS_magazzino.TipoCellaDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino.Celle2BlocchiDataTable dataTable) {
+ public virtual int Update(DS_magazzino.TipoCellaDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_magazzino dataSet) {
- return this.Adapter.Update(dataSet, "Celle2Blocchi");
+ return this.Adapter.Update(dataSet, "TipoCella");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8488,448 +8712,8 @@ SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBl
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(int Original_IdxBlocco, int Original_IdxCella, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxBlocco));
- this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxCella));
- if ((Original_X.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_X.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((Original_Y.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Y.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
- }
- if ((Original_Z.HasValue == true)) {
- this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Z.Value));
- }
- else {
- this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(int IdxBlocco, int IdxCella, global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z) {
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxBlocco));
- this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxCella));
- if ((X.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[2].Value = ((int)(X.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- if ((Y.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Y.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((Z.HasValue == true)) {
- this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Z.Value));
- }
- else {
- this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(int IdxBlocco, int IdxCella, global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z, int Original_IdxBlocco, int Original_IdxCella, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxBlocco));
- this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxCella));
- if ((X.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(X.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- if ((Y.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Y.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- if ((Z.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Z.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxBlocco));
- this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxCella));
- if ((Original_X.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_X.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
- }
- if ((Original_Y.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Y.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
- }
- if ((Original_Z.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Z.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(global::System.Nullable X, global::System.Nullable Y, global::System.Nullable Z, int Original_IdxBlocco, int Original_IdxCella, global::System.Nullable Original_X, global::System.Nullable Original_Y, global::System.Nullable Original_Z) {
- return this.Update(Original_IdxBlocco, Original_IdxCella, X, Y, Z, Original_IdxBlocco, Original_IdxCella, Original_X, Original_Y, Original_Z);
- }
- }
-
- ///
- ///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 MappeTableAdapter : 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 MappeTableAdapter() {
- 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 = "Mappe";
- tableMapping.ColumnMappings.Add("IdxMappa", "IdxMappa");
- tableMapping.ColumnMappings.Add("CodMag", "CodMag");
- tableMapping.ColumnMappings.Add("CodCS", "CodCS");
- tableMapping.ColumnMappings.Add("DescMappa", "DescMappa");
- 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].[Mappe] WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] " +
- "= @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original" +
- "_DescMappa))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", 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].[Mappe] ([CodMag], [CodCS], [DescMappa]) VALUES (@CodMag, @CodC" +
- "S, @DescMappa);\r\nSELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (Idx" +
- "Mappa = SCOPE_IDENTITY())";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", 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].[Mappe] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMappa] = @DescMappa WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original_DescMappa));
-SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescMappa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMappa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT IdxMappa, CodMag, CodCS, DescMappa FROM dbo.Mappe";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "DELETE FROM [dbo].[Mappe] \r\nWHERE ([IdxMappa] = @Original_IdxMappa) ";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "SELECT CodCS, CodMag, DescMappa, IdxMappa FROM Mappe WHERE (CodCS = @CodCS)";
- this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", 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_mappeGetByCodMag";
- this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[4].Connection = this.Connection;
- this._commandCollection[4].CommandText = "UPDATE [dbo].[Mappe] \r\nSET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMappa] = @D" +
- "escMappa \r\nWHERE ([IdxMappa] = @Original_IdxMappa)";
- this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescMappa", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "DescMappa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMappa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMappa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_magazzino.MappeDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_magazzino.MappeDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_magazzino.MappeDataTable dataTable = new DS_magazzino.MappeDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_magazzino.MappeDataTable getByCodCS(string CodCS) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- if ((CodCS == null)) {
- throw new global::System.ArgumentNullException("CodCS");
- }
- else {
- this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodCS));
- }
- DS_magazzino.MappeDataTable dataTable = new DS_magazzino.MappeDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_magazzino.MappeDataTable getByCodMag(string CodCS, string CodMag) {
- this.Adapter.SelectCommand = this.CommandCollection[3];
- if ((CodCS == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
- }
- if ((CodMag == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodMag));
- }
- DS_magazzino.MappeDataTable dataTable = new DS_magazzino.MappeDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino.MappeDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino dataSet) {
- return this.Adapter.Update(dataSet, "Mappe");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(int Original_IdxMappa, string Original_CodMag, string Original_CodCS, string Original_DescMappa) {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxMappa));
+ public virtual int Delete(int Original_IdxTipoCella, string Original_CodMag, string Original_CodCS, int Original_Quantita, int Original_Capienza, global::System.Nullable Original_Max_X, global::System.Nullable Original_Max_Y, global::System.Nullable Original_Max_Z, global::System.Nullable Original_Max_Kg) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxTipoCella));
if ((Original_CodMag == null)) {
throw new global::System.ArgumentNullException("Original_CodMag");
}
@@ -8942,11 +8726,39 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodCS));
}
- if ((Original_DescMappa == null)) {
- throw new global::System.ArgumentNullException("Original_DescMappa");
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantita));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Capienza));
+ if ((Original_Max_X.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_Max_X.Value));
}
else {
- this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescMappa));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Max_Y.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((double)(Original_Max_Y.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Max_Z.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_Max_Z.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Max_Kg.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((double)(Original_Max_Kg.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -8967,7 +8779,7 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
[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 CodMag, string CodCS, string DescMappa) {
+ public virtual int Insert(string CodMag, string CodCS, int Quantita, int Capienza, global::System.Nullable Max_X, global::System.Nullable Max_Y, global::System.Nullable Max_Z, global::System.Nullable Max_Kg) {
if ((CodMag == null)) {
throw new global::System.ArgumentNullException("CodMag");
}
@@ -8980,11 +8792,31 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS));
}
- if ((DescMappa == null)) {
- throw new global::System.ArgumentNullException("DescMappa");
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantita));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Capienza));
+ if ((Max_X.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Max_X.Value));
}
else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescMappa));
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Max_Y.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((double)(Max_Y.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((Max_Z.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((double)(Max_Z.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Max_Kg.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((double)(Max_Kg.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -9005,7 +8837,25 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
[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 CodMag, string CodCS, string DescMappa, int Original_IdxMappa, string Original_CodMag, string Original_CodCS, string Original_DescMappa, int IdxMappa) {
+ public virtual int Update(
+ string CodMag,
+ string CodCS,
+ int Quantita,
+ int Capienza,
+ global::System.Nullable Max_X,
+ global::System.Nullable Max_Y,
+ global::System.Nullable Max_Z,
+ global::System.Nullable Max_Kg,
+ int Original_IdxTipoCella,
+ string Original_CodMag,
+ string Original_CodCS,
+ int Original_Quantita,
+ int Original_Capienza,
+ global::System.Nullable Original_Max_X,
+ global::System.Nullable Original_Max_Y,
+ global::System.Nullable Original_Max_Z,
+ global::System.Nullable Original_Max_Kg,
+ int IdxTipoCella) {
if ((CodMag == null)) {
throw new global::System.ArgumentNullException("CodMag");
}
@@ -9018,32 +8868,80 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS));
}
- if ((DescMappa == null)) {
- throw new global::System.ArgumentNullException("DescMappa");
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantita));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Capienza));
+ if ((Max_X.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Max_X.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescMappa));
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
}
- this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdxMappa));
+ if ((Max_Y.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(Max_Y.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((Max_Z.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Max_Z.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((Max_Kg.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(Max_Kg.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxTipoCella));
if ((Original_CodMag == null)) {
throw new global::System.ArgumentNullException("Original_CodMag");
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodMag));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodMag));
}
if ((Original_CodCS == null)) {
throw new global::System.ArgumentNullException("Original_CodCS");
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodCS));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodCS));
}
- if ((Original_DescMappa == null)) {
- throw new global::System.ArgumentNullException("Original_DescMappa");
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Quantita));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Capienza));
+ if ((Original_Max_X.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(Original_Max_X.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescMappa));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
- this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IdxMappa));
+ if ((Original_Max_Y.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((double)(Original_Max_Y.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Max_Z.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((double)(Original_Max_Z.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Max_Kg.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((double)(Original_Max_Kg.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(IdxTipoCella));
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)) {
@@ -9063,72 +8961,25 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
[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 CodMag, string CodCS, string DescMappa, int Original_IdxMappa, string Original_CodMag, string Original_CodCS, string Original_DescMappa) {
- return this.Update(CodMag, CodCS, DescMappa, Original_IdxMappa, Original_CodMag, Original_CodCS, Original_DescMappa, Original_IdxMappa);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
- public virtual int DeleteQuery(int Original_IdxMappa) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
- command.Parameters[0].Value = ((int)(Original_IdxMappa));
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
- public virtual int UpdateQuery(string CodMag, string CodCS, string DescMappa, int Original_IdxMappa) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- command.Parameters[0].Value = ((string)(CodMag));
- }
- if ((CodCS == null)) {
- throw new global::System.ArgumentNullException("CodCS");
- }
- else {
- command.Parameters[1].Value = ((string)(CodCS));
- }
- if ((DescMappa == null)) {
- throw new global::System.ArgumentNullException("DescMappa");
- }
- else {
- command.Parameters[2].Value = ((string)(DescMappa));
- }
- command.Parameters[3].Value = ((int)(Original_IdxMappa));
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
+ public virtual int Update(
+ string CodMag,
+ string CodCS,
+ int Quantita,
+ int Capienza,
+ global::System.Nullable Max_X,
+ global::System.Nullable Max_Y,
+ global::System.Nullable Max_Z,
+ global::System.Nullable Max_Kg,
+ int Original_IdxTipoCella,
+ string Original_CodMag,
+ string Original_CodCS,
+ int Original_Quantita,
+ int Original_Capienza,
+ global::System.Nullable Original_Max_X,
+ global::System.Nullable Original_Max_Y,
+ global::System.Nullable Original_Max_Z,
+ global::System.Nullable Original_Max_Kg) {
+ return this.Update(CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_Kg, Original_IdxTipoCella, Original_CodMag, Original_CodCS, Original_Quantita, Original_Capienza, Original_Max_X, Original_Max_Y, Original_Max_Z, Original_Max_Kg, Original_IdxTipoCella);
}
}
@@ -9157,9 +9008,7 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
private CelleTableAdapter _celleTableAdapter;
- private Celle2BlocchiTableAdapter _celle2BlocchiTableAdapter;
-
- private MappeTableAdapter _mappeTableAdapter;
+ private TipoCellaTableAdapter _tipoCellaTableAdapter;
private bool _backupDataSetBeforeUpdate;
@@ -9257,25 +9106,12 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
[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 Celle2BlocchiTableAdapter Celle2BlocchiTableAdapter {
+ public TipoCellaTableAdapter TipoCellaTableAdapter {
get {
- return this._celle2BlocchiTableAdapter;
+ return this._tipoCellaTableAdapter;
}
set {
- this._celle2BlocchiTableAdapter = 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 MappeTableAdapter MappeTableAdapter {
- get {
- return this._mappeTableAdapter;
- }
- set {
- this._mappeTableAdapter = value;
+ this._tipoCellaTableAdapter = value;
}
}
@@ -9320,13 +9156,9 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
&& (this._celleTableAdapter.Connection != null))) {
return this._celleTableAdapter.Connection;
}
- if (((this._celle2BlocchiTableAdapter != null)
- && (this._celle2BlocchiTableAdapter.Connection != null))) {
- return this._celle2BlocchiTableAdapter.Connection;
- }
- if (((this._mappeTableAdapter != null)
- && (this._mappeTableAdapter.Connection != null))) {
- return this._mappeTableAdapter.Connection;
+ if (((this._tipoCellaTableAdapter != null)
+ && (this._tipoCellaTableAdapter.Connection != null))) {
+ return this._tipoCellaTableAdapter.Connection;
}
return null;
}
@@ -9358,10 +9190,7 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
if ((this._celleTableAdapter != null)) {
count = (count + 1);
}
- if ((this._celle2BlocchiTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._mappeTableAdapter != null)) {
+ if ((this._tipoCellaTableAdapter != null)) {
count = (count + 1);
}
return count;
@@ -9383,15 +9212,6 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._mappeTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.Mappe.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._mappeTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._blocchiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -9419,21 +9239,12 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._posizioneUdcStoricoTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._tipoCellaTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._celle2BlocchiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.Celle2Blocchi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._celle2BlocchiTableAdapter.Update(updatedRows));
+ result = (result + this._tipoCellaTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -9446,6 +9257,15 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._posizioneUdcStoricoTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -9463,14 +9283,6 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allAddedRows.AddRange(addedRows);
}
}
- if ((this._mappeTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.Mappe.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._mappeTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._blocchiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Blocchi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -9495,19 +9307,11 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allAddedRows.AddRange(addedRows);
}
}
- if ((this._posizioneUdcStoricoTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._tipoCellaTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._celle2BlocchiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.Celle2Blocchi.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._celle2BlocchiTableAdapter.Update(addedRows));
+ result = (result + this._tipoCellaTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -9519,6 +9323,14 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._posizioneUdcStoricoTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -9528,6 +9340,14 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_magazzino dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._posizioneUdcStoricoTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._posizioneUdcStoricoTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -9536,19 +9356,11 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._celle2BlocchiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.Celle2Blocchi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._tipoCellaTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._celle2BlocchiTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._posizioneUdcStoricoTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(deletedRows));
+ result = (result + this._tipoCellaTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -9576,14 +9388,6 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._mappeTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.Mappe.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._mappeTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._anagMagTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagMag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -9659,13 +9463,8 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._celle2BlocchiTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._celle2BlocchiTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
- if (((this._mappeTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._mappeTableAdapter.Connection) == false))) {
+ if (((this._tipoCellaTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._tipoCellaTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
@@ -9755,22 +9554,13 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
adaptersWithAcceptChangesDuringUpdate.Add(this._celleTableAdapter.Adapter);
}
}
- if ((this._celle2BlocchiTableAdapter != null)) {
- revertConnections.Add(this._celle2BlocchiTableAdapter, this._celle2BlocchiTableAdapter.Connection);
- this._celle2BlocchiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._celle2BlocchiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._celle2BlocchiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._celle2BlocchiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._celle2BlocchiTableAdapter.Adapter);
- }
- }
- if ((this._mappeTableAdapter != null)) {
- revertConnections.Add(this._mappeTableAdapter, this._mappeTableAdapter.Connection);
- this._mappeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._mappeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._mappeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._mappeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._mappeTableAdapter.Adapter);
+ if ((this._tipoCellaTableAdapter != null)) {
+ revertConnections.Add(this._tipoCellaTableAdapter, this._tipoCellaTableAdapter.Connection);
+ this._tipoCellaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._tipoCellaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._tipoCellaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._tipoCellaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._tipoCellaTableAdapter.Adapter);
}
}
//
@@ -9855,13 +9645,9 @@ SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa
this._celleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._celleTableAdapter]));
this._celleTableAdapter.Transaction = null;
}
- if ((this._celle2BlocchiTableAdapter != null)) {
- this._celle2BlocchiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._celle2BlocchiTableAdapter]));
- this._celle2BlocchiTableAdapter.Transaction = null;
- }
- if ((this._mappeTableAdapter != null)) {
- this._mappeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mappeTableAdapter]));
- this._mappeTableAdapter.Transaction = null;
+ if ((this._tipoCellaTableAdapter != null)) {
+ this._tipoCellaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tipoCellaTableAdapter]));
+ this._tipoCellaTableAdapter.Transaction = null;
}
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd
index ff64b3d2..9aa40f8c 100644
--- a/GMW/GMW_data/DS_magazzino.xsd
+++ b/GMW/GMW_data/DS_magazzino.xsd
@@ -455,10 +455,13 @@ SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE
- DELETE FROM [dbo].[Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)))
+ DELETE FROM [dbo].[Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ((@IsNull_CodMag = 1 AND [CodMag] IS NULL) OR ([CodMag] = @Original_CodMag)) AND ((@IsNull_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)))
-
+
+
+
+
@@ -474,11 +477,11 @@ SELECT UDC, IdxCella, CodCS, DataInizio, DataFine FROM PosizioneUdcStorico WHERE
- INSERT INTO [dbo].[Blocchi] ([IdxBlocco], [IdxMappa], [CodBlocco], [DescBlocco], [NumX], [NumY], [NumZ]) VALUES (@IdxBlocco, @IdxMappa, @CodBlocco, @DescBlocco, @NumX, @NumY, @NumZ);
-SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)
+ INSERT INTO [dbo].[Blocchi] ([CodMag], [CodCS], [CodBlocco], [DescBlocco], [NumX], [NumY], [NumZ]) VALUES (@CodMag, @CodCS, @CodBlocco, @DescBlocco, @NumX, @NumY, @NumZ);
+SELECT IdxBlocco, CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = SCOPE_IDENTITY())
-
-
+
+
@@ -489,24 +492,27 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
- SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM dbo.Blocchi
+ SELECT IdxBlocco, CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM dbo.Blocchi
- UPDATE [dbo].[Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxMappa] = @IdxMappa, [CodBlocco] = @CodBlocco, [DescBlocco] = @DescBlocco, [NumX] = @NumX, [NumY] = @NumY, [NumZ] = @NumZ WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxMappa] = @Original_IdxMappa) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)));
-SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)
+ UPDATE [dbo].[Blocchi] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [CodBlocco] = @CodBlocco, [DescBlocco] = @DescBlocco, [NumX] = @NumX, [NumY] = @NumY, [NumZ] = @NumZ WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ((@IsNull_CodMag = 1 AND [CodMag] IS NULL) OR ([CodMag] = @Original_CodMag)) AND ((@IsNull_CodCS = 1 AND [CodCS] IS NULL) OR ([CodCS] = @Original_CodCS)) AND ((@IsNull_CodBlocco = 1 AND [CodBlocco] IS NULL) OR ([CodBlocco] = @Original_CodBlocco)) AND ((@IsNull_DescBlocco = 1 AND [DescBlocco] IS NULL) OR ([DescBlocco] = @Original_DescBlocco)) AND ((@IsNull_NumX = 1 AND [NumX] IS NULL) OR ([NumX] = @Original_NumX)) AND ((@IsNull_NumY = 1 AND [NumY] IS NULL) OR ([NumY] = @Original_NumY)) AND ((@IsNull_NumZ = 1 AND [NumZ] IS NULL) OR ([NumZ] = @Original_NumZ)));
+SELECT IdxBlocco, CodMag, CodCS, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi WHERE (IdxBlocco = @IdxBlocco)
-
-
+
+
-
+
+
+
+
@@ -517,6 +523,7 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
+
@@ -524,78 +531,97 @@ SELECT IdxBlocco, IdxMappa, CodBlocco, DescBlocco, NumX, NumY, NumZ FROM Blocchi
-
+
+
-
-
-
-
- dbo.stp_blocchiGetByCodMappa
-
-
-
-
-
-
-
-
+
- DELETE FROM [dbo].[Celle] WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)))
+ DELETE FROM [dbo].[Celle] WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxTipoCella = 1 AND [IdxTipoCella] IS NULL) OR ([IdxTipoCella] = @Original_IdxTipoCella)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Attiva = 1 AND [Attiva] IS NULL) OR ([Attiva] = @Original_Attiva)) AND ((@IsNull_IdxBlocco = 1 AND [IdxBlocco] IS NULL) OR ([IdxBlocco] = @Original_IdxBlocco)) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)))
-
-
+
+
+
+
+
+
+
+
+
+
+
+
- INSERT INTO [dbo].[Celle] ([CodCS], [CodCella], [Capacita], [Descrizione]) VALUES (@CodCS, @CodCella, @Capacita, @Descrizione);
-SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCella = SCOPE_IDENTITY())
+ INSERT INTO [dbo].[Celle] ([CodCS], [CodCella], [IdxTipoCella], [Descrizione], [Attiva], [IdxBlocco], [X], [Y], [Z]) VALUES (@CodCS, @CodCella, @IdxTipoCella, @Descrizione, @Attiva, @IdxBlocco, @X, @Y, @Z);
+SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X, Y, Z FROM Celle WHERE (IdxCella = SCOPE_IDENTITY())
-
+
+
+
+
+
+
- SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM dbo.Celle
+ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X, Y, Z FROM dbo.Celle
- UPDATE [dbo].[Celle] SET [CodCS] = @CodCS, [CodCella] = @CodCella, [Capacita] = @Capacita, [Descrizione] = @Descrizione WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_Capacita = 1 AND [Capacita] IS NULL) OR ([Capacita] = @Original_Capacita)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));
-SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCella = @IdxCella)
+ UPDATE [dbo].[Celle] SET [CodCS] = @CodCS, [CodCella] = @CodCella, [IdxTipoCella] = @IdxTipoCella, [Descrizione] = @Descrizione, [Attiva] = @Attiva, [IdxBlocco] = @IdxBlocco, [X] = @X, [Y] = @Y, [Z] = @Z WHERE (([IdxCella] = @Original_IdxCella) AND ([CodCS] = @Original_CodCS) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxTipoCella = 1 AND [IdxTipoCella] IS NULL) OR ([IdxTipoCella] = @Original_IdxTipoCella)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Attiva = 1 AND [Attiva] IS NULL) OR ([Attiva] = @Original_Attiva)) AND ((@IsNull_IdxBlocco = 1 AND [IdxBlocco] IS NULL) OR ([IdxBlocco] = @Original_IdxBlocco)) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)));
+SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, IdxBlocco, X, Y, Z FROM Celle WHERE (IdxCella = @IdxCella)
-
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -606,185 +632,105 @@ SELECT IdxCella, CodCS, CodCella, Capacita, Descrizione FROM Celle WHERE (IdxCel
-
+
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[Celle2Blocchi] WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[Celle2Blocchi] ([IdxBlocco], [IdxCella], [X], [Y], [Z]) VALUES (@IdxBlocco, @IdxCella, @X, @Y, @Z);
-SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)
-
-
-
-
-
-
-
-
-
-
-
- SELECT IdxBlocco, IdxCella, X, Y, Z FROM dbo.Celle2Blocchi
-
-
-
-
-
- UPDATE [dbo].[Celle2Blocchi] SET [IdxBlocco] = @IdxBlocco, [IdxCella] = @IdxCella, [X] = @X, [Y] = @Y, [Z] = @Z WHERE (([IdxBlocco] = @Original_IdxBlocco) AND ([IdxCella] = @Original_IdxCella) AND ((@IsNull_X = 1 AND [X] IS NULL) OR ([X] = @Original_X)) AND ((@IsNull_Y = 1 AND [Y] IS NULL) OR ([Y] = @Original_Y)) AND ((@IsNull_Z = 1 AND [Z] IS NULL) OR ([Z] = @Original_Z)));
-SELECT IdxBlocco, IdxCella, X, Y, Z FROM Celle2Blocchi WHERE (IdxBlocco = @IdxBlocco) AND (IdxCella = @IdxCella)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
-
+
- DELETE FROM [dbo].[Mappe] WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original_DescMappa))
+ DELETE FROM [dbo].[TipoCella] WHERE (([IdxTipoCella] = @Original_IdxTipoCella) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([Quantita] = @Original_Quantita) AND ([Capienza] = @Original_Capienza) AND ((@IsNull_Max_X = 1 AND [Max_X] IS NULL) OR ([Max_X] = @Original_Max_X)) AND ((@IsNull_Max_Y = 1 AND [Max_Y] IS NULL) OR ([Max_Y] = @Original_Max_Y)) AND ((@IsNull_Max_Z = 1 AND [Max_Z] IS NULL) OR ([Max_Z] = @Original_Max_Z)) AND ((@IsNull_Max_Kg = 1 AND [Max_Kg] IS NULL) OR ([Max_Kg] = @Original_Max_Kg)))
-
+
-
+
+
+
+
+
+
+
+
+
+
- INSERT INTO [dbo].[Mappe] ([CodMag], [CodCS], [DescMappa]) VALUES (@CodMag, @CodCS, @DescMappa);
-SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = SCOPE_IDENTITY())
+ INSERT INTO [dbo].[TipoCella] ([CodMag], [CodCS], [Quantita], [Capienza], [Max_X], [Max_Y], [Max_Z], [Max_Kg]) VALUES (@CodMag, @CodCS, @Quantita, @Capienza, @Max_X, @Max_Y, @Max_Z, @Max_Kg);
+SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_Kg FROM TipoCella WHERE (IdxTipoCella = SCOPE_IDENTITY())
-
+
+
+
+
+
+
-
- SELECT IdxMappa, CodMag, CodCS, DescMappa FROM dbo.Mappe
+
+ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_Kg FROM dbo.TipoCella
- UPDATE [dbo].[Mappe] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMappa] = @DescMappa WHERE (([IdxMappa] = @Original_IdxMappa) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([DescMappa] = @Original_DescMappa));
-SELECT IdxMappa, CodMag, CodCS, DescMappa FROM Mappe WHERE (IdxMappa = @IdxMappa)
+ UPDATE [dbo].[TipoCella] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [Quantita] = @Quantita, [Capienza] = @Capienza, [Max_X] = @Max_X, [Max_Y] = @Max_Y, [Max_Z] = @Max_Z, [Max_Kg] = @Max_Kg WHERE (([IdxTipoCella] = @Original_IdxTipoCella) AND ([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ([Quantita] = @Original_Quantita) AND ([Capienza] = @Original_Capienza) AND ((@IsNull_Max_X = 1 AND [Max_X] IS NULL) OR ([Max_X] = @Original_Max_X)) AND ((@IsNull_Max_Y = 1 AND [Max_Y] IS NULL) OR ([Max_Y] = @Original_Max_Y)) AND ((@IsNull_Max_Z = 1 AND [Max_Z] IS NULL) OR ([Max_Z] = @Original_Max_Z)) AND ((@IsNull_Max_Kg = 1 AND [Max_Kg] IS NULL) OR ([Max_Kg] = @Original_Max_Kg)));
+SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max_Kg FROM TipoCella WHERE (IdxTipoCella = @IdxTipoCella)
-
-
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
+
+
+
+
+
-
-
-
-
- DELETE FROM [dbo].[Mappe]
-WHERE ([IdxMappa] = @Original_IdxMappa)
-
-
-
-
-
-
-
-
-
- SELECT CodCS, CodMag, DescMappa, IdxMappa FROM Mappe WHERE (CodCS = @CodCS)
-
-
-
-
-
-
-
-
-
- dbo.stp_mappeGetByCodMag
-
-
-
-
-
-
-
-
-
-
-
- UPDATE [dbo].[Mappe]
-SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMappa] = @DescMappa
-WHERE ([IdxMappa] = @Original_IdxMappa)
-
-
-
-
-
-
-
-
-
-
+
@@ -987,96 +933,102 @@ WHERE ([IdxMappa] = @Original_IdxMappa)
-
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1108,25 +1060,19 @@ WHERE ([IdxMappa] = @Original_IdxMappa)
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss
index c247bb6b..cd9a5dbd 100644
--- a/GMW/GMW_data/DS_magazzino.xss
+++ b/GMW/GMW_data/DS_magazzino.xss
@@ -6,17 +6,16 @@
-->
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
302
@@ -28,7 +27,7 @@
-
+
302
@@ -40,63 +39,51 @@
-
+
- 825
- 633
+ 1116
+ 582
+
+
+ 1116
+ 649
+
+
+
+
+
+
+ 723
+ 598
648
- 633
+ 598
-
+
- 901
- 237
+ 1014
+ 738
- 901
- 279
+ 895
+ 738
-
+
- 911
- 550
+ 1108
+ 372
- 911
- 451
-
-
-
-
-
-
- 769
- 76
-
-
- 828
- 76
-
-
-
-
-
-
- 386
- 81
-
-
- 469
- 81
+ 1108
+ 288
diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs
index 862ebf09..a092945b 100644
--- a/GMW/GMW_data/MagClass.cs
+++ b/GMW/GMW_data/MagClass.cs
@@ -14,7 +14,6 @@ namespace GMW_data
#region area table adapters
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
- public DS_magazzinoTableAdapters.MappeTableAdapter taMappe;
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
@@ -28,7 +27,6 @@ namespace GMW_data
protected void initTA()
{
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
- taMappe = new GMW_data.DS_magazzinoTableAdapters.MappeTableAdapter();
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
taCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
@@ -42,7 +40,6 @@ namespace GMW_data
{
// connections del db
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
- taMappe.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index 7d817364..14e01869 100644
Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/bin/Debug/SteamWare.dll b/GMW/GMW_data/bin/Debug/SteamWare.dll
index 313b0c0d..2843a925 100644
Binary files a/GMW/GMW_data/bin/Debug/SteamWare.dll and b/GMW/GMW_data/bin/Debug/SteamWare.dll differ
diff --git a/GMW/GMW_data/bin/Debug/SteamWare.xml b/GMW/GMW_data/bin/Debug/SteamWare.xml
index 6809ec2a..b329ff6c 100644
--- a/GMW/GMW_data/bin/Debug/SteamWare.xml
+++ b/GMW/GMW_data/bin/Debug/SteamWare.xml
@@ -4,5 +4,3153 @@
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 gestione parametri deviceper stampa
+
+
+
+
+ creazione oggetto parametri per stampa
+
+
+
+
+
+
+
+
+
+
+
+ formato output
+
+
+
+
+ altezza
+
+
+
+
+ larghezza
+
+
+
+
+ margine Sx
+
+
+
+
+ margine Dx
+
+
+
+
+ margine Top
+
+
+
+
+ margine Bottom
+
+
+
+
+ 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/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index 7d817364..14e01869 100644
Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache
index 7eb8ced7..b74e20fb 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_Utility.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll
index 6bc330d4..4cb87def 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll differ
diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll
index 333006eb..9dcd1778 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ