Kişi bilgileri gizlidir. Logo çalışanları görebilir.

Open InvoiceBrowser ( Using Code )

  j-Platform/LPT

How can i Open InvoiceBrowser Using Code ? 


LPT


Kişi bilgileri gizlidir. Logo çalışanları görebilir.
public void openInvoicesBrowser(JLbsXUIControlEvent event) throws LbsLocalizableException
     {
    String contractId = LOHelper.getContract(JLbsXUITypes.XUIMODE_DBSELECT, LOConstants.CONTRACTS_INVOICE, LOConstants.INVC_WHOLESALE);
        InvoiceBrowserInput input = new InvoiceBrowserInput();
        BasicContractCallback callback = new BasicContractCallback();
        Hashtable<String, String> implProps = new Hashtable<String, String>();
        implProps.put(IAppletUIContractConstants.Modal, "true");
        AppletContractService.executeContract(event.getClientContext(), contractId, callback, implProps, new ContractParameter(input, "input"));
        if (callback.isContractComplete())
        {
           if (callback.getException() != null)
                            event.getClientContext().getLogger().error(callback.getException(), callback.getException());
            else if (callback.getOutputs() != null)
            {
                 InvoiceBrowserOutput output = LOXEInvoicesBrowser.findInvoiceBrowserOutput(callback.getOutputs());
                 List<InvoiceBrowserRecord> selectedRecords = output.getSelectedRecords();
                           if (selectedRecords.size() > 0)
                           {
                                  InvoiceBrowserRecord record = selectedRecords.get(0);     
                           }
                            
            }
        }

       }

We can use Control Serives for this purpose as used in above source code


 

10/02/16 16:46

Cevap vermek için giriş yapmanız gerekmektedir.