Search in sources :

Example 1 with ProcessPanel

use of org.compiere.apps.ProcessPanel in project adempiere by adempiere.

the class VPaySelect method generatePaySelect.

//  calculateSelection
/**
	 *  Generate PaySelection
	 */
private void generatePaySelect() {
    miniTable.stopEditor(true);
    if (miniTable.getRowCount() == 0)
        return;
    miniTable.setRowSelectionInterval(0, 0);
    calculateSelection();
    if (m_noSelected == 0)
        return;
    String msg = generatePaySelect(miniTable, (ValueNamePair) fieldPaymentRule.getSelectedItem(), fieldPayDate.getTimestamp(), (BankInfo) fieldBankAccount.getSelectedItem());
    if (msg != null && msg.length() > 0) {
        ADialog.error(m_WindowNo, panel, "SaveError", msg);
        return;
    }
    //  Ask to Post it
    if (!ADialog.ask(m_WindowNo, panel, "VPaySelectGenerate?", "(" + m_ps.getDocumentNo() + ")"))
        return;
    //  Prepare Process
    //	C_PaySelection_CreatePayment
    int AD_Proces_ID = 155;
    ProcessInfo pi = new ProcessInfo(m_frame.getTitle(), AD_Proces_ID, X_C_PaySelection.Table_ID, m_ps.getC_PaySelection_ID());
    pi.setAD_User_ID(Env.getAD_User_ID(Env.getCtx()));
    pi.setAD_Client_ID(Env.getAD_Client_ID(Env.getCtx()));
    ProcessPanel pp = new ProcessPanel(m_WindowNo, pi);
    //	Execute Process
    //	BR [ 265 ]
    ProcessCtl.process(this, m_WindowNo, pp, pi, trx);
//	ProcessCtl worker = new ProcessCtl(this, pi, trx);
//	worker.start();     //  complete tasks in unlockUI
}
Also used : ProcessPanel(org.compiere.apps.ProcessPanel) ProcessInfo(org.compiere.process.ProcessInfo)

Example 2 with ProcessPanel

use of org.compiere.apps.ProcessPanel in project adempiere by adempiere.

the class VBrowser method statInit.

/**
	 * Static Setup - add fields to parameterPanel (GridLayout)
	 */
private void statInit() {
    //	
    if (getAD_Process_ID() > 0) {
        //	FR [ 245 ]
        initProcessInfo();
        processParameterPanel = new ProcessPanel(getWindowNo(), getBrowseProcessInfo());
        processParameterPanel.setColumns(ProcessController.COLUMNS_2);
        processParameterPanel.setShowButtons(false);
        processParameterPanel.setShowDescription(false);
        processParameterPanel.createFieldsAndEditors();
        //	If don't have parameters then don'show collapsible panel
        if (processParameterPanel.hasParameters()) {
            //	Add collapsible panel for process pane;
            CollapsiblePanel collapsibleProcess = new CollapsiblePanel(Msg.getMsg(Env.getCtx(), ("Parameter")));
            collapsibleProcess.add(processParameterPanel.getPanel());
            collapsibleProcess.validate();
            processPanel.add(collapsibleProcess);
        }
    }
}
Also used : ProcessPanel(org.compiere.apps.ProcessPanel) CollapsiblePanel(org.compiere.swing.CollapsiblePanel)

Aggregations

ProcessPanel (org.compiere.apps.ProcessPanel)2 ProcessInfo (org.compiere.process.ProcessInfo)1 CollapsiblePanel (org.compiere.swing.CollapsiblePanel)1