Class CounterValueTableInfo
Table 'CounterValue': Visible for rights
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("CounterValue")]
public class CounterValueTableInfo : TableInfo, ICloneable
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling
Fields
DictionaryTableName
Conceptual name of table CounterValue in the database dictionary: CounterValue
Declaration
public const string DictionaryTableName = "CounterValue"
Field Value
Type | Description |
---|---|
String |
Properties
AmountClassId
Field 'amountClassId' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Sale amount class, for splitting sale counters by amounts
Declaration
public Int32FieldInfo AmountClassId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
AmountClassId_InnerJoin_AmountClass
Generated join from the foreign key AmountClassId in this table, to its target table AmountClassTableInfo.
Declaration
public TargetedInnerJoin<AmountClassTableInfo> AmountClassId_InnerJoin_AmountClass { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AmountClassTableInfo> |
ContactId
Field 'contact_id' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Link to contact, 0 if this counter is not for contacts
Declaration
public Int32FieldInfo ContactId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ContactId_InnerJoin_Contact
Generated join from the foreign key ContactId in this table, to its target table ContactTableInfo.
Declaration
public TargetedInnerJoin<ContactTableInfo> ContactId_InnerJoin_Contact { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ContactTableInfo> |
CounterValueId
Field 'CounterValue_id' in table 'CounterValue': Dictionary type PK, .NET type: Int32
Primary key
Declaration
public Int32FieldInfo CounterValueId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
DictionaryTableNumber
Table number for table CounterValue in the database dictionary; potentially changes between databases, but always the same over the lifetime of any single database
Declaration
public int DictionaryTableNumber { get; }
Property Value
Type | Description |
---|---|
Int32 |
Direction
Field 'direction' in table 'CounterValue': Dictionary type Enum, .NET type: Int16
Same as task.direction: Direction: 0 = none, 1 = incoming, 2 = outgoing
Declaration
public FieldInfo Direction { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Extra1Count
Field 'extra1_count' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total registered records of this type in the second period (there are up to three period definitions)
Declaration
public FieldInfo Extra1Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Extra1Id
Field 'extra1_id' in table 'CounterValue': Dictionary type Id, .NET type: Int32
Spare ID for future links
Declaration
public Int32FieldInfo Extra1Id { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Extra2Count
Field 'extra2_count' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total records with status Not Completed in the second period (there are up to three period definitions)
Declaration
public FieldInfo Extra2Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Extra2Id
Field 'extra2_id' in table 'CounterValue': Dictionary type Id, .NET type: Int32
Spare ID for future links
Declaration
public Int32FieldInfo Extra2Id { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Extra3Count
Field 'extra3_count' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total registered records of this type in the third period (there are up to three period definitions)
Declaration
public FieldInfo Extra3Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Extra4Count
Field 'extra4_count' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total records with status Not Completed in the third period (there are up to three period definitions)
Declaration
public FieldInfo Extra4Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
IntentId
Field 'intent_id' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Link to Intent list
Declaration
public Int32FieldInfo IntentId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
IntentId_InnerJoin_Intent
Generated join from the foreign key IntentId in this table, to its target table IntentTableInfo.
Declaration
public TargetedInnerJoin<IntentTableInfo> IntentId_InnerJoin_Intent { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<IntentTableInfo> |
LastCompleted
Field 'lastCompleted' in table 'CounterValue': Dictionary type DateTime, .NET type: DateTime
ActiveDate/SaleDate/CreatedAt of last COMPLETED activity/sale/ticket of this type
Declaration
public DateTimeFieldInfo LastCompleted { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
LastDoBy
Field 'lastDoBy' in table 'CounterValue': Dictionary type DateTime, .NET type: DateTime
ActiveDate/SaleDate/CreatedAt of last NOT COMPLETED activity/sale/ticket of this type
Declaration
public DateTimeFieldInfo LastDoBy { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
LastRegistered
Field 'lastRegistered' in table 'CounterValue': Dictionary type DateTime, .NET type: DateTime
ActiveDate/SaleDate/CreatedAt of last activity/sale/ticket of this type
Declaration
public DateTimeFieldInfo LastRegistered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
NotCompleted
Field 'notCompleted' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total records with status Not Completed
Declaration
public FieldInfo NotCompleted { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
NotCompletedInPeriod
Field 'notCompletedInPeriod' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total records with status Not Completed in the first period (there are up to three period definitions)
Declaration
public FieldInfo NotCompletedInPeriod { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
PersonId
Field 'person_id' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Link to person, 0 if this counter is not for person (always 0 in 6.0)
Declaration
public Int32FieldInfo PersonId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
PersonId_InnerJoin_Person
Generated join from the foreign key PersonId in this table, to its target table PersonTableInfo.
Declaration
public TargetedInnerJoin<PersonTableInfo> PersonId_InnerJoin_Person { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<PersonTableInfo> |
ProjectId
Field 'project_id' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Link to project, 0 if this counter is not for project
Declaration
public Int32FieldInfo ProjectId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ProjectId_InnerJoin_Project
Generated join from the foreign key ProjectId in this table, to its target table ProjectTableInfo.
Declaration
public TargetedInnerJoin<ProjectTableInfo> ProjectId_InnerJoin_Project { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ProjectTableInfo> |
RecordType
Field 'record_type' in table 'CounterValue': Dictionary type Enum, .NET type: Int16
Same as task.record_type: 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes
Declaration
public FieldInfo RecordType { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Registered
Field 'registered' in table 'CounterValue': Dictionary type UtcDateTime, .NET type: DateTime
Registered when
Declaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
RegisteredAssociateId
Field 'registered_associate_id' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Registered by whom
Declaration
public Int32FieldInfo RegisteredAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
RegisteredAssociateId_InnerJoin_Associate
Generated join from the foreign key RegisteredAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> RegisteredAssociateId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
RuntimeDefinition
Definition of the table as described in the deployed runtime dictionary
Declaration
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
Type | Description |
---|---|
SoTable |
SaleStatus
Field 'sale_status' in table 'CounterValue': Dictionary type Enum, .NET type: SaleStatus
Sale status: 0 = Unknown, 1 = open, 2 = closed, 3 = lost, 4 = all sales
Declaration
public SaleStatusFieldInfo SaleStatus { get; }
Property Value
Type | Description |
---|---|
SaleStatusFieldInfo |
TotalReg
Field 'totalReg' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total registered records of this type
Declaration
public FieldInfo TotalReg { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
TotalRegInPeriod
Field 'totalRegInPeriod' in table 'CounterValue': Dictionary type UInt, .NET type: UInt32
Total registered records of this type in the first period (there are up to three period definitions)
Declaration
public FieldInfo TotalRegInPeriod { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Updated
Field 'updated' in table 'CounterValue': Dictionary type UtcDateTime, .NET type: DateTime
Last updated when
Declaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
UpdatedAssociateId
Field 'updated_associate_id' in table 'CounterValue': Dictionary type FK, .NET type: Int32
Last updated by whom
Declaration
public Int32FieldInfo UpdatedAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
UpdatedAssociateId_InnerJoin_Associate
Generated join from the foreign key UpdatedAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> UpdatedAssociateId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
UpdatedCount
Field 'updatedCount' in table 'CounterValue': Dictionary type UShort, .NET type: Int16
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Methods
IdxContactId(Int32)
Shortcut method for looking up using the database index ContactId, which spans the following fields:
Field | Description |
---|---|
ContactId | Link to contact, 0 if this counter is not for contacts |
Declaration
public Restriction IdxContactId(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId |
Returns
Type | Description |
---|---|
Restriction |
IdxProjectId(Int32)
Shortcut method for looking up using the database index ProjectId, which spans the following fields:
Field | Description |
---|---|
ProjectId | Link to project, 0 if this counter is not for project |
Declaration
public Restriction IdxProjectId(int projectId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | projectId |
Returns
Type | Description |
---|---|
Restriction |
IdxRecordType(Int16)
Shortcut method for looking up using the database index RecordType, which spans the following fields:
Field | Description |
---|---|
RecordType | Same as task.record_type: 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes |
Declaration
public Restriction IdxRecordType(short recordType)
Parameters
Type | Name | Description |
---|---|---|
Int16 | recordType |
Returns
Type | Description |
---|---|
Restriction |
IdxRecordTypeDirection(Int16, Int16)
Shortcut method for looking up using the database index RecordTypeDirection, which spans the following fields:
Field | Description |
---|---|
RecordType | Same as task.record_type: 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes |
Direction | Same as task.direction: Direction: 0 = none, 1 = incoming, 2 = outgoing |
Declaration
public Restriction IdxRecordTypeDirection(short recordType, short direction)
Parameters
Type | Name | Description |
---|---|---|
Int16 | recordType | |
Int16 | direction |
Returns
Type | Description |
---|---|
Restriction |
IdxSaleStatus(SaleStatus)
Shortcut method for looking up using the database index SaleStatus, which spans the following fields:
Field | Description |
---|---|
SaleStatus | Sale status: 0 = Unknown, 1 = open, 2 = closed, 3 = lost, 4 = all sales |
Declaration
public Restriction IdxSaleStatus(SaleStatus saleStatus)
Parameters
Type | Name | Description |
---|---|---|
SaleStatus | saleStatus |
Returns
Type | Description |
---|---|
Restriction |