Package cli_fmw.report

Examples of cli_fmw.report.FormReportCreator


    @Override
    public void print() {
        if (readyForPrint()) {
            try {
                FormReportCreator creater = ReporterFactory.createFormReporter(getClass());
                String title = "Список прав, которыми обладает сотрудник: " + collabLoc.toString();
                String extra = getExtraText(collabLoc);
                if(extra.length() > 0) {
                    title += "(" + extra + ")";
                }

                HashMap<String, Object> data = new LinkedHashMap<String, Object>();
                String rights = "";
           
                Iterator<UserRight> rr = collabLoc.getRights().iterator();
                while (rr.hasNext()) {
                    rights += " - " + rr.next().toString() + "\n";
                }
                if (rights.isEmpty()) {
                    rights += "Сотрудник не имеет прав";
                }

                data.put("rights", rights);
                creater.createReport(title, null, data.entrySet(), null);
                creater.finish();
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
            }
        }
    }
View Full Code Here


        return EmcBean.class.getSimpleName();
    }

    @Override
    public void print(CombinedReportCreator cCreator) throws ClipsException {
        FormReportCreator creater = cCreator.createFormReporter(getClass(), 1);
        HashMap<String, Object> extraFields = getClient().getPrintFields()
        creater.createReport(null, null, extraFields.entrySet(), null);
        creater.finish();
    }
View Full Code Here

            data.put("buh", accountantGeneral == null ? "" : accountantGeneral.toString());
            data.put("datefrom", dates.first == null ? "" : Converter.dateToString(dates.first));
            data.put("datetill", dates.first == null ? "" : Converter.dateToString(dates.second));
            data.put("insurer", model.getInsurerTitle());
            data.put("currentdate", model.getDateGenerated() == null ? "" : Converter.dateToString(model.getDateGenerated()));
            FormReportCreator report = ReporterFactory.createFormReporter(getClass(), 2);
            report.createReport(data, model);
            report.finish();
            //PrintCreators.createGeneratedReport(title, null, data.entrySet(), null, model, getClass());
            try {
                writer.closeRegLpu();
            } catch (IOException ex) {
                MessageBox.showException(ex);
View Full Code Here

        ops.rightMargin = 0;
        ops.bottomMargin = 0;
        ops.topMargin = 0;
        parCreator.setUpReport(null, ops, null);
       
        FormReportCreator creator = parCreator.createFormReporter(getClass(), 2);
        TableReportOptions opts = new TableReportOptions();
        opts.bottomMargin = 0;
        opts.topMargin = 0;
        creator.createReport(title, opts, data.entrySet(), null);
        creator.finish();
       
        for (DelegateLine2 child : getChildren()) {
            if (child instanceof DelegatePrintable) {
                ((DelegatePrintable)child).print(parCreator);
            }
View Full Code Here

TOP

Related Classes of cli_fmw.report.FormReportCreator

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.