diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index 96cbd68b..f8b8d384 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -295,6 +295,13 @@ mod_barPlot.ascx + + mod_bolle4odette.ascx + ASPXCodeBehind + + + mod_bolle4odette.ascx + mod_chLang.ascx ASPXCodeBehind @@ -959,6 +966,7 @@ + diff --git a/GMW/GMW/WebUserControls/mod_bolle4odette.ascx b/GMW/GMW/WebUserControls/mod_bolle4odette.ascx new file mode 100644 index 00000000..64a19866 --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_bolle4odette.ascx @@ -0,0 +1,15 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_bolle4odette.ascx.cs" + Inherits="GMW.WebUserControls.mod_bolle4odette" %> + + + + + + + + + + + + + diff --git a/GMW/GMW/WebUserControls/mod_bolle4odette.ascx.cs b/GMW/GMW/WebUserControls/mod_bolle4odette.ascx.cs new file mode 100644 index 00000000..b722d79e --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_bolle4odette.ascx.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GMW.WebUserControls +{ + public partial class mod_bolle4odette : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + btnDoCreate.Text = "Associa bolla - etichette"; + lblDataBolla.Text = "Data Bolla"; + lblNumBolla.Text = "Num Bolla"; + } + + /// + /// evento nuovo valore + /// + public event EventHandler eh_nuovoValore; + + } +} \ No newline at end of file diff --git a/GMW/GMW/WebUserControls/mod_bolle4odette.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_bolle4odette.ascx.designer.cs new file mode 100644 index 00000000..312788af --- /dev/null +++ b/GMW/GMW/WebUserControls/mod_bolle4odette.ascx.designer.cs @@ -0,0 +1,61 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.4952 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GMW.WebUserControls { + + + public partial class mod_bolle4odette { + + /// + /// lblNumBolla control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumBolla; + + /// + /// txtNumBolla control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtNumBolla; + + /// + /// lblDataBolla control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblDataBolla; + + /// + /// txtDataBolla control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtDataBolla; + + /// + /// btnDoCreate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnDoCreate; + } +} diff --git a/GMW/GMW/WebUserControls/mod_odette.ascx b/GMW/GMW/WebUserControls/mod_odette.ascx index 43ebf020..8d1b9b57 100644 --- a/GMW/GMW/WebUserControls/mod_odette.ascx +++ b/GMW/GMW/WebUserControls/mod_odette.ascx @@ -5,7 +5,7 @@ TagPrefix="uc1" %> <%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> <%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc3" %> -<%@ Register Src="mod_nuovaListaPrelievo.ascx" TagName="mod_nuovaListaPrelievo" TagPrefix="uc4" %> +<%@ Register Src="mod_bolle4odette.ascx" TagName="mod_bolle4odette" TagPrefix="uc4" %> @@ -19,21 +19,13 @@ - - - - - - + + @@ -185,10 +177,10 @@ - + @@ -205,7 +197,7 @@ diff --git a/GMW/GMW/WebUserControls/mod_odette.ascx.cs b/GMW/GMW/WebUserControls/mod_odette.ascx.cs index e82859cb..ab245f8e 100644 --- a/GMW/GMW/WebUserControls/mod_odette.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_odette.ascx.cs @@ -290,27 +290,15 @@ namespace GMW.WebUserControls if (!Page.IsPostBack) { btnForceReload.Text = traduci("ReloadDataMatrix"); - btnNewLista.Text = traduci("NuovaListaPrelievo"); mod_viewRigheListaPrelievo1.Visible = false; mod_periodoAnalisi1.setPeriodoFree(); mod_filtroStato.ods = odsFiltroStati; - mod_filtroTipo.ods = odsTipoLista; - // controllo se ci sia richiesta x creare nuova lista, nel caso precompilo valori... - if (memLayer.ML.BoolSessionObj("PrecompilaListaPrelievo")) - { - mod_nuovaListaPrelievo1.Visible = true; - mod_nuovaListaPrelievo1.ParticolareRichiesto = memLayer.ML.StringSessionObj("Particolare_sel"); - memLayer.ML.emptySessionVal("PrecompilaListaPrelievo"); - } - else - { - mod_nuovaListaPrelievo1.Visible = false; - } + mod_bolle4odette1.Visible = false; } // registro evento update mod_viewRigheListaPrelievo1.eh_nuovoValore += new EventHandler(mod_viewRigheListaPrelievo1_eh_nuovoValore); mod_periodoAnalisi1.eh_doUpdate += new EventHandler(mod_periodoAnalisi1_eh_doUpdate); - mod_nuovaListaPrelievo1.eh_nuovoValore += new EventHandler(mod_nuovaListaPrelievo1_eh_nuovoValore); + mod_bolle4odette1.eh_nuovoValore += new EventHandler(mod_bolle4odette1_eh_nuovoValore); } /// @@ -318,11 +306,9 @@ namespace GMW.WebUserControls /// /// /// - void mod_nuovaListaPrelievo1_eh_nuovoValore(object sender, EventArgs e) + void mod_bolle4odette1_eh_nuovoValore(object sender, EventArgs e) { - btnNewLista.Visible = true; - // nascondo crea nuovo - mod_nuovaListaPrelievo1.Visible = false; + mod_bolle4odette1.Visible = false; // nascondo eventuali dettagli grView.SelectedIndex = -1; // aggiorno controllo corrente! @@ -463,13 +449,13 @@ namespace GMW.WebUserControls try { // !!!FARE!!! controllare che non ci siano già, in tal caso non deve ricreare... - answ = (((int)codStato == (int)statoLista.completata)&& (codTipoLista.ToString() == "04-OdetSP")); + answ = (((int)codStato == (int)statoLista.completata) && (codTipoLista.ToString() == "04-OdetSP")); } catch { } return answ; } - + /// /// gestione cambio selezione valore /// @@ -656,8 +642,7 @@ namespace GMW.WebUserControls break; case "CreaEtichetteOdette": // mostro modulo per associazione etichette odette / bolla - // !!!FARE!!! - mod_nuovaListaPrelievo1.Visible = true; + mod_bolle4odette1.Visible = true; // blocco update! e.Cancel = true; break; @@ -681,7 +666,7 @@ namespace GMW.WebUserControls private void checkFixOds() { ods.FilterParameters.Clear(); - ods.FilterExpression = "(CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%')"; + ods.FilterExpression = "(CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%') AND CodTipoLista = '04-OdetSP' "; // parametro ricerca attuale SessionParameter parametroFiltro = new SessionParameter(); parametroFiltro.SessionField = "valoreCercato"; @@ -698,16 +683,6 @@ namespace GMW.WebUserControls parametroListaStato.Name = "CodStato"; parametroListaStato.DefaultValue = "0"; ods.FilterParameters.Add(parametroListaStato); - if (mod_filtroTipo.valore != "*") - { - ods.FilterExpression += " AND CodTipoLista = '{2}'"; - } - ControlParameter parametroListaTipo = new ControlParameter(); - parametroListaTipo.ControlID = "mod_filtroTipo"; - parametroListaTipo.PropertyName = "valore"; - parametroListaTipo.Name = "CodTipoLista"; - parametroListaTipo.DefaultValue = "0"; - ods.FilterParameters.Add(parametroListaTipo); // chiamo procedura che aggiorna ods principale grView.SelectedIndex = -1; @@ -761,16 +736,6 @@ namespace GMW.WebUserControls return traduci(codice.ToString()); } /// - /// mostra controllo per creare nuove liste di prelievo - /// - /// - /// - protected void btnNewLista_Click(object sender, EventArgs e) - { - mod_nuovaListaPrelievo1.Visible = true; - btnNewLista.Visible = false; - } - /// /// traduce il cod soggetto in cognome-nome operatore /// /// diff --git a/GMW/GMW/WebUserControls/mod_odette.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_odette.ascx.designer.cs index 11a7332e..86139dcd 100644 --- a/GMW/GMW/WebUserControls/mod_odette.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_odette.ascx.designer.cs @@ -40,24 +40,6 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroStati; - /// - /// mod_filtroTipo control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::mod_filtro mod_filtroTipo; - - /// - /// odsTipoLista control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoLista; - /// /// btnForceReload control. /// @@ -68,22 +50,13 @@ namespace GMW.WebUserControls { protected global::System.Web.UI.WebControls.Button btnForceReload; /// - /// btnNewLista control. + /// mod_bolle4odette1 control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Button btnNewLista; - - /// - /// mod_nuovaListaPrelievo1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::GMW.WebUserControls.mod_nuovaListaPrelievo mod_nuovaListaPrelievo1; + protected global::GMW.WebUserControls.mod_bolle4odette mod_bolle4odette1; /// /// grView control. diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index c15a4574..9883e24f 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index c15a4574..9883e24f 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