Class RefCountEntity
A refcount entity for a number allocation
Carrier object for RefCountEntity. Services for the RefCountEntity Carrier is available from the NumberAllocation Agent.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.1.0.0")]
public class RefCountEntity : Carrier
Examples
Get RefCountEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new NumberAllocationAgent();
var refCountEntity = agent.GetRefCountEntity( 123 );
}
Constructors
RefCountEntity()
Default constructor
Declaration
public RefCountEntity()
See Also
Properties
Allocate
Allocate numbers automatically
Declaration
[DataMember]
public virtual bool Allocate { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
AllowBlank
Allow blank as a valid value
Declaration
[DataMember]
public virtual bool AllowBlank { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
CurrentValue
Current value of counter
Declaration
[DataMember]
public virtual int CurrentValue { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
Field
Field identifier in string format table.field
Declaration
[DataMember]
public virtual string Field { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
ReadOnly
Target field is read only in GUI
Declaration
[DataMember]
public virtual bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
RecordId
Record id in target table, used when there are separate counters for each target record
Declaration
[DataMember]
public virtual int RecordId { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
RefCountsId
Primary key
Declaration
[DataMember]
public virtual int RefCountsId { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
SatPrefix
size of prefix for Satellite use of this counter
Declaration
[DataMember]
public virtual uint SatPrefix { get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
SuggestedRecords
List of valid entities, the associated record is selected in the list, used records are filtered out
Declaration
[DataMember]
public virtual MDOListItem[] SuggestedRecords { get; set; }
Property Value
Type | Description |
---|---|
MDOListItem[] |
See Also
TravelPrefix
size of prefix for Travel use of ths counter
Declaration
[DataMember]
public virtual uint TravelPrefix { get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
Unique
Check that entered value is unique
Declaration
[DataMember]
public virtual bool Unique { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The carrier contents. |
See Also
ToString(string)
Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | The line prefix (typically used for indenting) |
Returns
Type | Description |
---|---|
string | The carrier contents. |