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;
}
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());
}
}
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);
}
}
Aggregations