Package cli_fmw.delegate.report

Examples of cli_fmw.delegate.report.ReportLocal


        tfCollab.setText(cert.getCollaborator().getTitle());
        setEnableComponents();
    }
   
    private void initMyComponents() throws ClipsException {
        ReportLocal reportLocal = cert.getType().getReportLocal();
        //System.out.println("REPORT: "+ reportLocal.toString());
        ArrayList<ReportParam> params;
        Map<String, Object> defaultParameters;
        if (reportLocal != null) {
            params = reportLocal.getParams();
            defaultParameters = reportLocal.getDefaultParameters();
        } else {
            params = new ArrayList<ReportParam>();
            defaultParameters = new HashMap<String, Object>();
        }
        //Создание массива тегов
View Full Code Here


    }

    @Override
    public void print() {
        try {
            ReportLocal reportLocal = cert.getType().getReportLocal();
            Map<String, Object> map = new HashMap<String, Object>();
            for (int i = 0; i < tagList.size(); i++) {
                CertTag certTag = tagList.get(i);
                map.put(certTag.getTagName(), certTag.getValue());
            }
            JasperPrint clientReport = reportLocal.getClientReport(map);
            ReportPreview.showReport(clientReport);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        } catch (JRException ex) {
            MessageBox.showExceptionOnly(ex);
View Full Code Here

static int        newReportCount = 0;

private void newReportButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newReportButtonActionPerformed
  if (rightPanelSetReport(curReport, true)){
    ReportLocal      newRep = new ReportLocal(getAuditManager());
    try {
      newRep.setName("Новый отчет " + ++newReportCount);
    } catch (ClipsException ex) {
      MessageBox.showException(ex);
    }
    reportListModel.addElement(newRep);
    reportList.setSelectedValue(newRep, true);
View Full Code Here

 
  public void remove(){
    if (curReport != null && !curReport.isSpecialReport()){
      try {
        if (curReport.isNewlyCreated()){
          ReportLocal      tmp = curReport;
          rightPanelSetReport(null, false);
          reportListModel.removeElement(tmp);
        }
        else {
          int      res = MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT);
          if (res == MessageBox.ANSWER_YES){
            ReportLocal      tmp = curReport;
            rightPanelSetReport(null, false);
            tmp.remove();
            reportListModel.removeElement(tmp);
          }
        }
      } catch (ClipsException ex) {
        MessageBox.showException(ex);
View Full Code Here

       
      };
     
      ArrayList<ReportLocal>      reports = new ReportSearchLocal(getAuditManager()).getReports();
      for (Iterator<ReportLocal> it = reports.iterator(); it.hasNext();) {
        ReportLocal reportLocal = it.next();
        if (reportLocal.isSpecialReport()) {
          it.remove();
        }
      }
      reportsModel = new DelegateListComboBoxModel<DiseaseReportLocal>(reports, reportsComboBox, false) {
        static final long              serialVersionUID = 1L;
View Full Code Here

   * @return - поток для загрузки дополнительных данных
   */
 
  @Override
  public InputStream getInputStream(String fileName) {
    ReportLocal      rl = getServerRepors(null);
    ArrayList<String>  files = getFileList(PathType.serverPath, fileName);
    try {
      for (String str : files) {
        lastLoadedFileName = str;
        FileLocal fileLocal = rl.getFile(str);
        if (fileLocal != null) {
          return new ByteArrayInputStream(fileLocal.getFileCompiledData());
        }
      }
    }
View Full Code Here

    return null;
  }

  public ReportLocal getServerRepors(AuditListener al) {
    if (serverRepors == null) {
      serverRepors = new ReportLocal(ReportDefinition.REPORT_CLIENT_SIDE_REPORTS, al);
    }
    return serverRepors;
  }
View Full Code Here

  }
 

  public ReportLocal getReport() throws ClipsException {
    if (getDetails().reportId != 0) {
      return new ReportLocal(getDetails().reportId, getAuditListener());
    }
    else {
      return null;
    }
  }
View Full Code Here

        if (reportLocal == null) {
            int id = getDetails().reportDefinitionID;
            if (id == 0) {
                reportLocal = null;
            } else {
                reportLocal = new ReportLocal(id, null);//NULL AL
            }
            return reportLocal;
        } else {
            return reportLocal;
        }
View Full Code Here

TOP

Related Classes of cli_fmw.delegate.report.ReportLocal

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.