Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1488 Rev 1489
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
import java.util.Iterator;
4
import java.util.Iterator;
5
 
5
 
-
 
6
import org.tela_botanica.client.modeles.objets.ListeObservation;
6
import org.tela_botanica.client.modeles.objets.ListeObservation;
7
import org.tela_botanica.client.modeles.objets.Observation;
7
import org.tela_botanica.client.modeles.objets.Observation;
8
import org.tela_botanica.client.modeles.objets.Ontologies;
8
import org.tela_botanica.client.observation.ObservationMediateur;
9
import org.tela_botanica.client.observation.ObservationMediateur;
9
import org.tela_botanica.client.util.Util;
10
import org.tela_botanica.client.util.Util;
10
import org.tela_botanica.client.vues.BarrePaginationVue;
11
import org.tela_botanica.client.vues.BarrePaginationVue;
Line 89... Line 90...
89
	private ColumnConfig	ordreObservation;
90
	private ColumnConfig	ordreObservation;
90
	/**
91
	/**
91
	 * Config de colonne
92
	 * Config de colonne
92
	 */
93
	 */
93
	private ColumnConfig abondanceObservation;
94
	private ColumnConfig abondanceObservation;
-
 
95
	/**
-
 
96
	 * Config de colonne
-
 
97
	 */
-
 
98
	private ColumnConfig certitudeObservation;
Line 94... Line 99...
94
	
99
	
95
	/**
100
	/**
96
	 * Modele de colonnes
101
	 * Modele de colonnes
97
	 */
102
	 */
Line 214... Line 219...
214
		
219
		
215
		this.setCollapsible(true);
220
		this.setCollapsible(true);
Line 216... Line 221...
216
		this.setTitleCollapse(true);
221
		this.setTitleCollapse(true);
-
 
222
 
-
 
223
		this.setTitle("Observations") ;
-
 
224
		
-
 
225
		modeleColonnes = new ColumnModel(getConfigColonnes());
-
 
226
		
-
 
227
		this.setColumnModel(modeleColonnes);
-
 
228
		
-
 
229
		this.setAutoScroll(true);
-
 
230
		this.setEnableColumnResize(true);
-
 
231
		
-
 
232
		// creation du store		
-
 
233
		RecordDef rd = new RecordDef(getDefinitionChamps());
-
 
234
		st = new Store(rd);
-
 
235
		
-
 
236
		// on associe le store
-
 
237
		
-
 
238
		this.setStore(st);
-
 
239
		this.getView().setAutoFill(true);
-
 
240
		this.getView().setForceFit(true) ;
-
 
241
				
-
 
242
		// on crée un masque de chargement qui s'affichera lors des mises à jour
-
 
243
		this.setLoadMask("Chargement");
-
 
244
	
-
 
245
		// on ajoute les listeners
-
 
246
		ajouterListeners();
Line -... Line 247...
-
 
247
		
-
 
248
		configDragAndDrop();
-
 
249
 
217
 
250
	}
218
		this.setTitle("Observations") ;
-
 
219
 
251
	
220
		// on construit le modèle de colonnes
-
 
221
 
