Search in sources :

Example 1 with WArchiveViewer

use of org.adempiere.webui.apps.form.WArchiveViewer in project adempiere by adempiere.

the class WArchive method onEvent.

//	getZoomTargets
/**
	 * 	Listner
	 *	@param e event
	 */
public void onEvent(Event e) throws Exception {
    if (e.getTarget() instanceof Menuitem) {
        //	ArchiveViewer
        int AD_Form_ID = 118;
        ADForm form = ADForm.openForm(AD_Form_ID);
        WArchiveViewer av = (WArchiveViewer) form.getICustomForm();
        if (e.getTarget() == m_documents)
            av.query(false, m_AD_Table_ID, m_Record_ID);
        else if (e.getTarget() == m_reports)
            av.query(true, m_AD_Table_ID, m_Record_ID);
        else
            //	all Reports
            av.query(true, m_AD_Table_ID, 0);
        form.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
        SessionManager.getAppDesktop().showWindow(form);
    }
}
Also used : Menuitem(org.zkoss.zul.Menuitem) ADForm(org.adempiere.webui.panel.ADForm) WArchiveViewer(org.adempiere.webui.apps.form.WArchiveViewer)

Aggregations

WArchiveViewer (org.adempiere.webui.apps.form.WArchiveViewer)1 ADForm (org.adempiere.webui.panel.ADForm)1 Menuitem (org.zkoss.zul.Menuitem)1