Package clips.administrator.register.writer

Examples of clips.administrator.register.writer.WriterAbstract


            List<RegisterData> list = bean.get().getRegisterDataList(dchFromDate.getDate(), dchTillDate.getDate());
            System.out.println("Реестр загружен, количество записей " + list.size());


            for (int i = 0; i < writerList.size(); i++) {
                WriterAbstract w = writerList.get(i);
                System.out.println("Запись реестра: " + w.getTitle());
                w.createRegLpu();
                if (w instanceof WriterAll) {
                    errorList = w.fillRegLpu(list);
                } else {
                    w.fillRegLpu(list);
                }
                w.createLpuInfo();
                w.fillLpuInfo(dchFromDate.getCalendar(), dchTillDate.getCalendar());
            }
            refreshTable();
            MessageBox.showInfo("Реестр сформирован, ошибок " + errorList.size());
        } catch (xBaseJException ex) {
            MessageBox.showException(ex);
View Full Code Here


            DialogSelectInsurer dlg = new DialogSelectInsurer(MainWindow.mainWindow, writerList);
            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 {
                writer.closeRegLpu();
            } catch (IOException ex) {
                MessageBox.showException(ex);
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

TOP

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

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.