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
Afficher le fichier Open project: Chillisoft/habanero Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
InterPropRule ( ComparisonOperator comparisonOperator ) : System

Constructor that just sets the comparison operator.

Method Details

InterPropRule() protected méthode

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

InterPropRule() public méthode

public InterPropRule ( IPropDef propLeft, ComparisonOperator comparisonOperator, IPropDef propRight ) : System
propLeft IPropDef
comparisonOperator ComparisonOperator
propRight IPropDef
Résultat System

IsValid() public méthode

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

IsValid() public méthode

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