Class AssociateRestrictionsMDOProviderBase
List provider that returns associates, i.e., our own employees. This extended provider uses Participant restrictions to find diary conflicts. Uses the following restrictions from the participants provider:
AppointmentRestrictionId startTimeInformation endTimeInformation
Inheritance
AssociateRestrictionsMDOProviderBase
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[MDOAdditionalInfo("appointmentId", "Get conflicts for this appointment", 2)]
[MDOAdditionalInfo("startTimeInformation", "Invariant encoded start-time for conflict detection.", "2014-9-13 13:45:22")]
[MDOAdditionalInfo("endTimeInformation", "Invariant encoded end-time for conflict detection", "2014-9-14 17:45:22")]
public class AssociateRestrictionsMDOProviderBase : AssociateMDOProviderBase, ISoListProvider, ISoList, IEnumerable<ISoListItem>, IEnumerable
Constructors
AssociateRestrictionsMDOProviderBase(AssociateMDOProviderType)
Initialize the class
Declaration
public AssociateRestrictionsMDOProviderBase(AssociateMDOProviderType type)
Parameters
Type | Name | Description |
---|---|---|
AssociateMDOProviderType | type |
Methods
GetConflicts(int[])
Adds conflict information for resources.
Declaration
protected void GetConflicts(int[] associateIdList)
Parameters
Type | Name | Description |
---|---|---|
int[] | associateIdList |
GetItemStyleHint(ListTableRow)
Builds stylehints
Declaration
protected override string GetItemStyleHint(ListTableRow row)
Parameters
Type | Name | Description |
---|---|---|
ListTableRow | row |
Returns
Type | Description |
---|---|
string |
Overrides
GetItemTooltip(ListTableRow)
Use dynamic tooltips for associates, since that gives more information; use static tooltip text for other types
Declaration
protected override string GetItemTooltip(ListTableRow row)
Parameters
Type | Name | Description |
---|---|---|
ListTableRow | row |
Returns
Type | Description |
---|---|
string |
Overrides
ReadItemsAndHeadings()
Read heading and items. Special for associate is the combination of associates and resources in the same list. This means there will have to be two queries to get the items for the list.
Declaration
protected override void ReadItemsAndHeadings()