| Line 39... |
Line 39... |
| 39 |
private String valorisationTpl = null;
|
39 |
private String valorisationTpl = null;
|
| 40 |
private String typeTraitementConservationTpl = null;
|
40 |
private String typeTraitementConservationTpl = null;
|
| 41 |
private String rechercheValorisationTpl = null;
|
41 |
private String rechercheValorisationTpl = null;
|
| Line 42... |
Line 42... |
| 42 |
|
42 |
|
| - |
|
43 |
private Structure structure = null;
|
| 43 |
private Structure structure = null;
|
44 |
private boolean structureChargementOk = false;
|
| - |
|
45 |
private StructureAPersonneListe personnel = null;
|
| 44 |
private StructureAPersonneListe personnel = null;
|
46 |
private boolean personnelChargementOk = false;
|
| 45 |
private StructureValorisation valorisation = null;
|
47 |
private StructureValorisation valorisation = null;
|
| Line 46... |
Line 48... |
| 46 |
private StructureConservation conservation = null;
|
48 |
private StructureConservation conservation = null;
|
| 47 |
|
49 |
|
| Line 96... |
Line 98... |
| 96 |
panneauPrincipal.add(onglets);
|
98 |
panneauPrincipal.add(onglets);
|
| 97 |
add(panneauPrincipal);
|
99 |
add(panneauPrincipal);
|
| 98 |
}
|
100 |
}
|
| Line 99... |
Line 101... |
| 99 |
|
101 |
|
| 100 |
private void chargerOntologie() {
|
- |
|
| 101 |
mediateur.obtenirListeValeurEtRafraichir(this, "stpr");
|
- |
|
| 102 |
mediateur.obtenirListeValeurEtRafraichir(this, "stpu");
|
- |
|
| 103 |
mediateur.obtenirListeValeurEtRafraichir(this, "statut");
|
- |
|
| 104 |
mediateur.obtenirListeValeurEtRafraichir(this, "fonction");
|
- |
|
| 105 |
mediateur.obtenirListeValeurEtRafraichir(this, "pays");
|
- |
|
| 106 |
mediateur.obtenirListeValeurEtRafraichir(this, "localStockage");
|
- |
|
| 107 |
mediateur.obtenirListeValeurEtRafraichir(this, "meubleStockage");
|
102 |
private void chargerOntologie() {
|
| 108 |
mediateur.obtenirListeValeurEtRafraichir(this, "parametreStockage");
|
- |
|
| 109 |
mediateur.obtenirListeValeurEtRafraichir(this, "autreCollection");
|
- |
|
| 110 |
mediateur.obtenirListeValeurEtRafraichir(this, "onep");
|
- |
|
| 111 |
mediateur.obtenirListeValeurEtRafraichir(this, "opRestau");
|
- |
|
| 112 |
mediateur.obtenirListeValeurEtRafraichir(this, "autreMateriel");
|
103 |
String[] listesCodes = {"stpr", "stpu", "statut", "fonction", "pays", "localStockage", "meubleStockage",
|
| 113 |
mediateur.obtenirListeValeurEtRafraichir(this, "poisonTraitement");
|
- |
|
| 114 |
mediateur.obtenirListeValeurEtRafraichir(this, "insecteTraitement");
|
- |
|
| 115 |
mediateur.obtenirListeValeurEtRafraichir(this, "actionValorisation");
|
104 |
"parametreStockage", "autreCollection", "onep", "opRestau", "autreMateriel", "poisonTraitement",
|
| 116 |
mediateur.obtenirListeValeurEtRafraichir(this, "continentEtFr");
|
105 |
"insecteTraitement", "actionValorisation", "continentEtFr", "typeRecherche"};
|
| 117 |
mediateur.obtenirListeValeurEtRafraichir(this, "typeRecherche");
|
106 |
lancerChargementListesValeurs(listesCodes);
|
| Line 118... |
Line 107... |
| 118 |
}
|
107 |
}
|
| 119 |
|
108 |
|
| 120 |
private void afficherDetailInstitution() {
|
109 |
private void afficherDetailInstitution() {
|
| Line 141... |
Line 130... |
| 141 |
private void afficherEntete() {
|
130 |
private void afficherEntete() {
|
| 142 |
Params enteteParams = new Params();
|
131 |
Params enteteParams = new Params();
|
| 143 |
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
|
132 |
enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
|
| 144 |
enteteParams.set("css_meta", ComposantClass.META);
|
133 |
enteteParams.set("css_meta", ComposantClass.META);
|
| Line -... |
Line 134... |
| - |
|
134 |
|
| - |
|
135 |
enteteParams.set("i18n_id", i18nC.id());
|
| 145 |
|
136 |
|
| 146 |
enteteParams.set("nom", structure.getNom());
|
137 |
enteteParams.set("nom", structure.getNom());
|
| 147 |
enteteParams.set("ville", structure.getVille());
|
138 |
enteteParams.set("ville", structure.getVille());
|
| 148 |
enteteParams.set("id", structure.getId());
|
139 |
enteteParams.set("id", structure.getId());
|
| 149 |
enteteParams.set("guid", structure.getGuid());
|
140 |
enteteParams.set("guid", structure.getGuid());
|
| Line 426... |
Line 417... |
| 426 |
|
417 |
|
| 427 |
return cHtml;
|
418 |
return cHtml;
|
| Line 428... |
Line 419... |
| 428 |
}
|
419 |
}
|
| 429 |
|
420 |
|
| 430 |
private void initialiserTousLesTpl() {
|
421 |
private void initialiserTousLesTpl() {
|
| 431 |
initialiserEnteteHtmlTpl();
|
422 |
initialiserEnteteTpl();
|
| 432 |
initialiserIdentificationTpl();
|
423 |
initialiserIdentificationTpl();
|
| 433 |
initialiserPersonnelTpl();
|
424 |
initialiserPersonnelTpl();
|
| 434 |
initialiserTableauPersonnelTpl();
|
425 |
initialiserTableauPersonnelTpl();
|
| Line 438... |
Line 429... |
| 438 |
initialiserTypeTraitementConservationTpl();
|
429 |
initialiserTypeTraitementConservationTpl();
|
| 439 |
initialiserValorisationTpl();
|
430 |
initialiserValorisationTpl();
|
| 440 |
initialiserRechercheValorisationTpl();
|
431 |
initialiserRechercheValorisationTpl();
|
| 441 |
}
|
432 |
}
|
| Line 442... |
Line 433... |
| 442 |
|
433 |
|
| 443 |
private void initialiserEnteteHtmlTpl() {
|
434 |
private void initialiserEnteteTpl() {
|
| 444 |
enteteTpl =
|
435 |
enteteTpl =
|
| 445 |
"<div id='{css_id}'>"+
|
436 |
"<div id='{css_id}'>"+
|
| 446 |
" <h1>{nom}</h1>"+
|
437 |
" <h1>{nom}</h1>"+
|
| 447 |
" <h2>{ville}<span class='{css_meta}'>{projet} - {id} - {guid}</span></h2>" +
|
438 |
" <h2>{ville}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
|
| 448 |
" " +
|
439 |
" " +
|
| 449 |
"</div>";
|
440 |
"</div>";
|
| Line 450... |
Line 441... |
| 450 |
}
|
441 |
}
|
| Line 607... |
Line 598... |
| 607 |
rechercheValorisationTpl =
|
598 |
rechercheValorisationTpl =
|
| 608 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_provenance} :</span> {recherche_provenance}<br />"+
|
599 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_provenance} :</span> {recherche_provenance}<br />"+
|
| 609 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_type} :</span> {recherche_type}<br />";
|
600 |
"<span class='{css_indentation} {css_label}'>{i18n_recherche_type} :</span> {recherche_type}<br />";
|
| 610 |
}
|
601 |
}
|
| Line 611... |
Line 602... |
| 611 |
|
602 |
|
| 612 |
public void rafraichir(Object nouvelleDonnees) {
|
603 |
public void rafraichir(Object nouvellesDonnees) {
|
| 613 |
if (nouvelleDonnees instanceof Structure) {
|
604 |
if (nouvellesDonnees instanceof Structure) {
|
| 614 |
structure = (Structure) nouvelleDonnees;
|
605 |
structure = (Structure) nouvellesDonnees;
|
| 615 |
afficherDetailInstitution();
|
606 |
structureChargementOk = true;
|
| 616 |
} else if (nouvelleDonnees instanceof ProjetListe) {
|
607 |
} else if (nouvellesDonnees instanceof ProjetListe) {
|
| - |
|
608 |
projets = (ProjetListe) nouvellesDonnees;
|
| 617 |
projets = (ProjetListe) nouvelleDonnees;
|
609 |
projetsChargementOk = true;
|
| 618 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
610 |
} else if (nouvellesDonnees instanceof ValeurListe) {
|
| 619 |
ValeurListe ontologieReceptionnee = (ValeurListe) nouvelleDonnees;
|
611 |
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
|
| 620 |
ajouterListeValeursAOntologie(ontologieReceptionnee);
|
612 |
receptionerOntologie(listeValeursReceptionnee);
|
| 621 |
} else if (nouvelleDonnees instanceof Information) {
|
613 |
} else if (nouvellesDonnees instanceof Information) {
|
| 622 |
Information info = (Information) nouvelleDonnees;
|
614 |
Information info = (Information) nouvellesDonnees;
|
| 623 |
if (info.getType().equals("liste_structure_a_personne")) {
|
615 |
if (info.getType().equals("liste_structure_a_personne")) {
|
| 624 |
allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
|
616 |
allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
|
| 625 |
afficherDetailInstitution();
|
617 |
personnelChargementOk = true;
|
| 626 |
}
|
618 |
}
|
| 627 |
} else {
|
619 |
} else {
|
| 628 |
GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
|
620 |
GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
|
| - |
|
621 |
}
|
| - |
|
622 |
if (avoirDonneesChargees()) {
|
| - |
|
623 |
afficherDetailInstitution();
|
| - |
|
624 |
afficherDetailInstitution();
|
| 629 |
}
|
625 |
}
|
| 630 |
}
|
626 |
}
|
| 631 |
|
627 |
|
| 632 |
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
|
628 |
protected void allouerPersonnelAStructure(StructureAPersonneListe personnel) {
|
| 633 |
structure.setPersonnel(personnel);
|
629 |
structure.setPersonnel(personnel);
|
| 634 |
}
|
630 |
}
|
| 635 |
|
631 |
|
| 636 |
protected String construireTxtProjet(String idProjet) {
|
- |
|
| 637 |
String chaineARetourner = idProjet;
|
- |
|
| 638 |
|
632 |
private boolean avoirDonneesChargees() {
|
| 639 |
if (projets != null) {
|
633 |
boolean ok = false;
|
| 640 |
Projet projet = projets.get(idProjet);
|
- |
|
| 641 |
String nomDuProjet = projet.getNom();
|
- |
|
| 642 |
if (!nomDuProjet.equals("")) {
|
- |
|
| 643 |
chaineARetourner = nomDuProjet;
|
634 |
if (projetsChargementOk && structureChargementOk && personnelChargementOk && ontologieChargementOk) {
|
| 644 |
}
|
635 |
ok = true;
|
| 645 |
}
|
- |
|
| 646 |
|
636 |
}
|
| 647 |
return chaineARetourner;
|
637 |
return ok;
|
| 648 |
}
|
638 |
}
|
| 649 |
}
|
639 |
}
|