Package reportgen.ren.report.userinput

Examples of reportgen.ren.report.userinput.UserInputChunk


            // либо требуется пользовательский ввод
            return result;
        }

        //все подотчет рассчитаны, build input data if user selection need
        UserInputChunk inputNeed = query.getInputValue();
        if(inputNeed != null) {
            return inputNeed;
        }

        //now ready for executing - execute
View Full Code Here


    private void startBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_startBtnActionPerformed
        try {
            ReportExecuteDialog dlg = new ReportExecuteDialog(this);
            Object res = justTest ? report.executeTest() : report.execute();
            while (res instanceof UserInputChunk) {
                UserInputChunk chunk = (UserInputChunk) res;
                dlg.addPanel(new UserInputPanel(chunk));
                dlg.setVisible(true);
                if (!dlg.isOK()) {
                    throw new ReportException("Генерация отчета отменена");
                }
View Full Code Here

        try {
            Report report = queryManager.get(subreport.getReportId());
            Object res = report.execute();
            ReportExecuteDialog dlg = new ReportExecuteDialog(parent);
            while (res instanceof UserInputChunk) {
                UserInputChunk chunk = (UserInputChunk) res;
                dlg.addPanel(new UserInputPanel(chunk));
                dlg.setVisible(true);
                if (dlg.isOK()) {
                    throw new ReportException("Генерация отчета отменена");
                }
View Full Code Here

     */
    public UserInputChunk getInputValue() throws ReportException {
        if(userInputIsDone) {
            return null;
        }
        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();
        for (int i=0; i<subreports.size(); i++) {
            QueryExecuterSub subreport = subreports.get(i);
            UserInputSelect val = subreport.getResultInputValue();
            if(val != null) {
                chunk.addUserInput(val);
            }
        }

        if(chunk.getData().size() > 0) {
            return chunk;
        }
        return null;
    }
View Full Code Here

TOP

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

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.