Пример #1
0
        public void done()
        {
            IReportRender render = null;

            try
            {
                IReportSource repSource = new ImplReportSource(_environment, _location);
                for (int i = 0; i < _params.Length; ++i)
                {
                    if (_params[i] != string.Empty && _cols[i] != string.Empty)
                    {
                        IFilter filter = new ImplFilter(_environment, repSource, FilterInfo.getConstFilterInfo(_params[i], _valSource.get()[_cols[i]]));
                        repSource.addFilter(filter);
                    }
                }
                repSource.getReports()[0].setDataSource(repSource.get());
                render = new MobFormShowDataStub(_environment);
                render.setReport(repSource.getReports()[0]);
                render.done();
            }
            catch (Exception exc)
            {
                _environment.getExceptionHandler().setException(exc);
            }
            finally
            {
                if (render != null)
                {
                    render.Dispose();
                }
            }
        }
Пример #2
0
            public object done()
            {
                try
                {
                    List <FilterInfo> list = new List <FilterInfo>();
                    DataRow           row_ = _valSource.get();
                    if (row_ != null)
                    {
                        for (int i = 0; i < _params.Length; ++i)
                        {
                            if (_params[i] != string.Empty && _cols[i] != string.Empty)
                            {
                                list.Add(FilterInfo.getConstFilterInfo(_params[i], row_[_cols[i]]));
                            }
                        }

                        IActivity a_ = _environment.toActivity(_location, new object[] { list.ToArray() });
                        a_.done();
                    }
                }
                catch (Exception exc)
                {
                    _environment.getExceptionHandler().setException(exc);
                }


                return(null);
            }