Consolidate User Context
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Mgr;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Mgr;
|
||||
using Sarand.Net.Standard.Base.App;
|
||||
using Sarand.Net.Standard.Base.Core;
|
||||
using Sarand.Net.Standard.Base.Utils;
|
||||
@@ -74,14 +75,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
//-------------------------------------------------------------------
|
||||
// S y s t e m C o d e s
|
||||
//-------------------------------------------------------------------
|
||||
private static String GetOwnerOption_Caption(SbmUserContext userContext, Sbm.OrgOption_Caption orgOption_Caption, String defaultValue)
|
||||
private static String GetOwnerOption_Caption(ISbmUserContext userContext, Sbm.OrgOption_Caption orgOption_Caption, String defaultValue)
|
||||
{
|
||||
// In case user context not specified, eg. Security Console initialising list of transaction types before user logged in.
|
||||
if (userContext != null)
|
||||
return userContext.GetOwnerOption_Caption(orgOption_Caption, defaultValue);
|
||||
return defaultValue;
|
||||
}
|
||||
public static List<TypeCodeDesc> GetCodesOfType(SbmUserContext userContext, Sbm.SystemCode systemCode)
|
||||
public static List<TypeCodeDesc> GetCodesOfType(ISbmUserContext userContext, Sbm.SystemCode systemCode)
|
||||
{
|
||||
SbmConfigConsole configConsole = null; // SbmGlobals.GetConfigConsole(userContext.SessionContext);
|
||||
switch (systemCode)
|
||||
@@ -480,14 +481,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
//-------------------------------------------------------------------
|
||||
// D a t a M a n a g e r s
|
||||
//-------------------------------------------------------------------
|
||||
public abstract SbmAccountMgr CreateAccountMgr(SbmUserContext userContext);
|
||||
public abstract SbmAssetMgr CreateAssetMgr(SbmUserContext userContext);
|
||||
public abstract SbmCommodityMgr CreateCommodityMgr(SbmUserContext userContext);
|
||||
public abstract SbmPriceMgr CreatePriceMgr(SbmUserContext userContext);
|
||||
public abstract SbmDataItemMgr CreateDataItemMgr(SbmUserContext userContext);
|
||||
public abstract SbmProcessMgr CreateProcessMgr(SbmUserContext userContext);
|
||||
public abstract SbmStockMgr CreateStockMgr(SbmUserContext userContext);
|
||||
public abstract SbmTransactionMgr CreateTransactionMgr(SbmUserContext userContext);
|
||||
public abstract SbmAccountMgr CreateAccountMgr(ISbmUserContext userContext);
|
||||
public abstract SbmAssetMgr CreateAssetMgr(ISbmUserContext userContext);
|
||||
public abstract SbmCommodityMgr CreateCommodityMgr(ISbmUserContext userContext);
|
||||
public abstract SbmPriceMgr CreatePriceMgr(ISbmUserContext userContext);
|
||||
public abstract SbmDataItemMgr CreateDataItemMgr(ISbmUserContext userContext);
|
||||
public abstract SbmProcessMgr CreateProcessMgr(ISbmUserContext userContext);
|
||||
public abstract SbmStockMgr CreateStockMgr(ISbmUserContext userContext);
|
||||
public abstract SbmTransactionMgr CreateTransactionMgr(ISbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// A p p l i c a t i o n P r o p e r t i e s
|
||||
|
||||
Reference in New Issue
Block a user