C# Class Habanero.BO.Rules.InterPropRule

This Rule is used for the Common Scenario where the One properties Validity is based on another Properties Value. E.g. DisposalDate must be Greater Than AcquisitionDate In the above case the Rule will be on the Disposal Date. The other Prop will be the AcquisitionDate Prop and the ComparisonOperator Will be GreaterThan
Inheritance: IBusinessObjectRule
Mostra file Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
InterPropRule ( IPropDef propLeft, ComparisonOperator comparisonOperator, IPropDef propRight ) : System

IsValid ( ) : bool

This is not implemented for InterPropRules since it is obsolete.

IsValid ( IBusinessObject bo ) : bool

Determines whether the Expression LeftProp ComparisonOperator RightProp is true or false.

Protected Methods

Method Description
InterPropRule ( ComparisonOperator comparisonOperator ) : System

Constructor that just sets the comparison operator.

Method Details

InterPropRule() protected method

Constructor that just sets the comparison operator.
protected InterPropRule ( ComparisonOperator comparisonOperator ) : System
comparisonOperator ComparisonOperator
return System

InterPropRule() public method

public InterPropRule ( IPropDef propLeft, ComparisonOperator comparisonOperator, IPropDef propRight ) : System
propLeft IPropDef
comparisonOperator ComparisonOperator
propRight IPropDef
return System

IsValid() public method

This is not implemented for InterPropRules since it is obsolete.
public IsValid ( ) : bool
return bool

IsValid() public method

Determines whether the Expression LeftProp ComparisonOperator RightProp is true or false.
public IsValid ( IBusinessObject bo ) : bool
bo IBusinessObject
return bool