Search in sources :

Example 6 with AuEcho

use of org.zkoss.zk.au.out.AuEcho in project adempiere by adempiere.

the class WGenForm method generateComplete.

/**
	 *  Complete generating shipments.
	 *  Called from Unlock UI
	 *  @param pi process info
	 */
private void generateComplete() {
    if (progressWindow != null) {
        progressWindow.dispose();
        progressWindow = null;
    }
    //  Switch Tabs
    tabbedPane.setSelectedIndex(1);
    //
    ProcessInfoUtil.setLogFromDB(genForm.getProcessInfo());
    StringBuffer iText = new StringBuffer();
    iText.append("<b>").append(genForm.getProcessInfo().getSummary()).append("</b><br>(").append(Msg.getMsg(Env.getCtx(), genForm.getTitle())).append(")<br>").append(genForm.getProcessInfo().getLogInfo(true));
    info.setContent(iText.toString());
    //	Get results
    int[] ids = genForm.getProcessInfo().getIDs();
    if (ids == null || ids.length == 0)
        return;
    log.config("PrintItems=" + ids.length);
    m_ids = ids;
    Clients.response(new AuEcho(this, "onAfterProcess", null));
}
Also used : AuEcho(org.zkoss.zk.au.out.AuEcho)

Example 7 with AuEcho

use of org.zkoss.zk.au.out.AuEcho in project adempiere by adempiere.

the class WGenForm method onAfterProcess.

//  generateShipments_complete
public void onAfterProcess() {
    //	OK to print
    if (FDialog.ask(getWindowNo(), this, genForm.getAskPrintMsg())) {
        Clients.showBusy("Processing...");
        Clients.response(new AuEcho(this, "onPrint", null));
    }
//	OK to print
}
Also used : AuEcho(org.zkoss.zk.au.out.AuEcho)

Aggregations

AuEcho (org.zkoss.zk.au.out.AuEcho)7 BigDecimal (java.math.BigDecimal)1 BusyDialog (org.adempiere.webui.apps.BusyDialog)1 KeyNamePair (org.compiere.util.KeyNamePair)1 Component (org.zkoss.zk.ui.Component)1