Package reportgen.ren.report.userinput

Examples of reportgen.ren.report.userinput.QueryInputValue


        initComponents();
        this.context = expressionContext;
        this.inputs = inputs;

        if(value == null) {
            this.value = new QueryInputValue();
        } else {
            this.value = value;
            titleFld.setText(value.getSelectTitle());
            descFld.setText(value.getSelectDescription());
            constBox.setSelected(value.isConstant());
View Full Code Here


            constBox.setEnabled(true);
        }

        try {
            for(int i=0; i<inputs.size(); i++) {
                QueryInputValue input = inputs.get(i);
                if(input == value) {
                    continue;
                }
                if(input.getSelectTitle().equals(value.getSelectTitle())) {
                    throw new Exception("Входной параметр с таким названием уже есть в отчете");
                }
            }

            if(value.getSelectTitle().trim().length() == 0) {
View Full Code Here

        return null;
    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        QueryInputValue report = input.get(rowIndex);
        switch(columnIndex) {
            case COL_VALUE: {
                return report.toString();
            }
            case COL_CONSTANT: {
                return report.isConstant();
            }
            case COL_SELTITLE: {
                return report.getSelectTitle();
            }
            case COL_SELDESCRIPTION: {
                return report.getSelectDescription();
            }
            case COL_CANBEOMITTED: {
                return report.isCanBeOmitted();
            }
        }
        return null;
    }
View Full Code Here

        UserInputChunk chunk = new UserInputChunk(id, title, description);

        //Проверка входных параметров
        ItemSelectorEditable<QueryInputValue> inputs = report.getInputs();
        for(int i=0; i<inputs.size(); i++) {
            QueryInputValue qiv = inputs.get(i);
            if(!qiv.isConstant()) {
                chunk.addUserInput(qiv.getUserInput());
            }
        }
       
        //проверка подотчетов
        ItemSelectorEditable<QueryExecuterSub> subreports = report.getSubReports();
View Full Code Here

     */
    public void setUserInput(UserInputChunk input) throws ReportException {
        //Проверка входных параметров, все они должн  быть назначены
        ItemSelectorEditable<QueryInputValue> it = report.getInputs();
        for(int i=0; i<it.size(); i++) {
            QueryInputValue qiv = it.get(i);
            if(!qiv.isConstant()) {
                UserInput ui = input.getUserInput(QueryInputValue.TAG + "@" + qiv.getSelectTitle());
                if(ui == null) {
                    throw new ReportException("Отсутствует обязательный входной параметр: '"
                            + qiv.getSelectTitle() + "'");
                }
                qiv.setUserInput(ui);
            }
        }

        //проверка подотчетов
        ItemSelectorEditable<QueryExecuterSub> subreports = report.getSubReports();
View Full Code Here

    }

    @Override
    protected QueryInputValue loadChild(Element root, Context context)
            throws ReportException {
        return new QueryInputValue(root, context);
    }
View Full Code Here

TOP

Related Classes of reportgen.ren.report.userinput.QueryInputValue

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.