Exemplo n.º 1
0
 @Override
 public void initialize(URL location, ResourceBundle resources) {
   toValidate = creditRequestService.getNotValidatedCreditRequests();
   if (toValidate.isEmpty()) {
     statusLabel.setText("No Financial Reports to Validate");
   } else {
     statusLabel.setText("Validate the following Financial Reports");
   }
   toValidate.forEach(f -> creditRequestAccordion.getPanes().add(createTitledPane(f)));
 }
Exemplo n.º 2
0
 @FXML
 public void onValidateReportsButtonPressed(ActionEvent event) {
   creditRequestService.updateCreditRequests(toValidate);
   screens.toReferentPage();
 }