Пример #1
0
        internal bool GetData(Report rpt)
        {
            ResetHideDuplicates(rpt);

            bool bRows = false;

            if (_XmlRowData != null)
            {                           // Override the query and provide data from XML
                string xdata = GetDataFile(rpt, _XmlRowFile);
                if (xdata == null)
                {
                    xdata = _XmlRowData;                                                // didn't find any data
                }
                bRows = _Query.GetData(rpt, xdata, _Fields, _Filters);                  // get the data (and apply the filters
                return(bRows);
            }

            if (_Query == null)
            {
                return(bRows);
            }

            bRows = _Query.GetData(rpt, this._Fields, _Filters);                // get the data (and apply the filters
            return(bRows);
        }
Пример #2
0
        internal void GetData()
        //called from DataSets.GetData (line 82)
        {
            ResetHideDuplicates();

            if (_XmlRowData != null)
            {                           // Override the query and provide data from XML
                string xdata = GetDataFile(_XmlRowFile);
                if (xdata == null)
                {
                    xdata = _XmlRowData;                                        // didn't find any data
                }
                _Query.GetData(xdata, _Fields, _Filters);                       // get the data (and apply the filters
                return;
            }

            if (_Query == null)
            {
                return;
            }

            _Query.GetData(this._Fields, _Filters);             // get the data (and apply the filters
        }