Files
2020-09-14 21:25:58 +02:00

66 lines
1.7 KiB
C#

using MapoDb;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MoonProTablet
{
public partial class User : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// Dimensione schermata video attuale
/// </summary>
public string videoSize
{
get
{
string answ = "?x?";
if (Session["BrowserWidth"] != null)
{
answ = string.Format("{0} x {1}", Session["BrowserWidth"], Session["BrowserHeight"]);
}
return answ;
}
}
/// <summary>
/// Cognome Nome utente
/// </summary>
public string CognomeNome
{
get
{
string swData = "";
string cognomeNome = "";
try
{
cognomeNome = user_std.UtSn.CognomeNome;
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Eccezione in User.aspx - page_load: {0}", exc), tipoLog.EXCEPTION);
}
if (cognomeNome != "")
{
swData = cognomeNome;
}
else if (DataLayerObj.MatrOpr > 0)
{
swData = DataLayerObj.CognomeNomeOpr;
}
else
{
swData = "MoonProTablet";
}
return swData;
}
}
}
}