◆ print()
void org.turro.financials.document.contract.DocumentReport.print |
( |
String |
type | ) |
|
|
protected |
Reimplemented from org.turro.zkoss.print.ReportButton.
Definition at line 51 of file contract/DocumentReport.java.
53 if(lines !=
null && lines.size() > 0) {
54 DocumentLine sample = lines.iterator().next();
55 int fractionDigits = document.
getCurrency().getDefaultFractionDigits();
56 Map parameters =
new HashMap();
57 Company company = CompanyWrapper.getCompanyFrom(sample);
58 Contact companyContact = (Contact) company.getIContact().getContact();
59 parameters.put(
"company", company);
60 parameters.put(
"companyContact", companyContact);
61 parameters.put(
"dateFormat", DateFormats.getDefaultFormat());
62 parameters.put(
"currencyFormat", DecimalFormats.getStringFormat(fractionDigits));
63 parameters.put(
"showDescendants", Boolean.TRUE);
65 parameters.put(
"contractor", contractor);
66 parameters.put(
"exportFormat", type);
67 parameters.put(
"REPORT_RESOURCE_BUNDLE", Application.getBundle(
70 ElephantContext.getSiteLocales()));
71 parameters.put(
"SUBREPORT_DIR",
"../_reports/financials/document/");
72 parameters.put(
"LOGO_IMAGE", ElephantContext.getRealPath(
"/WEB-INF/_reports/images/doc_logo.png"));
77 lines, parameters, file,
"/WEB-INF/_reports/financials/document/Document" +
80 }
catch (JRException ex) {
81 Logger.getLogger(DocumentReport.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
IContact getIContractor()
Set< DocumentLine > getDocumentLines()
DocumentDefinition getDocumentDefinition()
◆ setDocument()
void org.turro.financials.document.contract.DocumentReport.setDocument |
( |
Document |
document | ) |
|
The documentation for this class was generated from the following file: