63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web;
|
|
using Swarmops.Logic.Swarm;
|
|
using Swarmops.Logic.Security;
|
|
using Swarmops.Logic.Structure;
|
|
|
|
/// <summary>
|
|
/// Summary description for MasterV4Base
|
|
/// </summary>
|
|
|
|
public class MasterV5Base : System.Web.UI.MasterPage
|
|
{
|
|
|
|
public bool CurrentPageAllowed = false;
|
|
public bool CurrentPageProhibited = false;
|
|
|
|
public string CurrentPageTitle = string.Empty;
|
|
public string CurrentPageIcon = string.Empty;
|
|
|
|
public string CurrentPageInfoBoxLiteral = string.Empty;
|
|
|
|
protected Person _currentUser = null; // These are set in Master-v5.master.cs
|
|
protected Authority _authority = null;
|
|
protected Organization _currentOrganization = null;
|
|
|
|
public DateTime PermissionCacheTimestamp
|
|
{
|
|
get
|
|
{
|
|
if (Session["MainMenu-v5_Enabling_TimeStamp"] != null)
|
|
{
|
|
return new DateTime((long)Session["MainMenu-v5_Enabling_TimeStamp"]);
|
|
}
|
|
else
|
|
return DateTime.MinValue;
|
|
|
|
}
|
|
set
|
|
{
|
|
Session["MainMenu-v5_Enabling_TimeStamp"] = value.Ticks;
|
|
}
|
|
}
|
|
|
|
public Person CurrentUser
|
|
{
|
|
get { return this._currentUser; }
|
|
}
|
|
|
|
public Organization CurrentOrganization
|
|
{
|
|
get { return this._currentOrganization; }
|
|
}
|
|
|
|
public Authority CurrentAuthority
|
|
{
|
|
get { return this._authority; }
|
|
}
|
|
|
|
}
|
|
|
|
|