/// <summary> /// todoComment /// </summary> /// <param name="cur2"></param> /// <param name="order"></param> /// <returns></returns> protected TRptQuery ParseQuery(XmlNode cur2, int order) { XmlNode cur; Object rg; TRptQuery element; cur = cur2; element = new TRptQuery(order); element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition")); cur = NextNotBlank(cur.FirstChild); rg = ParseGroup(cur, ref report.valuesId, "value", out cur); if (rg != null) { element.rptGrpValue = ((List <TRptValue>)rg); } rg = ParseGroup(cur, ref report.parametersId, "parameter", out cur); if (rg != null) { element.rptGrpParameter = ((List <TRptParameter>)rg); } rg = ParseGroup(cur, ref report.switchesId, "switch", out cur); if (rg != null) { element.rptGrpSwitch = ((List <TRptSwitch>)rg); } return(element); }
/// <summary> /// todoComment /// </summary> /// <param name="cur2"></param> /// <param name="order"></param> /// <returns></returns> protected TRptQuery ParseQuery(XmlNode cur2, int order) { XmlNode cur; Object rg; TRptQuery element; cur = cur2; element = new TRptQuery(order); element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition")); cur = NextNotBlank(cur.FirstChild); rg = ParseGroup(cur, ref report.valuesId, "value", out cur); if (rg != null) { element.rptGrpValue = ((List <TRptValue> )rg); } rg = ParseGroup(cur, ref report.parametersId, "parameter", out cur); if (rg != null) { element.rptGrpParameter = ((List <TRptParameter> )rg); } rg = ParseGroup(cur, ref report.switchesId, "switch", out cur); if (rg != null) { element.rptGrpSwitch = ((List <TRptSwitch> )rg); } return element; }