refresh progetto
This commit is contained in:
@@ -12,39 +12,14 @@ using SteamWare;
|
||||
|
||||
public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
{
|
||||
|
||||
#region gestione eventi
|
||||
#region Public Events
|
||||
|
||||
public event EventHandler eh_nuovaRicerca;
|
||||
|
||||
#endregion
|
||||
#endregion Public Events
|
||||
|
||||
#region area protected
|
||||
#region Protected Properties
|
||||
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
updateText();
|
||||
btnCerca.Text = traduci("lblCerca");
|
||||
}
|
||||
/// <summary>
|
||||
/// cambiato valore in ricerca
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtCerca_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
salvaCerca();
|
||||
}
|
||||
/// <summary>
|
||||
/// pressione del button di ricerca
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCerca_Click(object sender, EventArgs e)
|
||||
{
|
||||
salvaCerca();
|
||||
}
|
||||
/// <summary>
|
||||
/// testo ricerca trimmato da spazi
|
||||
/// </summary>
|
||||
@@ -59,6 +34,28 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
txtCerca.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// pressione del button di ricerca
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCerca_Click(object sender, EventArgs e)
|
||||
{
|
||||
salvaCerca();
|
||||
}
|
||||
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
updateText();
|
||||
btnCerca.Text = traduci("lblCerca");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua salvataggio ricerca
|
||||
/// </summary>
|
||||
@@ -66,11 +63,11 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
{
|
||||
if (string.IsNullOrEmpty(testoRicerca))
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal("valoreCercato");
|
||||
SteamWare.memLayer.ML.emptySessionVal("valoreSearch");
|
||||
}
|
||||
else
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("valoreCercato", testoRicerca);
|
||||
SteamWare.memLayer.ML.setSessionVal("valoreSearch", testoRicerca);
|
||||
// raise dell'evento
|
||||
if (eh_nuovaRicerca != null)
|
||||
{
|
||||
@@ -79,21 +76,30 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// cambiato valore in ricerca
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtCerca_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
salvaCerca();
|
||||
}
|
||||
|
||||
#region area public
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// aggiorna il testo cercato
|
||||
/// </summary>
|
||||
public void updateText()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(memLayer.ML.StringSessionObj("valoreCercato")) && !Page.IsPostBack)
|
||||
if (!string.IsNullOrEmpty(memLayer.ML.StringSessionObj("valoreSearch")) && !Page.IsPostBack)
|
||||
{
|
||||
testoRicerca = SteamWare.memLayer.ML.StringSessionObj("valoreCercato");
|
||||
testoRicerca = SteamWare.memLayer.ML.StringSessionObj("valoreSearch");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
#endregion Public Methods
|
||||
}
|
||||
Reference in New Issue
Block a user