Search in sources :

Example 1 with ADForm

use of org.adempiere.webui.panel.ADForm in project adempiere by adempiere.

the class TabbedDesktop method openForm.

/**
     *
     * @param formId
     * @return ADWindow
     */
public ADForm openForm(int formId) {
    ADForm form = ADForm.openForm(formId);
    DesktopTabpanel tabPanel = new DesktopTabpanel();
    form.setParent(tabPanel);
    //do not show window title when open as tab
    form.setTitle(null);
    form.setAttribute(WINDOWNO_ATTRIBUTE, form.getWindowNo());
    preOpenNewTab();
    windowContainer.addWindow(tabPanel, form.getFormName(), true);
    return form;
}
Also used : DesktopTabpanel(org.adempiere.webui.component.DesktopTabpanel) ADForm(org.adempiere.webui.panel.ADForm)

Example 2 with ADForm

use of org.adempiere.webui.panel.ADForm in project adempiere by adempiere.

the class WPaySelect method unlockUI.

//  lockUI
/**
	 *  Unlock User Interface.
	 *  Called from the Worker when processing is done
	 */
public void unlockUI(ProcessInfo pi) {
    if (!m_isLock)
        return;
    m_isLock = false;
    m_pi = pi;
    Clients.clearBusy();
    //TODO: The response returned is always Cancel
    //		if (!FDialog.ask(0, form, "VPaySelectPrint?", "(" + m_pi.getSummary() + ")"))
    //		{
    //			dispose();
    //			return;
    //		}
    this.dispose();
    //  Start PayPrint
    //	Payment Print/Export
    int AD_Form_ID = 106;
    ADForm form = SessionManager.getAppDesktop().openForm(AD_Form_ID);
    if (m_ps != null) {
        WPayPrint pp = (WPayPrint) form.getICustomForm();
        pp.setPaySelection(m_ps.getC_PaySelection_ID());
    }
}
Also used : ADForm(org.adempiere.webui.panel.ADForm)

Example 3 with ADForm

use of org.adempiere.webui.panel.ADForm 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

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