Portal application - initial.

This commit is contained in:
2021-07-08 20:50:46 +01:00
parent 13c79a8da4
commit 01ae03ddfc
1208 changed files with 186342 additions and 1690 deletions
@@ -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;
}