Class ShadowSelectionHelper
Class for working with common functionality in Shadow selections.
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public class ShadowSelectionHelper
Constructors
ShadowSelectionHelper(ArchiveSelect)
Default constructor. Takes the RootQuery ArchiveSelect
Declaration
public ShadowSelectionHelper(ArchiveSelect rootQuery)
Parameters
Type | Name | Description |
---|---|---|
ArchiveSelect | rootQuery | ArchiveSelect |
Methods
AcceptRow(SoDataReader)
Common QueryProviderBase.AcceptRow method for shadow selections.
Declaration
public bool AcceptRow(SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader |
Returns
Type | Description |
---|---|
bool |
AddContactAndPersonColumns(string[])
Add contact/contactId and person/personId columns to desired columns if they are not already added.
Declaration
public static string[] AddContactAndPersonColumns(string[] columnIds)
Parameters
Type | Name | Description |
---|---|---|
string[] | columnIds | Current column collection. |
Returns
Type | Description |
---|---|
string[] | Modified column collection. |
AddRowInfo(SoDataReader, ArchiveRow)
Add RowType, RowKey and LinkHint to a shadow selection row. Replacing any nav linkhint with person or contact.
Declaration
public void AddRowInfo(SoDataReader reader, ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | |
ArchiveRow | row |
RequiredPhaseOneFields()
Add contact and person id fields as required phase one fields.
Declaration
public FieldInfo[] RequiredPhaseOneFields()
Returns
Type | Description |
---|---|
FieldInfo[] |
SetRestriction(ArchiveRestrictionInfo[])
Class for working with common functionality in Shadow selections.
Declaration
public void SetRestriction(ArchiveRestrictionInfo[] restrictions)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRestrictionInfo[] | restrictions |
SetRootQuery(ArchiveSelect)
Set the root query. The helper might be instanciated before the query is available.
Declaration
public void SetRootQuery(ArchiveSelect rootQuery)
Parameters
Type | Name | Description |
---|---|---|
ArchiveSelect | rootQuery |
SetStyleHint(ArchiveRow)
Modify the stylehint of shadow selection rows. Stylehint 'expired' will be removed
Declaration
public string SetStyleHint(ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRow | row |
Returns
Type | Description |
---|---|
string | Modified stylehint |