Line 1... |
Line 1... |
1 |
package org.tela_botanica.del.client.vues.plateformedetermination.vote;
|
1 |
package org.tela_botanica.del.client.vues.plateformedetermination.vote;
|
Line 2... |
Line 2... |
2 |
|
2 |
|
Line 3... |
Line 3... |
3 |
import java.util.List;
|
3 |
import java.util.List;
|
4 |
|
- |
|
5 |
import org.tela_botanica.del.client.cache.CacheClient;
|
4 |
|
- |
|
5 |
import org.tela_botanica.del.client.cache.CacheClient;
|
6 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
6 |
import org.tela_botanica.del.client.modeles.Protocole;
|
7 |
import org.tela_botanica.del.client.modeles.Protocole;
|
7 |
import org.tela_botanica.del.client.modeles.VoteProtocole;
|
Line 8... |
Line 8... |
8 |
import org.tela_botanica.del.client.utils.MockDatasource;
|
8 |
import org.tela_botanica.del.client.utils.MockDatasource;
|
Line 21... |
Line 21... |
21 |
afficherVotes();
|
21 |
afficherVotes();
|
22 |
}
|
22 |
}
|
Line 23... |
Line 23... |
23 |
|
23 |
|
Line 24... |
Line 24... |
24 |
private void afficherVotes() {
|
24 |
private void afficherVotes() {
|
Line 25... |
Line 25... |
25 |
|
25 |
|
26 |
String idImageCourante = CacheClient.getInstance().getCurrentObservation().getIdImage();
|
26 |
String idImageCourante = CacheClient.getInstance().getImageCourante().getIdImage();
|
27 |
|
27 |
|
Line 28... |
Line 28... |
28 |
Protocole protocoleEsthetisme = validationService.getProtocole(Protocole.ESTHETISME);
|
28 |
Protocole protocoleEsthetisme = validationService.getProtocole(Protocole.ESTHETISME);
|
29 |
List<PropositionDetermination> observationValidationsEsthetisme = validationService.getValidationDataByImageAndProtocol(idImageCourante, Protocole.ESTHETISME);
|
29 |
List<VoteProtocole> observationValidationsEsthetisme = validationService.getValidationDataByImageAndProtocol(idImageCourante, Protocole.ESTHETISME);
|
30 |
new MoyenneVoteProtocolePresenteur(protocoleEsthetisme, observationValidationsEsthetisme).go(vue.getPanneauVotes());
|
30 |
new MoyenneVoteProtocolePresenteur(protocoleEsthetisme, observationValidationsEsthetisme).go(vue.getPanneauVotes());
|
31 |
|
31 |
|
32 |
Protocole protocoleIdentification = validationService.getProtocole(Protocole.IDENTIFICATION_AUTOMATIQUE);
|
32 |
Protocole protocoleIdentification = validationService.getProtocole(Protocole.IDENTIFICATION_AUTOMATIQUE);
|