Class SelectionTypeManager
Centralized point of knowledge for the Selection system: what tables can we have Selections of, and what are the properties and providers for each
Inheritance
SelectionTypeManager
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class SelectionTypeManager : Object
Methods
GetProviderName(Int32)
Centralized point of knowledge for the Selection system: what tables can we have Selections of, and what are the properties and providers for each
Declaration
public static string GetProviderName(int selectionId)
Parameters
Type |
Name |
Description |
Int32 |
selectionId |
|
Returns
GetProviderNameByType(Int16, SelectionTypeInfo)
Based on a selType (static/dynamic/combined) value, pick the rick member provider name
Declaration
public static string GetProviderNameByType(short selType, SelectionTypeInfo selTypeInfo)
Parameters
Returns
GetSelectionMainHeading(Int16, Int32)
'Static selection of Companies', or whatever else is appropriate, made by combining text resources for the type and the entity (plural form); this string will contain resource references
Declaration
public static string GetSelectionMainHeading(short selType, int tableNumber)
Parameters
Type |
Name |
Description |
Int16 |
selType |
|
Int32 |
tableNumber |
|
Returns
GetSelectionType(Int32)
Get a praticular selection type, by table number
Declaration
public SelectionTypeInfo GetSelectionType(int tableNumber)
Parameters
Type |
Name |
Description |
Int32 |
tableNumber |
|
Returns
Type |
Description |
SelectionTypeInfo |
null if there is no such table, or if the table does not have selection support
|
GetSelectionType(String)
Get a particular selection type, by entity (table!) name
Declaration
public SelectionTypeInfo GetSelectionType(string entity)
Parameters
Type |
Name |
Description |
String |
entity |
|
Returns
Type |
Description |
SelectionTypeInfo |
null if there is no selection support for this entity
|
GetSelectionTypeFromProviderName(String)
Centralized point of knowledge for the Selection system: what tables can we have Selections of, and what are the properties and providers for each
Declaration
public SelectionTypeInfo GetSelectionTypeFromProviderName(string providerName)
Parameters
Type |
Name |
Description |
String |
providerName |
|
Returns
GetSelectionTypeFromSelectionId(Int32)
Get selection type information based on a selection id (database access)
Declaration
public SelectionTypeInfo GetSelectionTypeFromSelectionId(int selectionId)
Parameters
Type |
Name |
Description |
Int32 |
selectionId |
|
Returns
GetSelectionTypes()
Get all known accessible selection types; filtered through the current associate's licenses
Declaration
public List<SelectionTypeInfo> GetSelectionTypes()
Returns
Extension Methods
EnumUtil.MapEnums<From, To>(From)