示例#1
0
        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>();
        }
示例#2
0
        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;
        }
示例#3
0
 public ArithmeticRule(int pnRuleID, ARITH_OP_TYPE poArithOpType)
     : base(pnRuleID, RULE_TYPE.RT_ARITHMETIC)
 {
     Init(TARGET_RECORD.TRID_NONE, -1, poArithOpType);
 }