Package cli_fmw.report

Examples of cli_fmw.report.FormReportCreator


        ops.setOrentation(PageOrentation.horizontal);
        ops.leftMargin =0;
        ops.rightMargin = 0;
        parCreator.setUpReport(null, ops, null);

        FormReportCreator creator;
        creator = parCreator.createFormReporter(PrintCreators.class, 1);
        creator.createReport(new HashMap<String, Object>(), null);
        creator.finish();
       
        return parCreator;
    }
View Full Code Here


    public static void createGeneratedReport(String title, TableReportOptions ops,
        Collection<Entry<String, Object>> preFields,
        Collection<Entry<String, Object>> postFields,
        TableModel model, Class clazz) {
        FormReportCreator creater = ReporterFactory.createFormReporter(clazz, 1);
        creater.createReport(title, ops, preFields, postFields, model);
        creater.finish();
  }
View Full Code Here

  }
 
  @Override
  public FormReportCreator createFormReporter(Class clazz, int type) {
    isInit();
    FormReportCreator        creator = ReporterFactory.createFormReporter(clazz, type);
    setUpAsSubReporter(creator);
    return creator;
  }
View Full Code Here

    }

    @Override
    public void print() {
        if (readyForPrint()) {
            FormReportCreator creater = ReporterFactory.createFormReporter(getClass());
            HashMap<String, Object> data = new LinkedHashMap<String, Object>();
            String title = "Список диагнозов пациента";
            data.put("client", "Пациент: " + clientLocal.toString());
            creater.createReport(title, null, data.entrySet(), jTable.getModel());
            creater.finish();
        }
    }
View Full Code Here

                    ops.rightMargin = 0;
                    ops.topMargin = 0;
                    ops.bottomMargin = 0;
                    subCreator.setUpReport(null, ops, null);

                    FormReportCreator creator = subCreator.createFormReporter(PrintCreators.class, 1);
                    creator.createReport(new HashMap<String, Object>(), null);
                    creator.finish();

                    del.print(subCreator);
                    subCreator.finish();
                }
            }
View Full Code Here

        return DiagnosisBean.class.getSimpleName();
    }
   
    @Override
    public void print(CombinedReportCreator cCreator) throws ClipsException {
        FormReportCreator creater = cCreator.createFormReporter(getClass(), 1);
        HashMap<String, Object> data = new LinkedHashMap<String, Object>();
        String title = "Данные диагноза";
       
        AlignmentType alType = AlignmentType.dataInOneColoumnByLeft;
       
        String val = getSerrenLocal().getPolisData().getClient(getAuditListener()).toString();
        ExtraField extraField = new ExtraField(val, "Пациент:", alType);
        data.put("client", extraField);
       
        val = Converter.dateToString(getDate());
        extraField = new ExtraField(val, "Дата:", alType);
        data.put("date", extraField);
       
        val = getMkbAndStage();
        extraField = new ExtraField(val, "Диагноз:", alType);
        data.put("mkb", extraField);
       
        val = getType().getTitle();
        extraField = new ExtraField(val, "Тип диагноза:", alType);
        data.put("type", extraField);
       
        val = getEncounter().getTitle();
        extraField = new ExtraField(val, "Повторяемость:", alType);
        data.put("enc", extraField);
       
        if (getAuthor() != null) {
            val = getAuthor();
            extraField = new ExtraField(val, "Автор:", alType);
            data.put("author", extraField);
        }
       
        TableModel model = null;
        if (!getAccompDiagnosis().isEmpty()) {
            data.put("attended", "Список сопутствующих диагнозов:");
            model = new TableModelAccompDiagnosisList(getAccompDiagnosis(), false);
        }
       
        TableReportOptions ops = new TableReportOptions();
        ops.tableHeaderColor = Color.WHITE;
        ops.bottomMargin = 0;
        ops.topMargin = 0;
        creater.createReport(title, ops, data.entrySet(), model);
        creater.finish();
    }
View Full Code Here

                        options.setOrentation(PageOrentation.horizontal);
                        options.leftMargin = 0;
                        options.rightMargin = 0;
                        options.subReportNewPageType = CombinedReportOptions.NewPageType.beginNotFirst;
                        parCreator.setUpReport(null, options, null);
                        FormReportCreator creator;
                        CombinedReportCreator subCreator;
                        CombinedReportOptions ops;
                        for (int i = 0; i < newSerrenList.size(); i++) {
                            CheckupLocal checkupLocal = newSerrenList.get(i).getAnalysis();
                            if (checkupLocal != null) {
                                subCreator = parCreator.createCombinedReporter(getClass(), 2);
                                ops = new CombinedReportOptions();
                                ops.leftMargin = 0;
                                ops.rightMargin = 0;
                                ops.topMargin = 0;
                                ops.bottomMargin = 0;
                                subCreator.setUpReport(null, ops, null);

                                creator = subCreator.createFormReporter(PrintCreators.class, 1);
                                creator.createReport(new HashMap<String, Object>(), null);
                                creator.finish();
                                checkupLocal.print(subCreator);
                                subCreator.finish();
                            }
                        }
                        parCreator.finish();
View Full Code Here

    @Override
    public void print() {
        try {
            if (readyForPrint()) {
                FormReportCreator creater = ReporterFactory.createFormReporter(getClass());
                HashMap<String, Object> extraFields = collabLoc.getFieldsForPrint();               
                creater.createReport(null, null, extraFields.entrySet(), null);
                creater.finish();
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
    }
View Full Code Here

    public EmcLocal getEMC() throws ClipsException {
        return emc.get();
    }

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

        fireContentStateEvent();
    }

    @Override
    public void print(CombinedReportCreator ccreator) throws ClipsException {
        FormReportCreator creator = ccreator.createFormReporter(getClass(), 1);
        HashMap<String, Object> extraFields = new HashMap<String, Object>();
       
        String dirChoiceItem = "";
        switch (((DirectoryDirectionTypeItem) getType()).getChoice()) {
            case (DirectoryDirectionTypeBean.OBLIGATE_SERVICE) :               
                dirChoiceItem = getService().getTitle();
                break;
            case (DirectoryDirectionTypeBean.OBLIGATE_COMMITTEE) :
                dirChoiceItem = "КЭК. Причина: " + getCommitteeReason().getTitle();
                break;
        }
        extraFields.put("directionTitle", "Направление: " + getType().getTitle());       
        extraFields.put("directionDate", Converter.dateToString(getDate()));
       
        ClientLocal cl = getSerrenLocal().getDiseaseLocal().getEmcLocal().getClient();
        String clientInfo = cl.toString();
        if (cl.getBorn() != null) {
            clientInfo += ", " + Converter.dateToString(cl.getBorn());
            clientInfo += " (" + DateTimeUtils.calcAge(cl.getBorn(), TimeLocal.getCurrentTime().getTime()) + ")";
        }
        extraFields.put("clientData", clientInfo);
        extraFields.put("clientAddress", cl.getAddress().toString());
        extraFields.put("directionChoice", dirChoiceItem);
        if (getMkb() != null) {
            extraFields.put("directionMkb", getMkb().toString());
        }
        DirectoryCollaboratorItem collab = getSerrenLocal().getSerRenDirector();
        String collabStr = collab.toString();
        extraFields.put("directionCollaborator", collabStr);
        if (getDescription() != null) {
            extraFields.put("directionDesc", getDescription());
        }
        creator.createReport(null, null, extraFields.entrySet(), null);
        creator.finish();
    }
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.