18,7 → 18,7 |
|
DeterminationVue determinationVue = new DeterminationVue(); |
BarreRepartitionVotePresenteur barreRepartitionVotePresenteur; |
|
|
public DeterminationPresenteur() { |
|
} |
30,18 → 30,18 |
new ForumPresenteur().go(determinationVue.getForum()); |
new FormulairePropositionPresenteur().go(determinationVue.getFormulaireProposition()); |
new FormulaireRechercheEflorePresenteur().go(determinationVue.getFormulaireRechercheEflore()); |
|
|
barreRepartitionVotePresenteur = new BarreRepartitionVotePresenteur(); |
barreRepartitionVotePresenteur.go(determinationVue.getBarreRepartition()); |
calculerEtAfficherVoteDeterminationPlusPopulaire(); |
|
|
composite.add(determinationVue); |
} |
|
|
private void calculerEtAfficherVoteDeterminationPlusPopulaire() { |
|
List<MoyenneVote> votesOrdonnes = CalculVoteDeterminationService.calculerVoteDeterminationPlusPopulaire(CacheClient.getInstance().getCurrentObservation().getImageCelValidationDatas()); |
if(votesOrdonnes.size() > 0) { |
|
List<MoyenneVote> votesOrdonnes = CalculVoteDeterminationService.calculerVoteDeterminationPlusPopulaire(CacheClient.getInstance().getCurrentObservation().getPropositionsDetermination()); |
if (votesOrdonnes.size() > 0) { |
barreRepartitionVotePresenteur.afficherVotes(votesOrdonnes.get(0).getScore(), votesOrdonnes.get(0).getIntituleAssocie()); |
} |
} |