Portal application - initial.
This commit is contained in:
@@ -13,12 +13,12 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.UpdateLog
|
||||
// Configuration.
|
||||
public new class Config : SaUpdateLogItemMonitor.Config
|
||||
{
|
||||
public Config(SbmUserContext userContext) :
|
||||
base(SbmGlobals.Application.GetUpdateLogConsole(userContext), userContext.DbUpdateInfo)
|
||||
public Config(SbmInternals internals) :
|
||||
base(internals.UpdateLogConsole, internals.DbUpdateInfo)
|
||||
{
|
||||
UserContext = userContext;
|
||||
Internals = internals;
|
||||
}
|
||||
public SbmUserContext UserContext { get; }
|
||||
public SbmInternals Internals { get; }
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
@@ -35,7 +35,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.UpdateLog
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public SbmUserContext UserContext { get { return config.UserContext; } }
|
||||
public SbmUserContext UserContext { get { return config.Internals.UserContext; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Internal utilities.
|
||||
@@ -43,7 +43,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.UpdateLog
|
||||
{
|
||||
if (!config.UpdateLogConsole.CanUpdateDatabase) return false;
|
||||
if (configConsole == null)
|
||||
configConsole = SbmGlobals.Application.GetConfigConsole(config.UserContext.SessionContext);
|
||||
configConsole = config.Internals.ConfigConsole;
|
||||
if (!configConsole.IsColumnChangeLogged(UserContext, columnIdx)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user