BrightSide Workbench Full Report + Source Code
org.turro.financials.account.logic.StatementReport Class Reference
Inheritance diagram for org.turro.financials.account.logic.StatementReport:
Collaboration diagram for org.turro.financials.account.logic.StatementReport:

Public Member Functions

void setFilter (StatementSet filter)
 
- Public Member Functions inherited from org.turro.zkoss.print.ReportToolbarbutton
 ReportToolbarbutton ()
 
void setShowLabels (boolean showLabels)
 
void setShowValues (boolean showValues)
 
void afterCompose ()
 
void doPrint ()
 

Protected Member Functions

void print (String type)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.zkoss.print.ReportToolbarbutton
boolean showValues = true
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 39 of file StatementReport.java.

Member Function Documentation

◆ print()

void org.turro.financials.account.logic.StatementReport.print ( String  type)
protected

Reimplemented from org.turro.zkoss.print.ReportToolbarbutton.

Definition at line 48 of file StatementReport.java.

48  {
49  if(filter != null && filter.size() > 0) {
50  Map parameters = new HashMap();
51  Company company = CompanyWrapper.getDefaultCompany();
52  Contact companyContact = (Contact) company.getIContact().getContact();
53  int fractionDigits = companyContact.getCurrency().getDefaultFractionDigits();
54  parameters.put("company", company);
55  parameters.put("companyContact", companyContact);
56  parameters.put("filter", filter);
57  parameters.put("dateFormat", DateFormats.getDefaultFormat());
58  parameters.put("currencyFormat", DecimalFormats.getStringFormat(fractionDigits));
59  parameters.put("exportFormat", type);
60  parameters.put("SUBREPORT_DIR", "../_reports/financials/accounting/");
61  String file = "/WEB-INF/_reports/financials/accounting/AccountStatement.jasper";
62  try {
63  ReportPrint.print(I_.get("Account statement"),
64  filter, parameters, file, null, type, null);
65  } catch (JRException ex) {
66  Logger.getLogger(StatementReport.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
67  }
68  }
69  }
Here is the call graph for this function:

◆ setFilter()

void org.turro.financials.account.logic.StatementReport.setFilter ( StatementSet  filter)

Definition at line 43 of file StatementReport.java.

43  {
44  this.filter = filter;
45  }

The documentation for this class was generated from the following file: