Class ControlDisplayInfoFormulaResult
The class passed to controls that display a ControlDisplayInfo set to hold the result of a formula
value
Inheritance
ControlDisplayInfoFormulaResult
Assembly: LemonEdge.Client.UI.API.dll
public class ControlDisplayInfoFormulaResult : INotifyPropertyChanged
Constructors
ControlDisplayInfoFormulaResult(IModelLayoutDisplayer, string, EntityDescriptor, string, IFormulaFunctionsWithContext, IFormulaExecuter)
Declaration
public ControlDisplayInfoFormulaResult(IModelLayoutDisplayer displayer, string bindingPropertyName, EntityDescriptor propertyEntityType, string formula, IFormulaFunctionsWithContext sourceForQueryCache, IFormulaExecuter formulaExecuter)
Parameters
ControlDisplayInfoFormulaResult(IModelLayoutDisplayer, Type, EntityDescriptor, string, IFormulaFunctionsWithContext, IFormulaExecuter)
Creates a new ControlDisplayInfoFormulaResult for the specified formula that returns a value of the specified
propertyType
Declaration
public ControlDisplayInfoFormulaResult(IModelLayoutDisplayer displayer, Type propertyType, EntityDescriptor propertyEntityType, string formula, IFormulaFunctionsWithContext sourceForQueryCache, IFormulaExecuter formulaExecuter)
Parameters
Fields
Declaration
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
public DateTimeOffset? _dateValue
Field Value
Declaration
public decimal? _decimalValue
Field Value
Declaration
public double? _doubleValue
Field Value
Declaration
Field Value
Declaration
public string _guidValue_Label
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
public short? _shortValue
Field Value
Properties
Declaration
public bool? BoolValue { get; set; }
Property Value
Declaration
public byte[] ByteValue { get; set; }
Property Value
Declaration
public char? CharValue { get; set; }
Property Value
Context
Declaration
public IFormulaFunctionsWithContext Context { get; }
Property Value
ContextItem
Declaration
public IBaseEntity ContextItem { get; }
Property Value
Declaration
public DateTimeOffset? DateValue { get; set; }
Property Value
Declaration
public decimal? DecimalValue { get; set; }
Property Value
Declaration
public double? DoubleValue { get; set; }
Property Value
The formula this class evaluates and sets the property with the result for
Declaration
public string Formula { get; }
Property Value
Declaration
public Guid? GuidValue { get; set; }
Property Value
Declaration
public string GuidValue_Label { get; set; }
Property Value
Declaration
public int? IntValue { get; set; }
Property Value
Declaration
public long? LongValue { get; set; }
Property Value
Declaration
public object ObjectValue { get; set; }
Property Value
Declaration
public short? ShortValue { get; set; }
Property Value
Declaration
public string StringValue { get; set; }
Property Value
Methods
EvaluateFormula(IEntityUpdater, IReadOnlyCache, UserInfo, IBaseEntity, bool)
Evaluates this controls formula and sets the value for the property with the correct result
Declaration
public Task EvaluateFormula(IEntityUpdater updater, IReadOnlyCache cache, UserInfo user, IBaseEntity contextItem, bool trackChanges)
Parameters
Type |
Name |
Description |
IEntityUpdater |
updater |
A context updater
|
IReadOnlyCache |
cache |
A cache
|
UserInfo |
user |
The current user
|
IBaseEntity |
contextItem |
The item this formula is to be evaluated against
|
bool |
trackChanges |
Whether to track changes on the contextItem
|
Returns
Type |
Description |
Task |
A task indicating the completion of the operation
|
Returns the property on this class that will hold the result of the formula given the specified result type from
the formula
Declaration
public static string GetResultBinding(Type formulaResultPropertyType)
Parameters
Type |
Name |
Description |
Type |
formulaResultPropertyType |
The type of value that is returned from evaluating the formula
|
Returns
Type |
Description |
string |
The name of the property on this class that will hold the result of the formula given the specified result
type from the formula
|
Events
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Implements
Extension Methods