namespace SteamWare
{
///
/// Base class for every user control in the application, containing some common
/// behaviour and utility methods.
/// It is not meant to be be used directly.
///
public class UserPage : System.Web.UI.Page
{
///
/// wrapper traduzione
///
///
///
public string traduci(object lemma)
{
string answ = "";
if (lemma != null)
{
answ = user_std.UtSn.Traduci(lemma.ToString());
}
else
{
answ = "--";
}
return answ;
}
///
/// indica se i caratteri vadano forzati a maiuscoli
///
public bool forceUppercase
{
get
{
bool answ = false;
try
{
answ = memLayer.ML.CRB("forceUppercase");
}
catch
{ }
return answ;
}
}
///
/// determina se l'utente sia abilitato a scrivere nelal pagina corrente (quindi modificare e cancellare...)
///
public bool isWriteEnabled
{
get
{
return devicesAuthProxy.stObj.isPageWriteEnabled(titolo);
}
}
///
/// determina se l'utente sia abilitato alla pagina corrente (di base visualizzaizone...)
///
public bool isPageEnabled
{
get
{
return devicesAuthProxy.stObj.isPageEnabled(titolo);
}
}
///
/// titolo pagina
///
public string titolo
{
get
{
return devicesAuthProxy.getPage(Request.Url);
}
}
}
}