252
	private ColumnConfig[] getConfigColonnes() {
Line 222... Line 253...
222
		// Le store suivant est ensuite remplacé par le store contenant les données obtenus depuis le serveur (cf rafraichir) 
253
		// on construit le modèle de colonnes
223
				
254
		// Le store suivant est ensuite remplacé par le store contenant les données obtenus depuis le serveur (cf rafraichir) 
224
		Renderer colRend = new Renderer() {
255
		Renderer colRend = new Renderer() {
Line 285... Line 316...
285
		nomSaisiObservation = new ColumnConfig("Nom saisi", "nomSaisi_observation", 200, true, colRend);
316
		nomSaisiObservation = new ColumnConfig("Nom saisi", "nomSaisi_observation", 200, true, colRend);
286
		nomRetenuObservation = new ColumnConfig("Nom retenu", "nomRetenu_observation", 200, true, colRend);
317
		nomRetenuObservation = new ColumnConfig("Nom retenu", "nomRetenu_observation", 200, true, colRend);
287
		lieuObservation = new ColumnConfig("Lieu", "lieu_observation", 200, true, colRend);
318
		lieuObservation = new ColumnConfig("Lieu", "lieu_observation", 200, true, colRend);
288
		dateObservation = new ColumnConfig("Date", "date_observation", 70, true, dateRend);
319
		dateObservation = new ColumnConfig("Date", "date_observation", 70, true, dateRend);
289
		abondanceObservation = new ColumnConfig("Abondance", "abondance", 50, true, colRend);
320
		abondanceObservation = new ColumnConfig("Abondance", "abondance", 50, true, colRend);
290
		ordreObservation = new ColumnConfig("Ordre", "ordre_observation", 50, true, colRend);
321
		certitudeObservation = new ColumnConfig("Identification", "certitude", 50, true, new Renderer() {
-
 
322
			@Override
-
 
323
			public String render(Object value, CellMetadata cellMetadata,
-
 
324
					Record record, int rowIndex, int colNum, Store store) {
-
 
325
				return Ontologies.getCorrespondanceCertitude(record.getAsString("certitude"));
-
 
326
			}
Line -... Line 327...
-
 
327
			
-
 
328
		});
-
 
329
		ordreObservation = new ColumnConfig("Ordre", "ordre_observation", 50, true, colRend);		
Line 291... Line -...
291
			
-
 
292
	
-
 
293
		// on associe le modèle de colonnes
-
 
294
		
-
 
295
		ColumnConfig[] cm = {etatObservation, nomSaisiObservation, nomRetenuObservation, abondanceObservation, lieuObservation, dateObservation, ordreObservation};
-
 
296
		
-
 
297
		modeleColonnes = new ColumnModel(cm);
-
 
298
		
-
 
299
		this.setColumnModel(modeleColonnes);
-
 
300
		
-
 
301
		this.setAutoScroll(true);
-
 
302
		this.setEnableColumnResize(true);
-
 
303
		
-
 
304
		// creation du store
-
 
305
 
-
 
306
		FieldDef defEtatObservation = new StringFieldDef("etat_observation");
-
 
307
		FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
-
 
308
		FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
-
 
309
		FieldDef defAbondanceObservation = new IntegerFieldDef("abondance");
-
 
310
		FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
-
 
311
		FieldDef defDateObservation = new StringFieldDef("date_observation");
-
 
312
		FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
-
 
313
		
-
 
314
		
-
 
315
		FieldDef[] defTab = { defEtatObservation, defNomSaisiObservation, defNomRetenuObservation,
-
 
316
				defAbondanceObservation, defLieuObservation, defDateObservation, defOrdreObservation };
-
 
317
		
-
 
318
		RecordDef rd = new RecordDef(defTab);
-
 
319
		st = new Store(rd);
-
 
320
		
-
 
321
		// on associe le store
330
		ColumnConfig[] cm = {etatObservation, nomSaisiObservation, certitudeObservation, nomRetenuObservation, abondanceObservation, lieuObservation, dateObservation, ordreObservation};
322
		
-
 
323
		this.setStore(st);
-
 
324
		this.getView().setAutoFill(true);
-
 
325
		this.getView().setForceFit(true) ;
-
 
326
				
-
 
327
		// on crée un masque de chargement qui s'affichera lors des mises à jour
-
 
328
		this.setLoadMask("Chargement");
-
 
329
	
-
 
330
		// on ajoute les listeners
-
 
331
		ajouterListeners();
-
 
332
		
-
 
333
		configDragAndDrop();
331
	
Line 334... Line 332...
334
 
332
		return cm;
335
	}
333
	}
Line 502... Line 500...
502
 
500
 
503
	/**
501
	/**
504
	 * Méthode héritée de l'interface VueListable
502
	 * Méthode héritée de l'interface VueListable
505
	 * Sélectionne les observations  dans la liste suivant les identifiants donnés en paramètres
503
	 * Sélectionne les observations  dans la liste suivant les identifiants donnés en paramètres
506
	 */
-
 
507
	
504
	 */
508
	@Override
505
	@Override
Line 509... Line 506...
509
	public String[] getIdSelectionnees() {
506
	public String[] getIdSelectionnees() {
510
		
507
		
Line 535... Line 532...
535
	
532
	
536
	/**
533
	/**
537
	 * Accesseur pour la toolbar de pagination
534
	 * Accesseur pour la toolbar de pagination
538
	 * @return la toolbar de pagination
535
	 * @return la toolbar de pagination
539
	 */
-
 
540
	
536
	 */
541
	public BarrePaginationVue getToolBarVue()
537
	public BarrePaginationVue getToolBarVue()
542
	{
538
	{
543
		return bt ;
539
		return bt ;
Line 547... Line 543...
547
	/**
543
	/**
548
	 * Recherche l'élement actuellement affiché et affiche son message de chargement
544
	 * Recherche l'élement actuellement affiché et affiche son message de chargement
549
	 */
545
	 */
550
	public void masquerChargement()
546
	public void masquerChargement()
551
	{
547
	{
552
			ExtElement masked = Ext.get(getId()) ;
548
		ExtElement masked = Ext.get(getId()) ;
553
 
-
 
554
 
-
 
555
			if (masked!=null) {
-
 
556
				masked.mask("Chargement") ;
-
 
557
			}
-
 
Line -... Line 549...
-
 
549
 
-
 
550
		if (masked!=null) {
-
 
551
			masked.mask("Chargement") ;
558
 
552
		}
Line 559... Line 553...
559
	}
553
	}
560
	
554
	
561
	/**
555
	/**
Line 568... Line 562...
568
		if (masked!=null) {
562
		if (masked!=null) {
569
			masked.unmask() ;
563
			masked.unmask() ;
570
		}
564
		}
571
	}
565
	}
Line 572... Line -...
572
	
-
 
573
 
-
 
574
 
566
	
575
	/**
567
	/**
576
	 * Méthode héritée de l'interface rafraichissable
568
	 * Méthode héritée de l'interface rafraichissable
577
	 * @param nouvelleDonnees les nouvelles données
569
	 * @param nouvelleDonnees les nouvelles données
578
	 * @param repandreRafraichissement le booleen de notification du rafraichissement
570
	 * @param repandreRafraichissement le booleen de notification du rafraichissement
579
	 */
-
 
580
	
-
 
581
 
-
 
582
 
571
	 */
583
	@Override
572
	@Override
584
	public void rafraichir(Object nouvelleDonnees, boolean repandreRafraichissement) {
-
 
585
	
573
	public void rafraichir(Object nouvelleDonnees, boolean repandreRafraichissement) {
586
//		 si l'on a reçu une liste d'observation
574
		// si l'on a reçu une liste d'observation
587
		if(nouvelleDonnees instanceof ListeObservation)
575
		if(nouvelleDonnees instanceof ListeObservation)
588
		{
-
 
589
			
576
		{	
590
				ListeObservation data = (ListeObservation) nouvelleDonnees ;
577
				ListeObservation data = (ListeObservation) nouvelleDonnees ;
591
				Object[][] observationData = new Object[data.size()][8];
578
				Object[][] observationData = new Object[data.size()][9];
Line 592... Line 579...
592
				int i = 0 ;
579
				int i = 0 ;
593
				
580
				
594
				if(data.size() == 0)
581
				if(data.size() == 0)
Line 602... Line 589...
602
					
589
					
Line 603... Line 590...
603
					Observation obs=data.get(it.next());
590
					Observation obs=data.get(it.next());
604
					
591
					
-
 
592
					observationData[i][0] = obs.getTransmis();
605
					observationData[i][0] = obs.getTransmis();
593
					observationData[i][1] = obs.getNomSaisi();
606
					observationData[i][1] = obs.getNomSaisi();
594
					observationData[i][2] = obs.getCertitude();
607
					observationData[i][2] = obs.getNomRetenu();
595
					observationData[i][3] = obs.getNomRetenu();
608
					observationData[i][3] = obs.getAbondance();
596
					observationData[i][4] = obs.getAbondance();
609
					observationData[i][4] = Util.formaterLieu(obs, modeleLieu);
597
					observationData[i][5] = Util.formaterLieu(obs, modeleLieu);
610
					observationData[i][5] = obs.getDate();
598
					observationData[i][6] = obs.getDate();
Line 611... Line 599...
611
					observationData[i][6] = obs.getNumeroOrdre();		
599
					observationData[i][7] = obs.getNumeroOrdre();		
612
					observationData[i][7] = obs.getNumeroNomenclaturalSaisi();
600
					observationData[i][8] = obs.getNumeroNomenclaturalSaisi();
Line 613... Line -...
613
									
-
 
614
					i++ ;
-
 
615
				}
-
 
616
		
-
 
617
				// creation du store qui les contient
-
 
618
				FieldDef defEtatObservation = new StringFieldDef("etat_observation");
-
 
619
				FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
-
 
620
				FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
-
 
621
				FieldDef defAbondanceObservation = new StringFieldDef("abondance");
-
 
622
				FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
-
 
623
				FieldDef defDateObservation = new StringFieldDef("date_observation");
-
 
624
				FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
-
 
625
				
-
 
626
				// Non affiches :
-
 
627
				FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
-
 
628
				
-
 
629
				
-
 
630
				// on associe le store
-
 
631
 
601
									
Line 632... Line 602...
632
				FieldDef[] defTab = { defEtatObservation, defNomSaisiObservation, defNomRetenuObservation, defAbondanceObservation,
602
					i++ ;
633
						defLieuObservation, defDateObservation, defOrdreObservation, defNumeroNomenclaturalSaisiObservation };
603
				}
Line 634... Line 604...
634
				
604
		
Line 635... Line 605...
635
				RecordDef rd = new RecordDef(defTab);
605
				RecordDef rd = new RecordDef(getDefinitionChamps());
636
				
606
				
637
				final MemoryProxy dataProxy = new MemoryProxy(observationData);
-
 
638
				final ArrayReader reader = new ArrayReader(rd);
607
				final MemoryProxy dataProxy = new MemoryProxy(observationData);
639
		
608
				final ArrayReader reader = new ArrayReader(rd);
640
				final Store observationStore = new Store(dataProxy, reader);
609
		
641
				
-
 
642
				
610
				final Store observationStore = new Store(dataProxy, reader);
643
				st = observationStore ;
-
 
644
				st.load() ;
611
				
645
				
-
 
646
				
612
				
647
				// et on reconfigure et rafraichit la vue
-
 
648
				this.reconfigure(st, this.getColumnModel());
-
 
649
				
613
				st = observationStore ;
Line 650... Line -...
650
				demasquerChargement();
-
 
651
				
614
				st.load() ;
652
			    cacheListeObservation=data;
615
					
653
			    
616
				// et on reconfigure et rafraichit la vue
654
				observationMediateur.onRafraichissementListeObservations();
617
				this.reconfigure(st, this.getColumnModel());
655
				
618
				demasquerChargement();
Line 692... Line 655...
692
			}
655
			}
693
			else { // Modification d'une observation
656
			else { // Modification d'une observation
Line 694... Line 657...
694
					
657
					
695
				masquerChargement();
658
				masquerChargement();
696
				observationMediateur.obtenirNombreObservation();		
-
 
697
				
659
				observationMediateur.obtenirNombreObservation();		
698
			}
660
			}
Line 699... Line 661...
699
		}
661
		}
700
		
662
		
Line 708... Line 670...
708
			if((int)Math.round(observationMediateur.getPanneauPrincipalObservation().getHeight() * 0.6) != 0) {
670
			if((int)Math.round(observationMediateur.getPanneauPrincipalObservation().getHeight() * 0.6) != 0) {
709
				doLayout();
671
				doLayout();
710
				setTailleInitialisee();
672
				setTailleInitialisee();
711
			}
673
			}
712
		}
674
		}
-
 
675
	}
