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); } }
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; }