Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 125 Rev 128
Line 200... Line 200...
200
		centre.setHeight(panneauPrincipalObservation.getHeight());
200
		centre.setHeight(panneauPrincipalObservation.getHeight());
Line 201... Line 201...
201
 
201
 
202
		formulaireSaisieObservationVue.setBorder(false);
202
		formulaireSaisieObservationVue.setBorder(false);
Line 203... Line 203...
203
		conteneurFormulaire.add(formulaireSaisieObservationVue);
203
		conteneurFormulaire.add(formulaireSaisieObservationVue);
204
		
204
		
Line 205... Line 205...
205
		centre.add(conteneurFormulaire, new RowLayoutData(230));
205
		centre.add(conteneurFormulaire, new RowLayoutData(210));
206
		centre.add(listeObservation, new RowLayoutData());
206
		centre.add(listeObservation, new RowLayoutData());
207
 
207
 
Line 314... Line 314...
314
		observationModele.obtenirLiaisonImage(mvz, ordreObservation) ;
314
		observationModele.obtenirLiaisonImage(mvz, ordreObservation) ;
Line 315... Line 315...
315
 
315
 
Line -... Line 316...
-
 
316
 
-
 
317
	}
-
 
318
	
-
 
319
	public void obtenirImageInformationExternes(String numeroNomenclaturalSaisiObservation) {
-
 
320
		if(GWT.isScript()) {
-
 
321
			masquerChargementInfosObservations() ;
-
 
322
		}
-
 
323
		observationModele.obtenirImageInformationRepartition(informationRepartitionVue,numeroNomenclaturalSaisiObservation) ;
Line 316... Line 324...
316
 
324
		observationModele.obtenirImageGenerique(imageGeneriqueVue,numeroNomenclaturalSaisiObservation) ;
Line 317... Line 325...
317
	}
325
	}
Line 598... Line 606...
598
	}
606
	}
Line 599... Line 607...
599
 
607
 
Line 600... Line 608...
600
 
608
 
601
	public void exporterObservations() {
-
 
602
		
609
	public void exporterObservations() {
Line 603... Line 610...
603
		observationModele.exporterObservations() ;
610
		
Line 631... Line 638...
631
		
638
		
Line 632... Line 639...
632
	}
639
	}
Line -... Line 640...
-
 
640
 
633
 
641
	public void supprimerObservations() {
634
	public void supprimerObservations() {
642
		
635
		
643
		if(listeObservation.getIdSelectionnees().length > 0) {
636
		if(Window.confirm("Êtes vous sur de vouloir supprimer les observations sélectionnées ?")) { 
644
			if(Window.confirm("Êtes vous sur de vouloir supprimer les observations sélectionnées ?")) { 
637
				String[] numObs = listeObservation.getIdSelectionnees();
645
					String[] numObs = listeObservation.getIdSelectionnees();
638
				String numObsapl = "" ;
646
					String numObsapl = "" ;
639
				for(int i = 0 ; i < numObs.length ; i++) {
647
					for(int i = 0 ; i < numObs.length ; i++) {
640
					numObsapl += numObs[i]+"," ; 
648
						numObsapl += numObs[i]+"," ; 
641
				}
649
					}
-
 
650
					
-
 
651
					observationModele.supprimerListeObservation(listeObservation,numObsapl) ;
-
 
652
			}
-
 
653
		}
642
				
654
		else
643
				observationModele.supprimerListeObservation(listeObservation,numObsapl) ;
655
		{
Line 644... Line 656...
644
			}
656
			Window.alert("Aucune observation sélectionnée");
Line -... Line 657...
-
 
657
		}
645
		
658
	}
646
	}
659
 
647
 
660
 
648
 
661
	public void transmettreObservations() {
649
	public void transmettreObservations() {
662
		
650
		
663
		if(listeObservation.getIdSelectionnees().length > 0) {
651
		if(Window.confirm("Êtes vous sur de vouloir transmettre les observations sélectionnées ?")) { 
664
			if(Window.confirm("Êtes vous sur de vouloir transmettre les observations sélectionnées ?")) { 
-
 
665
				String[] numObs = listeObservation.getIdSelectionnees();
652
			String[] numObs = listeObservation.getIdSelectionnees();
666
				String numObsApl = "" ;
-
 
667
				for(int i = 0 ; i < numObs.length ; i++) {
-
 
668
					numObsApl += numObs[i] ;
653
			String numObsApl = "" ;
669
					if(i != numObs.length - 1) {
-
 
670
						numObsApl +="," ;
-
 
671
					}
654
			for(int i = 0 ; i < numObs.length ; i++) {
672
				}
655
				numObsApl += numObs[i] ;
673
				
656
				if(i != numObs.length - 1) {
674
				observationModele.transmettreListeObservation(listeObservation,numObsApl) ;
Line 657... Line 675...
657
					numObsApl +="," ;
675
			}