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