Subversion Repositories eFlore/Applications.coel

Rev

Rev 1607 | Rev 1633 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1607 Rev 1613
Line 50... Line 50...
50
import org.tela_botanica.client.util.Debug;
50
import org.tela_botanica.client.util.Debug;
51
import org.tela_botanica.client.util.Log;
51
import org.tela_botanica.client.util.Log;
52
import org.tela_botanica.client.util.UtilArray;
52
import org.tela_botanica.client.util.UtilArray;
53
import org.tela_botanica.client.vues.ContenuVue;
53
import org.tela_botanica.client.vues.ContenuVue;
54
import org.tela_botanica.client.vues.EnteteVue;
54
import org.tela_botanica.client.vues.EnteteVue;
-
 
55
import org.tela_botanica.client.vues.FenetreForm;
55
import org.tela_botanica.client.vues.Formulaire;
56
import org.tela_botanica.client.vues.Formulaire;
56
import org.tela_botanica.client.vues.FenetreJournal;
57
import org.tela_botanica.client.vues.FenetreJournal;
57
import org.tela_botanica.client.vues.NavigationVue;
58
import org.tela_botanica.client.vues.NavigationVue;
58
import org.tela_botanica.client.vues.PopupChargement;
59
import org.tela_botanica.client.vues.PopupChargement;
59
import org.tela_botanica.client.vues.StatutVue;
60
import org.tela_botanica.client.vues.StatutVue;
Line 514... Line 515...
514
	
515
	
515
	//+----------------------------------------------------------------------------------------------------------------+
516
	//+----------------------------------------------------------------------------------------------------------------+
516
	//												GESTION des PROJETS
517
	//												GESTION des PROJETS
Line 517... Line 518...
517
	//+----------------------------------------------------------------------------------------------------------------+
518
	//+----------------------------------------------------------------------------------------------------------------+
518
	
519
	
519
	public void afficherFormProjet(String projetId) {
520
	public void afficherFormProjet(String projetId) {		
-
 
521
		final FenetreForm fenetre = new FenetreForm("");
-
 
522
		ProjetForm projetForm = new ProjetForm(this, projetId)  {
520
		panneauCentre.removeAll();
523
			@Override
-
 
524
			public void surFermetureFormulaire() {
521
		ProjetForm projetForm = new ProjetForm(this, projetId);
525
				fenetre.hide();
-
 
526
			}
-
 
527
		};
522
		panneauCentre.add(projetForm);
528
		projetForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu();
523
		
529
		fenetre.add(projetForm);
Line 524... Line 530...
524
		panneauCentre.layout();
530
		fenetre.show();
525
	}
531
	}
526
	
532
	
Line 698... Line 704...
698
		String mode = Formulaire.MODE_AJOUTER;
704
		String mode = Formulaire.MODE_AJOUTER;
699
		if (structureId != null) {
705
		if (structureId != null) {
700
			mode = Formulaire.MODE_MODIFIER;
706
			mode = Formulaire.MODE_MODIFIER;
701
		}
707
		}
Line 702... Line 708...
702
		
708
		
703
		panneauCentre.removeAll();
709
		final FenetreForm fenetre = new FenetreForm("");
704
		Sequenceur sequenceur = new Sequenceur();
710
		Sequenceur sequenceur = new Sequenceur();
-
 
711
		StructureForm structureForm = new StructureForm(this, mode, sequenceur) {
-
 
712
			@Override
-
 
713
			public void surFermetureFormulaire() {
-
 
714
				fenetre.hide();
-
 
715
			}
-
 
716
		};
705
		StructureForm structureForm = new StructureForm(this, mode, sequenceur);
717
		structureForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu();
-
 
718
		fenetre.add(structureForm);
Line 706... Line 719...
706
		panneauCentre.add(structureForm);
719
		fenetre.show();
707
		
720
		
708
		if (mode.equals(Formulaire.MODE_MODIFIER)) {
721
		if (mode.equals(Formulaire.MODE_MODIFIER)) {
709
			selectionnerStructure(structureForm, structureId, sequenceur);
722
			selectionnerStructure(structureForm, structureId, sequenceur);
Line 948... Line 961...
948
		
961
		
949
		panneauCentre.getContenu().rafraichir(collectionsACharger);
962
		panneauCentre.getContenu().rafraichir(collectionsACharger);
Line 950... Line 963...
950
	}
963
	}
