コード例 #1
0
        DrillthroughParameters _DrillthroughParameters; // Parameters to the drillthrough report

        internal Drillthrough(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            _ReportName             = null;
            _DrillthroughParameters = null;

            // Loop thru all the child nodes
            foreach (XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                {
                    continue;
                }
                switch (xNodeLoop.Name)
                {
                case "ReportName":
                    _ReportName = xNodeLoop.InnerText;
                    break;

                case "Parameters":
                    _DrillthroughParameters = new DrillthroughParameters(r, this, xNodeLoop);
                    break;

                default:
                    break;
                }
            }
            if (_ReportName == null)
            {
                OwnerReport.rl.LogError(8, "Drillthrough requires the ReportName element.");
            }
        }
コード例 #2
0
        string _ReportName; // URL The path of the drillthrough report. Paths may be

        #endregion Fields

        #region Constructors

        internal Drillthrough(ReportDefn r, ReportLink p, XmlNode xNode)
            : base(r, p)
        {
            _ReportName=null;
            _DrillthroughParameters=null;

            // Loop thru all the child nodes
            foreach(XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                    continue;
                switch (xNodeLoop.Name)
                {
                    case "ReportName":
                        _ReportName = xNodeLoop.InnerText;
                        break;
                    case "Parameters":
                        _DrillthroughParameters = new DrillthroughParameters(r, this, xNodeLoop);
                        break;
                    default:
                        break;
                }
            }
            if (_ReportName == null)
                OwnerReport.rl.LogError(8, "Drillthrough requires the ReportName element.");
        }