Portal application - initial.
This commit is contained in:
@@ -17,14 +17,24 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Consoles
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SbmConfigConsole configConsole;
|
||||
private SbmConfigConsole configConsole;
|
||||
private SaUpdateLogConsole updateLogConsole;
|
||||
private List<TypeCodeDesc> securityRights;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SbmSecurityConsole_Dbas(SacsDatabase database, SbmConfigConsole configConsole) : base(database)
|
||||
protected SbmSecurityConsole_Dbas(SbmUserContext userContext, SacsDatabase database) : base(database)
|
||||
{
|
||||
this.configConsole = configConsole;
|
||||
UserContext = userContext;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (configConsole != null) configConsole.Dispose(); configConsole = null;
|
||||
if (updateLogConsole != null) updateLogConsole.Dispose(); updateLogConsole = null;
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -33,7 +43,25 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Consoles
|
||||
public SbmSessionContext SessionContext { get { return UserContext.SessionContext; } }
|
||||
public override short SecurityItemDataType { get { return (short)Sbm.ItemType.SecurityItem; } }
|
||||
public override short SecurityLinkDataType { get { return (short)Sbm.ItemType.SecurityLink; } }
|
||||
public override SaUpdateLogConsole UpdateLogConsole { get { return SbmGlobals.Application.GetUpdateLogConsole(UserContext); } }
|
||||
// Consoles.
|
||||
private SbmConfigConsole ConfigConsole
|
||||
{
|
||||
get
|
||||
{
|
||||
if (configConsole == null)
|
||||
configConsole = SbmGlobals.Application.CreateConfigConsole(UserContext.SessionContext);
|
||||
return configConsole;
|
||||
}
|
||||
}
|
||||
public override SaUpdateLogConsole UpdateLogConsole
|
||||
{
|
||||
get
|
||||
{
|
||||
if (updateLogConsole == null)
|
||||
updateLogConsole = SbmGlobals.Application.CreateUpdateLogConsole(UserContext);
|
||||
return updateLogConsole;
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
|
||||
Reference in New Issue
Block a user