Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. appController.service.getInvoiceProviderByNumber(tbNewInvoice.getValue(),
  2. new AsyncCallback<InvoiceProvider>() {
  3. @Override
  4. public void onSuccess(InvoiceProvider res) {
  5. if (res == null) {
  6. InvoiceProvider ip = new InvoiceProvider();
  7. ip.setReference(order.getName());
  8. }
  9. editInvoice(ip);
  10. } else {
  11. editInvoice(res);
  12. }
  13.  
  14. btnEditNewInvoice.setEnabled(true);
  15. }
  16.  
  17. @Override
  18. public void onFailure(Throwable caught) {
  19. System.out.println("Cannot communicate with the server ! " + caught);
  20. }
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement