Package org.jabusuite.core.reporting.session

Examples of org.jabusuite.core.reporting.session.ReportTemplatesRemote


        return new TblReportTemplates(this, this.getJbsObjects());
    }

    @Override
    public void doDeleteJbsObject(JbsBaseObject jbsObject) throws Exception {
        ReportTemplatesRemote templateManagement = (ReportTemplatesRemote)ClientTools.getRemoteBean(ReportTemplatesRemote.class);
        templateManagement.deleteDataset(this.getSelectedReportTemplate(), ClientGlobals.getUser());
    }
View Full Code Here


    this.getTbMain().addButton(btnAddrList);
    }
     */
    public void showAddrListReport() {
        try {
            ReportTemplatesRemote reportTemplates = (ReportTemplatesRemote) ClientTools.getRemoteBean(ReportTemplatesRemote.class);
            ReportTemplate reportTemplate = reportTemplates.findReportTemplate(1);
            RptAddress rptAddress = new RptAddress(reportTemplate, ClientGlobals.getUser(), ClientGlobals.getCompany());
            rptAddress.createReport();
            getApplicationInstance().enqueueCommand(rptAddress.getReportPdfDownload(true));
        } catch (NamingException e) {
            logger.error("Error fetching report-template.", e);
View Full Code Here

   
    protected void printTransaction(ReportTemplate pageTemplate, ReportTemplate reportTemplate) {
        try {
            doSave();
            logger.debug("Used template: "+reportTemplate.getName());
            ReportTemplatesRemote reportTemplates = (ReportTemplatesRemote) ClientTools.getRemoteBean(ReportTemplatesRemote.class);
            RptTransaction rptTransaction = this.createRptTransaction(pageTemplate, reportTemplate);
            rptTransaction.createReport();
            getApplicationInstance().enqueueCommand(rptTransaction.getReportPdfDownload(true));
        } catch (Exception je) {
            JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Transaction.printError"),je);
View Full Code Here

        this.setUser(user);
        this.setCompany(company);
    }

    protected ReportTemplate findReportTemplate(ReportType reportType, JbsUser user, JbsCompany company) throws Exception {
        ReportTemplatesRemote reportTemplates = (ReportTemplatesRemote) ClientTools.getRemoteBean(ReportTemplatesRemote.class);
        ReportTemplate template = reportTemplates.findReportTemplate(reportType.getId(), user, company);
        if (template == null)
            throw new Exception("ReportTemplate.msgNotFound");
        return template;
    }
View Full Code Here

    @Override
    public void doSave() throws EJbsObject {
        logger.debug("Saving data...");

        try {
            ReportTemplatesRemote reportTemplates = (ReportTemplatesRemote)ClientTools.getRemoteBean(ReportTemplatesRemote.class);

            super.doSave();
            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity " + this.getReportTemplate().getId() + ".");
                reportTemplates.createDataset(this.getReportTemplate(), ClientGlobals.getUser(), ClientGlobals.getUser().getMainGroup(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getReportTemplate().getId() + ".");
                reportTemplates.updateDataset(this.getReportTemplate(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving news-entry.",e);
            JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Generic.saveErrorMessage"));
View Full Code Here

TOP

Related Classes of org.jabusuite.core.reporting.session.ReportTemplatesRemote

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.