68 lines
3.1 KiB
C#
68 lines
3.1 KiB
C#
using Sarand.BusinessMgr.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Dbas;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Base.Core
|
|
{
|
|
//=======================================================================
|
|
public interface ISbmUserContext_Core : ISbmUserContext
|
|
{
|
|
//-------------------------------------------------------------------
|
|
/// <summary>Session Context - Identifies database connections etc.</summary>
|
|
SbmSessionContext SessionContext { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// User properties.
|
|
/// <summary>User Security Item Id.</summary>
|
|
SysId UserSecurityItemId { get; }
|
|
/// <summary>User Affiliate Id.</summary>
|
|
SysId UserAffiliateId { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
/// <summary>Security profile - what the user is allowed to do based on security roles and groups.</summary>
|
|
ISbmSecurityProfile_Core SecurityProfile_Core { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Organisation properties.
|
|
|
|
/// <summary>Organisation Affiliate Id.</summary>
|
|
SysId OrganisationAffiliateId { get; }
|
|
|
|
/// <summary>Organisation Affiliate Type.</summary>
|
|
Sbm.AffiliateType OrganisationAffiliateType { get; }
|
|
|
|
/// <summary>Organisation 'Internal' Association Id.</summary>
|
|
SysId OrganisationAssociationId { get; }
|
|
|
|
/// <summary>Organisation display name.</summary>
|
|
String OrganisationDisplayName { get; }
|
|
|
|
/// <summary>Organisation Interface context - to qualify interfaces belonging to the organisation.</summary>
|
|
String OrganisationInterfaceContext { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Organisation configuration.
|
|
String GetOrganisationOption(Sbm.OrganisationOption option, String context);
|
|
String GetOrganisationOption(String optionName, String context);
|
|
String GetOwnerOption_Value(Sbm.OrgOption_Value eCol);
|
|
String GetOwnerOption_Folder(Sbm.OrgOption_Folder eCol);
|
|
bool GetOwnerOption_AllowOption(Sbm.OrgOption_AllowOption eCol);
|
|
String GetOwnerOption_Caption(Sbm.OrgOption_Caption eCol, String defaultValue);
|
|
bool GetOwnerOption_ShowField(SbmDbDfn.ColumnIdx eCol);
|
|
bool GetOwnerOption_ShowColumn(Sbm.OrgOption_ShowColumn eCol);
|
|
String GetOwnerOption_FieldLabel(SbmDbDfn.ColumnIdx eCol, String defautValue);
|
|
int GetOwnerOption_Minutes(Sbm.OrgOption_Minutes eLimit, int defautValue);
|
|
int GetOwnerOption_UpdateLimit(Sbm.OrgOption_PeriodDays eLimit, int defautValue);
|
|
int GetOwnerOption_UpdateLimit(Sbm.OrgOption_PeriodWeeks eLimit, int defautValue);
|
|
int GetOwnerOption_NumericDecimals(Sbm.OrgOption_NumericDecimals eNumDecimals, int defautValue = 2);
|
|
Sbm.CommodityType GetOwnerOption_CommodityType(Sbm.OrgOption_CommodityType commodityTypeContext);
|
|
SysId GetOwnerOption_StockLocation(Sbm.OrgOption_StockLocation eLoc);
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|