88 lines
2.4 KiB
C#
88 lines
2.4 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace GIM_site
|
|
{
|
|
public partial class FullPage : System.Web.UI.MasterPage
|
|
{
|
|
public event EventHandler eh_Search_Submit;
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
|
setTimer();
|
|
updateLabels();
|
|
}
|
|
mod_testata.eh_nuovaRicerca += Mod_testata_eh_nuovaRicerca;
|
|
}
|
|
|
|
private void Mod_testata_eh_nuovaRicerca(object sender, EventArgs e)
|
|
{
|
|
if (eh_Search_Submit != null)
|
|
{
|
|
eh_Search_Submit(this, new EventArgs());
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
|
/// </summary>
|
|
private void setTimer()
|
|
{
|
|
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdatePagina_ms");
|
|
}
|
|
protected void Timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
updateLabels();
|
|
}
|
|
private void updateLabels()
|
|
{
|
|
lblDateTime.Text = DateTime.Now.ToString();
|
|
lblUtente.Text = user_std.UtSn.CognomeNome;
|
|
}
|
|
/// <summary>
|
|
/// determina visibilità controllo ricerca
|
|
/// </summary>
|
|
public bool showSearch
|
|
{
|
|
get
|
|
{
|
|
return mod_testata.pageHasSearch;
|
|
}
|
|
set
|
|
{
|
|
mod_testata.pageHasSearch = value;
|
|
}
|
|
}
|
|
|
|
public string searchVal
|
|
{
|
|
get
|
|
{
|
|
return mod_testata.searchVal;
|
|
}
|
|
set
|
|
{
|
|
mod_testata.searchVal = value;
|
|
uppNavbar.Update();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Sistemaizone footer: se in DEV NON mette sticky in basso (x mostrare glimpse)
|
|
/// </summary>
|
|
public string fixFooter
|
|
{
|
|
get
|
|
{
|
|
string answ = "";
|
|
if (memLayer.ML.CRS("Environment") != "Dev")
|
|
{
|
|
answ = "navbar-fixed-bottom";
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
}
|
|
} |