|
void | print (final String type) |
|
◆ print()
void org.turro.financials.register.BalanceReport.print |
( |
final String |
type | ) |
|
|
protected |
Reimplemented from org.turro.zkoss.print.ReportToolbarbutton.
Definition at line 52 of file BalanceReport.java.
55 getPage(), I_.get(
"Account balance"),
"Start page", 1,
"####", 0,
58 public Object execute(Context context) {
59 Integer startPage = (Integer) context.get(
"value");
60 if(startPage !=
null) {
61 if(ari !=
null && ari.size() > 0) {
62 Map parameters =
new HashMap();
63 Company company = CompanyWrapper.getDefaultCompany();
64 Contact companyContact = (Contact) company.getIContact().getContact();
65 int fractionDigits = companyContact.getCurrency().getDefaultFractionDigits();
66 parameters.put(
"company", company);
67 parameters.put(
"companyContact", companyContact);
68 parameters.put(
"filter", filter);
69 parameters.put(
"startPage", startPage - 1);
70 parameters.put(
"dateFormat", DateFormats.getDefaultFormat());
71 parameters.put(
"currencyFormat", DecimalFormats.getStringFormat(fractionDigits));
72 parameters.put(
"exportFormat", type);
74 parameters.put(
"SUBREPORT_DIR",
"../_reports/financials/accounting/");
76 "/WEB-INF/_reports/financials/accounting/AccountBalanceGroup.jasper" :
77 "/WEB-INF/_reports/financials/accounting/AccountBalance.jasper";
79 ReportPrint.print(I_.get(
"Account balance"),
81 }
catch (JRException ex) {
82 Logger.getLogger(BalanceReport.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
Collection< AccountRI > getAccountRIs()
◆ setFilter()
void org.turro.financials.register.BalanceReport.setFilter |
( |
BalanceFilter |
filter | ) |
|
The documentation for this class was generated from the following file: