private void Init(TARGET_RECORD peTargetRecord, int pnTargetAttrId, ARITH_OP_TYPE poArithOpType) { this.IsPassive = false; this.OpType = poArithOpType; this.RecordOfInterest = peTargetRecord; if (pnTargetAttrId > 0) { this.TargetAttribute = WonkaRefEnvironment.GetInstance().GetAttributeByAttrId(pnTargetAttrId); } this.HasAttrIdTargets = false; this.SearchAllDataRows = false; DomainCache = new HashSet <string>(); DomainValueProps = new Dictionary <string, WonkaBizRuleValueProps>(); }
public ArithmeticRule(int pnRuleID, TARGET_RECORD peTargetRecord, int pnTargetAttrId, ARITH_OP_TYPE poArithOpType, bool bSearchAllRows) : base(pnRuleID, RULE_TYPE.RT_ARITHMETIC) { Init(peTargetRecord, pnTargetAttrId, poArithOpType); this.SearchAllDataRows = bSearchAllRows; }
public ArithmeticRule(int pnRuleID, ARITH_OP_TYPE poArithOpType) : base(pnRuleID, RULE_TYPE.RT_ARITHMETIC) { Init(TARGET_RECORD.TRID_NONE, -1, poArithOpType); }