Package clips.reportgen

Examples of clips.reportgen.QueryLocal


    }

    @Override
    public Report get(int id) throws ReportException {
        try {
            return new QueryLocal(id, al);
        } catch (ClipsException ex) {
            throw new ReportException(ex.getLocalizedMessage());
        }
    }
View Full Code Here


    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        try {
            QueryLocal ql = cache.get(rowIndex);
            if (columnIndex == COL_ID){
                    return ql.getID();
            } else if (columnIndex == COL_QUERY) {
                return (ql.isWrong() ? "(НЕ КОРРЕКТЕН) ":"") + ql.getTitle();
            } else if (columnIndex == COL_VERSION) {
                try {
                    ReportVersion ver = ql.getVersion();
                    ReportVersion realVer = ver.realVersion();
                    return realVer.toString()
                            + (realVer.isSupported() ? "":" (не поддерживается)")
                            + (realVer == ver ? "":"(обновлено)");
                } catch (Exception ex) {
View Full Code Here

    private void btEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEditActionPerformed
        int row = tblQueryList.getSelectedRowSorted();
        if (row < 0) {
            return;
        }
        QueryLocal queryLocal = cache.get(row);
        openInEditor(queryLocal);
    }//GEN-LAST:event_btEditActionPerformed
View Full Code Here

        try {
            int row = tblQueryList.getSelectedRowSorted();
            if (row < 0) {
                return;
            }
            QueryLocal queryLocal = cache.get(row);
            queryLocal.remove();
            cache.remove(queryLocal);
            tblQueryList.setModel(new TableModelQueryList(cache));
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

        }
    }//GEN-LAST:event_btRemoveActionPerformed

    private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
        try {
            QueryLocal query = new QueryLocal(getAuditManager());
            query.setReportType(reportType);
            PanelReportGenerator panel = new PanelReportGenerator(getContainer(), query);
            PageGeneric page = getContainer().addNewPage((PageGeneric) panel, this);
            getContainer().activatePage(page);
        } catch (ReportException ex) {
            MessageBox.showException(ex);
View Full Code Here

        try {
            int row = tblQueryList.getSelectedRowSorted();
            if (row < 0) {
                return;
            }
            QueryLocal queryLocal = cache.get(row);
            DlgReportCollabsEdit dlg = new DlgReportCollabsEdit(MainWindow.mainWindow, queryLocal);
            dlg.setVisible(true);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

    private void execBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_execBtnActionPerformed
        int row = tblQueryList.getSelectedRowSorted();
        if (row < 0) {
            return;
        }
        QueryLocal rr = cache.get(row);
        PendingReportDialog dlg;
        try {
            dlg = new PendingReportDialog(MainWindow.mainWindow, rr, false);
            dlg.setVisible(true);
        } catch (ReportException ex) {
View Full Code Here

        try {
            int row = tblQueryList.getSelectedRowSorted();
            if (row < 0) {
                return;
            }
            QueryLocal queryLocal = cache.get(row);
            QueryLocal queryLocalCopy = new QueryLocal(getAuditManager());
            queryLocalCopy.setRaw(queryLocal.getRaw());
            queryLocalCopy.setTitle(queryLocal.getTitle() + "(копия)");
            queryLocalCopy.setReportType(queryLocal.getReportType());
            openInEditor(queryLocalCopy);
        } catch (ReportException ex) {
            MessageBox.showException(ex);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

    private void btDebugActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btDebugActionPerformed
        int row = tblQueryList.getSelectedRowSorted();
        if (row < 0) {
            return;
        }
        QueryLocal queryLocal = cache.get(row);
        try {
            DebugPanel panel = new DebugPanel(MainWindow.mainWindow,
                    getContainer(), queryLocal);
            PageGeneric page = getContainer().addNewPage((PageGeneric) panel, this);
            getContainer().activatePage(page);
View Full Code Here

TOP

Related Classes of clips.reportgen.QueryLocal

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.