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