Class ContactTooltipPlugin
Inherited Members
Namespace: SuperOffice.CRM.Tooltips
Assembly: SoDataBase.dll
Syntax
[TooltipPlugin("SuperOffice:ContactTooltip", new string[]{"contact_id", "contactWithNoSelection_id"})]
public class ContactTooltipPlugin : TooltipPluginBase, ITooltipProviderPlugin, IPlugin
Constructors
ContactTooltipPlugin()
Declaration
public ContactTooltipPlugin()
Fields
ContactHint
Declaration
public const string ContactHint = "contact_id"
Field Value
Type | Description |
---|---|
String |
ContactWithNoSelectionHint
Declaration
public const string ContactWithNoSelectionHint = "contactWithNoSelection_id"
Field Value
Type | Description |
---|---|
String |
Methods
FormatLargeTooltip(ContactRow, PhoneRow, AddressRow)
Declaration
public static string FormatLargeTooltip(ContactRow contactRow, PhoneRow phoneRow, AddressRow addressRow)
Parameters
Type | Name | Description |
---|---|---|
ContactRow | contactRow | |
PhoneRow | phoneRow | |
AddressRow | addressRow |
Returns
Type | Description |
---|---|
String |
FormatTooltip(String, String, Boolean, String, Int32, String, Int32, Int32)
Format a short tooltip for a contact.
Declaration
public static string FormatTooltip(string name, string department, bool xStop, string city, int countryId, string phone, int categoryId, int associateId)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the contact, as returned from the database. |
String | department | Department of the contact. |
Boolean | xStop | State of xStop. |
String | city | City from the contacts postal address record |
Int32 | countryId | Country id of the contact. |
String | phone | The first phone number from the contact. |
Int32 | categoryId | Id of the contacts category. |
Int32 | associateId | AssociateId of the contact's owner. |
Returns
Type | Description |
---|---|
String | Tooltip for the contact. |
Remarks
The returned value might contain a the value [SR_CC_STOPX].
This needs to be replaced with an appropriate resource value for X-Stop.
The SuperOffice.DCF.dll module has features for carrying out this.
InnerGetTooltip()
Declaration
protected override string InnerGetTooltip()
Returns
Type | Description |
---|---|
String |
Overrides
Extension Methods
EnumUtil.MapEnums<From, To>(From)