Class EntityExtraFieldsHelper
Forward extra fields to underlying row
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class EntityExtraFieldsHelper : Object
Constructors
EntityExtraFieldsHelper(TableRowBase)
Forward extra fields to underlying row
Declaration
public EntityExtraFieldsHelper(TableRowBase row)
Parameters
Type | Name | Description |
---|---|---|
TableRowBase | row |
Fields
_row
Forward extra fields to underlying row
Declaration
protected TableRowBase _row
Field Value
Type | Description |
---|---|
TableRowBase |
Properties
EnforceRequiredFields
Allows required field enforcement to be turned off - used for person on user.
Declaration
public bool EnforceRequiredFields { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Item[String]
Forward extra fields to underlying row
Declaration
public object this[string fieldName] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
String | fieldName |
Property Value
Type | Description |
---|---|
Object |
Names
Valid extra field names: ['x_foo', 'x_bar']
Declaration
public string[] Names { get; }
Property Value
Type | Description |
---|---|
String[] |
Methods
Encode(String)
Convert field value to a string encoded value: 123 -> "[I:123]"
Declaration
public string Encode(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
String | fieldName |
Returns
Type | Description |
---|---|
String |
GetExtraInfo(String)
Forward extra fields to underlying row
Declaration
public ValueTuple<string, string, bool> GetExtraInfo(string fieldname)
Parameters
Type | Name | Description |
---|---|---|
String | fieldname |
Returns
Type | Description |
---|---|
ValueTuple<String, String, Boolean> |
GetExtraInfo(String, TableInfo, Object)
Forward extra fields to underlying row
Declaration
public static ValueTuple<string, string, bool> GetExtraInfo(string fieldname, TableInfo table, object value)
Parameters
Type | Name | Description |
---|---|---|
String | fieldname | |
TableInfo | table | |
Object | value |
Returns
Type | Description |
---|---|
ValueTuple<String, String, Boolean> |
GetFieldRight(String)
Get a
Declaration
public FieldRight GetFieldRight(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
String | fieldName | name of extra field: 'x_foo' |
Returns
Type | Description |
---|---|
FieldRight | Permissions on the field. |
IsChanged(String)
Has the underlying field been changed?
Declaration
public bool IsChanged(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of extra field |
Returns
Type | Description |
---|---|
Boolean | True if the field value has been changed |
Parse(String, String)
Update field value. Convert string encoded value back into object
Declaration
public void Parse(string fieldName, string value)
Parameters
Type | Name | Description |
---|---|---|
String | fieldName | |
String | value |
Validate(RowValidator)
Checks that mandatory extra fields are not NULL. Stricter mandatory checks are handled by entity/service layer.
Declaration
public void Validate(RowValidator rowValidator)
Parameters
Type | Name | Description |
---|---|---|
RowValidator | rowValidator | Collection of errors to add to |
Validate(Dictionary<String, String>)
Stricter checks that mandatory extra fields are not NULL, 0 or "". Called by the entity/service classes.
Declaration
public void Validate(Dictionary<string, string> validator)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<String, String> | validator | Collection of errors to add to |