78 lines
2.0 KiB
C#
78 lines
2.0 KiB
C#
namespace SteamWare
|
|
{
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public class UserPage : System.Web.UI.Page
|
|
{
|
|
|
|
/// <summary>
|
|
/// wrapper traduzione
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduci(object lemma)
|
|
{
|
|
string answ = "";
|
|
if (lemma != null)
|
|
{
|
|
answ = user_std.UtSn.Traduci(lemma.ToString());
|
|
}
|
|
else
|
|
{
|
|
answ = "--";
|
|
}
|
|
return answ;
|
|
}
|
|
/// <summary>
|
|
/// indica se i caratteri vadano forzati a maiuscoli
|
|
/// </summary>
|
|
public bool forceUppercase
|
|
{
|
|
get
|
|
{
|
|
bool answ = false;
|
|
try
|
|
{
|
|
answ = memLayer.ML.CRB("forceUppercase");
|
|
}
|
|
catch
|
|
{ }
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// determina se l'utente sia abilitato a scrivere nelal pagina corrente (quindi modificare e cancellare...)
|
|
/// </summary>
|
|
public bool isWriteEnabled
|
|
{
|
|
get
|
|
{
|
|
return devicesAuthProxy.stObj.isPageWriteEnabled(titolo);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// determina se l'utente sia abilitato alla pagina corrente (di base visualizzaizone...)
|
|
/// </summary>
|
|
public bool isPageEnabled
|
|
{
|
|
get
|
|
{
|
|
return devicesAuthProxy.stObj.isPageEnabled(titolo);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// titolo pagina
|
|
/// </summary>
|
|
public string titolo
|
|
{
|
|
get
|
|
{
|
|
return devicesAuthProxy.getPage(Request.Url);
|
|
}
|
|
}
|
|
}
|
|
}
|