Package reportgen.prototype.utils

Examples of reportgen.prototype.utils.RowCount


                if(sel.length == 0) {
                    throw new ReportException("Нужно выбрать как минимум один элемент в списке '"
                            +  uis.getTitle() + "'");
                }

                RowCount activeRows = uis.getActiveRows();
                if(sel.length > activeRows.getMaximum()) {
                    throw new ReportException("Нужно выбрать не более " +
                            activeRows.getMaximum() + "элементов в списке '" + uis.getTitle() + "'");
                }
                if(sel.length < activeRows.getMinimum()) {
                    throw new ReportException("Нужно выбрать не менее " +
                            activeRows.getMinimum() + "элементов в списке '" + uis.getTitle() + "'");
                }

                ArrayList<Integer> selection = new ArrayList<Integer>();
                for(int i : sel) {
                    selection.add(new Integer(i));
View Full Code Here


                    //only non zero for subreport
                    if(subreport && val == 0) {
                        val = null;
                    }
                }
                RowCount newValue = new RowCount(-val);
                setRowCount(newValue);
               
                HashSet<RowCount> set = new HashSet<RowCount>();
                set.add(newValue);
                for(int i=0; i<combo.getItemCount(); i++) {
View Full Code Here

        int reportId = XML.getIntAttribute(element, ATTR_QUERYID);
        SubQueryLoaderResult rpt = context.getQueryLoader().loadSubReport(reportId);
        report = new QueryExecuter(reportId, rpt.report, rpt.title, rpt.description);

        atom = new Atom(element, context);
        rowCount = new RowCount(element);
        selectTitle = XML.getStringAttribute(element, ATTR_TITLE);
        selectDescription = XML.getStringAttribute(element, ATTR_DESCRIPTION, "", false);

        String selectCol = SupportXMLRootImpl.getStringAttribute(element, ATTR_SELECTCOLUMN);
        selectColumn = -1;
View Full Code Here

    public ReportQuery() throws ReportException {
        this.results = new ResultColumnList(this);
        this.inputs = new  InputList(this);
        this.subReports = new SubReportList(this);
        this.tableFormats = new TableFormatList();
        this.rowCount = new RowCount();
        this.version = ReportFactory.getActualVersion();
        this.cores = new CoresList(this);

        CoreFactoryList factory = new CoreFactoryList();
        QCore core = factory.createDefaultCore(getReportContext(new NoNeedAtom()));
View Full Code Here

     * @return
     * @throws reportgen.ren.ReportException
     */
    public ReportQuery(Element root, final SubQueryLoader sl) throws ReportException {
        version = new ReportVersion(root);
        rowCount = new RowCount(root);

        final Set<Atom> atoms = new HashSet<Atom>();
        AtomRegistrar ar = new AtomRegistrar() {
            @Override
            final public void registerAtom(Atom atom) {
View Full Code Here

    final CoreColumnList columns;
    private RowCount rowCount;

    public Core(String title, Context context) {
        super(title, context);
        this.rowCount = new RowCount();
        this.columns = new CoreColumnList(this);
        this.postConditions = new MathExpressionConditions(getPostProcessContext());
        //this.resultInJava = new InlinesConditionList(this, getPostProcessContext());
    }
View Full Code Here

        //this.resultInJava = new InlinesConditionList(this, getPostProcessContext());
    }

    public Core(Element root, Context acontext) throws ReportException {
        super(root, acontext);
        rowCount = new RowCount(root);
        columns = new CoreColumnList(this, root, getResultContext());
       
        Context ctxpp = getPostProcessContext();
        //resultInJava = new InlinesConditionList(this, root, ctxpp);
       
View Full Code Here

    }

    @Override
    public void appendToQuery(SQLStream sql, Map model) throws ReportException {
        Object value = getValue(null);
        RowCount rowCount = column.getReport().getActiveRows();
        if (!rowCount.isSingle()) {
            Collection set = null;
            if(value instanceof Collection) {
                set = (Collection) value;
            } else {
                set = new ArrayList();
View Full Code Here

TOP

Related Classes of reportgen.prototype.utils.RowCount

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.