diff --git a/GMW/GMW/Default.aspx b/GMW/GMW/Default.aspx
index e2ff5ba2..605c2337 100644
--- a/GMW/GMW/Default.aspx
+++ b/GMW/GMW/Default.aspx
@@ -1,14 +1,16 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GMW._Default" %>
+<%@ Page Language="C#" AutoEventWireup="true" Inherits="Default" Codebehind="Default.aspx.cs" %>
-
+
+
- Untitled Page
+ SteamWare s.r.l.
+
diff --git a/GMW/GMW/Default.aspx.cs b/GMW/GMW/Default.aspx.cs
index 124d0e07..4fb48c0b 100644
--- a/GMW/GMW/Default.aspx.cs
+++ b/GMW/GMW/Default.aspx.cs
@@ -9,13 +9,10 @@ using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
-namespace GMW
+public partial class Default : System.Web.UI.Page
{
- public partial class _Default : System.Web.UI.Page
+ protected void Page_Load(object sender, EventArgs e)
{
-
- protected void Page_Load(object sender, EventArgs e)
- {
- }
+ Response.Redirect("./login.aspx");
}
}
diff --git a/GMW/GMW/Default.aspx.designer.cs b/GMW/GMW/Default.aspx.designer.cs
index f2fc9b0a..b48036df 100644
--- a/GMW/GMW/Default.aspx.designer.cs
+++ b/GMW/GMW/Default.aspx.designer.cs
@@ -1,4 +1,4 @@
-//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
@@ -8,27 +8,16 @@
//
//------------------------------------------------------------------------------
-namespace GMW {
+
+
+public partial class Default {
-
- public partial class _Default {
-
- ///
- /// form1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// ScriptManager1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.ScriptManager ScriptManager1;
- }
+ ///
+ /// form1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
}
diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj
index 6fbbd8fb..ea9d8c50 100644
--- a/GMW/GMW/GMW.csproj
+++ b/GMW/GMW/GMW.csproj
@@ -67,18 +67,38 @@
-
-
+
+ anagMagazzini.aspx
ASPXCodeBehind
+
+
+ anagMagazzini.aspx
+
+
Default.aspx
+ ASPXCodeBehind
Default.aspx
+
+ login.aspx
+ ASPXCodeBehind
+
+
+ login.aspx
+
+
+ menu.aspx
+ ASPXCodeBehind
+
+
+ menu.aspx
+
Test.aspx
@@ -99,6 +119,13 @@
+
+ vocabolario.aspx
+ ASPXCodeBehind
+
+
+ vocabolario.aspx
+
Ajax.master
ASPXCodeBehind
@@ -148,6 +175,41 @@
MasterAjax.master
+
+ mod_anagMagazzini.ascx
+ ASPXCodeBehind
+
+
+ mod_anagMagazzini.ascx
+
+
+ mod_chLang.ascx
+ ASPXCodeBehind
+
+
+ mod_chLang.ascx
+
+
+ mod_lemmiVocab.ascx
+ ASPXCodeBehind
+
+
+ mod_lemmiVocab.ascx
+
+
+ mod_login.ascx
+ ASPXCodeBehind
+
+
+ mod_login.ascx
+
+
+ mod_main_help.ascx
+ ASPXCodeBehind
+
+
+ mod_main_help.ascx
+
mod_menuBottom.ascx
ASPXCodeBehind
@@ -190,6 +252,20 @@
mod_ricercaGenerica.ascx
+
+ mod_selettore_ajax.ascx
+ ASPXCodeBehind
+
+
+ mod_selettore_ajax.ascx
+
+
+ mod_vocabolario.ascx
+ ASPXCodeBehind
+
+
+ mod_vocabolario.ascx
+
bilance.asmx
Component
@@ -221,8 +297,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -230,12 +422,22 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/GMW/GMW/Style.css b/GMW/GMW/Style.css
index 57110689..19c4250d 100644
--- a/GMW/GMW/Style.css
+++ b/GMW/GMW/Style.css
@@ -396,7 +396,7 @@
.topTitle
{
- color: #663300;
+ color: White;
font-family: Verdana;
font-size: 26px;
font-weight: bold;
@@ -404,7 +404,7 @@
background-repeat: repeat-x;
background-position: 0% 0%;
background-attachment: scroll;
- background-image: url(images/orangeGrad32.png);
+ background-image: url(images/bluGrad32.png);
}
.ShadowText
{
@@ -496,7 +496,7 @@
}
.barraTitolo
{
- background-color: #FF7A00; /* #4C90FF; */
+ background-color: #4C90FF;
vertical-align: middle;
height: 20pt;
text-align: center;
diff --git a/GMW/GMW/Test.aspx b/GMW/GMW/Test.aspx
index 10837e40..7c6bacd3 100644
--- a/GMW/GMW/Test.aspx
+++ b/GMW/GMW/Test.aspx
@@ -1,4 +1,4 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="GMW.Test" %>
+<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Ajax.master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="GMW.Test" %>
diff --git a/GMW/GMW/Web.config b/GMW/GMW/Web.config
index 33a0dec5..5794f842 100644
--- a/GMW/GMW/Web.config
+++ b/GMW/GMW/Web.config
@@ -82,14 +82,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -107,6 +123,12 @@
+
+
+
+
+
+
diff --git a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx
new file mode 100644
index 00000000..d684c99c
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx
@@ -0,0 +1,124 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagMagazzini.ascx.cs"
+ Inherits="GMW.WebUserControls.mod_anagMagazzini" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs
new file mode 100644
index 00000000..c6821a49
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.cs
@@ -0,0 +1,382 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+using GMW_data;
+
+namespace GMW.WebUserControls
+{
+ public partial class mod_anagMagazzini : SteamWare.ApplicationUserControl
+ {
+ #region area da NON modificare
+
+ #region area protected
+
+ protected string _idxGridView;
+ protected string _idxGridViewExt;
+ protected string _tabCache;
+ protected bool _showNewBtn = false;
+
+ ///
+ /// imposta errore non cancellabilità per record correlati
+ ///
+ protected void setNoDeletableErrorMessage()
+ {
+ // mostro avviso di non cancellabilità ...
+ lblWarning.Text = traduci("notDeletable_hasChild");
+ lblWarning.Visible = true;
+ grView.DataBind();
+ }
+ ///
+ /// esegue cancellazioen record
+ ///
+ protected void doDelete()
+ {
+ // posso cancellare...
+ lblWarning.Visible = false;
+ ods.Delete();
+ }
+ ///
+ /// Valida la cancellazione per i dati mostrati dal gridView
+ /// richiede sia preventivamentedichiarato _idxGridView
+ ///
+ ///
+ ///
+ protected virtual void validaDelete(object sender, ObjectDataSourceMethodEventArgs e)
+ {
+ int idx = Convert.ToInt32(e.InputParameters[string.Format("Original_{0}", _idxGridView)]);
+ if (objIsNotRelated(idx))
+ {
+ // annullo cancellazione...
+ e.Cancel = true;
+ // seleziono record... metto in session valore idx e poi ridisegno...
+ SteamWare.memLayer.ML.setSessionVal(_idxGridView, idx);
+ setNoDeletableErrorMessage();
+ }
+ else
+ {
+ doDelete();
+ }
+ }
+
+ ///
+ /// recupera i dati di un nuovo record contenuti nel footer di un gridView;
+ /// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
+ ///
+ ///
+ ///
+ protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
+ {
+ //recupero la riga footer...
+ DataColumnCollection colonne = colonneObj();
+ string nomeCol;
+ string tipoColonna = "";
+ foreach (DataColumn colonna in colonne)
+ {
+ nomeCol = colonna.ColumnName;
+ // cerco un textbox o quello che sia...
+ if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
+ {
+ tipoColonna = "textBox";
+ }
+ else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
+ {
+ tipoColonna = "dropDownList";
+ }
+ else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
+ {
+ tipoColonna = "checkBox";
+ }
+ else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
+ {
+ tipoColonna = "selAjax";
+ }
+ // in base al tipo salvo negli inputparameters dell'ODS
+ switch (tipoColonna)
+ {
+ case "textBox":
+ e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
+ break;
+ case "dropDownList":
+ e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
+ break;
+ case "checkBox":
+ e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked;
+ break;
+ case "selAjax":
+ e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
+ break;
+ default:
+ break;
+ }
+ tipoColonna = "";
+ }
+ }
+ ///
+ /// inserisce nuovo valore da footer
+ ///
+ ///
+ ///
+ protected void lblIns_click(object sender, EventArgs e)
+ {
+ // click su inserimento, chiamo il metodo insert dell'ObjectDataSource
+ ods.Insert();
+ SteamWare.memLayer.ML.emptyCacheVal(_tabCache);
+ }
+ ///
+ /// annulla inserimento nuovo valore da footer
+ ///
+ ///
+ ///
+ protected void lblCanc_click(object sender, EventArgs e)
+ {
+ // annullo inserimento: nascondo footer, bind controlli...
+ grView.FooterRow.Visible = false;
+ }
+
+ ///
+ /// aggiorna controlli datagrid e numero righe in pagina
+ ///
+ protected override void aggiornaControlliDataGL()
+ {
+ base.aggiornaControlliDataGL();
+ grView.PageSize = _righeDataGridMed;
+ }
+ ///
+ /// traduce gli header delle colonne
+ ///
+ ///
+ ///
+ protected void grView_DataBound(object sender, EventArgs e)
+ {
+ if (grView.Rows.Count > 0)
+ {
+ LinkButton lb;
+ // aggiorno gli headers
+ foreach (TableCell cella in grView.HeaderRow.Cells)
+ {
+ try
+ {
+ lb = (LinkButton)cella.Controls[0];
+ lb.Text = traduci(lb.Text);
+ }
+ catch
+ { }
+ }
+ int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
+ lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+ ///
+ /// gestione evento richeista nuovo valore (mostra footer, ...)
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ // reset selezione...
+ resetSelezione();
+ // mostro il footer oppure la riga dei dettagli x nuovo...
+ if (grView.FooterRow != null)
+ {
+ grView.FooterRow.Visible = true;
+ }
+ // sollevo evento nuovo valore...
+ if (eh_nuovoValore != null)
+ {
+ eh_nuovoValore(this, new EventArgs());
+ }
+ }
+ ///
+ /// reset della selezione
+ ///
+ ///
+ ///
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ resetSelezione();
+ }
+ ///
+ /// gestione cambio selezione valore
+ ///
+ ///
+ ///
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // salvo in session il valore selezionato...
+ SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
+ // sollevo evento nuovo valore...
+ if (eh_selValore != null)
+ {
+ eh_selValore(this, new EventArgs());
+ }
+ }
+ ///
+ /// resetta la selezione dei valori in caso di modifiche su altri controlli
+ ///
+ public void resetSelezione()
+ {
+ SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ lblWarning.Visible = false;
+ if (eh_resetSelezione != null)
+ {
+ eh_resetSelezione(this, new EventArgs());
+ }
+ }
+
+ ///
+ /// collega i controlli
+ ///
+ protected override void bindControlli()
+ {
+ base.bindControlli();
+ caricaTabelle();
+ }
+
+ #endregion
+
+ #region gestione eventi
+
+ public event EventHandler eh_resetSelezione;
+ public event EventHandler eh_nuovoValore;
+ public event EventHandler eh_selValore;
+
+ #endregion
+
+ #region public
+
+ ///
+ /// definisce visibilità btnNew
+ ///
+ public bool showNewBtn
+ {
+ get
+ {
+ return _showNewBtn;
+ }
+ set
+ {
+ _showNewBtn = value;
+ }
+ }
+ ///
+ /// effettua update del modulo
+ ///
+ public void doUpdate()
+ {
+ resetSelezione();
+ }
+
+
+ #endregion
+
+ #endregion
+
+ #region area codice variabile
+
+
+ ///
+ /// carico le tabelle
+ ///
+ private void caricaTabelle()
+ {
+ }
+ ///
+ /// verifica complessiva non esistenza record child
+ ///
+ ///
+ ///
+ protected bool objIsNotRelated(object idxObj)
+ {
+ return MagClass.magazzino.taAnagMag.getByCodMag(memLayer.ML.StringSessionObj("CodCS"), idxObj.ToString()).Rows.Count == 0;
+ }
+ ///
+ /// elenco colonne del datagrid
+ ///
+ ///
+ protected DataColumnCollection colonneObj()
+ {
+ DS_magazzino.AnagMagDataTable tabella = new DS_magazzino.AnagMagDataTable();
+ DataColumnCollection colonne = tabella.Columns;
+ return colonne;
+ }
+#if false
+
+ ///
+ /// inizializzazione valori di default
+ ///
+ ///
+ protected override void OnInit(EventArgs e)
+ {
+ base.OnInit(e);
+ _idxGridView = "idxMaker";
+ _tabCache = "tabMaker";
+ }
+ ///
+ /// setta selected alla riga il cui valore key è in session
+ ///
+ ///
+ ///
+ protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
+ {
+ // se riga di dati...
+ if (e.Row.RowType == DataControlRowType.DataRow)
+ {
+ // ottengo la riga tipizzata...
+ System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
+ GTD_data.DS_applicazione.AnagMakerRow riga = (GTD_data.DS_applicazione.AnagMakerRow)_drv.Row;
+ if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.idxMaker.ToString())
+ {
+ grView.SelectedIndex = e.Row.RowIndex;
+ }
+ }
+ }
+#endif
+ ///
+ /// svuoto da cache post update
+ ///
+ ///
+ ///
+ protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
+ {
+ //// svuoto da cache...
+ //SteamWare.memLayer.ML.emptyCacheVal("_tabAnagMaker");
+ //SteamWare.memLayer.ML.emptyCacheVal("_tabSelMakers");
+ }
+
+ ///
+ /// determina se sia eliminabile il record (=non usato)
+ ///
+ ///
+ ///
+ public bool delEnabled(object idxMaker)
+ {
+ bool answ = isWritable();
+ // solo se ha diritti scrittura controllo
+ if (answ)
+ {
+ // controllo se ci sono postazioni correlate...
+ if (MagClass.magazzino.taAnagCelle.getByCodMag(memLayer.ML.StringSessionObj("CodCS"), idxMaker.ToString()).Rows.Count > 0)
+ {
+ answ = false;
+ }
+ }
+ return answ;
+ }
+
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.designer.cs
new file mode 100644
index 00000000..244c1e65
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_anagMagazzini.ascx.designer.cs
@@ -0,0 +1,52 @@
+//------------------------------------------------------------------------------
+//
+// 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_anagMagazzini {
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+
+ ///
+ /// lblNumRec control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumRec;
+
+ ///
+ /// lblWarning control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWarning;
+ }
+}
diff --git a/GMW/GMW/WebUserControls/mod_chLang.ascx b/GMW/GMW/WebUserControls/mod_chLang.ascx
new file mode 100644
index 00000000..5e0d543d
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_chLang.ascx
@@ -0,0 +1,28 @@
+<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_chLang" Codebehind="mod_chLang.ascx.cs" %>
+
+
diff --git a/GMW/GMW/WebUserControls/mod_chLang.ascx.cs b/GMW/GMW/WebUserControls/mod_chLang.ascx.cs
new file mode 100644
index 00000000..2ac1f49c
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_chLang.ascx.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_chLang : ApplicationUserControl
+{
+ protected void dataListLingue_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // impongo ad oggetto user la lingua selezionata...
+ user_std.UtSn.lingua = dataListLingue.SelectedValue.ToString();
+ // salvo richiesta udpate in sessione...
+ SteamWare.memLayer.ML.setSessionVal("doUpdateNow","true");
+ user_std.UtSn.ricaricaMappaSito();
+ Response.Redirect(_paginaCorrente);
+ }
+
+ protected override void traduciObj()
+ {
+ lblScegli.Text = traduci("scegliLingua");
+ }
+
+ public string formattaLingua(object breve, object lungo)
+ {
+ return string.Format("{0} - {1}", breve, lungo);
+ }
+}
diff --git a/GMW/GMW/WebUserControls/mod_chLang.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_chLang.ascx.designer.cs
new file mode 100644
index 00000000..784d89af
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_chLang.ascx.designer.cs
@@ -0,0 +1,50 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class mod_chLang {
+
+ ///
+ /// table1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTable table1;
+
+ ///
+ /// lblScegli control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblScegli;
+
+ ///
+ /// dataListLingue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DataList dataListLingue;
+
+ ///
+ /// ods_lingueApp control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods_lingueApp;
+}
diff --git a/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx b/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx
new file mode 100644
index 00000000..cf252085
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx
@@ -0,0 +1,53 @@
+<%@ Control Language="C#" AutoEventWireup="true"
+ Inherits="mod_lemmiVocab" Codebehind="mod_lemmiVocab.ascx.cs" %>
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
diff --git a/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx.cs b/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx.cs
new file mode 100644
index 00000000..00ff1d3f
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx.cs
@@ -0,0 +1,57 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_lemmiVocab : ApplicationUserControl
+{
+ #region protected
+
+ protected override void aggiornaControlliDataGL()
+ {
+ base.aggiornaControlliDataGL();
+ grView.PageSize = _righeDataGridAnagr;
+ }
+
+ protected void grView_DataBound(object sender, EventArgs e)
+ {
+ if (grView.Rows.Count > 0)
+ {
+ LinkButton lb;
+ // aggiorno gli headers
+ foreach (TableCell cella in grView.HeaderRow.Cells)
+ {
+ try
+ {
+ lb = (LinkButton)cella.Controls[0];
+ lb.Text = traduci(lb.Text);
+ }
+ catch
+ { }
+ }
+ int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
+ lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+ ///
+ /// aggiorna i dati mostrati
+ ///
+ public void doUpdate()
+ {
+ ods.DataBind();
+ grView.DataBind();
+ }
+
+ #endregion
+}
diff --git a/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx.designer.cs
new file mode 100644
index 00000000..b43d273a
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_lemmiVocab.ascx.designer.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class mod_lemmiVocab {
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// lblNumRec control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumRec;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+}
diff --git a/GMW/GMW/WebUserControls/mod_login.ascx b/GMW/GMW/WebUserControls/mod_login.ascx
new file mode 100644
index 00000000..b8b4c0fd
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_login.ascx
@@ -0,0 +1,54 @@
+<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_login" Codebehind="mod_login.ascx.cs" %>
+
+
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+
diff --git a/GMW/GMW/WebUserControls/mod_login.ascx.cs b/GMW/GMW/WebUserControls/mod_login.ascx.cs
new file mode 100644
index 00000000..e47e5f89
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_login.ascx.cs
@@ -0,0 +1,244 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+///
+/// classe gestione login e forzatura login
+///
+public partial class mod_login : ApplicationUserControl
+{
+ #region area protected/private
+
+ #region area proprietà
+
+ private SteamWare.loginMode _isForceUser = SteamWare.loginMode.normale;
+
+ #endregion
+
+ #region area metodi
+
+ ///
+ /// imposta la modalità di login tra normale / forceUser
+ ///
+ private void setLoginMode()
+ {
+ if (_isForceUser == SteamWare.loginMode.forceUser)
+ {
+ pnlForceUser.Visible = true;
+ }
+ else
+ {
+ pnlForceUser.Visible = false;
+ }
+ }
+
+ protected override void traduciObj()
+ {
+ lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
+ lblUser.Text = user_std.UtSn.Traduci("lblUser");
+ lblDominio.Text = user_std.UtSn.Traduci("lblDominio");
+ lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente");
+ btnOk.Text = user_std.UtSn.Traduci("btnCommit");
+ }
+
+ ///
+ /// prova a verificare se l'utente sia ok x AD credentials
+ ///
+ private void AdLogin()
+ {
+ lblMessage.Text = "User not authenticated...";
+ if (Page.User.Identity.IsAuthenticated)
+ {
+ //recupera user windows se c'è...
+ string ad_name = Page.User.Identity.Name;
+ string delimStr = "\\";
+ char[] delimiter = delimStr.ToCharArray();
+ string[] dom_user = ad_name.Split(delimiter, 2);
+ // passo al controllo di verifica ADuserOk...
+ user_std _utente = new user_std();
+ if (_utente.ADuserOk(dom_user[0], dom_user[1]))
+ {
+ bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
+ if (fatto)
+ {
+ SteamWare.logger.lg.scriviLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente", _utente.CognomeNome, _utente.userNameAD), SteamWare.tipoLog.INFO);
+ if (Login_ok != null)
+ {
+ Login_ok(this, new EventArgs());
+ }
+ }
+ else
+ {
+ lblMessage.Text = String.Format("{0}
There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
+ SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR);
+ if (Login_Error != null)
+ {
+ Login_Error(this, new EventArgs());
+ }
+ }
+ }
+ else
+ {
+ if (memLayer.ML.confReadBool("autoEnrollEnabled"))
+ {
+ // rimando al modulo di auto enroll...
+ Response.Redirect("autoEnroll.aspx");
+ }
+ else
+ {
+ lblMessage.Text = String.Format("{0}
user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
+ SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING);
+ if (Login_Error != null)
+ {
+ Login_Error(this, new EventArgs());
+ }
+ }
+ }
+ }
+ else
+ {
+ lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth");
+ SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING);
+ if (Login_Error != null)
+ {
+ Login_Error(this, new EventArgs());
+ }
+ }
+ }
+
+ ///
+ /// effettua verifiche e se concesso permette di forzare l'accesso utente
+ ///
+ private void ForceUserIdentity()
+ {
+ if (Page.User.Identity.IsAuthenticated)
+ {
+ bool _allowForceUser = false;
+ try
+ {
+ _allowForceUser = SteamWare.memLayer.ML.confReadBool("_allowForceUser");
+ }
+ catch
+ {
+ _allowForceUser = false;
+ }
+ if (_allowForceUser)
+ {
+ if (authKey.Text == "forzaInter") // verifica passphrase...
+ {
+ user_std _utente = new user_std();
+ user_std.UtSn.isForcedUser = true;
+ bool fatto = _utente.startUpUtente(dominio.Text, user.Text);
+ if (fatto)
+ {
+ string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
+ SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
+ if (Login_ok != null)
+ {
+ Login_ok(this, new EventArgs());
+ }
+ }
+ }
+ else
+ {
+ lblMessage.Text = String.Format("{0}
key not allowed for operation!!! operation logged!!!", user_std.UtSn.Traduci("AccessFail"));
+ mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!
L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
+ string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
+ SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
+ if (Login_Error != null)
+ {
+ Login_Error(this, new EventArgs());
+ }
+ }
+ }
+ else
+ {
+ mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!
L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
+ string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
+ SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
+ if (Login_Error != null)
+ {
+ Login_Error(this, new EventArgs());
+ }
+ }
+ }
+ else
+ {
+ lblMessage.Text = string.Format("{0}
user not authenticated!
", user_std.UtSn.Traduci("AccessFail"));
+ if (Login_Error != null)
+ {
+ Login_Error(this, new EventArgs());
+ }
+ string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
+ SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
+ }
+ }
+
+ protected void btnOk_Click(object sender, EventArgs e)
+ {
+ ForceUserIdentity();
+ }
+
+ #endregion
+
+ #endregion
+
+ #region area public
+
+ #region eventi pubblici esposti
+
+ public event EventHandler Login_ok;
+ public event EventHandler Login_Error;
+
+ #endregion
+
+ #region area proprietà
+
+ ///
+ /// modalità funzionamento controllo tra normale (ActiveDirectory e user auth di default) e forceUser
+ ///
+ public SteamWare.loginMode modoLogin
+ {
+ get
+ {
+ return _isForceUser;
+ }
+ set
+ {
+ _isForceUser = value;
+ }
+ }
+
+ #endregion
+
+
+ ///
+ /// avvio pagina
+ ///
+ protected override void Page_Load(object sender, EventArgs e)
+ {
+ base.Page_Load(sender, e);
+ //carico da web.config i default values
+ loadDefaultsWebConfig();
+ // procedo...
+ setLoginMode();
+ Session.RemoveAll();
+ // salvo la company...
+ Session.Add("CodCS", memLayer.ML.confReadString("CodCS"));
+ if (_isForceUser == SteamWare.loginMode.normale)
+ {
+ AdLogin();
+ }
+ }
+
+ #endregion
+
+}
diff --git a/GMW/GMW/WebUserControls/mod_login.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_login.ascx.designer.cs
new file mode 100644
index 00000000..bc8b7640
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_login.ascx.designer.cs
@@ -0,0 +1,113 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class mod_login {
+
+ ///
+ /// pnlForceUser control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel pnlForceUser;
+
+ ///
+ /// lblTitolo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblTitolo;
+
+ ///
+ /// lblPwd control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPwd;
+
+ ///
+ /// authKey control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox authKey;
+
+ ///
+ /// lblDominio control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDominio;
+
+ ///
+ /// dominio control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox dominio;
+
+ ///
+ /// lblUser control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblUser;
+
+ ///
+ /// user control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox user;
+
+ ///
+ /// btnOk control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnOk;
+
+ ///
+ /// lblMessage control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMessage;
+
+ ///
+ /// HypLinkSSO control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HyperLink HypLinkSSO;
+}
diff --git a/GMW/GMW/WebUserControls/mod_main_help.ascx b/GMW/GMW/WebUserControls/mod_main_help.ascx
new file mode 100644
index 00000000..f5be30c1
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_main_help.ascx
@@ -0,0 +1,15 @@
+<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_main_help" Codebehind="mod_main_help.ascx.cs" %>
+
+
+ |
+ |
+
+
+ |
+ |
+
+
+ |
+ |
+
+
diff --git a/GMW/GMW/WebUserControls/mod_main_help.ascx.cs b/GMW/GMW/WebUserControls/mod_main_help.ascx.cs
new file mode 100644
index 00000000..fba38b1d
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_main_help.ascx.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_main_help : ApplicationUserControl
+{
+
+ #region inizializzazione generica & utility
+
+ protected string defaultApp;
+ protected string defaultTitle;
+ protected string defaultBody;
+
+ protected override void traduciObj()
+ {
+ defaultApp = SteamWare.memLayer.ML.confReadString("defaultApp");
+ defaultTitle = SteamWare.memLayer.ML.confReadString("defaultTitle");
+ defaultBody = SteamWare.memLayer.ML.confReadString("defaultBody");
+ lblAppl.Text = user_std.UtSn.Traduci(defaultApp);
+ lblTitle.Text = user_std.UtSn.Traduci(defaultTitle);
+ lblMess.Text = user_std.UtSn.Traduci(defaultBody);
+ }
+
+ #endregion
+
+ #region public
+
+ ///
+ /// imposta app, title e body del generico messaggio mostrato dal modulo
+ /// NB: vanno passate le stringhe da tradurre!!!
+ ///
+ ///
+ ///
+ ///
+ public void setupMessaggio(string app2transl, string titolo2transl, string body2transl)
+ {
+ defaultApp = app2transl;
+ defaultTitle = titolo2transl;
+ defaultBody = body2transl;
+ }
+
+ #endregion
+
+}
diff --git a/GMW/GMW/WebUserControls/mod_main_help.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_main_help.ascx.designer.cs
new file mode 100644
index 00000000..df0c9dce
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_main_help.ascx.designer.cs
@@ -0,0 +1,41 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class mod_main_help {
+
+ ///
+ /// lblAppl control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblAppl;
+
+ ///
+ /// lblTitle control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblTitle;
+
+ ///
+ /// lblMess control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMess;
+}
diff --git a/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx b/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx
new file mode 100644
index 00000000..1a404b14
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx
@@ -0,0 +1,77 @@
+<%@ Control Language="C#" AutoEventWireup="true"
+ Inherits="mod_selettore_ajax" Codebehind="mod_selettore_ajax.ascx.cs" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
diff --git a/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx.cs b/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx.cs
new file mode 100644
index 00000000..a80d6a8a
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx.cs
@@ -0,0 +1,499 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+[ValidationProperty("valore")]
+public partial class mod_selettore_ajax : ApplicationUserControl
+{
+
+ protected bool _chkVisibile = false;
+ protected bool _isValueVisible = false;
+ protected bool _cambioTipo = false;
+
+ protected string _val1;
+ protected string _val2;
+ #region gestione eventi
+
+ public event EventHandler eh_selDone;
+
+ #endregion
+
+ #region gestione pagina
+
+ protected override void Page_Load(object sender, EventArgs e)
+ {
+ base.Page_Load(sender, e);
+ updateChkOpzione();
+ if (!Page.IsPostBack)
+ {
+ SteamWare.memLayer.ML.emptySessionVal(searchSessionName);
+ }
+ }
+
+ protected override void traduciObj()
+ {
+ base.traduciObj();
+ lblCerca.Text = traduci("lblCerca");
+ btnCerca.Text = traduci("search");
+ if (_chkVisibile)
+ {
+ updateChkOpzione();
+ }
+ }
+
+ protected override void OnInit(EventArgs e)
+ {
+ base.OnInit(e);
+ if (!Page.IsPostBack)
+ {
+ _val1 = "";
+ _val2 = "";
+ if (vistaModulo == SteamWare.tipoVistaMod.editing)
+ {
+ setSearchValue();
+ impostaCampoRicerca();
+ pce.Enabled = true;
+ pce2.Enabled = true;
+ lblDescr.CssClass = "txtLink";
+ }
+ else if (vistaModulo == SteamWare.tipoVistaMod.selezione)
+ {
+ pce.Enabled = false;
+ pce2.Enabled = false;
+ lblDescr.CssClass = "txtValue";
+ }
+ traduciObj();
+ }
+ }
+ ///
+ /// imposta il valore della ricerca da quello in session
+ ///
+ private void setSearchValue()
+ {
+ if (SteamWare.memLayer.ML.isInSessionObject(searchSessionName))
+ {
+ testoRicerca = SteamWare.memLayer.ML.StringSessionObj(searchSessionName);
+ }
+ }
+ ///
+ /// imposta i campi del filtro ricerca in session
+ ///
+ private void impostaCampoRicerca()
+ {
+ // imposto il nome del valore session x ricerca a campo univoco...
+ SessionParameter parametroFiltro = new SessionParameter();
+ parametroFiltro.SessionField = searchSessionName;
+ parametroFiltro.Name = searchSessionName;
+ parametroFiltro.DefaultValue = "*";
+ ods.FilterParameters.Clear();
+ ods.FilterParameters.Add(parametroFiltro);
+ }
+ ///
+ /// setta il nome del campo di ricerca
+ ///
+ protected string searchSessionName
+ {
+ get
+ {
+ return string.Format("ricerca_{0}", _tipoSelettore);
+ }
+ }
+
+ #endregion
+
+ #region area protected
+
+ protected string _conditio = "";
+ protected string testoRicerca
+ {
+ get
+ {
+ return txtCerca.Text.Trim();
+ }
+ set
+ {
+ txtCerca.Text = value;
+ }
+ }
+
+ protected selettori _selettori = new selettori();
+ ///
+ /// a seconda del tipo di selettore cambierà l'origine ods
+ ///
+ ///
+ ///
+ protected void chkOpzione_CheckedChanged(object sender, EventArgs e)
+ {
+ fixChkOds();
+ }
+
+ protected void setCheck()
+ {
+ //if (_tipoSelettore == tipoSelettore.utentiAll || _tipoSelettore == tipoSelettore.utentiCdc)
+ //{
+ // _chkVisibile = true;
+ //}
+ //else
+ //{
+ _chkVisibile = false;
+ //}
+ }
+
+ ///
+ /// aggiorna visualizzazione del check opzionale con label e visibilità
+ ///
+ protected void updateChkOpzione()
+ {
+ //// se definito il tipo decido SE mostrare il check e tradurre la label...
+ //if (_tipoSelettore == tipoSelettore.utentiAll || _tipoSelettore == tipoSelettore.utentiCdc)
+ //{
+ // chkOpzione.Visible = true;
+ // chkOpzione.Text = traduci("chkSoloGer");
+ // if (_tipoSelettore == tipoSelettore.utentiCdc)
+ // {
+ // chkOpzione.Checked = true;
+ // }
+ //}
+ //else
+ //{
+ chkOpzione.Visible = false;
+ //}
+ }
+
+ ///
+ /// aggiorna la label che traduce il valore a seconda del tipo di oggetto...
+ ///
+ protected void aggiornaLabelDaValore()
+ {
+ // x ora metto valore di default...
+ string _answ = "-";
+ if (txtSelValue.Text != "")
+ {
+ System.Data.DataView tabella = (System.Data.DataView)ods.Select();
+ tabella.RowFilter = string.Format("value = '{0}'", txtSelValue.Text);
+ try
+ {
+ _answ = tabella.ToTable().Rows[0]["label"].ToString();
+ }
+ catch
+ { }
+ }
+ lblDescr.Text = _answ;
+ }
+ ///
+ /// aggiorna label e valore principale da una chiave multipart
+ ///
+ private void aggiornaDaValMulti()
+ {
+ // eseguo SE E SOLO SE entrambi i valori sono popolati
+ if (val1 != "" && val1 != null)
+ {
+ if (val2 != "" && val2 != null && val2 != "na")
+ {
+ txtSelValue.Text = string.Format("{0}#{1}", val1, val2);
+ aggiornaLabelDaValore();
+ }
+ else
+ {
+ txtSelValue.Text = val1;
+ aggiornaLabelDaValore();
+ }
+ }
+ }
+
+
+ ///
+ /// tipo di valori mostrati
+ ///
+ protected tipoSelettore _tipoSelettore = tipoSelettore.cdc;
+ ///
+ /// nome del controllo gestito dal nostro popup
+ ///
+ protected string _targetControl = "";
+ ///
+ /// sistemo gli ods
+ ///
+ protected override void bindControlli()
+ {
+ base.bindControlli();
+ fixChkOds();
+ fixOds();
+ }
+ ///
+ /// sistema l'ods dato lo stato del chk
+ ///
+ protected void fixChkOds()
+ {
+ //if (_tipoSelettore == tipoSelettore.utentiAll || _tipoSelettore == tipoSelettore.utentiCdc)
+ //{
+ // // verifico se sia o meno checked "solo cdc utente"...
+ // if (chkOpzione.Checked)
+ // {
+ // //imposto nuovo tipo selettore
+ // _tipoSelettore = tipoSelettore.utentiCdc;
+ // fixOds();
+ // }
+ // else
+ // {
+ // //imposto nuovo tipo selettore
+ // _tipoSelettore = tipoSelettore.utentiAll;
+ // fixOds();
+ // }
+ // // faccio databind...
+ // grView.PageIndex = 0;
+ // grView.DataBind();
+
+ //}
+ }
+ ///
+ /// sistemazione fonte ods...
+ ///
+ protected void fixOds()
+ {
+ string _selectMethod = "";
+ switch (_tipoSelettore)
+ {
+ case tipoSelettore.cdc:
+ _selectMethod = "getSelAllCdC";
+ break;
+ //case tipoSelettore.impianti:
+ // _selectMethod = "getSelImpianti";
+ // break;
+ //case tipoSelettore.macchine:
+ // _selectMethod = "getSelMacchine";
+ // break;
+ //case tipoSelettore.utentiAll:
+ // _selectMethod = "getSelAllUsers";
+ // break;
+ //case tipoSelettore.utentiCdc:
+ // _selectMethod = "getSelUsersGer";
+ // break;
+ }
+ ods.SelectMethod = _selectMethod;
+ }
+
+ ///
+ /// traduce gli header delle colonne
+ ///
+ ///
+ ///
+ protected void grView_DataBound(object sender, EventArgs e)
+ {
+ if (grView.Rows.Count > 0)
+ {
+ LinkButton lb;
+ // aggiorno gli headers
+ foreach (TableCell cella in grView.HeaderRow.Cells)
+ {
+ try
+ {
+ lb = (LinkButton)cella.Controls[0];
+ lb.Text = traduci(lb.Text);
+ }
+ catch
+ { }
+ }
+ int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
+ lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+ ///
+ /// selezione annullata su cambio pagina
+ ///
+ ///
+ ///
+ protected void grView_PageIndexChanged(object sender, EventArgs e)
+ {
+ grView.SelectedIndex = -1;
+ }
+ ///
+ /// aggiornamento filtro da stringa di ricerca del popup
+ ///
+ ///
+ ///
+ protected void txtCerca_TextChanged(object sender, EventArgs e)
+ {
+ // se cambio filtro tolgo il selected...
+ grView.SelectedIndex = -1;
+ // salvo la ricerca in session e filter dell'ods...
+ SteamWare.memLayer.ML.setSessionVal(searchSessionName, txtCerca.Text);
+ impostaCampoRicerca();
+ fixChkOds();
+ fixOds();
+ }
+ ///
+ /// salvo il valore selezionato
+ ///
+ ///
+ ///
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ string valore = grView.SelectedValue.ToString();
+ lblDescr.Text = grView.SelectedRow.Cells[2].Text.ToString();
+ UpdatePanel1.Update();
+ pce.Commit(valore);
+ pce2.Commit(grView.SelectedRow.Cells[2].Text.ToString());
+ // se ho una chiave multiparte salvo nei 2 valori...
+ if (valore.IndexOf('#') > -1)
+ {
+ string[] valori = valore.Split('#');
+ val1 = valori[0];
+ val2 = valori[1];
+ }
+ if (eh_selDone != null)
+ {
+ eh_selDone(this, new EventArgs());
+ }
+ }
+
+ ///
+ /// resetta ricerca e selezione
+ ///
+ ///
+ ///
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ grView.SelectedIndex = -1;
+ testoRicerca = "";
+ SteamWare.memLayer.ML.emptySessionVal(searchSessionName);
+ }
+
+ #endregion
+
+ #region area public
+
+ ///
+ /// tipo di selettore da istanziare
+ ///
+ public tipoSelettore tipo
+ {
+ get
+ {
+ return _tipoSelettore;
+ }
+ set
+ {
+ _tipoSelettore = value;
+ setCheck();
+ }
+ }
+
+ ///
+ /// effettua update del controllo
+ ///
+ public void doUpdate()
+ {
+ // svuoto ricerca...
+ SteamWare.memLayer.ML.emptySessionVal(searchSessionName);
+ testoRicerca = "";
+ // imposto valori cercati...
+ setSearchValue();
+ impostaCampoRicerca();
+ // continuo con update
+ updateChkOpzione();
+ fixOds();
+ aggiornaDaValMulti();
+ // faccio databind...
+ grView.PageIndex = 0;
+ grView.DataBind();
+ }
+
+ ///
+ /// valore mostrato nel campo testo del selettore
+ ///
+ public string valore
+ {
+ get
+ {
+ return txtSelValue.Text;
+ }
+ set
+ {
+ txtSelValue.Text = value;
+ aggiornaLabelDaValore();
+ }
+ }
+ ///
+ /// valore di una chiave multiparte
+ ///
+ public string val1
+ {
+ get
+ {
+ return _val1;
+ }
+ set
+ {
+ _val1 = value;
+ aggiornaDaValMulti();
+ }
+ }
+
+ ///
+ /// valore di una chiave multiparte
+ ///
+ public string val2
+ {
+ get
+ {
+ return _val2;
+ }
+ set
+ {
+ _val2 = value;
+ aggiornaDaValMulti();
+ }
+ }
+ ///
+ /// impone una condizione di filtro sui valori mostrati
+ ///
+ public string conditio
+ {
+ get
+ {
+ return _conditio;
+ }
+ set
+ {
+ _conditio = value;
+ if (_conditio != "")
+ {
+ ods.SelectParameters.Clear();
+ ods.SelectParameters.Add("where", string.Format(" conditio = '{0}' ", _conditio));
+ }
+ else
+ {
+ ods.SelectParameters.Clear();
+ ods.SelectParameters.Add("where", " conditio = '*' ");
+ }
+ }
+ }
+ ///
+ /// determina se il valore da selezionare sia da visualizzare o meno
+ ///
+ public bool isValueVisible
+ {
+ get
+ {
+ return _isValueVisible;
+ }
+ set
+ {
+ _isValueVisible = value;
+ }
+ }
+
+ #endregion
+}
diff --git a/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx.designer.cs
new file mode 100644
index 00000000..935ae48e
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_selettore_ajax.ascx.designer.cs
@@ -0,0 +1,140 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class mod_selettore_ajax {
+
+ ///
+ /// UpdatePanel1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel UpdatePanel1;
+
+ ///
+ /// pce control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::AjaxControlToolkit.PopupControlExtender pce;
+
+ ///
+ /// pce2 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::AjaxControlToolkit.PopupControlExtender pce2;
+
+ ///
+ /// txtSelValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtSelValue;
+
+ ///
+ /// lblDescr control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDescr;
+
+ ///
+ /// pnlSelettore control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel pnlSelettore;
+
+ ///
+ /// updPnl1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel updPnl1;
+
+ ///
+ /// lblCerca control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblCerca;
+
+ ///
+ /// txtCerca control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtCerca;
+
+ ///
+ /// btnCerca control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnCerca;
+
+ ///
+ /// chkOpzione control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkOpzione;
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// lblNumRec control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumRec;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+}
diff --git a/GMW/GMW/WebUserControls/mod_vocabolario.ascx b/GMW/GMW/WebUserControls/mod_vocabolario.ascx
new file mode 100644
index 00000000..480945e0
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_vocabolario.ascx
@@ -0,0 +1,105 @@
+<%@ Control Language="C#" AutoEventWireup="true"
+ Inherits="mod_vocabolario" Codebehind="mod_vocabolario.ascx.cs" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
diff --git a/GMW/GMW/WebUserControls/mod_vocabolario.ascx.cs b/GMW/GMW/WebUserControls/mod_vocabolario.ascx.cs
new file mode 100644
index 00000000..ec9d0321
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_vocabolario.ascx.cs
@@ -0,0 +1,146 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_vocabolario : ApplicationUserControl
+{
+
+ #region gestione eventi
+
+ public event EventHandler eh_selezioneValore;
+ public event EventHandler eh_resetSelezione;
+
+ #endregion
+
+ #region protected
+
+ protected override void traduciObj()
+ {
+ base.traduciObj();
+ btnNewLemma.Text = user_std.UtSn.Traduci("btnNewLemma");
+ txtNewLemma.Text = "";
+ TBW_newLemma.WatermarkText = user_std.UtSn.Traduci("insertNewLemma");
+ }
+
+ ///
+ /// inserisco nel db il nuovo lemma...
+ ///
+ ///
+ ///
+ protected void btnNewLemma_Click(object sender, EventArgs e)
+ {
+ creaNuovoLemma();
+ }
+ ///
+ /// creazione nuovo lemma
+ ///
+ private void creaNuovoLemma()
+ {
+ if (txtNewLemma.Text != "")
+ {
+ // inserisco
+ DataWrap.DW.creaNuovoLemmaVoc(txtNewLemma.Text.Trim());
+ // metto in campo ricerca...
+ memLayer.ML.setSessionVal("valoreCercato", txtNewLemma.Text.Trim());
+ // svuoto campo text
+ txtNewLemma.Text = "";
+ // aggiorno il vocabolario in memoria...
+ DataWrap.DW.resetVocabolario();
+ // riparto...
+ Response.Redirect(_paginaCorrente);
+ }
+ }
+
+ protected override void aggiornaControlliDataGL()
+ {
+ base.aggiornaControlliDataGL();
+ grView.PageSize = _righeDataGridAnagr;
+ ods.DataBind();
+ }
+
+ protected void grView_DataBound(object sender, EventArgs e)
+ {
+ if (grView.Rows.Count > 0)
+ {
+ LinkButton lb;
+ // aggiorno gli headers
+ foreach (TableCell cella in grView.HeaderRow.Cells)
+ {
+ try
+ {
+ lb = (LinkButton)cella.Controls[0];
+ lb.Text = traduci(lb.Text);
+ }
+ catch
+ { }
+ }
+ int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
+ lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
+ }
+ else
+ {
+ lblNumRec.Text = "";
+ }
+ }
+
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ resetSelezione();
+ }
+
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ selezionatoValore();
+ }
+
+ private void selezionatoValore()
+ {
+ SteamWare.memLayer.ML.setSessionVal("lemma_sel", grView.SelectedDataKey.Values[1]);
+ if (eh_selezioneValore != null)
+ {
+ eh_selezioneValore(this, new EventArgs());
+ }
+ }
+
+ protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
+ {
+ // seleziono la riga corrente...
+ grView.SelectedIndex = e.NewEditIndex;
+ selezionatoValore();
+ }
+
+ protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
+ {
+ selezionatoValore();
+ }
+
+ #endregion
+
+ #region area public
+
+ ///
+ /// resetta la selezione dei valori in caso di modifiche su altri controlli
+ ///
+ public void resetSelezione()
+ {
+ SteamWare.memLayer.ML.emptySessionVal("lemma_sel");
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ if (eh_resetSelezione != null)
+ {
+ eh_resetSelezione(this, new EventArgs());
+ }
+ }
+
+ #endregion
+
+}
+
diff --git a/GMW/GMW/WebUserControls/mod_vocabolario.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_vocabolario.ascx.designer.cs
new file mode 100644
index 00000000..e1d042f5
--- /dev/null
+++ b/GMW/GMW/WebUserControls/mod_vocabolario.ascx.designer.cs
@@ -0,0 +1,68 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class mod_vocabolario {
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// lblNumRec control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumRec;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+
+ ///
+ /// btnNewLemma control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnNewLemma;
+
+ ///
+ /// txtNewLemma control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtNewLemma;
+
+ ///
+ /// TBW_newLemma control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::AjaxControlToolkit.TextBoxWatermarkExtender TBW_newLemma;
+}
diff --git a/GMW/GMW/anagMagazzini.aspx b/GMW/GMW/anagMagazzini.aspx
new file mode 100644
index 00000000..cd4f265c
--- /dev/null
+++ b/GMW/GMW/anagMagazzini.aspx
@@ -0,0 +1,8 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master"
+ AutoEventWireup="true" CodeBehind="anagMagazzini.aspx.cs" Inherits="GMW.anagMagazzini" %>
+
+<%@ Register Src="WebUserControls/mod_anagMagazzini.ascx" TagName="mod_anagMagazzini"
+ TagPrefix="uc1" %>
+
+
+
diff --git a/GMW/GMW/anagMagazzini.aspx.cs b/GMW/GMW/anagMagazzini.aspx.cs
new file mode 100644
index 00000000..6789831f
--- /dev/null
+++ b/GMW/GMW/anagMagazzini.aspx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace GMW
+{
+ public partial class anagMagazzini : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/GMW/GMW/anagMagazzini.aspx.designer.cs b/GMW/GMW/anagMagazzini.aspx.designer.cs
new file mode 100644
index 00000000..8197decd
--- /dev/null
+++ b/GMW/GMW/anagMagazzini.aspx.designer.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.4927
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GMW {
+
+
+ public partial class anagMagazzini {
+
+ ///
+ /// mod_anagMagazzini1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GMW.WebUserControls.mod_anagMagazzini mod_anagMagazzini1;
+ }
+}
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index c3a63788..e213631e 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 670f9c17..f7bbe5b6 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.dll b/GMW/GMW/bin/SteamWare.dll
index 358c8431..313b0c0d 100644
Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ
diff --git a/GMW/GMW/images/ModLang.png b/GMW/GMW/images/ModLang.png
new file mode 100644
index 00000000..af77440f
Binary files /dev/null and b/GMW/GMW/images/ModLang.png differ
diff --git a/GMW/GMW/images/ModPassw.png b/GMW/GMW/images/ModPassw.png
new file mode 100644
index 00000000..df6278c8
Binary files /dev/null and b/GMW/GMW/images/ModPassw.png differ
diff --git a/GMW/GMW/images/NodeResults.gif b/GMW/GMW/images/NodeResults.gif
new file mode 100644
index 00000000..47274d09
Binary files /dev/null and b/GMW/GMW/images/NodeResults.gif differ
diff --git a/GMW/GMW/images/ProgressBar.gif b/GMW/GMW/images/ProgressBar.gif
new file mode 100644
index 00000000..7f93a9fd
Binary files /dev/null and b/GMW/GMW/images/ProgressBar.gif differ
diff --git a/GMW/GMW/images/Thumbs.db b/GMW/GMW/images/Thumbs.db
new file mode 100644
index 00000000..8131063c
Binary files /dev/null and b/GMW/GMW/images/Thumbs.db differ
diff --git a/GMW/GMW/images/apply.png b/GMW/GMW/images/apply.png
new file mode 100644
index 00000000..57900174
Binary files /dev/null and b/GMW/GMW/images/apply.png differ
diff --git a/GMW/GMW/images/apply_l.png b/GMW/GMW/images/apply_l.png
new file mode 100644
index 00000000..592ce6f4
Binary files /dev/null and b/GMW/GMW/images/apply_l.png differ
diff --git a/GMW/GMW/images/apply_m.png b/GMW/GMW/images/apply_m.png
new file mode 100644
index 00000000..2166fdff
Binary files /dev/null and b/GMW/GMW/images/apply_m.png differ
diff --git a/GMW/GMW/images/apply_s.gif b/GMW/GMW/images/apply_s.gif
new file mode 100644
index 00000000..26928888
Binary files /dev/null and b/GMW/GMW/images/apply_s.gif differ
diff --git a/GMW/GMW/images/apply_s.png b/GMW/GMW/images/apply_s.png
new file mode 100644
index 00000000..57900174
Binary files /dev/null and b/GMW/GMW/images/apply_s.png differ
diff --git a/GMW/GMW/images/barcode_orange_l.png b/GMW/GMW/images/barcode_orange_l.png
new file mode 100644
index 00000000..9f0b1dac
Binary files /dev/null and b/GMW/GMW/images/barcode_orange_l.png differ
diff --git a/GMW/GMW/images/barcode_orange_m.png b/GMW/GMW/images/barcode_orange_m.png
new file mode 100644
index 00000000..19ec258b
Binary files /dev/null and b/GMW/GMW/images/barcode_orange_m.png differ
diff --git a/GMW/GMW/images/barcode_orange_s.png b/GMW/GMW/images/barcode_orange_s.png
new file mode 100644
index 00000000..49c8492f
Binary files /dev/null and b/GMW/GMW/images/barcode_orange_s.png differ
diff --git a/GMW/GMW/images/barcode_white_l.png b/GMW/GMW/images/barcode_white_l.png
new file mode 100644
index 00000000..74193b74
Binary files /dev/null and b/GMW/GMW/images/barcode_white_l.png differ
diff --git a/GMW/GMW/images/barcode_white_m.png b/GMW/GMW/images/barcode_white_m.png
new file mode 100644
index 00000000..5caf5579
Binary files /dev/null and b/GMW/GMW/images/barcode_white_m.png differ
diff --git a/GMW/GMW/images/barcode_white_s.png b/GMW/GMW/images/barcode_white_s.png
new file mode 100644
index 00000000..61eaa764
Binary files /dev/null and b/GMW/GMW/images/barcode_white_s.png differ
diff --git a/GMW/GMW/images/bg-menu-main.png b/GMW/GMW/images/bg-menu-main.png
new file mode 100644
index 00000000..5ff3c914
Binary files /dev/null and b/GMW/GMW/images/bg-menu-main.png differ
diff --git a/GMW/GMW/images/bg_bright.jpg b/GMW/GMW/images/bg_bright.jpg
new file mode 100644
index 00000000..e472ee39
Binary files /dev/null and b/GMW/GMW/images/bg_bright.jpg differ
diff --git a/GMW/GMW/images/bg_dark.jpg b/GMW/GMW/images/bg_dark.jpg
new file mode 100644
index 00000000..8f2f235d
Binary files /dev/null and b/GMW/GMW/images/bg_dark.jpg differ
diff --git a/GMW/GMW/images/bluGrad32.png b/GMW/GMW/images/bluGrad32.png
new file mode 100644
index 00000000..e6afd899
Binary files /dev/null and b/GMW/GMW/images/bluGrad32.png differ
diff --git a/GMW/GMW/images/cancel.png b/GMW/GMW/images/cancel.png
new file mode 100644
index 00000000..a7307333
Binary files /dev/null and b/GMW/GMW/images/cancel.png differ
diff --git a/GMW/GMW/images/cancel_l.png b/GMW/GMW/images/cancel_l.png
new file mode 100644
index 00000000..2d5e260a
Binary files /dev/null and b/GMW/GMW/images/cancel_l.png differ
diff --git a/GMW/GMW/images/cancel_m.png b/GMW/GMW/images/cancel_m.png
new file mode 100644
index 00000000..816e06ac
Binary files /dev/null and b/GMW/GMW/images/cancel_m.png differ
diff --git a/GMW/GMW/images/cancel_s.gif b/GMW/GMW/images/cancel_s.gif
new file mode 100644
index 00000000..49f3630a
Binary files /dev/null and b/GMW/GMW/images/cancel_s.gif differ
diff --git a/GMW/GMW/images/cancel_s.png b/GMW/GMW/images/cancel_s.png
new file mode 100644
index 00000000..d9333943
Binary files /dev/null and b/GMW/GMW/images/cancel_s.png differ
diff --git a/GMW/GMW/images/clonaObj.png b/GMW/GMW/images/clonaObj.png
new file mode 100644
index 00000000..3107990d
Binary files /dev/null and b/GMW/GMW/images/clonaObj.png differ
diff --git a/GMW/GMW/images/clonaObj_l.png b/GMW/GMW/images/clonaObj_l.png
new file mode 100644
index 00000000..2104f288
Binary files /dev/null and b/GMW/GMW/images/clonaObj_l.png differ
diff --git a/GMW/GMW/images/clonaObj_m.png b/GMW/GMW/images/clonaObj_m.png
new file mode 100644
index 00000000..c382a8da
Binary files /dev/null and b/GMW/GMW/images/clonaObj_m.png differ
diff --git a/GMW/GMW/images/clonaObj_s.png b/GMW/GMW/images/clonaObj_s.png
new file mode 100644
index 00000000..c95f6b15
Binary files /dev/null and b/GMW/GMW/images/clonaObj_s.png differ
diff --git a/GMW/GMW/images/clonaobj_s.gif b/GMW/GMW/images/clonaobj_s.gif
new file mode 100644
index 00000000..f189a2e0
Binary files /dev/null and b/GMW/GMW/images/clonaobj_s.gif differ
diff --git a/GMW/GMW/images/collapse.jpg b/GMW/GMW/images/collapse.jpg
new file mode 100644
index 00000000..d0cf8067
Binary files /dev/null and b/GMW/GMW/images/collapse.jpg differ
diff --git a/GMW/GMW/images/delete.gif b/GMW/GMW/images/delete.gif
new file mode 100644
index 00000000..65435dd8
Binary files /dev/null and b/GMW/GMW/images/delete.gif differ
diff --git a/GMW/GMW/images/delete.png b/GMW/GMW/images/delete.png
new file mode 100644
index 00000000..346193c1
Binary files /dev/null and b/GMW/GMW/images/delete.png differ
diff --git a/GMW/GMW/images/delete_disabled.gif b/GMW/GMW/images/delete_disabled.gif
new file mode 100644
index 00000000..2b736843
Binary files /dev/null and b/GMW/GMW/images/delete_disabled.gif differ
diff --git a/GMW/GMW/images/deleteold.gif b/GMW/GMW/images/deleteold.gif
new file mode 100644
index 00000000..65435dd8
Binary files /dev/null and b/GMW/GMW/images/deleteold.gif differ
diff --git a/GMW/GMW/images/detail.png b/GMW/GMW/images/detail.png
new file mode 100644
index 00000000..364ae30e
Binary files /dev/null and b/GMW/GMW/images/detail.png differ
diff --git a/GMW/GMW/images/divietoaccesso.gif b/GMW/GMW/images/divietoaccesso.gif
new file mode 100644
index 00000000..2af2475f
Binary files /dev/null and b/GMW/GMW/images/divietoaccesso.gif differ
diff --git a/GMW/GMW/images/downLvl.png b/GMW/GMW/images/downLvl.png
new file mode 100644
index 00000000..a966b093
Binary files /dev/null and b/GMW/GMW/images/downLvl.png differ
diff --git a/GMW/GMW/images/edit.gif b/GMW/GMW/images/edit.gif
new file mode 100644
index 00000000..7422b259
Binary files /dev/null and b/GMW/GMW/images/edit.gif differ
diff --git a/GMW/GMW/images/edit.png b/GMW/GMW/images/edit.png
new file mode 100644
index 00000000..52c00c53
Binary files /dev/null and b/GMW/GMW/images/edit.png differ
diff --git a/GMW/GMW/images/edit_disabled.gif b/GMW/GMW/images/edit_disabled.gif
new file mode 100644
index 00000000..b9d69344
Binary files /dev/null and b/GMW/GMW/images/edit_disabled.gif differ
diff --git a/GMW/GMW/images/edit_l.png b/GMW/GMW/images/edit_l.png
new file mode 100644
index 00000000..e5963483
Binary files /dev/null and b/GMW/GMW/images/edit_l.png differ
diff --git a/GMW/GMW/images/edit_m.png b/GMW/GMW/images/edit_m.png
new file mode 100644
index 00000000..62f280e7
Binary files /dev/null and b/GMW/GMW/images/edit_m.png differ
diff --git a/GMW/GMW/images/edit_s.gif b/GMW/GMW/images/edit_s.gif
new file mode 100644
index 00000000..4bee2cd1
Binary files /dev/null and b/GMW/GMW/images/edit_s.gif differ
diff --git a/GMW/GMW/images/edit_s.png b/GMW/GMW/images/edit_s.png
new file mode 100644
index 00000000..b66d7ed3
Binary files /dev/null and b/GMW/GMW/images/edit_s.png differ
diff --git a/GMW/GMW/images/elimina.png b/GMW/GMW/images/elimina.png
new file mode 100644
index 00000000..0e0953c7
Binary files /dev/null and b/GMW/GMW/images/elimina.png differ
diff --git a/GMW/GMW/images/elimina_l.png b/GMW/GMW/images/elimina_l.png
new file mode 100644
index 00000000..9b7a462d
Binary files /dev/null and b/GMW/GMW/images/elimina_l.png differ
diff --git a/GMW/GMW/images/elimina_m.png b/GMW/GMW/images/elimina_m.png
new file mode 100644
index 00000000..05ff0365
Binary files /dev/null and b/GMW/GMW/images/elimina_m.png differ
diff --git a/GMW/GMW/images/elimina_s.gif b/GMW/GMW/images/elimina_s.gif
new file mode 100644
index 00000000..f0841542
Binary files /dev/null and b/GMW/GMW/images/elimina_s.gif differ
diff --git a/GMW/GMW/images/elimina_s.png b/GMW/GMW/images/elimina_s.png
new file mode 100644
index 00000000..0e0953c7
Binary files /dev/null and b/GMW/GMW/images/elimina_s.png differ
diff --git a/GMW/GMW/images/expand.jpg b/GMW/GMW/images/expand.jpg
new file mode 100644
index 00000000..4e0c8671
Binary files /dev/null and b/GMW/GMW/images/expand.jpg differ
diff --git a/GMW/GMW/images/expand_blue.jpg b/GMW/GMW/images/expand_blue.jpg
new file mode 100644
index 00000000..1592847b
Binary files /dev/null and b/GMW/GMW/images/expand_blue.jpg differ
diff --git a/GMW/GMW/images/favicon.png b/GMW/GMW/images/favicon.png
new file mode 100644
index 00000000..3044bfca
Binary files /dev/null and b/GMW/GMW/images/favicon.png differ
diff --git a/GMW/GMW/images/flag-de.png b/GMW/GMW/images/flag-de.png
new file mode 100644
index 00000000..d087ae4f
Binary files /dev/null and b/GMW/GMW/images/flag-de.png differ
diff --git a/GMW/GMW/images/flag-en.png b/GMW/GMW/images/flag-en.png
new file mode 100644
index 00000000..0c4f4fe7
Binary files /dev/null and b/GMW/GMW/images/flag-en.png differ
diff --git a/GMW/GMW/images/flag-fi.png b/GMW/GMW/images/flag-fi.png
new file mode 100644
index 00000000..9f333f12
Binary files /dev/null and b/GMW/GMW/images/flag-fi.png differ
diff --git a/GMW/GMW/images/flag-it.png b/GMW/GMW/images/flag-it.png
new file mode 100644
index 00000000..07678309
Binary files /dev/null and b/GMW/GMW/images/flag-it.png differ
diff --git a/GMW/GMW/images/flag-nl.png b/GMW/GMW/images/flag-nl.png
new file mode 100644
index 00000000..a9440bb8
Binary files /dev/null and b/GMW/GMW/images/flag-nl.png differ
diff --git a/GMW/GMW/images/flag-pl.png b/GMW/GMW/images/flag-pl.png
new file mode 100644
index 00000000..a8f7609c
Binary files /dev/null and b/GMW/GMW/images/flag-pl.png differ
diff --git a/GMW/GMW/images/flag-ru.png b/GMW/GMW/images/flag-ru.png
new file mode 100644
index 00000000..c20c4493
Binary files /dev/null and b/GMW/GMW/images/flag-ru.png differ
diff --git a/GMW/GMW/images/flag-xb.png b/GMW/GMW/images/flag-xb.png
new file mode 100644
index 00000000..0c4f4fe7
Binary files /dev/null and b/GMW/GMW/images/flag-xb.png differ
diff --git a/GMW/GMW/images/header-opened.png b/GMW/GMW/images/header-opened.png
new file mode 100644
index 00000000..4da7a844
Binary files /dev/null and b/GMW/GMW/images/header-opened.png differ
diff --git a/GMW/GMW/images/help_16.png b/GMW/GMW/images/help_16.png
new file mode 100644
index 00000000..8fb731a1
Binary files /dev/null and b/GMW/GMW/images/help_16.png differ
diff --git a/GMW/GMW/images/help_22.png b/GMW/GMW/images/help_22.png
new file mode 100644
index 00000000..e3baaa90
Binary files /dev/null and b/GMW/GMW/images/help_22.png differ
diff --git a/GMW/GMW/images/help_32.png b/GMW/GMW/images/help_32.png
new file mode 100644
index 00000000..9135c633
Binary files /dev/null and b/GMW/GMW/images/help_32.png differ
diff --git a/GMW/GMW/images/installWindows.png b/GMW/GMW/images/installWindows.png
new file mode 100644
index 00000000..5e216863
Binary files /dev/null and b/GMW/GMW/images/installWindows.png differ
diff --git a/GMW/GMW/images/logo_sw.png b/GMW/GMW/images/logo_sw.png
new file mode 100644
index 00000000..98ec9641
Binary files /dev/null and b/GMW/GMW/images/logo_sw.png differ
diff --git a/GMW/GMW/images/mtzProg.png b/GMW/GMW/images/mtzProg.png
new file mode 100644
index 00000000..cd75e5b5
Binary files /dev/null and b/GMW/GMW/images/mtzProg.png differ
diff --git a/GMW/GMW/images/new.gif b/GMW/GMW/images/new.gif
new file mode 100644
index 00000000..7b89f3f5
Binary files /dev/null and b/GMW/GMW/images/new.gif differ
diff --git a/GMW/GMW/images/new_disabled.gif b/GMW/GMW/images/new_disabled.gif
new file mode 100644
index 00000000..fe6f99c0
Binary files /dev/null and b/GMW/GMW/images/new_disabled.gif differ
diff --git a/GMW/GMW/images/new_l.png b/GMW/GMW/images/new_l.png
new file mode 100644
index 00000000..90fec1df
Binary files /dev/null and b/GMW/GMW/images/new_l.png differ
diff --git a/GMW/GMW/images/new_m.png b/GMW/GMW/images/new_m.png
new file mode 100644
index 00000000..e2823bac
Binary files /dev/null and b/GMW/GMW/images/new_m.png differ
diff --git a/GMW/GMW/images/new_s.png b/GMW/GMW/images/new_s.png
new file mode 100644
index 00000000..e9485082
Binary files /dev/null and b/GMW/GMW/images/new_s.png differ
diff --git a/GMW/GMW/images/notepad_l.png b/GMW/GMW/images/notepad_l.png
new file mode 100644
index 00000000..ff82029d
Binary files /dev/null and b/GMW/GMW/images/notepad_l.png differ
diff --git a/GMW/GMW/images/notepad_m.png b/GMW/GMW/images/notepad_m.png
new file mode 100644
index 00000000..47596260
Binary files /dev/null and b/GMW/GMW/images/notepad_m.png differ
diff --git a/GMW/GMW/images/notepad_s.png b/GMW/GMW/images/notepad_s.png
new file mode 100644
index 00000000..205216de
Binary files /dev/null and b/GMW/GMW/images/notepad_s.png differ
diff --git a/GMW/GMW/images/orangeGrad32.png b/GMW/GMW/images/orangeGrad32.png
new file mode 100644
index 00000000..f97e3095
Binary files /dev/null and b/GMW/GMW/images/orangeGrad32.png differ
diff --git a/GMW/GMW/images/page_pdf.png b/GMW/GMW/images/page_pdf.png
new file mode 100644
index 00000000..8f8095e4
Binary files /dev/null and b/GMW/GMW/images/page_pdf.png differ
diff --git a/GMW/GMW/images/pdfExport.png b/GMW/GMW/images/pdfExport.png
new file mode 100644
index 00000000..eed02a5f
Binary files /dev/null and b/GMW/GMW/images/pdfExport.png differ
diff --git a/GMW/GMW/images/pdfExportSmall.png b/GMW/GMW/images/pdfExportSmall.png
new file mode 100644
index 00000000..01f08bb3
Binary files /dev/null and b/GMW/GMW/images/pdfExportSmall.png differ
diff --git a/GMW/GMW/images/print_l.png b/GMW/GMW/images/print_l.png
new file mode 100644
index 00000000..0a23e51c
Binary files /dev/null and b/GMW/GMW/images/print_l.png differ
diff --git a/GMW/GMW/images/print_m.png b/GMW/GMW/images/print_m.png
new file mode 100644
index 00000000..bd3db566
Binary files /dev/null and b/GMW/GMW/images/print_m.png differ
diff --git a/GMW/GMW/images/print_s.png b/GMW/GMW/images/print_s.png
new file mode 100644
index 00000000..6cb10b08
Binary files /dev/null and b/GMW/GMW/images/print_s.png differ
diff --git a/GMW/GMW/images/red32.png b/GMW/GMW/images/red32.png
new file mode 100644
index 00000000..ef56f8d9
Binary files /dev/null and b/GMW/GMW/images/red32.png differ
diff --git a/GMW/GMW/images/select.gif b/GMW/GMW/images/select.gif
new file mode 100644
index 00000000..7b89f3f5
Binary files /dev/null and b/GMW/GMW/images/select.gif differ
diff --git a/GMW/GMW/images/select.png b/GMW/GMW/images/select.png
new file mode 100644
index 00000000..bb07c043
Binary files /dev/null and b/GMW/GMW/images/select.png differ
diff --git a/GMW/GMW/images/semaGiallo_l.gif b/GMW/GMW/images/semaGiallo_l.gif
new file mode 100644
index 00000000..6b3a4db9
Binary files /dev/null and b/GMW/GMW/images/semaGiallo_l.gif differ
diff --git a/GMW/GMW/images/semaGiallo_m.gif b/GMW/GMW/images/semaGiallo_m.gif
new file mode 100644
index 00000000..9fb553bc
Binary files /dev/null and b/GMW/GMW/images/semaGiallo_m.gif differ
diff --git a/GMW/GMW/images/semaGiallo_s.gif b/GMW/GMW/images/semaGiallo_s.gif
new file mode 100644
index 00000000..50f620ef
Binary files /dev/null and b/GMW/GMW/images/semaGiallo_s.gif differ
diff --git a/GMW/GMW/images/semaRosso_l.gif b/GMW/GMW/images/semaRosso_l.gif
new file mode 100644
index 00000000..cf47b40d
Binary files /dev/null and b/GMW/GMW/images/semaRosso_l.gif differ
diff --git a/GMW/GMW/images/semaRosso_m.gif b/GMW/GMW/images/semaRosso_m.gif
new file mode 100644
index 00000000..113f78b0
Binary files /dev/null and b/GMW/GMW/images/semaRosso_m.gif differ
diff --git a/GMW/GMW/images/semaRosso_s.gif b/GMW/GMW/images/semaRosso_s.gif
new file mode 100644
index 00000000..93f1e673
Binary files /dev/null and b/GMW/GMW/images/semaRosso_s.gif differ
diff --git a/GMW/GMW/images/semaVerde_l.gif b/GMW/GMW/images/semaVerde_l.gif
new file mode 100644
index 00000000..3e1cf8fe
Binary files /dev/null and b/GMW/GMW/images/semaVerde_l.gif differ
diff --git a/GMW/GMW/images/semaVerde_m.gif b/GMW/GMW/images/semaVerde_m.gif
new file mode 100644
index 00000000..829c0fa7
Binary files /dev/null and b/GMW/GMW/images/semaVerde_m.gif differ
diff --git a/GMW/GMW/images/semaVerde_s.gif b/GMW/GMW/images/semaVerde_s.gif
new file mode 100644
index 00000000..ee9be660
Binary files /dev/null and b/GMW/GMW/images/semaVerde_s.gif differ
diff --git a/GMW/GMW/images/sfondo.png b/GMW/GMW/images/sfondo.png
new file mode 100644
index 00000000..5fcffdde
Binary files /dev/null and b/GMW/GMW/images/sfondo.png differ
diff --git a/GMW/GMW/images/table.png b/GMW/GMW/images/table.png
new file mode 100644
index 00000000..abcd9368
Binary files /dev/null and b/GMW/GMW/images/table.png differ
diff --git a/GMW/GMW/images/unknown_l.png b/GMW/GMW/images/unknown_l.png
new file mode 100644
index 00000000..704cf4ba
Binary files /dev/null and b/GMW/GMW/images/unknown_l.png differ
diff --git a/GMW/GMW/images/unknown_m.png b/GMW/GMW/images/unknown_m.png
new file mode 100644
index 00000000..01354c30
Binary files /dev/null and b/GMW/GMW/images/unknown_m.png differ
diff --git a/GMW/GMW/images/unknown_s.png b/GMW/GMW/images/unknown_s.png
new file mode 100644
index 00000000..4d158de5
Binary files /dev/null and b/GMW/GMW/images/unknown_s.png differ
diff --git a/GMW/GMW/images/upLvl.png b/GMW/GMW/images/upLvl.png
new file mode 100644
index 00000000..fe5cc3d4
Binary files /dev/null and b/GMW/GMW/images/upLvl.png differ
diff --git a/GMW/GMW/images/view.gif b/GMW/GMW/images/view.gif
new file mode 100644
index 00000000..8f5d1e64
Binary files /dev/null and b/GMW/GMW/images/view.gif differ
diff --git a/GMW/GMW/images/view.png b/GMW/GMW/images/view.png
new file mode 100644
index 00000000..2833b7a0
Binary files /dev/null and b/GMW/GMW/images/view.png differ
diff --git a/GMW/GMW/images/view_disabled.gif b/GMW/GMW/images/view_disabled.gif
new file mode 100644
index 00000000..fb38c44c
Binary files /dev/null and b/GMW/GMW/images/view_disabled.gif differ
diff --git a/GMW/GMW/images/view_l.png b/GMW/GMW/images/view_l.png
new file mode 100644
index 00000000..de5ef3a1
Binary files /dev/null and b/GMW/GMW/images/view_l.png differ
diff --git a/GMW/GMW/images/view_m.png b/GMW/GMW/images/view_m.png
new file mode 100644
index 00000000..e845f6d5
Binary files /dev/null and b/GMW/GMW/images/view_m.png differ
diff --git a/GMW/GMW/images/view_s.gif b/GMW/GMW/images/view_s.gif
new file mode 100644
index 00000000..df6ffbaf
Binary files /dev/null and b/GMW/GMW/images/view_s.gif differ
diff --git a/GMW/GMW/images/view_s.png b/GMW/GMW/images/view_s.png
new file mode 100644
index 00000000..2833b7a0
Binary files /dev/null and b/GMW/GMW/images/view_s.png differ
diff --git a/GMW/GMW/images/wizard.png b/GMW/GMW/images/wizard.png
new file mode 100644
index 00000000..b36973cc
Binary files /dev/null and b/GMW/GMW/images/wizard.png differ
diff --git a/GMW/GMW/images/wt_delete.gif b/GMW/GMW/images/wt_delete.gif
new file mode 100644
index 00000000..e2900999
Binary files /dev/null and b/GMW/GMW/images/wt_delete.gif differ
diff --git a/GMW/GMW/images/wt_ko.gif b/GMW/GMW/images/wt_ko.gif
new file mode 100644
index 00000000..e2900999
Binary files /dev/null and b/GMW/GMW/images/wt_ko.gif differ
diff --git a/GMW/GMW/images/wt_ok.gif b/GMW/GMW/images/wt_ok.gif
new file mode 100644
index 00000000..f59979e3
Binary files /dev/null and b/GMW/GMW/images/wt_ok.gif differ
diff --git a/GMW/GMW/login.aspx b/GMW/GMW/login.aspx
new file mode 100644
index 00000000..ff871aed
--- /dev/null
+++ b/GMW/GMW/login.aspx
@@ -0,0 +1,9 @@
+<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MasterAjax.master" AutoEventWireup="true"
+ Inherits="login" Title="Login" Codebehind="login.aspx.cs" %>
+
+<%@ Register Src="~/WebUserControls/mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %>
+
+
+
+
+
diff --git a/GMW/GMW/login.aspx.cs b/GMW/GMW/login.aspx.cs
new file mode 100644
index 00000000..eaf6cf5a
--- /dev/null
+++ b/GMW/GMW/login.aspx.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+
+public partial class login : System.Web.UI.Page
+{
+ protected string _nextPage
+ {
+ get
+ {
+ string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage");
+ if (pagina == "")
+ {
+ pagina = "menu.aspx";
+ }
+ return pagina;
+ }
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Mod_login1.modoLogin = SteamWare.loginMode.normale;
+ }
+
+ protected override void OnInit(EventArgs e)
+ {
+ base.OnInit(e);
+ Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok);
+ Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error);
+ }
+
+ void Mod_login1_Login_Error(object sender, EventArgs e)
+ {
+ Response.Redirect("./unauthorized.aspx");
+ }
+
+ void Mod_login1_Login_ok(object sender, EventArgs e)
+ {
+ Response.Redirect(_nextPage);
+ }
+ protected override void OnUnload(EventArgs e)
+ {
+ base.OnUnload(e);
+ Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok);
+ Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error);
+ }
+}
diff --git a/GMW/GMW/login.aspx.designer.cs b/GMW/GMW/login.aspx.designer.cs
new file mode 100644
index 00000000..d4aa961a
--- /dev/null
+++ b/GMW/GMW/login.aspx.designer.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class login {
+
+ ///
+ /// Mod_login1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_login Mod_login1;
+}
diff --git a/GMW/GMW/mazzAppSettings.config b/GMW/GMW/mazzAppSettings.config
index 0fbb33a3..055a7ff5 100644
--- a/GMW/GMW/mazzAppSettings.config
+++ b/GMW/GMW/mazzAppSettings.config
@@ -1,15 +1,32 @@

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -23,5 +40,11 @@
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
diff --git a/GMW/GMW/menu.aspx b/GMW/GMW/menu.aspx
new file mode 100644
index 00000000..74155e90
--- /dev/null
+++ b/GMW/GMW/menu.aspx
@@ -0,0 +1,8 @@
+<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MasterAjax.master" AutoEventWireup="true" Inherits="menu" Title="Untitled Page" Codebehind="menu.aspx.cs" %>
+
+<%@ Register Src="~/WebUserControls/mod_main_help.ascx" TagName="mod_main_help" TagPrefix="uc2" %>
+
+
+
+
+
diff --git a/GMW/GMW/menu.aspx.cs b/GMW/GMW/menu.aspx.cs
new file mode 100644
index 00000000..bca3d27a
--- /dev/null
+++ b/GMW/GMW/menu.aspx.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+
+public partial class menu : System.Web.UI.Page
+{
+}
diff --git a/GMW/GMW/menu.aspx.designer.cs b/GMW/GMW/menu.aspx.designer.cs
new file mode 100644
index 00000000..80992890
--- /dev/null
+++ b/GMW/GMW/menu.aspx.designer.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class menu {
+
+ ///
+ /// Mod_main_help1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_main_help Mod_main_help1;
+}
diff --git a/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt b/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt
index 853f5406..11b5aecb 100644
--- a/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt
+++ b/GMW/GMW/obj/Debug/GMW.csproj.FileListAbsolute.txt
@@ -1,20 +1,15 @@
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\ResolveAssemblyReference.cache
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.pdb
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ICSharpCode.SharpZipLib.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.pdb
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb
-c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache
-c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW.pdb
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.dll
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ICSharpCode.SharpZipLib.dll
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.pdb
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.pdb
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.pdb
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.xml
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ar\AjaxControlToolkit.resources.dll
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\cs\AjaxControlToolkit.resources.dll
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\de\AjaxControlToolkit.resources.dll
@@ -31,3 +26,8 @@ c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ru\AjaxContro
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\tr-TR\AjaxControlToolkit.resources.dll
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\zh-CHS\AjaxControlToolkit.resources.dll
c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\zh-CHT\AjaxControlToolkit.resources.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\ResolveAssemblyReference.cache
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.cache
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\RdlCompile.compiled
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW\obj\Debug\GMW.pdb
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index c3a63788..e213631e 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 b63e6211..cdc6acc1 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW/vocabolario.aspx b/GMW/GMW/vocabolario.aspx
new file mode 100644
index 00000000..d7a37bc0
--- /dev/null
+++ b/GMW/GMW/vocabolario.aspx
@@ -0,0 +1,8 @@
+<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" Inherits="vocabolario" Title="Untitled Page" Codebehind="vocabolario.aspx.cs" %>
+
+<%@ Register Src="~/WebUserControls/mod_vocabolario.ascx" TagName="mod_vocabolario" TagPrefix="uc1" %>
+<%@ Register Src="~/WebUserControls/mod_lemmiVocab.ascx" TagName="mod_lemmiVocab" TagPrefix="uc2" %>
+
+
+
+
diff --git a/GMW/GMW/vocabolario.aspx.cs b/GMW/GMW/vocabolario.aspx.cs
new file mode 100644
index 00000000..60a31ce7
--- /dev/null
+++ b/GMW/GMW/vocabolario.aspx.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class vocabolario : System.Web.UI.Page
+{
+ protected override void OnInit(EventArgs e)
+ {
+ base.OnInit(e);
+ // imposto controlli eventi
+ Mod_vocabolario1.eh_selezioneValore += new EventHandler(Mod_vocabolario1_eh_selezioneValore);
+ Mod_vocabolario1.eh_resetSelezione += new EventHandler(Mod_vocabolario1_eh_resetSelezione);
+ // setto visibilità dettaglio termini
+ Mod_lemmiVocab1.Visible = false;
+ }
+
+ void Mod_vocabolario1_eh_resetSelezione(object sender, EventArgs e)
+ {
+ Mod_lemmiVocab1.Visible = false;
+ Session.Remove("lemma_sel");
+ }
+
+ void Mod_vocabolario1_eh_selezioneValore(object sender, EventArgs e)
+ {
+ Mod_lemmiVocab1.Visible = true;
+ Mod_lemmiVocab1.doUpdate();
+ }
+
+ protected override void OnUnload(EventArgs e)
+ {
+ base.OnUnload(e);
+ Mod_vocabolario1.eh_selezioneValore -= new EventHandler(Mod_vocabolario1_eh_selezioneValore);
+ Mod_vocabolario1.eh_resetSelezione -= new EventHandler(Mod_vocabolario1_eh_resetSelezione);
+ }
+}
diff --git a/GMW/GMW/vocabolario.aspx.designer.cs b/GMW/GMW/vocabolario.aspx.designer.cs
new file mode 100644
index 00000000..b51e3378
--- /dev/null
+++ b/GMW/GMW/vocabolario.aspx.designer.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+
+
+public partial class vocabolario {
+
+ ///
+ /// Mod_vocabolario1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_vocabolario Mod_vocabolario1;
+
+ ///
+ /// Mod_lemmiVocab1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::mod_lemmiVocab Mod_lemmiVocab1;
+}
diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs
index d801b1a5..b01f6079 100644
--- a/GMW/GMW_data/DS_magazzino.Designer.cs
+++ b/GMW/GMW_data/DS_magazzino.Designer.cs
@@ -25,8 +25,6 @@ namespace GMW_data {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class DS_magazzino : global::System.Data.DataSet {
- private AnagMagDataTable tableAnagMag;
-
private ElencoCartelliniDataTable tableElencoCartellini;
private PosizioneUdcCorrenteDataTable tablePosizioneUdcCorrente;
@@ -35,14 +33,16 @@ namespace GMW_data {
private PosizioneUdcStoricoDataTable tablePosizioneUdcStorico;
+ private AnagMagDataTable tableAnagMag;
+
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini;
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_AnagCelle;
- private global::System.Data.DataRelation relationFK_AnagCelle_AnagMag;
-
private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini;
+ private global::System.Data.DataRelation relationFK_AnagCelle_AnagMag;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -69,9 +69,6 @@ namespace GMW_data {
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- if ((ds.Tables["AnagMag"] != null)) {
- base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
- }
if ((ds.Tables["ElencoCartellini"] != null)) {
base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"]));
}
@@ -84,6 +81,9 @@ namespace GMW_data {
if ((ds.Tables["PosizioneUdcStorico"] != null)) {
base.Tables.Add(new PosizioneUdcStoricoDataTable(ds.Tables["PosizioneUdcStorico"]));
}
+ if ((ds.Tables["AnagMag"] != null)) {
+ base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -102,15 +102,6 @@ namespace GMW_data {
this.Relations.CollectionChanged += schemaChangedHandler;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagMagDataTable AnagMag {
- get {
- return this.tableAnagMag;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -147,6 +138,15 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagMagDataTable AnagMag {
+ get {
+ return this.tableAnagMag;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
@@ -206,9 +206,6 @@ namespace GMW_data {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
- if ((ds.Tables["AnagMag"] != null)) {
- base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
- }
if ((ds.Tables["ElencoCartellini"] != null)) {
base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"]));
}
@@ -221,6 +218,9 @@ namespace GMW_data {
if ((ds.Tables["PosizioneUdcStorico"] != null)) {
base.Tables.Add(new PosizioneUdcStoricoDataTable(ds.Tables["PosizioneUdcStorico"]));
}
+ if ((ds.Tables["AnagMag"] != null)) {
+ base.Tables.Add(new AnagMagDataTable(ds.Tables["AnagMag"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -251,12 +251,6 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars(bool initTable) {
- this.tableAnagMag = ((AnagMagDataTable)(base.Tables["AnagMag"]));
- if ((initTable == true)) {
- if ((this.tableAnagMag != null)) {
- this.tableAnagMag.InitVars();
- }
- }
this.tableElencoCartellini = ((ElencoCartelliniDataTable)(base.Tables["ElencoCartellini"]));
if ((initTable == true)) {
if ((this.tableElencoCartellini != null)) {
@@ -281,10 +275,16 @@ namespace GMW_data {
this.tablePosizioneUdcStorico.InitVars();
}
}
+ this.tableAnagMag = ((AnagMagDataTable)(base.Tables["AnagMag"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagMag != null)) {
+ this.tableAnagMag.InitVars();
+ }
+ }
this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"];
this.relationFK_PosizioneUdcCorrente_AnagCelle = this.Relations["FK_PosizioneUdcCorrente_AnagCelle"];
- this.relationFK_AnagCelle_AnagMag = this.Relations["FK_AnagCelle_AnagMag"];
this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"];
+ this.relationFK_AnagCelle_AnagMag = this.Relations["FK_AnagCelle_AnagMag"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -294,8 +294,6 @@ namespace GMW_data {
this.Namespace = "http://tempuri.org/DS_magazzino.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableAnagMag = new AnagMagDataTable();
- base.Tables.Add(this.tableAnagMag);
this.tableElencoCartellini = new ElencoCartelliniDataTable();
base.Tables.Add(this.tableElencoCartellini);
this.tablePosizioneUdcCorrente = new PosizioneUdcCorrenteDataTable();
@@ -304,6 +302,8 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagCelle);
this.tablePosizioneUdcStorico = new PosizioneUdcStoricoDataTable();
base.Tables.Add(this.tablePosizioneUdcStorico);
+ this.tableAnagMag = new AnagMagDataTable();
+ base.Tables.Add(this.tableAnagMag);
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);
@@ -314,19 +314,14 @@ namespace GMW_data {
this.tablePosizioneUdcCorrente.CodMagColumn,
this.tablePosizioneUdcCorrente.CodCellaColumn}, false);
this.Relations.Add(this.relationFK_PosizioneUdcCorrente_AnagCelle);
- this.relationFK_AnagCelle_AnagMag = new global::System.Data.DataRelation("FK_AnagCelle_AnagMag", new global::System.Data.DataColumn[] {
- this.tableAnagMag.CodMagColumn}, new global::System.Data.DataColumn[] {
- this.tableAnagCelle.CodMagColumn}, false);
- this.Relations.Add(this.relationFK_AnagCelle_AnagMag);
this.relationFK_PosizioneUdcStorico_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcStorico_ElencoCartellini", new global::System.Data.DataColumn[] {
this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] {
this.tablePosizioneUdcStorico.UDCColumn}, false);
this.Relations.Add(this.relationFK_PosizioneUdcStorico_ElencoCartellini);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagMag() {
- return false;
+ this.relationFK_AnagCelle_AnagMag = new global::System.Data.DataRelation("FK_AnagCelle_AnagMag", new global::System.Data.DataColumn[] {
+ this.tableAnagMag.CodMagColumn}, new global::System.Data.DataColumn[] {
+ this.tableAnagCelle.CodMagColumn}, false);
+ this.Relations.Add(this.relationFK_AnagCelle_AnagMag);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -349,6 +344,11 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagMag() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
@@ -402,8 +402,6 @@ namespace GMW_data {
return type;
}
- public delegate void AnagMagRowChangeEventHandler(object sender, AnagMagRowChangeEvent e);
-
public delegate void ElencoCartelliniRowChangeEventHandler(object sender, ElencoCartelliniRowChangeEvent e);
public delegate void PosizioneUdcCorrenteRowChangeEventHandler(object sender, PosizioneUdcCorrenteRowChangeEvent e);
@@ -412,268 +410,7 @@ namespace GMW_data {
public delegate void PosizioneUdcStoricoRowChangeEventHandler(object sender, PosizioneUdcStoricoRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagMagDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodMag;
-
- private global::System.Data.DataColumn columnCodCS;
-
- private global::System.Data.DataColumn columnDescrMag;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagDataTable() {
- this.TableName = "AnagMag";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagMagDataTable(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 AnagMagDataTable(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 CodMagColumn {
- get {
- return this.columnCodMag;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodCSColumn {
- get {
- return this.columnCodCS;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescrMagColumn {
- get {
- return this.columnDescrMag;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow this[int index] {
- get {
- return ((AnagMagRow)(this.Rows[index]));
- }
- }
-
- public event AnagMagRowChangeEventHandler AnagMagRowChanging;
-
- public event AnagMagRowChangeEventHandler AnagMagRowChanged;
-
- public event AnagMagRowChangeEventHandler AnagMagRowDeleting;
-
- public event AnagMagRowChangeEventHandler AnagMagRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagMagRow(AnagMagRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow AddAnagMagRow(string CodMag, string CodCS, string DescrMag) {
- AnagMagRow rowAnagMagRow = ((AnagMagRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodMag,
- CodCS,
- DescrMag};
- rowAnagMagRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagMagRow);
- return rowAnagMagRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow FindByCodMag(string CodMag) {
- return ((AnagMagRow)(this.Rows.Find(new object[] {
- CodMag})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagMagDataTable cln = ((AnagMagDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagMagDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodMag = base.Columns["CodMag"];
- this.columnCodCS = base.Columns["CodCS"];
- this.columnDescrMag = base.Columns["DescrMag"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- 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.columnDescrMag = new global::System.Data.DataColumn("DescrMag", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrMag);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodMag}, true));
- this.columnCodMag.AllowDBNull = false;
- this.columnCodMag.Unique = true;
- this.columnCodMag.MaxLength = 50;
- this.columnCodCS.AllowDBNull = false;
- this.columnCodCS.MaxLength = 2;
- this.columnDescrMag.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow NewAnagMagRow() {
- return ((AnagMagRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagMagRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagMagRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagMagRowChanged != null)) {
- this.AnagMagRowChanged(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagMagRowChanging != null)) {
- this.AnagMagRowChanging(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagMagRowDeleted != null)) {
- this.AnagMagRowDeleted(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagMagRowDeleting != null)) {
- this.AnagMagRowDeleting(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagMagRow(AnagMagRow 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 = "AnagMagDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
+ public delegate void AnagMagRowChangeEventHandler(object sender, AnagMagRowChangeEvent e);
///
///Represents the strongly named DataTable class.
@@ -2123,72 +1860,265 @@ namespace GMW_data {
}
///
- ///Represents strongly named DataRow class.
+ ///Represents the strongly named DataTable class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagMagRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagMagDataTable : global::System.Data.TypedTableBase {
- private AnagMagDataTable tableAnagMag;
+ private global::System.Data.DataColumn columnCodMag;
+
+ private global::System.Data.DataColumn columnCodCS;
+
+ private global::System.Data.DataColumn columnDescMag;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagMagRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagMag = ((AnagMagDataTable)(this.Table));
+ public AnagMagDataTable() {
+ this.TableName = "AnagMag";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodMag {
- get {
- return ((string)(this[this.tableAnagMag.CodMagColumn]));
+ internal AnagMagDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableAnagMag.CodMagColumn] = value;
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected AnagMagDataTable(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 CodMagColumn {
+ get {
+ return this.columnCodMag;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodCS {
+ public global::System.Data.DataColumn CodCSColumn {
get {
- return ((string)(this[this.tableAnagMag.CodCSColumn]));
- }
- set {
- this[this.tableAnagMag.CodCSColumn] = value;
+ return this.columnCodCS;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescrMag {
+ public global::System.Data.DataColumn DescMagColumn {
get {
+ return this.columnDescMag;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow this[int index] {
+ get {
+ return ((AnagMagRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagMagRowChangeEventHandler AnagMagRowChanging;
+
+ public event AnagMagRowChangeEventHandler AnagMagRowChanged;
+
+ public event AnagMagRowChangeEventHandler AnagMagRowDeleting;
+
+ public event AnagMagRowChangeEventHandler AnagMagRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagMagRow(AnagMagRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow AddAnagMagRow(string CodMag, string CodCS, string DescMag) {
+ AnagMagRow rowAnagMagRow = ((AnagMagRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodMag,
+ CodCS,
+ DescMag};
+ rowAnagMagRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagMagRow);
+ return rowAnagMagRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow FindByCodMag(string CodMag) {
+ return ((AnagMagRow)(this.Rows.Find(new object[] {
+ CodMag})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagMagDataTable cln = ((AnagMagDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagMagDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodMag = base.Columns["CodMag"];
+ this.columnCodCS = base.Columns["CodCS"];
+ this.columnDescMag = base.Columns["DescMag"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ 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.columnDescMag = new global::System.Data.DataColumn("DescMag", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescMag);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodMag}, true));
+ this.columnCodMag.AllowDBNull = false;
+ this.columnCodMag.Unique = true;
+ this.columnCodMag.MaxLength = 50;
+ this.columnCodCS.AllowDBNull = false;
+ this.columnCodCS.MaxLength = 2;
+ this.columnDescMag.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow NewAnagMagRow() {
+ return ((AnagMagRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagMagRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagMagRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagMagRowChanged != null)) {
+ this.AnagMagRowChanged(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagMagRowChanging != null)) {
+ this.AnagMagRowChanging(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagMagRowDeleted != null)) {
+ this.AnagMagRowDeleted(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagMagRowDeleting != null)) {
+ this.AnagMagRowDeleting(this, new AnagMagRowChangeEvent(((AnagMagRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagMagRow(AnagMagRow 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 = "AnagMagDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
- return ((string)(this[this.tableAnagMag.DescrMagColumn]));
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescrMag\' in table \'AnagMag\' is DBNull.", e);
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
}
}
- set {
- this[this.tableAnagMag.DescrMagColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescrMagNull() {
- return this.IsNull(this.tableAnagMag.DescrMagColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescrMagNull() {
- this[this.tableAnagMag.DescrMagColumn] = global::System.Convert.DBNull;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagCelleRow[] GetAnagCelleRows() {
- if ((this.Table.ChildRelations["FK_AnagCelle_AnagMag"] == null)) {
- return new AnagCelleRow[0];
- }
- else {
- return ((AnagCelleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagCelle_AnagMag"])));
- }
+ xs.Add(dsSchema);
+ return type;
}
}
@@ -3123,32 +3053,71 @@ namespace GMW_data {
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagMagRowChangeEvent : global::System.EventArgs {
+ public partial class AnagMagRow : global::System.Data.DataRow {
- private AnagMagRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private AnagMagDataTable tableAnagMag;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRowChangeEvent(AnagMagRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal AnagMagRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagMag = ((AnagMagDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagMagRow Row {
+ public string CodMag {
get {
- return this.eventRow;
+ return ((string)(this[this.tableAnagMag.CodMagColumn]));
+ }
+ set {
+ this[this.tableAnagMag.CodMagColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
+ public string CodCS {
get {
- return this.eventAction;
+ return ((string)(this[this.tableAnagMag.CodCSColumn]));
+ }
+ set {
+ this[this.tableAnagMag.CodCSColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescMag {
+ get {
+ try {
+ return ((string)(this[this.tableAnagMag.DescMagColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescMag\' in table \'AnagMag\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagMag.DescMagColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescMagNull() {
+ return this.IsNull(this.tableAnagMag.DescMagColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescMagNull() {
+ this[this.tableAnagMag.DescMagColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagCelleRow[] GetAnagCelleRows() {
+ if ((this.Table.ChildRelations["FK_AnagCelle_AnagMag"] == null)) {
+ return new AnagCelleRow[0];
+ }
+ else {
+ return ((AnagCelleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AnagCelle_AnagMag"])));
}
}
}
@@ -3276,391 +3245,42 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagMagRowChangeEvent : global::System.EventArgs {
+
+ private AnagMagRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRowChangeEvent(AnagMagRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagMagRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_magazzinoTableAdapters {
- ///
- ///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 AnagMagTableAdapter : 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 AnagMagTableAdapter() {
- 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 = "AnagMag";
- tableMapping.ColumnMappings.Add("CodMag", "CodMag");
- tableMapping.ColumnMappings.Add("CodCS", "CodCS");
- tableMapping.ColumnMappings.Add("DescrMag", "DescrMag");
- 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].[AnagMag] WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @" +
- "Original_CodCS) AND ((@IsNull_DescrMag = 1 AND [DescrMag] IS NULL) OR ([DescrMag" +
- "] = @Original_DescrMag)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- 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("@IsNull_DescrMag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrMag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrMag", 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].[AnagMag] ([CodMag], [CodCS], [DescrMag]) VALUES (@CodMag, @Cod" +
- "CS, @DescrMag);\r\nSELECT CodMag, CodCS, DescrMag FROM AnagMag WHERE (CodMag = @Co" +
- "dMag)";
- 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("@DescrMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrMag", 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].[AnagMag] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescrMag] = @DescrMag WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescrMag = 1 AND [DescrMag] IS NULL) OR ([DescrMag] = @Original_DescrMag)));
-SELECT CodMag, CodCS, DescrMag FROM AnagMag WHERE (CodMag = @CodMag)";
- 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("@DescrMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrMag", global::System.Data.DataRowVersion.Current, 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("@IsNull_DescrMag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrMag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodMag, CodCS, DescrMag FROM dbo.AnagMag";
- 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_magGetByCS";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_magazzino.AnagMagDataTable 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.AnagMagDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_magazzino.AnagMagDataTable dataTable = new DS_magazzino.AnagMagDataTable();
- 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.AnagMagDataTable getByCodCs(string CodCS) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodCS == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
- }
- DS_magazzino.AnagMagDataTable dataTable = new DS_magazzino.AnagMagDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_magazzino.AnagMagDataTable 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, "AnagMag");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodMag, string Original_CodCS, string Original_DescrMag) {
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCS == null)) {
- throw new global::System.ArgumentNullException("Original_CodCS");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodCS));
- }
- if ((Original_DescrMag == null)) {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescrMag));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodMag, string CodCS, string DescrMag) {
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodMag));
- }
- if ((CodCS == null)) {
- throw new global::System.ArgumentNullException("CodCS");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS));
- }
- if ((DescrMag == null)) {
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescrMag));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodMag, string CodCS, string DescrMag, string Original_CodMag, string Original_CodCS, string Original_DescrMag) {
- if ((CodMag == null)) {
- throw new global::System.ArgumentNullException("CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodMag));
- }
- if ((CodCS == null)) {
- throw new global::System.ArgumentNullException("CodCS");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS));
- }
- if ((DescrMag == null)) {
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescrMag));
- }
- if ((Original_CodMag == null)) {
- throw new global::System.ArgumentNullException("Original_CodMag");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodMag));
- }
- if ((Original_CodCS == null)) {
- throw new global::System.ArgumentNullException("Original_CodCS");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodCS));
- }
- if ((Original_DescrMag == null)) {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrMag));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCS, string DescrMag, string Original_CodMag, string Original_CodCS, string Original_DescrMag) {
- return this.Update(Original_CodMag, CodCS, DescrMag, Original_CodMag, Original_CodCS, Original_DescrMag);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -5560,11 +5180,18 @@ SELECT CodMag, CodCella, Capacita, Descrizione FROM AnagCelle WHERE (CodCella =
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT CodMag, CodCella, Capacita, Descrizione FROM dbo.AnagCelle";
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_cellaGetByCodMag";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].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, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5589,6 +5216,28 @@ SELECT CodMag, CodCella, Capacita, Descrizione FROM AnagCelle WHERE (CodCella =
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.AnagCelleDataTable getByCodMag(string CodCS, string CodMag) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodCS == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((CodMag == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodMag));
+ }
+ DS_magazzino.AnagCelleDataTable dataTable = new DS_magazzino.AnagCelleDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_magazzino.AnagCelleDataTable dataTable) {
@@ -6179,6 +5828,519 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
}
}
+ ///
+ ///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 AnagMagTableAdapter : 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 AnagMagTableAdapter() {
+ 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 = "AnagMag";
+ tableMapping.ColumnMappings.Add("CodMag", "CodMag");
+ tableMapping.ColumnMappings.Add("CodCS", "CodCS");
+ tableMapping.ColumnMappings.Add("DescMag", "DescMag");
+ 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].[AnagMag] WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @" +
+ "Original_CodCS) AND ((@IsNull_DescMag = 1 AND [DescMag] IS NULL) OR ([DescMag] =" +
+ " @Original_DescMag)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ 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("@IsNull_DescMag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", 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].[AnagMag] ([CodMag], [CodCS], [DescMag]) VALUES (@CodMag, @CodC" +
+ "S, @DescMag);\r\nSELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMa" +
+ "g)";
+ 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("@DescMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", 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].[AnagMag] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMag] = @DescMag WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescMag = 1 AND [DescMag] IS NULL) OR ([DescMag] = @Original_DescMag)));
+SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
+ 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("@DescMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", global::System.Data.DataRowVersion.Current, 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("@IsNull_DescMag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT * FROM dbo.AnagMag";
+ 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 AnagMag\r\nWHERE (CodCS = @CodCS) AND (CodMag = @Original_CodMag" +
+ ")";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1].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.Original, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", 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 = "dbo.stp_magGetByCS";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@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] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_magGetByCodMag";
+ 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 AnagMag\r\nSET CodCS = @CodCS, CodMag = @CodMag, DescMa" +
+ "g = @DescMag\r\nWHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_Cod" +
+ "Mag)";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
+ 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("@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("@DescMag", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "DescMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMag", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", 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.AnagMagDataTable 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.AnagMagDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_magazzino.AnagMagDataTable dataTable = new DS_magazzino.AnagMagDataTable();
+ 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.AnagMagDataTable getByCodCS(string CodCS) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((CodCS == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ DS_magazzino.AnagMagDataTable dataTable = new DS_magazzino.AnagMagDataTable();
+ 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.AnagMagDataTable 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.AnagMagDataTable dataTable = new DS_magazzino.AnagMagDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_magazzino.AnagMagDataTable 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, "AnagMag");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodMag, string Original_CodCS, string Original_DescMag) {
+ if ((Original_CodMag == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMag");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodMag));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DescMag == null)) {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DescMag));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodMag, string CodCS, string DescMag) {
+ if ((CodMag == null)) {
+ throw new global::System.ArgumentNullException("CodMag");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodMag));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((DescMag == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescMag));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodMag, string CodCS, string DescMag, string Original_CodMag, string Original_CodCS, string Original_DescMag) {
+ if ((CodMag == null)) {
+ throw new global::System.ArgumentNullException("CodMag");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodMag));
+ }
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodCS));
+ }
+ if ((DescMag == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescMag));
+ }
+ if ((Original_CodMag == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMag");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodMag));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_DescMag == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescMag));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodCS, string DescMag, string Original_CodMag, string Original_CodCS, string Original_DescMag) {
+ return this.Update(Original_CodMag, CodCS, DescMag, Original_CodMag, Original_CodCS, Original_DescMag);
+ }
+
+ [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(string CodCS, string Original_CodMag) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ command.Parameters[0].Value = ((string)(CodCS));
+ }
+ if ((Original_CodMag == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMag");
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodMag));
+ }
+ 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 CodCS, string CodMag, string DescMag, string Original_CodCS, string Original_CodMag) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ if ((CodCS == null)) {
+ throw new global::System.ArgumentNullException("CodCS");
+ }
+ else {
+ command.Parameters[0].Value = ((string)(CodCS));
+ }
+ if ((CodMag == null)) {
+ throw new global::System.ArgumentNullException("CodMag");
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodMag));
+ }
+ if ((DescMag == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(DescMag));
+ }
+ if ((Original_CodCS == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCS");
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Original_CodCS));
+ }
+ if ((Original_CodMag == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMag");
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Original_CodMag));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -6192,8 +6354,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
private UpdateOrderOption _updateOrder;
- private AnagMagTableAdapter _anagMagTableAdapter;
-
private ElencoCartelliniTableAdapter _elencoCartelliniTableAdapter;
private PosizioneUdcCorrenteTableAdapter _posizioneUdcCorrenteTableAdapter;
@@ -6202,6 +6362,8 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
private PosizioneUdcStoricoTableAdapter _posizioneUdcStoricoTableAdapter;
+ private AnagMagTableAdapter _anagMagTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -6216,19 +6378,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
}
}
- [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 AnagMagTableAdapter AnagMagTableAdapter {
- get {
- return this._anagMagTableAdapter;
- }
- set {
- this._anagMagTableAdapter = 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" +
@@ -6281,6 +6430,19 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
}
}
+ [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 AnagMagTableAdapter AnagMagTableAdapter {
+ get {
+ return this._anagMagTableAdapter;
+ }
+ set {
+ this._anagMagTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool BackupDataSetBeforeUpdate {
get {
@@ -6298,10 +6460,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
if ((this._connection != null)) {
return this._connection;
}
- if (((this._anagMagTableAdapter != null)
- && (this._anagMagTableAdapter.Connection != null))) {
- return this._anagMagTableAdapter.Connection;
- }
if (((this._elencoCartelliniTableAdapter != null)
&& (this._elencoCartelliniTableAdapter.Connection != null))) {
return this._elencoCartelliniTableAdapter.Connection;
@@ -6318,6 +6476,10 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
&& (this._posizioneUdcStoricoTableAdapter.Connection != null))) {
return this._posizioneUdcStoricoTableAdapter.Connection;
}
+ if (((this._anagMagTableAdapter != null)
+ && (this._anagMagTableAdapter.Connection != null))) {
+ return this._anagMagTableAdapter.Connection;
+ }
return null;
}
set {
@@ -6330,9 +6492,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
public int TableAdapterInstanceCount {
get {
int count = 0;
- if ((this._anagMagTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._elencoCartelliniTableAdapter != null)) {
count = (count + 1);
}
@@ -6345,6 +6504,9 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
if ((this._posizioneUdcStoricoTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagMagTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -6364,15 +6526,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagCelleTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagCelleTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._elencoCartelliniTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -6382,12 +6535,12 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._posizioneUdcStoricoTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagCelleTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(updatedRows));
+ result = (result + this._anagCelleTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -6400,6 +6553,15 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
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;
}
@@ -6417,14 +6579,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagCelleTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagCelleTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._elencoCartelliniTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -6433,11 +6587,11 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
allAddedRows.AddRange(addedRows);
}
}
- if ((this._posizioneUdcStoricoTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcStorico.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagCelleTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagCelle.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._posizioneUdcStoricoTableAdapter.Update(addedRows));
+ result = (result + this._anagCelleTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -6449,6 +6603,14 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
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;
}
@@ -6458,14 +6620,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private int UpdateDeletedRows(DS_magazzino dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._posizioneUdcCorrenteTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows));
- 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)
@@ -6474,11 +6628,11 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._elencoCartelliniTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._posizioneUdcCorrenteTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows));
+ result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -6490,6 +6644,14 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._elencoCartelliniTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ElencoCartellini.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._elencoCartelliniTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._anagMagTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagMag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -6535,11 +6697,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
if ((dataSet.HasChanges() == false)) {
return 0;
}
- if (((this._anagMagTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagMagTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
if (((this._elencoCartelliniTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._elencoCartelliniTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
@@ -6560,6 +6717,11 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._anagMagTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagMagTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -6592,15 +6754,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
try {
// ---- Prepare for update -----------
//
- if ((this._anagMagTableAdapter != null)) {
- revertConnections.Add(this._anagMagTableAdapter, this._anagMagTableAdapter.Connection);
- this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagMagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagMagTableAdapter.Adapter);
- }
- }
if ((this._elencoCartelliniTableAdapter != null)) {
revertConnections.Add(this._elencoCartelliniTableAdapter, this._elencoCartelliniTableAdapter.Connection);
this._elencoCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -6637,6 +6790,15 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
adaptersWithAcceptChangesDuringUpdate.Add(this._posizioneUdcStoricoTableAdapter.Adapter);
}
}
+ if ((this._anagMagTableAdapter != null)) {
+ revertConnections.Add(this._anagMagTableAdapter, this._anagMagTableAdapter.Connection);
+ this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagMagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagMagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagMagTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -6695,10 +6857,6 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
if (workConnOpened) {
workConnection.Close();
}
- if ((this._anagMagTableAdapter != null)) {
- this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagMagTableAdapter]));
- this._anagMagTableAdapter.Transaction = null;
- }
if ((this._elencoCartelliniTableAdapter != null)) {
this._elencoCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoCartelliniTableAdapter]));
this._elencoCartelliniTableAdapter.Transaction = null;
@@ -6715,6 +6873,10 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
this._posizioneUdcStoricoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._posizioneUdcStoricoTableAdapter]));
this._posizioneUdcStoricoTableAdapter.Transaction = null;
}
+ if ((this._anagMagTableAdapter != null)) {
+ this._anagMagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagMagTableAdapter]));
+ this._anagMagTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd
index db8772cc..246f4fac 100644
--- a/GMW/GMW_data/DS_magazzino.xsd
+++ b/GMW/GMW_data/DS_magazzino.xsd
@@ -7,73 +7,6 @@
-
-
-
-
-
- DELETE FROM [dbo].[AnagMag] WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescrMag = 1 AND [DescrMag] IS NULL) OR ([DescrMag] = @Original_DescrMag)))
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagMag] ([CodMag], [CodCS], [DescrMag]) VALUES (@CodMag, @CodCS, @DescrMag);
-SELECT CodMag, CodCS, DescrMag FROM AnagMag WHERE (CodMag = @CodMag)
-
-
-
-
-
-
-
-
-
- SELECT CodMag, CodCS, DescrMag FROM dbo.AnagMag
-
-
-
-
-
- UPDATE [dbo].[AnagMag] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescrMag] = @DescrMag WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescrMag = 1 AND [DescrMag] IS NULL) OR ([DescrMag] = @Original_DescrMag)));
-SELECT CodMag, CodCS, DescrMag FROM AnagMag WHERE (CodMag = @CodMag)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_magGetByCS
-
-
-
-
-
-
-
-
-
@@ -405,7 +338,20 @@ SELECT CodMag, CodCella, Capacita, Descrizione FROM AnagCelle WHERE (CodCella =
-
+
+
+
+
+ dbo.stp_cellaGetByCodMag
+
+
+
+
+
+
+
+
+
@@ -472,42 +418,122 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
+
+
+
+
+
+ DELETE FROM [dbo].[AnagMag] WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescMag = 1 AND [DescMag] IS NULL) OR ([DescMag] = @Original_DescMag)))
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagMag] ([CodMag], [CodCS], [DescMag]) VALUES (@CodMag, @CodCS, @DescMag);
+SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)
+
+
+
+
+
+
+
+
+
+ SELECT * FROM dbo.AnagMag
+
+
+
+
+
+ UPDATE [dbo].[AnagMag] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMag] = @DescMag WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescMag = 1 AND [DescMag] IS NULL) OR ([DescMag] = @Original_DescMag)));
+SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM AnagMag
+WHERE (CodCS = @CodCS) AND (CodMag = @Original_CodMag)
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_magGetByCS
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_magGetByCodMag
+
+
+
+
+
+
+
+
+
+
+
+ UPDATE AnagMag
+SET CodCS = @CodCS, CodMag = @CodMag, DescMag = @DescMag
+WHERE (CodCS = @Original_CodCS) AND (CodMag = @Original_CodMag)
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -628,7 +654,7 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
-
+
@@ -656,7 +682,7 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
-
+
@@ -684,7 +710,7 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
-
+
@@ -713,13 +739,36 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -741,13 +790,17 @@ SELECT UDC, CodMag, CodCella, DataInizio, DataFine FROM PosizioneUdcStorico WHER
+
+
+
+
-
+
\ No newline at end of file
diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss
index 25df41e4..f6d15453 100644
--- a/GMW/GMW_data/DS_magazzino.xss
+++ b/GMW/GMW_data/DS_magazzino.xss
@@ -6,14 +6,14 @@
-->
-
-
-
-
-
+
+
+
+
+
-
+
942
@@ -25,31 +25,19 @@
-
+
- 330
- 375
+ 361
+ 423
473
- 375
+ 423
-
-
-
- 218
- 199
-
-
- 218
- 270
-
-
-
-
+
942
@@ -61,5 +49,17 @@
+
+
+
+ 213
+ 282
+
+
+ 213
+ 388
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs
index dce6b044..9c8a1edb 100644
--- a/GMW/GMW_data/MagClass.cs
+++ b/GMW/GMW_data/MagClass.cs
@@ -9,12 +9,8 @@ namespace GMW_data
///
/// classe gestione operazioni sul magazzino
///
- class MagClass
+ public class MagClass
{
-
-
-
-
#region area table adapters
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
@@ -22,7 +18,7 @@ namespace GMW_data
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
public DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter taPosUdcCorr;
public DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter taPosUdcStorico;
-
+
///
/// init dei table adapters
@@ -50,7 +46,7 @@ namespace GMW_data
#endregion
#region Inizializzazione
-
+
protected MagClass()
{
initTA();
@@ -87,6 +83,5 @@ namespace GMW_data
#endif
#endregion
-
}
}
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index 670f9c17..f7bbe5b6 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 358c8431..313b0c0d 100644
Binary files a/GMW/GMW_data/bin/Debug/SteamWare.dll and b/GMW/GMW_data/bin/Debug/SteamWare.dll differ
diff --git a/GMW/GMW_data/obj/Debug/GMW_data.csproj.FileListAbsolute.txt b/GMW/GMW_data/obj/Debug/GMW_data.csproj.FileListAbsolute.txt
index 1f9a2ac4..77a24ced 100644
--- a/GMW/GMW_data/obj/Debug/GMW_data.csproj.FileListAbsolute.txt
+++ b/GMW/GMW_data/obj/Debug/GMW_data.csproj.FileListAbsolute.txt
@@ -1,10 +1,10 @@
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\GMW_data.dll.config
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\GMW_data.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\GMW_data.pdb
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\SteamWare.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\ICSharpCode.SharpZipLib.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\SteamWare.pdb
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\SteamWare.xml
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Debug\ResolveAssemblyReference.cache
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Debug\GMW_data.dll
-C:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Debug\GMW_data.pdb
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\GMW_data.dll.config
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\GMW_data.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\GMW_data.pdb
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\SteamWare.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\ICSharpCode.SharpZipLib.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\SteamWare.pdb
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Debug\SteamWare.xml
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Debug\ResolveAssemblyReference.cache
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Debug\GMW_data.dll
+c:\Users\samuele\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Debug\GMW_data.pdb
diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index 670f9c17..f7bbe5b6 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 66d70198..7eb8ced7 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_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll
index e70fb8f7..c7456dda 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ
diff --git a/GMW/GMW_data/utils.cs b/GMW/GMW_data/utils.cs
index 8e08d1a2..e7c80d3c 100644
--- a/GMW/GMW_data/utils.cs
+++ b/GMW/GMW_data/utils.cs
@@ -13,4 +13,10 @@ public enum tipoCartellino
{
soloTara,
completo
-}
\ No newline at end of file
+}
+public enum tipoSelettore
+{
+ cdc,
+ cellaMagazzino,
+ magazzino
+}