-
 
676
	
-
 
677
	private FieldDef[] getDefinitionChamps() {
-
 
678
		// creation du store qui les contient
-
 
679
		FieldDef defEtatObservation = new StringFieldDef("etat_observation");
-
 
680
		FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
-
 
681
		FieldDef defCertitudeObservation = new StringFieldDef("certitude");
-
 
682
		FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
-
 
683
		FieldDef defAbondanceObservation = new StringFieldDef("abondance");
-
 
684
		FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
-
 
685
		FieldDef defDateObservation = new StringFieldDef("date_observation");
-
 
686
		FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
Line -... Line 687...
-
 
687
		
-
 
688
		// Non affiches :
-
 
689
		FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
-
 
690
 
-
 
691
		FieldDef[] defTab = { defEtatObservation, defNomSaisiObservation, defCertitudeObservation, defNomRetenuObservation, defAbondanceObservation,
-
 
692
				defLieuObservation, defDateObservation, defOrdreObservation, defNumeroNomenclaturalSaisiObservation };
-
 
693
		
713
		
694
		return defTab;
Line 714... Line 695...
714
	}
695
	}
715
	
-
 
716
	
-
 
717
	// GESTION DE LA PAGINATION
696
	
718
 
697
	
719
	
698
	// GESTION DE LA PAGINATION
