Esempio n. 1
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);
            }
Esempio n. 2
0
        public object done()
        {
            DataRow row = rowSource.get();

            for (int i = 0; i < validator.Length; ++i)
            {
                if (validator[i].check(row))
                {
                    activity[i].done();
                    break;
                }
            }

            return(null);
        }
Esempio n. 3
0
        public object done()
        {
            reference.begin(filterName, filterDataSource.get(), false, delegate(object o, EventArgs a)
            {
                DataRow row = rowSource.get();
                if (row != null && row.RowState != DataRowState.Deleted)
                {
                    for (int i = 0; i < colSource.Length; ++i)
                    {
                        ToolCell.set(row, colDest[i], reference.getSelected()[colSource[i]]);
                    }
                }
            });

            return(null);
        }
Esempio n. 4
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();
                }
            }
        }
 public object get()
 {
     return(rowSource.get()[col]);
 }