/// <summary> /// constructor /// </summary> public TRptLevel(int order) { rptGrpHeaderField = null; rptGrpHeaderSwitch = null; rptGrpFooterField = null; rptGrpFooterSwitch = null; rptDetail = null; }
/// <summary> /// todoComment /// </summary> /// <param name="cur2"></param> /// <param name="order"></param> /// <returns></returns> protected TRptDetail ParseDetail(XmlNode cur2, int order) { XmlNode cur; Object rg; Object r; TRptDetail element; cur = cur2; element = new TRptDetail(order); cur = NextNotBlank(cur.FirstChild); r = Parse(cur, ref report.switchesId, "switch"); if (r != null) { element.rptSwitch = ((TRptSwitch)r); } else { r = Parse(cur, ref report.switchesId, "if"); if (r != null) { element.rptSwitch = ((TRptSwitch)r); } } rg = ParseGroup(cur, ref report.lowerReportsId, "lowerLevelReport"); if (rg != null) { element.rptGrpLowerLevel = ((List <TRptLowerLevel>)rg); } rg = ParseGroup(cur, ref report.fieldsId, "field", out cur); if (rg != null) { element.rptGrpField = ((List <TRptField>)rg); } return(element); }
/// <summary> /// todoComment /// </summary> /// <param name="cur2"></param> /// <param name="order"></param> /// <returns></returns> protected TRptDetail ParseDetail(XmlNode cur2, int order) { XmlNode cur; Object rg; Object r; TRptDetail element; cur = cur2; element = new TRptDetail(order); cur = NextNotBlank(cur.FirstChild); r = Parse(cur, ref report.switchesId, "switch"); if (r != null) { element.rptSwitch = ((TRptSwitch)r); } else { r = Parse(cur, ref report.switchesId, "if"); if (r != null) { element.rptSwitch = ((TRptSwitch)r); } } rg = ParseGroup(cur, ref report.lowerReportsId, "lowerLevelReport"); if (rg != null) { element.rptGrpLowerLevel = ((List <TRptLowerLevel> )rg); } rg = ParseGroup(cur, ref report.fieldsId, "field", out cur); if (rg != null) { element.rptGrpField = ((List <TRptField> )rg); } return element; }