Search in sources :

Example 1 with BusyDialog

use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.

the class WMerge method onEvent.

//	dispose
/**
	 *  Action Listener
	 *  @param e event
	 */
public void onEvent(Event e) {
    if (e.getTarget().getId().equals(ConfirmPanel.A_CANCEL)) {
        dispose();
        return;
    }
    //
    String columnName = null;
    String from_Info = null;
    String to_Info = null;
    int from_ID = 0;
    int to_ID = 0;
    //	get first merge pair
    for (int i = 0; (i < m_columnName.length && from_ID == 0 && to_ID == 0); i++) {
        Object value = m_from[i].getValue();
        if (value != null) {
            if (value instanceof Integer)
                from_ID = ((Integer) value).intValue();
            else
                continue;
            value = m_to[i].getValue();
            if (value != null && value instanceof Integer)
                to_ID = ((Integer) value).intValue();
            else
                from_ID = 0;
            if (from_ID != 0) {
                columnName = m_columnName[i];
                from_Info = m_from[i].getDisplay();
                to_Info = m_to[i].getDisplay();
            }
        }
    }
    if (from_ID == 0 || from_ID == to_ID)
        return;
    m_msg = Msg.getMsg(Env.getCtx(), "MergeFrom") + " = " + from_Info + "\n" + Msg.getMsg(Env.getCtx(), "MergeTo") + " = " + to_Info;
    if (!FDialog.ask(m_WindowNo, form, "MergeQuestion", m_msg))
        return;
    updateDeleteTable(columnName);
    progressWindow = new BusyDialog();
    progressWindow.setPage(form.getPage());
    progressWindow.doHighlighted();
    runnable = new MergeRunnable(columnName, from_ID, to_ID);
    Clients.response(new AuEcho(form, "runProcess", null));
}
Also used : AuEcho(org.zkoss.zk.au.out.AuEcho) BusyDialog(org.adempiere.webui.apps.BusyDialog)

Example 2 with BusyDialog

use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.

the class WGenForm method lockUI.

/**************************************************************************
	 *  Lock User Interface.
	 *  Called from the Worker before processing
	 *  @param pi process info
	 */
public void lockUI() {
    progressWindow = new BusyDialog();
    progressWindow.setPage(this.getPage());
    progressWindow.doHighlighted();
}
Also used : BusyDialog(org.adempiere.webui.apps.BusyDialog)

Example 3 with BusyDialog

use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.

the class InfoPanel method showBusyDialog.

//  valueChange
protected void showBusyDialog() {
    progressWindow = new BusyDialog();
    progressWindow.setPage(this.getPage());
    progressWindow.doHighlighted();
}
Also used : BusyDialog(org.adempiere.webui.apps.BusyDialog)

Example 4 with BusyDialog

use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.

the class WPOSQuery method lockUI.

//	getButtonAction
/**
	 *  Lock User Interface.
	 *  Called from the Worker before processing
	 *  @param pi process info
	 */
public void lockUI() {
    progressWindow = new BusyDialog();
    progressWindow.setPage(this.getPage());
    progressWindow.doHighlighted();
}
Also used : BusyDialog(org.adempiere.webui.apps.BusyDialog)

Example 5 with BusyDialog

use of org.adempiere.webui.apps.BusyDialog in project adempiere by adempiere.

the class WBrowser method showBusyDialog.

/**
	 * Show dialog for busy window
	 */
private void showBusyDialog() {
    m_waiting = new BusyDialog();
    m_waiting.setPage(m_frame.getPage());
    m_waiting.doHighlighted();
}
Also used : BusyDialog(org.adempiere.webui.apps.BusyDialog)

Aggregations

BusyDialog (org.adempiere.webui.apps.BusyDialog)7 AdempiereException (org.adempiere.exceptions.AdempiereException)1 MBrowse (org.adempiere.model.MBrowse)1 CommandReceiver (org.adempiere.pos.command.CommandReceiver)1 CustomForm (org.adempiere.webui.panel.CustomForm)1 MBPartner (org.compiere.model.MBPartner)1 ProcessInfo (org.compiere.process.ProcessInfo)1 WBrowser (org.eevolution.form.WBrowser)1 AuEcho (org.zkoss.zk.au.out.AuEcho)1