Show / Hide Table of Contents

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
Object
SelectionTypeManager
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class SelectionTypeManager

Methods

GetProviderName(Int32)

Declaration
public static string GetProviderName(int selectionId)
Parameters
Type Name Description
Int32 selectionId
Returns
Type Description
String

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
Type Name Description
Int16 selType
SelectionTypeInfo selTypeInfo
Returns
Type Description
String

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
Type Description
String

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)

Declaration
public SelectionTypeInfo GetSelectionTypeFromProviderName(string providerName)
Parameters
Type Name Description
String providerName
Returns
Type Description
SelectionTypeInfo

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
Type Description
SelectionTypeInfo

GetSelectionTypes()

Get all known selection types; filtered through the current associate's licenses

Declaration
public List<SelectionTypeInfo> GetSelectionTypes()
Returns
Type Description
List<SelectionTypeInfo>

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top