Line 720... Line 699...
720
	public ListeObservation getCacheListeObservation() {
699
	public ListeObservation getCacheListeObservation() {
Line 729... Line 708...
729
	 */
708
	 */
730
	public int calculerNbPages(int nbElements)
709
	public int calculerNbPages(int nbElements)
731
	{
710
	{
732
		// A cause de la betise de java pour les conversion implicite on fait quelques conversions manuellement
711
		// A cause de la betise de java pour les conversion implicite on fait quelques conversions manuellement
733
		// pour eviter qu'il arrondisse mal la division
712
		// pour eviter qu'il arrondisse mal la division
734
		// nombre de pages = (nombre d'element / taille de la page) arrondie à l'entier superieur
713
		// nombre de pages = (nombre d'element / taille de la page) arrondi à l'entier superieur
735
		
-
 
736
		double nPage = (1.0*nbElements)/(1.0*taillePage) ; 
714
		double nPage = (1.0*nbElements)/(1.0*taillePage) ; 
737
		double nPageRound = Math.ceil(nPage) ;
715
		double nPageRound = Math.ceil(nPage) ;
738
		Double nPageInt = new Double(nPageRound) ;
716
		Double nPageInt = new Double(nPageRound) ;
Line 739... Line -...
739
		
-
 
740
		// on convertit en entier
717
		
741
		return nPageInt.intValue() ; 
718
		return nPageInt.intValue() ; 
Line 742... Line -...
742
	}
-
 
743
 
719
	}
744
	
720
 
745
	/**
721
	/**
746
	 * Recalcule la page en cours lors du changement du nombre d'élements
722
	 * Recalcule la page en cours lors du changement du nombre d'élements
747
	 * @param nbElements le nombre d'élements total
723
	 * @param nbElements le nombre d'élements total
Line 756... Line 732...
756
		
732
		
757
		// on arrondit au supérieur
733
		// on arrondit au supérieur
758
		double nPageRound = Math.ceil(nPageCourante) ;
734
		double nPageRound = Math.ceil(nPageCourante) ;
Line 759... Line -...
759
		Double nPageInt = new Double(nPageRound) ;
-
 
760
		
735
		Double nPageInt = new Double(nPageRound) ;
761
		// on convertit en entier
736
		
Line 762... Line -...
762
		return Math.abs(nPageInt.intValue()) ; 
-
 
763
	}
737
		return Math.abs(nPageInt.intValue()) ; 
764
	
738
	}
765
 
739
	
766
	/**
740
	/**
767
	 * Appelle le modèle pour lui demander les données d'une page à afficher
741
	 * Appelle le modèle pour lui demander les données d'une page à afficher
768
	 * @param pageCourante le numéro de page à affciher
742
	 * @param pageCourante le numéro de page à affciher
769
	 */
-
 
770
	@Override
-
 
771
	public void changerNumeroPage(int pageCourante) {
-
 
772
		
743
	 */
773
		
-
 
774
		
744
	@Override
775
		pageEncours = pageCourante ;
-
 
776
		
745
	public void changerNumeroPage(int pageCourante) {
777
		masquerChargement();
746
		pageEncours = pageCourante ;
778
 
-
 
779
		// On lance le chargerment des observations
747
		masquerChargement();
780
		observationMediateur.obtenirNombreObservation();
-
 
781
		
748
		// On lance le chargerment des observations
Line 782... Line 749...
782
		getToolBarVue().changerPageCourante(pageCourante);
749
		observationMediateur.obtenirNombreObservation();
783
		
750
		getToolBarVue().changerPageCourante(pageCourante);	
784
	}
751
	}
785
	
752
	
786
	
-
 
787
	/**
753
	
788
	 * Appelle le modèle pour qu'il change la taille de page utilisée
754
	/**
789
	 * @param nouvelleTaillePage la nouvelle taille de page
-
 
Line 790... Line 755...
790
	 */
755
	 * Appelle le modèle pour qu'il change la taille de page utilisée
791
	
756
	 * @param nouvelleTaillePage la nouvelle taille de page
Line 792... Line 757...
792
	@Override
757
	 */
Line 793... Line 758...
793
	public void changerTaillePage(int nouvelleTaillePage)
758
	@Override
794
	{
759
	public void changerTaillePage(int nouvelleTaillePage) {
Line 795... Line -...
795
	
-
 
796
		taillePage = nouvelleTaillePage ;
760
	
797
		pageEncours = calculerPageCourante(nbElements) ;
761
		taillePage = nouvelleTaillePage ;
798
 
-
 
799
		masquerChargement();
-
 
800
 
762
		pageEncours = calculerPageCourante(nbElements) ;
Line 801... Line 763...
801
		// 	On lance le chargement des observations
763
 
802
		observationMediateur.obtenirNombreObservation();
764
		masquerChargement();
803
		
765
 
804
		
766
		// 	On lance le chargement des observations
805
		// et on met à jour la taille de page dans les barres d'outils
767
		observationMediateur.obtenirNombreObservation();
806
		getToolBarVue().selectionnerTaillePage(nouvelleTaillePage);
768
		
807
		
769
		// et on met à jour la taille de page dans les barres d'outils
808
		
770
		getToolBarVue().selectionnerTaillePage(nouvelleTaillePage);	
809
	}
-
 
810
 
-
 
811
	
771
	}
812
	/**
772
 
813
	 * Met à jour les barre d'outils avec des nouvelles valeurs
-
 
814
	 * @param pageMax le nombre de pages
773
	
Line 815... Line 774...
815
	 * @param pageEncours la page en cours
774
	/**
816
	 * @param taillePage la taille de page
775
	 * Met à jour les barre d'outils avec des nouvelles valeurs
817
	 * @param nbElement le nombre d'élements par page
776
	 * @param pageMax le nombre de pages
Line 933... Line 892...
933
 
892
 
Line 934... Line 893...
934
		return valeurFiltreTransformee;
893
		return valeurFiltreTransformee;
Line 935... Line 894...
935
		
894
		
936
	}
-
 
937
 
-
 
938
	public void raz() {
-
 
939
		
-
 
940
		
-
 
941
		// creation du store qui les contient
-
 
942
		
-
 
943
		FieldDef defEtatObservation = new StringFieldDef("etat_observation");
-
 
944
		FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
-
 
945
		FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
-
 
946
		FieldDef defAbondanceObservation = new IntegerFieldDef("abondance");
-
 
947
		FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
-
 
948
		FieldDef defDateObservation = new StringFieldDef("date_observation");
-
 
949
		FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
-
 
950
		
-
 
951
		// Non affiches :
-
 
952
		FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
-
 
953
		
-
 
954
		FieldDef[] defTab = { defEtatObservation, defNomSaisiObservation, defNomRetenuObservation,
895
	}
955
				defAbondanceObservation, defLieuObservation, defDateObservation, defOrdreObservation };
896
 
956
		
-
 
957
		RecordDef rd = new RecordDef(defTab);
897
	public void raz() {		
958
		st = new Store(rd);
-
 
959
		
898
		RecordDef rd = new RecordDef(getDefinitionChamps());
960
		// on associe le store
-
 
961
		
899
		st = new Store(rd);
Line 962... Line 900...
962
		this.setStore(st);
900
		// on associe le store
Line 963... Line 901...
963
		
901
		this.setStore(st);	
Line 979... Line 917...
979
	}
917
	}
Line 980... Line 918...
980
	
918
	
981
	public void setTailleInitialisee() {
919
	public void setTailleInitialisee() {
982
		tailleInitialisee = true;
920
		tailleInitialisee = true;
983
	}
-
 
984
 
921
	}