FR - Implementing new Summary flag in Report View

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2897727
This commit is contained in:
Heng Sin Low 2010-03-18 05:52:03 +00:00
parent b75ad04ac7
commit a30d25e764
1 changed files with 13 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import org.adempiere.exceptions.AdempiereException;
import org.adempiere.pdf.Document;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.apps.WReport;
import org.adempiere.webui.component.Checkbox;
import org.adempiere.webui.component.ConfirmPanel;
import org.adempiere.webui.component.Label;
import org.adempiere.webui.component.ListItem;
@ -93,7 +94,7 @@ import org.zkoss.zul.Vbox;
*/
public class ZkReportViewer extends Window implements EventListener {
private static final long serialVersionUID = 1492321933977608137L;
private static final long serialVersionUID = 4640088641140012438L;
/** Window No */
private int m_WindowNo;
/** Print Context */
@ -133,6 +134,7 @@ public class ZkReportViewer extends Window implements EventListener {
private Window winExportFile = null;
private ConfirmPanel confirmPanel = new ConfirmPanel(true);
private Listbox cboType = new Listbox();
private Checkbox summary = new Checkbox();
/**
* Static Layout
@ -211,6 +213,9 @@ public class ZkReportViewer extends Window implements EventListener {
comboReport.setTooltiptext(Msg.translate(m_ctx, "AD_PrintFormat_ID"));
toolBar.appendChild(comboReport);
summary.setText(Msg.getMsg(m_ctx, "Summary"));
toolBar.appendChild(summary);
bCustomize.setImage("/images/Preference24.png");
bCustomize.setTooltiptext("Customize Report");
toolBar.appendChild(bCustomize);
@ -376,6 +381,8 @@ public class ZkReportViewer extends Window implements EventListener {
*/
private void dynInit()
{
summary.addActionListener(this);
fillComboReport(m_reportEngine.getPrintFormat().get_ID());
// fill Drill Options (Name, TableName)
@ -518,6 +525,11 @@ public class ZkReportViewer extends Window implements EventListener {
exportFile();
else if(event.getName().equals(Events.ON_CLICK) || event.getName().equals(Events.ON_SELECT))
actionPerformed(event);
else if (event.getTarget() == summary)
{
m_reportEngine.setSummary(summary.isSelected());
cmd_report();
}
}
/**************************************************************************