diff --git a/GMW/GMW/WebUserControls/mod_anagMappe.ascx b/GMW/GMW/WebUserControls/mod_anagMappe.ascx
deleted file mode 100644
index bce3d294..00000000
--- a/GMW/GMW/WebUserControls/mod_anagMappe.ascx
+++ /dev/null
@@ -1,134 +0,0 @@
-<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagMappe.ascx.cs"
- Inherits="GMW.WebUserControls.mod_anagMappe" %>
-<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
-<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_anagMappe.ascx.cs b/GMW/GMW/WebUserControls/mod_anagMappe.ascx.cs
deleted file mode 100644
index 48c0347b..00000000
--- a/GMW/GMW/WebUserControls/mod_anagMappe.ascx.cs
+++ /dev/null
@@ -1,405 +0,0 @@
-using System;
-using System.Data;
-using System.Web.UI.WebControls;
-using SteamWare;
-using GMW_data;
-
-namespace GMW.WebUserControls
-{
- public partial class mod_anagMappe : 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.taBlocchi.getByCodMappa(Convert.ToInt32(idxObj)).Rows.Count == 0;
- }
- ///
- /// elenco colonne del datagrid
- ///
- ///
- protected DataColumnCollection colonneObj()
- {
- DS_magazzino.MappeDataTable tabella = new DS_magazzino.MappeDataTable();
- DataColumnCollection colonne = tabella.Columns;
- return colonne;
- }
- ///
- /// inizializzazione valori di default
- ///
- ///
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
- _idxGridView = "IdxMappa";
- Mod_filtro1.eh_selValore += new EventHandler(Mod_filtro1_eh_selValore);
- if (!Page.IsPostBack)
- {
- Mod_filtro1.ods = odsFiltro;
- }
- // se ho in cache il valore del CodMag applico filtro...
- if (memLayer.ML.isInSessionObject("CodMag_sel"))
- {
- Mod_filtro1.valore = memLayer.ML.StringSessionObj("CodMag_sel");
- fixCheckOds();
- }
- }
- ///
- /// evento selezione valore su filtro
- ///
- ///
- ///
- void Mod_filtro1_eh_selValore(object sender, EventArgs e)
- {
- fixCheckOds();
- }
- ///
- /// aggiorna l'ods da filtraggio attivo
- ///
- private void fixCheckOds()
- {
- if (Mod_filtro1.valore == "*")
- {
- ods.FilterExpression = "(CodMag LIKE '%{0}%' OR DescMappa LIKE '%{0}%' )";
- }
- else
- {
- ods.FilterExpression = "(CodMag LIKE '%{0}%' OR DescMappa LIKE '%{0}%' ) AND CodMag = '{1}'";
- }
- }
- ///
- /// 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;
- GMW_data.DS_magazzino.MappeRow riga = (GMW_data.DS_magazzino.MappeRow)_drv.Row;
- if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.IdxMappa.ToString())
- {
- grView.SelectedIndex = e.Row.RowIndex;
- }
- }
- }
- ///
- /// 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 idxObj)
- {
- bool answ = isWritable();
- // solo se ha diritti scrittura controllo
- if (answ)
- {
- // controllo se ci sono postazioni correlate...
- if (MagClass.magazzino.taBlocchi.getByCodMappa(Convert.ToInt32(idxObj)).Rows.Count > 0)
- {
- answ = false;
- }
- }
- return answ;
- }
-
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_anagMappe.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_anagMappe.ascx.designer.cs
deleted file mode 100644
index a7bdcadd..00000000
--- a/GMW/GMW/WebUserControls/mod_anagMappe.ascx.designer.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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_anagMappe {
-
- ///
- /// Mod_filtro1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::mod_filtro Mod_filtro1;
-
- ///
- /// odsFiltro control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltro;
-
- ///
- /// 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/anagMappe.aspx b/GMW/GMW/anagMappe.aspx
deleted file mode 100644
index 5951829d..00000000
--- a/GMW/GMW/anagMappe.aspx
+++ /dev/null
@@ -1,5 +0,0 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="anagMappe.aspx.cs" Inherits="GMW.anagMappe" %>
-<%@ Register src="WebUserControls/mod_anagMappe.ascx" tagname="mod_anagMappe" tagprefix="uc1" %>
-
-
-
diff --git a/GMW/GMW/anagMappe.aspx.cs b/GMW/GMW/anagMappe.aspx.cs
deleted file mode 100644
index 51ec7678..00000000
--- a/GMW/GMW/anagMappe.aspx.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-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 anagMappe : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
-
- }
- }
-}
diff --git a/GMW/GMW/anagMappe.aspx.designer.cs b/GMW/GMW/anagMappe.aspx.designer.cs
deleted file mode 100644
index a2ad98a1..00000000
--- a/GMW/GMW/anagMappe.aspx.designer.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 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 anagMappe {
-
- ///
- /// mod_anagMappe1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::GMW.WebUserControls.mod_anagMappe mod_anagMappe1;
- }
-}