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
Declaration
public bool AcceptRow(SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader |
Returns
Type | Description |
---|---|
Boolean |
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 |
AnalyzeQuery(TableInfo)
Analyze the query to find the relevant contact and person id fields.
Declaration
public void AnalyzeQuery(TableInfo tableToExtend)
Parameters
Type | Name | Description |
---|---|---|
TableInfo | tableToExtend |
Remarks
We look for Contact and Person table instances directly joined, through an inner or left outer join, to the
RequiredPhaseOneFields()
Add contact and person id fields as required phase one fields.
Declaration
public FieldInfo[] RequiredPhaseOneFields()
Returns
Type | Description |
---|---|
FieldInfo[] |
SetRestriction(ArchiveRestrictionInfo[])
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 |