IDEMPIERE-131 Info Account Viewer enhancement - fixed previous commit break export to excel

(transplanted from 99366e2f44765ab98bd0cc11a017b2245b1ff5b3)
This commit is contained in:
Heng Sin Low 2012-02-02 22:14:10 +08:00
parent befd71eb22
commit 47ec4aa29b
1 changed files with 4 additions and 2 deletions

View File

@ -86,6 +86,8 @@ import org.zkoss.zul.Separator;
public class WAcctViewer extends Window implements EventListener public class WAcctViewer extends Window implements EventListener
{ {
private static final String TITLE = "Posting";
/** /**
* *
*/ */
@ -612,7 +614,7 @@ public class WAcctViewer extends Window implements EventListener
southPanel.setParent(south); southPanel.setParent(south);
this.setAttribute("mode", "modal"); this.setAttribute("mode", "modal");
this.setTitle("Posting"); this.setTitle(TITLE);
this.setBorder("normal"); this.setBorder("normal");
this.setClosable(true); this.setClosable(true);
this.setStyle("position: absolute; width: 100%; height: 100%;"); this.setStyle("position: absolute; width: 100%; height: 100%;");
@ -797,7 +799,7 @@ public class WAcctViewer extends Window implements EventListener
RModelExcelExporter exporter = new RModelExcelExporter(m_rmodel); RModelExcelExporter exporter = new RModelExcelExporter(m_rmodel);
File file; File file;
try { try {
file = File.createTempFile(getTitle(), ".xls"); file = File.createTempFile(TITLE, ".xls");
exporter.export(file, Env.getLanguage(Env.getCtx())); exporter.export(file, Env.getLanguage(Env.getCtx()));
Filedownload.save(file, "application/vnd.ms-excel"); Filedownload.save(file, "application/vnd.ms-excel");
} catch (Exception e) { } catch (Exception e) {