64 lines
2.4 KiB
C#
64 lines
2.4 KiB
C#
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Saxonite.Net.Standard.Base.Mgr;
|
|
using Saxonite.Net.Standard.Base.App;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Saxonite.Net.Standard.Base.App
|
|
{
|
|
//=======================================================================
|
|
public abstract partial class SaxSystem : SacsSystem
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Protected Construction.
|
|
protected SaxSystem() : base()
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Business components.
|
|
//-------------------------------------------------------------------
|
|
public abstract SaxReferenceMgr CreateReferenceMgr(SaxSessionContext sessionContext);
|
|
public abstract SaxAccountMgr CreateAccountMgr(SaxSessionContext sessionContext);
|
|
public abstract SaxItemDataMgr CreateItemDataMgr(SaxSessionContext sessionContext);
|
|
public abstract SaxActivityMgr CreateActivityMgr(SaxSessionContext sessionContext);
|
|
|
|
//-------------------------------------------------------------------
|
|
// S y s t e m C o d e s
|
|
//-------------------------------------------------------------------
|
|
public static List<TypeCodeDesc> GetCodesOfType(Sax.CodeType systemCode)
|
|
{
|
|
// Lists are cloned to avoid modifications to the internal static lists.
|
|
switch (systemCode)
|
|
{
|
|
//-----------------------------------------------------------
|
|
case Sax.CodeType.YesNo:
|
|
return new List<TypeCodeDesc>(yesNoCodes);
|
|
case Sax.CodeType.RegionType:
|
|
return new List<TypeCodeDesc>(regionTypeCodes);
|
|
case Sax.CodeType.UserRole:
|
|
return new List<TypeCodeDesc>(userRoleCodes);
|
|
case Sax.CodeType.Title:
|
|
return new List<TypeCodeDesc>(titleCodes);
|
|
case Sax.CodeType.OrganisationType:
|
|
return new List<TypeCodeDesc>(organisationTypeCodes);
|
|
case Sax.CodeType.OrganisationCategory:
|
|
return new List<TypeCodeDesc>(organisationCategoryCodes);
|
|
case Sax.CodeType.OrganisationRole:
|
|
return new List<TypeCodeDesc>(organisationRoleCodes);
|
|
|
|
//-----------------------------------------------------------
|
|
}
|
|
return null;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|