|
diff --git a/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs b/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs
index 0f367775..1c9218db 100644
--- a/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs
+++ b/GMW/GMW/WebUserControls/mod_searchMag.ascx.cs
@@ -17,27 +17,9 @@ namespace GMW.WebUserControls
doTraduci();
pnlEmpty.Visible = true;
pnlResults.Visible = false;
- pnlMethod.Visible = false;
}
- //mod_elencoObj1.eh_selValore += new EventHandler(mod_elencoObj1_eh_selValore);
- //mod_elencoObj1.eh_resetSelezione += new EventHandler(mod_elencoObj1_eh_resetSelezione);
}
- void mod_elencoObj1_eh_resetSelezione(object sender, EventArgs e)
- {
- //mod_dettaglioImpieghiObj1.Visible = false;
- //mod_elencoObj1.noBorder();
- }
-
- void mod_elencoObj1_eh_selValore(object sender, EventArgs e)
- {
- //if (!mod_dettaglioImpieghiObj1.Visible)
- //{
- // mod_dettaglioImpieghiObj1.Visible = true;
- //}
- //mod_dettaglioImpieghiObj1.doUpdate();
- //mod_elencoObj1.addBorder();
- }
private void doTraduci()
{
@@ -54,15 +36,17 @@ namespace GMW.WebUserControls
{
doSearch();
}
-
+ ///
+ /// effettua la ricerca
+ ///
private void doSearch()
{
- // !!! RI FARE!!! - se è tipo like NON HA senso distinguere nel tipo di ricerca, attiva tutti i "search provider"
string testoCercato = txtSearch.Text.Trim();
+ memLayer.ML.setSessionVal("FullSearchValue", testoCercato, false);
+ memLayer.ML.setSessionVal("SearchIsLikeBased", chkLikeType.Checked, false);
+ // !!! RI FARE!!! - se è tipo like NON HA senso distinguere nel tipo di ricerca, attiva tutti i "search provider"
if (testoCercato != "")
{
- memLayer.ML.setSessionVal("FullSearchValue", testoCercato, false);
- memLayer.ML.setSessionVal("SearchIsLikeBased", chkLikeType.Checked, false);
pnlEmpty.Visible = false;
pnlResults.Visible = true;
// in base al tipo di richiesta determino che risultati visualizzare...
@@ -70,30 +54,26 @@ namespace GMW.WebUserControls
{
case "I":
lblTipoSearch.Text = traduci("RicercaImballi");
- mod_showUDC1.Visible = false;
+ mod_SearchProvUDC1.Visible = false;
break;
case "M":
lblTipoSearch.Text = traduci("RicercaMagazzino");
- mod_showUDC1.Visible = false;
+ mod_SearchProvUDC1.Visible = false;
break;
case "O":
lblTipoSearch.Text = traduci("RicercaOperatore");
- mod_showUDC1.Visible = false;
+ mod_SearchProvUDC1.Visible = false;
break;
case "U":
lblTipoSearch.Text = traduci("RicercaUDC");
- mod_showUDC1.Visible = true;
- mod_showUDC1.doUpdate();
+ mod_SearchProvUDC1.Visible = true;
+ mod_SearchProvUDC1.doSearch();
break;
default:
lblTipoSearch.Text = traduci("RicercaGenerica");
- mod_showUDC1.Visible = false;
+ mod_SearchProvUDC1.Visible = false;
break;
}
-
- //mod_elencoObj1.testoCercato = testoCercato;
- pnlMethod.Visible = false;
- //mod_elencoObj1.noBorder();
}
else
{
diff --git a/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs
index b522c58e..ada1c408 100644
--- a/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs
+++ b/GMW/GMW/WebUserControls/mod_searchMag.ascx.designer.cs
@@ -13,6 +13,15 @@ namespace GMW.WebUserControls {
public partial class mod_searchMag {
+ ///
+ /// updtRicerca control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdateProgress updtRicerca;
+
///
/// txtSearch control.
///
@@ -40,15 +49,6 @@ namespace GMW.WebUserControls {
///
protected global::AjaxControlToolkit.TextBoxWatermarkExtender TBWE_search;
- ///
- /// updtRicerca control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.UpdateProgress updtRicerca;
-
///
/// chkLikeType control.
///
@@ -77,13 +77,13 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.Label lblTipoSearch;
///
- /// mod_showUDC1 control.
+ /// mod_SearchProvUDC1 control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::GMW.WebUserControls.mod_showUDC mod_showUDC1;
+ protected global::GMW.WebUserControls.mod_SearchProvUDC mod_SearchProvUDC1;
///
/// pnlEmpty control.
@@ -94,24 +94,6 @@ namespace GMW.WebUserControls {
///
protected global::System.Web.UI.WebControls.Panel pnlEmpty;
- ///
- /// pnlMethod control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Panel pnlMethod;
-
- ///
- /// mod_execUDC1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::GMW.WebUserControls.mod_execUDC mod_execUDC1;
-
///
/// mod_metodiNoSearch1 control.
///
diff --git a/GMW/GMW/WebUserControls/mod_showUDC.ascx b/GMW/GMW/WebUserControls/mod_searchUDC.ascx
similarity index 95%
rename from GMW/GMW/WebUserControls/mod_showUDC.ascx
rename to GMW/GMW/WebUserControls/mod_searchUDC.ascx
index 7877ba0a..f263405f 100644
--- a/GMW/GMW/WebUserControls/mod_showUDC.ascx
+++ b/GMW/GMW/WebUserControls/mod_searchUDC.ascx
@@ -1,5 +1,5 @@
-<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_showUDC.ascx.cs"
- Inherits="GMW.WebUserControls.mod_showUDC" %>
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_searchUDC.ascx.cs"
+ Inherits="GMW.WebUserControls.mod_searchUDC" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
/// grView control.
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 4fa6ed78..7f248042 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 4fa6ed78..7f248042 100644
Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ
|