DataElementOutputEnum _DataElementOutput; // Indicates whether the subtotal should appear in a data rendering. // Default: NoOutput internal Subtotal(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p) { _ReportItems = null; _Style = null; _Position = SubtotalPositionEnum.After; _DataElementName = "Total"; _DataElementOutput = DataElementOutputEnum.NoOutput; // Loop thru all the child nodes foreach (XmlNode xNodeLoop in xNode.ChildNodes) { if (xNodeLoop.NodeType != XmlNodeType.Element) { continue; } switch (xNodeLoop.Name) { case "ReportItems": _ReportItems = new ReportItems(r, this, xNodeLoop); break; case "Style": _Style = new Style(r, this, xNodeLoop); break; case "Position": _Position = SubtotalPosition.GetStyle(xNodeLoop.InnerText, OwnerReport.rl); break; case "DataElementName": _DataElementName = xNodeLoop.InnerText; break; case "DataElementOutput": _DataElementOutput = fyiReporting.RDL.DataElementOutput.GetStyle(xNodeLoop.InnerText, OwnerReport.rl); break; default: break; } } if (_ReportItems == null) { OwnerReport.rl.LogError(8, "Subtotal requires the ReportItems element."); } }
Style _Style; // Style properties that override the style #endregion Fields #region Constructors // Default: NoOutput internal Subtotal(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p) { _ReportItems=null; _Style=null; _Position=SubtotalPositionEnum.After; _DataElementName="Total"; _DataElementOutput=DataElementOutputEnum.NoOutput; // Loop thru all the child nodes foreach(XmlNode xNodeLoop in xNode.ChildNodes) { if (xNodeLoop.NodeType != XmlNodeType.Element) continue; switch (xNodeLoop.Name) { case "ReportItems": _ReportItems = new ReportItems(r, this, xNodeLoop); break; case "Style": _Style = new Style(r, this, xNodeLoop); break; case "Position": _Position = SubtotalPosition.GetStyle(xNodeLoop.InnerText, OwnerReport.rl); break; case "DataElementName": _DataElementName = xNodeLoop.InnerText; break; case "DataElementOutput": _DataElementOutput = Engine.DataElementOutput.GetStyle(xNodeLoop.InnerText, OwnerReport.rl); break; default: break; } } if (_ReportItems == null) OwnerReport.rl.LogError(8, "Subtotal requires the ReportItems element."); }