Class Defaulter
Defaulter for Entity objects
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public sealed class Defaulter : Object
Methods
SetDefaults(Appointment)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Appointment entity)
Parameters
Type | Name | Description |
---|---|---|
Appointment | entity | The entity to set default values for. |
SetDefaults(Appointment, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Appointment entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Appointment | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Appointment, TaskType)
Set default values for the appointment's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Appointment entity, TaskType type)
Parameters
Type | Name | Description |
---|---|---|
Appointment | entity | The entity to set default values for. |
TaskType | type | The type of appointment |
SetDefaults(Appointment, TaskType, DefaulterStrategy)
Set default values for the appointment's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Appointment entity, TaskType type, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Appointment | entity | The entity to set default values for. |
TaskType | type | The type of appointment |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Contact)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Contact entity)
Parameters
Type | Name | Description |
---|---|---|
Contact | entity | The entity to set default values for. |
SetDefaults(Contact, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Contact entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Contact | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Document)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Document entity)
Parameters
Type | Name | Description |
---|---|---|
Document | entity | The entity to set default values for. |
SetDefaults(Document, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Document entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Document | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(EntityBase)
Set default values for the entity. This default implementation does nothing.
Declaration
public static void SetDefaults(EntityBase entity)
Parameters
Type | Name | Description |
---|---|---|
EntityBase | entity | The entity to set default values for. |
SetDefaults(EntityBase, DefaulterStrategy)
Set default values for the entity. This default implementation does nothing.
Declaration
public static void SetDefaults(EntityBase entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
EntityBase | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Person)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Person entity)
Parameters
Type | Name | Description |
---|---|---|
Person | entity | The entity to set default values for. |
SetDefaults(Person, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Person entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Person | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Person, Int32)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Person entity, int contactId)
Parameters
Type | Name | Description |
---|---|---|
Person | entity | The entity to set default values for. |
Int32 | contactId | The id of the contact the person belongs to. |
SetDefaults(Person, Int32, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Person entity, int contactId, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Person | entity | The entity to set default values for. |
Int32 | contactId | The id of the contact the person belongs to. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Project)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Project entity)
Parameters
Type | Name | Description |
---|---|---|
Project | entity | The entity to set default values for. |
SetDefaults(Project, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Project entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Project | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(ProjectMember)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(ProjectMember entity)
Parameters
Type | Name | Description |
---|---|---|
ProjectMember | entity | The entity to set default values for. |
SetDefaults(ProjectMember, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(ProjectMember entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
ProjectMember | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Sale)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Sale entity)
Parameters
Type | Name | Description |
---|---|---|
Sale | entity | The entity to set default values for. |
SetDefaults(Sale, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Sale entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Sale | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |
SetDefaults(Selection)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Selection entity)
Parameters
Type | Name | Description |
---|---|---|
Selection | entity | The entity to set default values for. |
SetDefaults(Selection, DefaulterStrategy)
Set default values for the entity's main row, and for any udef fields it may have.
Declaration
public static void SetDefaults(Selection entity, DefaulterStrategy strategy)
Parameters
Type | Name | Description |
---|---|---|
Selection | entity | The entity to set default values for. |
DefaulterStrategy | strategy | Strategy used when appliying default values. |