101 lines
2.3 KiB
C#
101 lines
2.3 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace GPW_Admin.WebMasterPages
|
|
{
|
|
public partial class BMP : System.Web.UI.MasterPage
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Imposta abilitazione anonymous (senza fare auth)
|
|
/// </summary>
|
|
public bool enableAnonym
|
|
{
|
|
get
|
|
{
|
|
return cmp_menuTop.enableAnonym;
|
|
}
|
|
set
|
|
{
|
|
cmp_menuTop.enableAnonym = value;
|
|
}
|
|
}
|
|
|
|
public string pagCorrente
|
|
{
|
|
get
|
|
{
|
|
return Request.Url.Segments.LastOrDefault();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Imposta visibilità componente search globale
|
|
/// </summary>
|
|
public bool showSearch
|
|
{
|
|
get
|
|
{
|
|
return cmp_menuTop.showSearch;
|
|
}
|
|
set
|
|
{
|
|
cmp_menuTop.showSearch = value;
|
|
}
|
|
}
|
|
|
|
public string titolo
|
|
{
|
|
get
|
|
{
|
|
string answ = pagCorrente;
|
|
var tabPerm = (DataLayer_AnagGen.PermessiRow[])user_std.UtSn.permessi.Select($"URL = '{pagCorrente}' OR URL = '{pagCorrente}.aspx'");
|
|
if (tabPerm.Length > 0)
|
|
{
|
|
answ = tabPerm[0].NOME;
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Methods
|
|
|
|
private void Cmp_footer_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
// faccio refresh pagina...
|
|
}
|
|
|
|
#endregion Private Methods
|
|
|
|
#region Protected Methods
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
cmp_footer.eh_doRefresh += Cmp_footer_eh_doRefresh;
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Wrapper traduzione termini
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduci(string lemma)
|
|
{
|
|
return user_std.UtSn.Traduci(lemma);
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |