Files
2019-04-11 11:59:22 +01:00

53 lines
1.6 KiB
C#

using Sarand.Core.CodeTypes;
using Sarand.Core.ItemOptions;
using Sarand.Core.Security;
using Sarand.Core.UpdateLog;
using System;
using System.Collections.Generic;
using System.Text;
namespace Sarand.PatientMgr.Core.App
{
//=======================================================================
public static class SpmGlobals
{
//-------------------------------------------------------------------
// System.
public static SpmSystem System { get; set; } = null;
//-------------------------------------------------------------------
// Application.
public static SpmApplication Application { get; set; }
//-------------------------------------------------------------------
// Consoles.
public static SaSecurityConsole GetSecurityConsole (SpmUserContext userContext)
{
return Application.GetSecurityConsole(userContext.SessionContext);
}
public static SaCodeTypeConsole GetCodeTypeConsole (SpmUserContext userContext)
{
return Application.GetCodeTypeConsole(userContext.SessionContext);
}
public static SaItemOptionConsole GetItemOptionConsole (SpmUserContext userContext)
{
return Application.GetItemOptionConsole(userContext.SessionContext);
}
public static SaUpdateLogConsole GetUpdateLogConsole (SpmUserContext userContext)
{
return Application.GetUpdateLogConsole(userContext.SessionContext);
}
//-------------------------------------------------------------------
// Clear globals.
public static void clear ()
{
System = null;
Application = null;
}
//-------------------------------------------------------------------
}
//=======================================================================
}