Package org.adempiere.webui.apps
Class WProcessCtl
java.lang.Object
org.compiere.apps.AbstractProcessCtl
org.adempiere.webui.apps.WProcessCtl
- All Implemented Interfaces:
Runnable
Zk client controller for execution of process.
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
lock()
Lock UI and show in progress dialogstatic void
process
(int WindowNo, ProcessInfo pi, Trx trx) static void
process
(int WindowNo, ProcessInfo pi, Trx trx, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener) Open ProcessModalDialog to run process.static void
process
(IProcessUI aProcessUI, int WindowNo, IProcessParameter parameter, ProcessInfo pi, Trx trx) Save parameters and execute process.protected void
unlock()
Unlock UI and dispose in progress dialog.protected void
updateProgressWindowTimerEstimate
(int estSeconds) protected void
updateProgressWindowTitle
(String title) Methods inherited from class org.compiere.apps.AbstractProcessCtl
getParent, getProcessInfo, getProcessMonitor, getWindowNo, isServerProcess, run, start
-
Constructor Details
-
WProcessCtl
- Parameters:
aProcessUI
-WindowNo
-pi
-trx
-
-
-
Method Details
-
process
- Parameters:
WindowNo
-pi
-trx
-
-
process
public static void process(int WindowNo, ProcessInfo pi, Trx trx, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener) Open ProcessModalDialog to run process.- Create and save
MPInstance
if no pi.AD_PInstance_ID. - UseProcessModalDialog
to capture process parameters and run process.- Parameters:
WindowNo
- window nopi
- ProcessInfo process infotrx
- Transactionlistener
- listener forProcessModalDialog
-
process
public static void process(IProcessUI aProcessUI, int WindowNo, IProcessParameter parameter, ProcessInfo pi, Trx trx) Save parameters and execute process.- Create and save
MPInstance
if no pi.AD_PInstance_ID. - Call parameter.saveParameters (IProcessParameter.saveParameters()
) to save process parameters. - Save pi.getRecord_IDs() to T_Selections (DB.createT_Selection(int, java.util.Collection, String)
). - CallAbstractProcessCtl.run()
to execute process.- Parameters:
aProcessUI
-IProcessUI
WindowNo
- window noparameter
- Process Parameter Panelpi
-ProcessInfo
trx
- Transaction
-
updateProgressWindowTimerEstimate
protected void updateProgressWindowTimerEstimate(int estSeconds) - Specified by:
updateProgressWindowTimerEstimate
in classAbstractProcessCtl
-
updateProgressWindowTitle
- Specified by:
updateProgressWindowTitle
in classAbstractProcessCtl
-
lock
protected void lock()Description copied from class:AbstractProcessCtl
Lock UI and show in progress dialog- Specified by:
lock
in classAbstractProcessCtl
-
unlock
protected void unlock()Description copied from class:AbstractProcessCtl
Unlock UI and dispose in progress dialog.- Specified by:
unlock
in classAbstractProcessCtl
-