Exemplo n.º 1
0
        private void ConvertScoreCalcRuleField(XmlElement output)
        {
            SCRLookup lookup = Context.Extensions[SCRLookup.Name] as SCRLookup;

            foreach (XmlElement each in output.SelectNodes("Class"))
            {
                string     name    = each.SelectSingleNode("CalcuationRule").InnerText;
                XmlElement newNode = CreateChild(each, "RefCalculationRuleID");
                newNode.InnerText = lookup.GetScoreCalcRuleID(name);
            }
        }
Exemplo n.º 2
0
        public void InitFromXMLNode(System.Xml.XmlElement XmlNode)
        {
            _skip_empty = bool.Parse(XmlNode.GetAttribute("SkipEmpty"));

            _activate_validator = false;
            foreach (XmlElement each in XmlNode.SelectNodes("ActivatorField"))
            {
                string fieldName = each.InnerText;
                _activate_validator |= (_context.SelectedFields.Contains(fieldName));
            }

            if (!_activate_validator)
            {
                return;
            }

            _lookup = _context.Extensions[SCRLookup.Name] as SCRLookup;
        }