951
	
964
	
952
	public void afficherFormCollection(String collectionId) {
965
	public void afficherFormCollection(String collectionId) {
-
 
966
		final FenetreForm fenetre = new FenetreForm("");
-
 
967
		CollectionForm collectionForm = new CollectionForm(this, collectionId)  {
953
		panneauCentre.removeAll();
968
			@Override
-
 
969
			public void surFermetureFormulaire() {
954
		CollectionForm collectionForm = new CollectionForm(this, collectionId);
970
				fenetre.hide();
-
 
971
			}
-
 
972
		};
955
		panneauCentre.add(collectionForm);
973
		collectionForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu();
956
		
974
		fenetre.add(collectionForm);
Line 957... Line 975...
957
		panneauCentre.layout();
975
		fenetre.show();
958
	}
976
	}
959
	
977
	
Line 1267... Line 1285...
1267
		}	
1285
		}	
Line 1268... Line 1286...
1268
		
1286
		
1269
		panneauCentre.getContenu().rafraichir(personnesACharger);
1287
		panneauCentre.getContenu().rafraichir(personnesACharger);
Line 1270... Line 1288...
1270
	}
1288
	}
1271
	
1289
	
1272
	public void afficherFormPersonne(String personneId)	{
1290
	public void afficherFormPersonne(String personneId)	{		
-
 
1291
		final FenetreForm fenetre = new FenetreForm("");
-
 
1292
		PersonneForm personneForm = new PersonneForm(this, personneId)  {
1273
		panneauCentre.removeAll();
1293
			@Override
-
 
1294
			public void surFermetureFormulaire() {
1274
		PersonneForm personneForm = new PersonneForm(this, personneId);
1295
				fenetre.hide();
-
 
1296
			}
-
 
1297
		};
1275
		panneauCentre.add(personneForm);
1298
		personneForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu();
1276
		
1299
		fenetre.add(personneForm);
Line 1277... Line 1300...
1277
		panneauCentre.layout();
1300
		fenetre.show();
1278
	}
1301
	}
1279
 
1302
 
Line 1446... Line 1469...
1446
		
1469
		
1447
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
1470
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
Line 1448... Line 1471...
1448
	}
1471
	}
1449
	
1472
	
1450
	public void afficherFormPublication(String publicationId) {
1473
	public void afficherFormPublication(String publicationId) {
-
 
1474
		final FenetreForm fenetre = new FenetreForm("");
-
 
1475
		PublicationForm publicationForm = new PublicationForm(this, publicationId) {
-
 
1476
			@Override
-
 
1477
			public void surFermetureFormulaire()  {
-
 
1478
				fenetre.hide();
-
 
1479
			}
1451
		panneauCentre.removeAll();
1480
		};
1452
		PublicationForm publicationForm = new PublicationForm(this, publicationId);
-
 
1453
		panneauCentre.add(publicationForm);
1481
		publicationForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu();
1454
		
1482
		fenetre.add(publicationForm);
Line 1455... Line 1483...
1455
		panneauCentre.layout();
1483
		fenetre.show();
1456
	}
1484
	}
1457
	
1485
	
Line 1711... Line 1739...
1711
		
1739
		
1712
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
1740
		panneauCentre.getContenu().rafraichir(nouvelleDonnees);	
Line 1713... Line 1741...
1713
	}
1741
	}
1714
	
1742
	
1715
	public void afficherFormCommentaire(String commentaireId) {
1743
	public void afficherFormCommentaire(String commentaireId) {
-
 
1744
		final FenetreForm fenetre = new FenetreForm("");
1716
		panneauCentre.removeAll();
1745
		CommentaireForm commentaireForm = new CommentaireForm(this, commentaireId)  {
-
 
1746
			@Override
-
 
1747
			public void surFermetureFormulaire() {
1717
		CommentaireForm commentaireForm = new CommentaireForm(this, commentaireId);
1748
				fenetre.hide();
-
 
1749
			}
-
 
1750
		};
1718
		panneauCentre.add(commentaireForm);
1751
		commentaireForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu();
1719
		
1752
		fenetre.add(commentaireForm);
Line 1720... Line 1753...
1720
		panneauCentre.layout();
1753
		fenetre.show();
1721
	}
1754
	}
1722
	
1755