◆ 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.
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";
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);
◆ setFilter()
void org.turro.financials.account.logic.StatementReport.setFilter |
( |
StatementSet |
filter | ) |
|
The documentation for this class was generated from the following file: