Skip to content

Commit

Permalink
Blocco selezione dei progetti
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Oct 5, 2018
1 parent 96ee1b5 commit 5138446
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -398,14 +398,14 @@ public Forward doRiportaSelezioneModuli(ActionContext context) throws java.rmi.
.flatMap(progetto_other_fieldBulk -> Optional.ofNullable(progetto_other_fieldBulk.getStato()))
.filter(stato -> Arrays.asList(Progetto_other_fieldBulk.STATO_NEGOZIAZIONE, Progetto_other_fieldBulk.STATO_APPROVATO).indexOf(stato) != -1).isPresent()) {
errorMessage +="Attenzione: il progetto " + progetto.getCd_progetto() +" non ha uno stato utile alla previsione!";
errorMessage += bp.getParentRoot().isBootstrap() ? "<br>" : "/n";
errorMessage += bp.getParentRoot().isBootstrap() ? "<br>" : "\n";
continue;
}
if (!Optional.ofNullable(progetto.getOtherField())
.flatMap(progetto_other_fieldBulk -> Optional.ofNullable(progetto_other_fieldBulk.getTipoFinanziamento()))
.filter(tipoFinanziamentoBulk -> tipoFinanziamentoBulk.getFlPrevEntSpesa() || tipoFinanziamentoBulk.getFlRipCostiPers()).isPresent()) {
errorMessage +="Attenzione: il progetto " + progetto.getCd_progetto() +" non è consentita la previsione!<br>";
errorMessage += bp.getParentRoot().isBootstrap() ? "<br>" : "/n";
errorMessage += bp.getParentRoot().isBootstrap() ? "<br>" : "\n";
continue;
}
if (!cdr.getDettagli().containsByPrimaryKey(mod))
Expand Down

0 comments on commit 5138446

Please sign in to comment.