using GPW_data; using SteamWare; using System; using System.Configuration; using System.Web.UI; namespace GPW_Smart.WebUserControls { public partial class cmp_info : System.Web.UI.UserControl { #region Public Properties public string cognomeNome { get { return memLayer.ML.StringSessionObj("cognomeNome"); } } public string copyRight { get { return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight")); } } public string cssCheckClass { get { string answ = ""; if (licenzeGPW.scadenzaLicenza >= DateTime.Now) { answ = "border-success"; } else { answ = "border-danger"; } return answ; } } public string email { get { return memLayer.ML.StringSessionObj("email"); } } public string hashEmail { get { return memLayer.ML.StringSessionObj("hashEmail"); } } public string IP { get { return Request.UserHostName; } } public string versione { get { return string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); } } #endregion Public Properties #region Protected Methods protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { lblInstallation.Text = licenzeGPW.installazione; lblApplication.Text = licenzeGPW.applicazione; lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb); lblNumLic.ToolTip = "licenze valide (licenze su db)"; lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString(); } } #endregion Protected Methods } }