Package clips.administrator.register.writer

Examples of clips.administrator.register.writer.TableModelRegister


            dlg.setVisible(true);
            if (dlg.getDlgResult() != ModalDialog.DLG_OK) {
                return;
            }
            WriterAbstract writer = dlg.getResult();
            TableModelRegister model = new TableModelRegister(writer);
            HashMap<String, Object> data = new LinkedHashMap<String, Object>();

            ConfigLocal configLocal = ConfigLocal.getInstance();
            DirectoryCollaboratorItem director = UserInfo.get().getCollaborator().getLpu().getChiefDoctor();
            DirectoryCollaboratorItem accountantGeneral = UserInfo.get().getCollaborator().getLpu().getAccountant();
            Pair<Date, Date> dates = model.getDates();

            data.put("count", String.valueOf(model.getRowCount()));
            data.put("director", director == null ? "" : director.toString());
            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 {
View Full Code Here

TOP

Related Classes of clips.administrator.register.writer.TableModelRegister

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.