Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 579 Rev 602
Line 119... Line 119...
119
	private TabItem valorisationOnglet = null;
119
	private TabItem valorisationOnglet = null;
Line 120... Line 120...
120
 
120
 
Line 121... Line 121...
121
	private HiddenField<String> idStructureChp = null;
121
	private HiddenField<String> idStructureChp = null;
122
	
122
	
123
	// Onglet IDENTIFICATION
123
	// Onglet IDENTIFICATION
124
	private Structure identification;
124
	private Structure identification = null;
125
	private ListStore<Valeur> magazinLstpr = null;
125
	private ListStore<Valeur> magazinLstpr = null;
126
	private ComboBox<Valeur> comboLstpr = null;
126
	private ComboBox<Valeur> comboLstpr = null;
127
	private ListStore<Valeur> magazinLstpu = null;
127
	private ListStore<Valeur> magazinLstpu = null;
Line 132... Line 132...
132
	private ComboBox<Valeur> fonctionsCombo = null;
132
	private ComboBox<Valeur> fonctionsCombo = null;
133
	private ComboBox<InterneValeur> comboAcronyme = null;
133
	private ComboBox<InterneValeur> comboAcronyme = null;
134
	private TextField<String> ihChp = null;
134
	private TextField<String> ihChp = null;
135
	private TextField<String> mnhnChp = null;
135
	private TextField<String> mnhnChp = null;
136
	private ComboBox<InterneValeur> comboTypeStructure = null;
136
	private ComboBox<InterneValeur> comboTypeStructure = null;
137
	private TextField<String> nomStructureChp;
137
	private TextField<String> nomStructureChp = null;
138
	private DateField dateFondationChp;
138
	private DateField dateFondationChp = null;
139
	private TextArea adrChp;
139
	private TextArea adrChp = null;
140
	private TextField<String> cpChp;
140
	private TextField<String> cpChp = null;
141
	private TextField<String> villeChp;
141
	private TextField<String> villeChp = null;
142
	private TextField<String> regionChp;
142
	private TextField<String> regionChp = null;
143
	private TextField<String> telChp;
143
	private TextField<String> telChp = null;
144
	private TextField<String> faxChp;
144
	private TextField<String> faxChp = null;
145
	private TextField<String> emailChp;
145
	private TextField<String> emailChp = null;
146
	private TextField<String> urlChp;
146
	private TextField<String> urlChp = null;
147
	private ListStore<Valeur> magazinPays;
147
	private ListStore<Valeur> magazinPays = null;
148
	private ComboBox<Valeur> comboPays;
148
	private ComboBox<Valeur> comboPays = null;
Line 149... Line 149...
149
 
149
 
150
	// Onglet PERSONNEL
150
	// Onglet PERSONNEL
151
	private StructureAPersonneListe personnel;
151
	private StructureAPersonneListe personnel = null;
152
	private StructureAPersonneListe personnelAjoute = null;
152
	private StructureAPersonneListe personnelAjoute = null;
153
	private StructureAPersonneListe personnelModifie = null;
153
	private StructureAPersonneListe personnelModifie = null;
154
	private StructureAPersonneListe personnelSupprime = null;
154
	private StructureAPersonneListe personnelSupprime = null;
155
	private NumberField nbreTotalPersonneStructureChp = null;
155
	private NumberField nbreTotalPersonneStructureChp = null;
156
	private EditorGrid<StructureAPersonne> grillePersonnel = null;
156
	private EditorGrid<StructureAPersonne> grillePersonnel = null;
Line 157... Line 157...
157
	private ListStore<StructureAPersonne> personnelGrilleMagazin = null;
157
	private ListStore<StructureAPersonne> personnelGrilleMagazin = null;
158
	
158
	
159
	// Onglet CONSERVATION
159
	// Onglet CONSERVATION
160
	private StructureConservation conservation = null;
160
	private StructureConservation conservation = null;
161
	private RadioGroup formationMarkRGrpChp;
161
	private RadioGroup formationMarkRGrpChp = null;
162
	private RadioGroup interetFormationMarkRGrpChp;
162
	private RadioGroup interetFormationMarkRGrpChp = null;
163
	private RadioGroup collectionCommuneMarkRGrpChp;
163
	private RadioGroup collectionCommuneMarkRGrpChp = null;
164
	private RadioGroup accesControleMarkRGrpChp;
164
	private RadioGroup accesControleMarkRGrpChp = null;
165
	private RadioGroup restaurationMarkRGrpChp;
165
	private RadioGroup restaurationMarkRGrpChp = null;
166
	private RadioGroup traitementMarkRGrpChp;
166
	private RadioGroup traitementMarkRGrpChp = null;
167
	private RadioGroup collectionAcquisitionMarkRGrpChp;
167
	private RadioGroup collectionAcquisitionMarkRGrpChp = null;
168
	private RadioGroup echantillonAcquisitionMarkRGrpChp;
168
	private RadioGroup echantillonAcquisitionMarkRGrpChp = null;
169
	private TextField<String> localStockageAutreChp;
169
	private TextField<String> localStockageAutreChp = null;
170
	private TextField<String> meubleStockageAutreChp;
170
	private TextField<String> meubleStockageAutreChp = null;
171
	private TextField<String> parametreStockageAutreChp;
171
	private TextField<String> parametreStockageAutreChp = null;
172
	private TextField<String> collectionAutreAutreChp;
172
	private TextField<String> collectionAutreAutreChp = null;
173
	private TextField<String> autreCollectionAutreChp;
173
	private TextField<String> autreCollectionAutreChp = null;
174
	private TextField<String> opRestauAutreChp;
174
	private TextField<String> opRestauAutreChp = null;
175
	private TextField<String> autreMaterielAutreChp;
175
	private TextField<String> autreMaterielAutreChp = null;
176
	private TextField<String> poisonTraitementAutreChp;
176
	private TextField<String> poisonTraitementAutreChp = null;
177
	private TextField<String> traitementAutreChp;
177
	private TextField<String> traitementAutreChp = null;
178
	private TextField<String> insecteTraitementAutreChp;
178
	private TextField<String> insecteTraitementAutreChp = null;
179
	private TextField<String> actionAutreChp;
179
	private TextField<String> actionAutreChp = null;
180
	private TextField<String> provenanceRechercheAutreChp;
180
	private TextField<String> provenanceRechercheAutreChp = null;
181
	private TextField<String> typeRechercheAutreChp;
181
	private TextField<String> typeRechercheAutreChp = null;
182
	private CheckBoxGroup localStockageTrukCacGrpChp = null;
182
	private CheckBoxGroup localStockageTrukCacGrpChp = null;
183
	private LayoutContainer localStockageTrukCp = null;
183
	private LayoutContainer localStockageTrukCp = null;
184
	private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
184
	private CheckBoxGroup meubleStockageTrukCacGrpChp = null;
Line 214... Line 214...
214
	// Onglet VALORISATION
214
	// Onglet VALORISATION
215
	private StructureValorisation valorisation = null;
215
	private StructureValorisation valorisation = null;
216
	private RadioGroup actionMarkRGrpChp = null;
216
	private RadioGroup actionMarkRGrpChp = null;
217
	private LayoutContainer actionTrukCp = null;
217
	private LayoutContainer actionTrukCp = null;
218
	private CheckBoxGroup actionTrukCacGrpChp = null;
218
	private CheckBoxGroup actionTrukCacGrpChp = null;
219
	private RadioGroup futureActionMarkRGrpChp;
219
	private RadioGroup futureActionMarkRGrpChp = null;
220
	private RadioGroup rechercheMarkRGrpChp;
220
	private RadioGroup rechercheMarkRGrpChp = null;
221
	private RadioGroup sansMotifAccesMarkRGrpChp;
221
	private RadioGroup sansMotifAccesMarkRGrpChp = null;
222
	private RadioGroup avecMotifAccesMarkRGrpChp;
222
	private RadioGroup avecMotifAccesMarkRGrpChp = null;
223
	private TextField<String> publicationChp;
223
	private TextField<String> publicationChp = null;
224
	private LayoutContainer materielConservationCp;
224
	private LayoutContainer materielConservationCp = null;
225
	private ListStore<Personne> personneExistanteMagazin;
225
	private ListStore<Personne> personneExistanteMagazin = null;
226
	private ComboBox<Personne> personneExistanteCombo;
226
	private ComboBox<Personne> personneExistanteCombo = null;
227
	private Button supprimerPersonnelBtn;
227
	private Button supprimerPersonnelBtn = null;
228
	private ListStore<Projet> projetsMagazin;
228
	private ListStore<Projet> projetsMagazin = null;
229
	private ComboBox<Projet> projetsCombo;
229
	private ComboBox<Projet> projetsCombo = null;
230
	private CellEditor fonctionEditor;
230
	private CellEditor fonctionEditor = null;
231
	private List<Valeur> fonctionsListe;
231
	private List<Valeur> fonctionsListe = null;
232
	private ButtonBar barreOutilsValidation;
232
	private ButtonBar barreOutilsValidation = null;
Line 233... Line 233...
233
 
233
 
234
 
234
 
235
	public StructureForm(Mediateur mediateurCourrant, String modeDeCreation) {
235
	public StructureForm(Mediateur mediateurCourrant, String modeDeCreation) {
Line 343... Line 343...
343
	}
343
	}
Line 344... Line 344...
344
	
344
	
345
	private void soumettreFormulaire() {
345
	private void soumettreFormulaire() {
346
		// Vérification de la validité des champs du formulaire
346
		// Vérification de la validité des champs du formulaire
347
		if (verifierFormulaire()) {
-
 
348
			GWT.log("Soumission du formulaire", null);
347
		if (verifierFormulaire()) {
349
			// Collecte des données du formulaire
348
			// Collecte des données du formulaire
350
			Structure structure = collecterStructureIdentification();
349
			Structure structure = collecterStructureIdentification();
351
			StructureConservation conservation = collecterStructureConservation();
350
			StructureConservation conservation = collecterStructureConservation();
352
			StructureValorisation valorisation = collecterStructureValorisation();
351
			StructureValorisation valorisation = collecterStructureValorisation();
Line 457... Line 456...
457
			valorisationCollectee.setActionFutureInfo(futureActionChp.getValue());
456
			valorisationCollectee.setActionFutureInfo(futureActionChp.getValue());
Line 458... Line 457...
458
			
457
			
459
			// RECHERCHE
458
			// RECHERCHE
460
			if (rechercheMarkRGrpChp.getValue() != null) {
459
			if (rechercheMarkRGrpChp.getValue() != null) {
-
 
460
				valorisationCollectee.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute());
-
 
461
 
-
 
462
				// RECHERCHE PROVENANCE
-
 
463
				valorisationCollectee.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues()));
-
 
464
				valorisationCollectee.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue());
-
 
465
				
-
 
466
				// RECHERCHE TYPE
-
 
467
				valorisationCollectee.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues()));
461
				valorisationCollectee.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute());
468
				valorisationCollectee.setRechercheType("AUTRE", typeRechercheAutreChp.getValue());
Line 462... Line -...
462
			}
-
 
463
			
-
 
464
			// RECHERCHE PROVENANCE
-
 
465
			valorisationCollectee.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues()));
-
 
466
			valorisationCollectee.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue());
-
 
467
			
-
 
468
			// RECHERCHE TYPE
-
 
469
			valorisationCollectee.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues()));
-
 
470
			valorisationCollectee.setRechercheType("AUTRE", typeRechercheAutreChp.getValue());
469
			}
471
			
470
			
472
			// ACCÈS SANS MOTIF
471
			// ACCÈS SANS MOTIF
473
			if (sansMotifAccesMarkRGrpChp.getValue() != null) {
472
			if (sansMotifAccesMarkRGrpChp.getValue() != null) {
474
				valorisationCollectee.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute());
473
				valorisationCollectee.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute());
Line 736... Line 735...
736
				structureCollectee.setPays(comboPays.getValue().getId());
735
				structureCollectee.setPays(comboPays.getValue().getId());
737
			} else if (comboPays.getRawValue() != "") {
736
			} else if (comboPays.getRawValue() != "") {
738
				structureCollectee.setPays(comboPays.getRawValue());
737
				structureCollectee.setPays(comboPays.getRawValue());
739
			}
738
			}
Line 740... Line 739...
740
			
739
			
741
			structureCollectee.setTelephone(telChp.getValue());
740
			structureCollectee.setTelephoneFixe(telChp.getValue());
742
			structureCollectee.setFax(faxChp.getValue());
741
			structureCollectee.setFax(faxChp.getValue());
743
			structureCollectee.setCourriel(emailChp.getValue());
742
			structureCollectee.setCourriel(emailChp.getValue());
Line 744... Line 743...
744
			structureCollectee.setUrl(Structure.URL_SITE, urlChp.getValue());
743
			structureCollectee.setUrl(Structure.URL_SITE, urlChp.getValue());
Line 805... Line 804...
805
				comboPays.setValue(comboPays.getStore().findModel("id_valeur", identification.getPays()));
804
				comboPays.setValue(comboPays.getStore().findModel("id_valeur", identification.getPays()));
806
			} else {
805
			} else {
807
				comboPays.setRawValue(identification.getPays());
806
				comboPays.setRawValue(identification.getPays());
808
			}
807
			}
Line 809... Line 808...
809
			
808
			
810
			telChp.setValue(identification.getTelephone());
809
			telChp.setValue(identification.getTelephoneFixe());
811
			faxChp.setValue(identification.getFax());
810
			faxChp.setValue(identification.getFax());
812
			emailChp.setValue(identification.getCourriel());
811
			emailChp.setValue(identification.getCourriel());
Line 813... Line 812...
813
			urlChp.setValue(identification.getUrl("WEB"));
812
			urlChp.setValue(identification.getUrl("WEB"));
Line 1087... Line 1086...
1087
						if (valeurRecherche != null) {
1086
						if (valeurRecherche != null) {
1088
							personne.setFonction(valeurRecherche.getId());
1087
							personne.setFonction(valeurRecherche.getId());
1089
						} else {
1088
						} else {
1090
							personne.setFonction("AUTRE", fonction);
1089
							personne.setFonction("AUTRE", fonction);
1091
						}
1090
						}
-
 
1091
					} else {
-
 
1092
						personne.setFonction("");
1092
					}
1093
					}
Line 1093... Line 1094...
1093
					
1094
					
1094
					// Gestion de la notion de "contact"
1095
					// Gestion de la notion de "contact"
1095
					personne.setContact(false);
1096
					personne.setContact(false);
Line 1104... Line 1105...
1104
						if (valeurRecherche != null) {
1105
						if (valeurRecherche != null) {
1105
							personne.setStatut(valeurRecherche.getId());
1106
							personne.setStatut(valeurRecherche.getId());
1106
						} else {
1107
						} else {
1107
							personne.setStatut("AUTRE", statut);
1108
							personne.setStatut("AUTRE", statut);
1108
						}
1109
						}
-
 
1110
					} else {
-
 
1111
						personne.setStatut("");
1109
					}
1112
					}
Line 1110... Line 1113...
1110
					
1113
					
1111
					// Gestion du temps de travail
-
 
1112
					if (personne.get("travail") != null && !personne.get("travail").equals(0)) {
1114
					// Gestion du temps de travail
1113
						personne.setBotaTravailHebdoTps(personne.get("travail").toString());
-
 
Line 1114... Line 1115...
1114
					}
1115
					personne.setBotaTravailHebdoTps(personne.get("travail").toString());
1115
					
1116
					
1116
					// Gestion du téléphone
-
 
1117
					String telephone = personne.get("telephone");
1117
					// Gestion du téléphone
1118
					if (telephone != null && !telephone.equals("")) {
-
 
Line 1119... Line 1118...
1119
						personne.setTelephone(telephone);
1118
					String telephoneFixe = personne.get("tel_fix");
1120
					}
1119
					personne.setTelephoneFixe(telephoneFixe);
1121
					
-
 
1122
					// Gestion du fax
1120
					
1123
					String fax = personne.get("fax");
-
 
1124
					if (fax != null && !fax.equals("")) {
1121
					// Gestion du fax
1125
						personne.setFax(fax);
1122
					String fax = personne.get("tel_fax");
1126
					}
1123
					personne.setFax(fax);
1127
					
-
 
1128
					// Gestion du courriel
1124
									
1129
					String courriel = personne.get("courriel");
-
 
Line 1130... Line 1125...
1130
					if (courriel != null && !courriel.equals("")) {
1125
					// Gestion du courriel
1131
						personne.setCourriel(courriel);
1126
					String courriel = personne.get("courriel");
1132
					}
-
 
1133
					
1127
					personne.setCourriel(courriel);
1134
					// Gestion de la sépcialité
-
 
Line 1135... Line 1128...
1135
					String specialite = personne.get("specialite");
1128
					
1136
					if (specialite != null && !specialite.equals("")) {
1129
					// Gestion de la spécialité
1137
						personne.setSpecialite(specialite);
1130
					String specialite = personne.get("specialite");
1138
					}
1131
					personne.setSpecialite(specialite);
Line 1156... Line 1149...
1156
			for (Iterator<String> it = personnel.keySet().iterator(); it.hasNext();) {
1149
			for (Iterator<String> it = personnel.keySet().iterator(); it.hasNext();) {
1157
				String index = it.next();
1150
				String index = it.next();
Line 1158... Line 1151...
1158
				
1151
				
1159
				// Gestion de la fonction
1152
				// Gestion de la fonction
1160
				if (fonctionsMagazin != null && !((String) personnel.get(index).getFonction()).startsWith("AUTRE##")) {
-
 
1161
					GWT.log(personnel.get(index).getFonction(), null);
1153
				if (fonctionsMagazin != null && !((String) personnel.get(index).getFonction()).startsWith("AUTRE##")) {
1162
					if (fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()) != null) {
1154
					if (fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()) != null) {
1163
						personnel.get(index).set("fonction", fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()).getNom());
1155
						personnel.get(index).set("fonction", fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()).getNom());
1164
					}
1156
					}
1165
				} else {
1157
				} else {
Line 1261... Line 1253...
1261
			public Object preProcessValue(Object valeur) {  
1253
			public Object preProcessValue(Object valeur) {  
1262
				Valeur retour = null;
1254
				Valeur retour = null;
Line 1263... Line 1255...
1263
				
1255
				
1264
				if (valeur != null) {
1256
				if (valeur != null) {
1265
					String chaineTransmise = (String) valeur;
-
 
1266
					GWT.log("ici:"+fonctionsMagazin.getCount(), null);
1257
					String chaineTransmise = (String) valeur;
1267
					if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) {
1258
					if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) {
1268
						fonctionsMagazin.add(fonctionsListe);
1259
						fonctionsMagazin.add(fonctionsListe);
1269
					}
1260
					}
1270
					if (fonctionsMagazin.findModel("id_valeur", chaineTransmise) != null) {
1261
					if (fonctionsMagazin.findModel("id_valeur", chaineTransmise) != null) {
Line 1281... Line 1272...
1281
			
1272
			
1282
			@Override  
1273
			@Override  
1283
			public Object postProcessValue(Object valeur) {  
1274
			public Object postProcessValue(Object valeur) {  
1284
				String retour = "";
1275
				String retour = "";
1285
				Valeur fonctionTrouvee = null; 
-
 
1286
				GWT.log("ICI ", null);
1276
				Valeur fonctionTrouvee = null; 
1287
				if (valeur == null) {
-
 
1288
					GWT.log(this.getField().getRawValue(), null);
1277
				if (valeur == null) {
1289
					String valeurBrute = this.getField().getRawValue();
1278
					String valeurBrute = this.getField().getRawValue();
1290
					if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) {
1279
					if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) {
1291
						fonctionsMagazin.add(fonctionsListe);
1280
						fonctionsMagazin.add(fonctionsListe);
1292
					}
1281
					}
Line 1323... Line 1312...
1323
		nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1312
		nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
1324
		nomChp.setAutoValidate(true);  
1313
		nomChp.setAutoValidate(true);  
1325
		column.setEditor(new CellEditor(nomChp));
1314
		column.setEditor(new CellEditor(nomChp));
1326
		configs.add(column);  
1315
		configs.add(column);  
Line 1327... Line 1316...
1327
 
1316
 
1328
		column = new ColumnConfig("telephone", "Téléphone fixe", 100);
1317
		column = new ColumnConfig("tel_fix", "Téléphone fixe", 100);
1329
		TextField<String> telChp = new TextField<String>();  
1318
		TextField<String> telChp = new TextField<String>();  
1330
		column.setEditor(new CellEditor(telChp));
1319
		column.setEditor(new CellEditor(telChp));
Line 1331... Line 1320...
1331
		configs.add(column);
1320
		configs.add(column);
1332
 
1321
 
1333
		column = new ColumnConfig("fax", "Fax", 100);
1322
		column = new ColumnConfig("tel_fax", "Fax", 100);
1334
		TextField<String> faxChp = new TextField<String>();  
1323
		TextField<String> faxChp = new TextField<String>();  
Line 1335... Line 1324...
1335
		column.setEditor(new CellEditor(faxChp));
1324
		column.setEditor(new CellEditor(faxChp));
Line 1355... Line 1344...
1355
			@Override  
1344
			@Override  
1356
			public Object preProcessValue(Object value) {  
1345
			public Object preProcessValue(Object value) {  
1357
				if (value == null) {  
1346
				if (value == null) {  
1358
					return value;  
1347
					return value;  
1359
				}
1348
				}
1360
				//GWT.log("pre : "+value.toString(), null);
-
 
1361
				return comboLiStatut.getStore().findModel("nom", (String) value);  
1349
				return comboLiStatut.getStore().findModel("nom", (String) value);  
1362
			}  
1350
			}  
Line 1363... Line 1351...
1363
			
1351
			
1364
			@Override  
1352
			@Override  
1365
			public Object postProcessValue(Object value) {  
1353
			public Object postProcessValue(Object value) {  
1366
				if (value == null) {  
1354
				if (value == null) {  
1367
					return value;  
1355
					return value;  
1368
				}
-
 
1369
				//GWT.log("post : "+value.toString(), null);
1356
				}
1370
				return ((Valeur) value).get("nom");  
1357
				return ((Valeur) value).get("nom");  
1371
			}  
1358
			}  
1372
		};
1359
		};
1373
		column = new ColumnConfig("statut", "Statut", 100);
1360
		column = new ColumnConfig("statut", "Statut", 100);
Line 1478... Line 1465...
1478
					StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
1465
					StructureAPersonne membreDuPersonnel = new StructureAPersonne("", StructureAPersonne.ROLE_EQUIPE, StructureAPersonne.ETAT_AJOUTE);
1479
					membreDuPersonnel.setIdPersonne(personneExistante.getId());
1466
					membreDuPersonnel.setIdPersonne(personneExistante.getId());
1480
					membreDuPersonnel.setNom(personneExistante.getNom());
1467
					membreDuPersonnel.setNom(personneExistante.getNom());
1481
					membreDuPersonnel.setPrenom(personneExistante.getPrenom());
1468
					membreDuPersonnel.setPrenom(personneExistante.getPrenom());
1482
					membreDuPersonnel.setTelephone(personneExistante.getTelephone());
1469
					membreDuPersonnel.setTelephone(personneExistante.getTelephone());
1483
					membreDuPersonnel.setFax(personneExistante.getFax());
-
 
1484
					membreDuPersonnel.setCourriel(personneExistante.getCourriel());
1470
					membreDuPersonnel.setCourriel(personneExistante.getCourriel());
1485
					membreDuPersonnel.setSpecialite(personneExistante.getSpecialite());
1471
					membreDuPersonnel.setSpecialite(personneExistante.getSpecialite());
Line 1486... Line 1472...
1486
					
1472
					
1487
					ajouterMembreAGrillePersonnel(membreDuPersonnel);
1473
					ajouterMembreAGrillePersonnel(membreDuPersonnel);
Line 1789... Line 1775...
1789
		
1775
		
Line 1790... Line 1776...
1790
		fieldSetTelMail.setLayout(creerFormLayout(null, LabelAlign.LEFT));
1776
		fieldSetTelMail.setLayout(creerFormLayout(null, LabelAlign.LEFT));
1791
				
1777
				
1792
		telChp = new TextField<String>();
1778
		telChp = new TextField<String>();
1793
		telChp.setTabIndex(tabIndex++);
1779
		telChp.setTabIndex(tabIndex++);
Line 1794... Line 1780...
1794
		telChp.setFieldLabel("Téléphone");
1780
		telChp.setFieldLabel("Téléphone fixe");
1795
		gaucheFdTelMail.add(telChp, new FormData("95%"));
1781
		gaucheFdTelMail.add(telChp, new FormData("95%"));
1796
		
1782
		
Line 2130... Line 2116...
2130
						List<Personne> liste = new ArrayList<Personne>();
2116
						List<Personne> liste = new ArrayList<Personne>();
2131
						for (Iterator<String> it = personnes.keySet().iterator(); it.hasNext();) {
2117
						for (Iterator<String> it = personnes.keySet().iterator(); it.hasNext();) {
2132
							liste.add(personnes.get(it.next()));
2118
							liste.add(personnes.get(it.next()));
2133
						}
2119
						}
Line 2134... Line -...
2134
						
-
 
2135
						GWT.log("Nbre de personnes trouvées :"+personnes.size(), null);
2120
						
2136
						personneExistanteMagazin.removeAll();
2121
						personneExistanteMagazin.removeAll();
2137
						personneExistanteMagazin.add(liste);
2122
						personneExistanteMagazin.add(liste);
2138
						personneExistanteCombo.setStore(personneExistanteMagazin);
2123
						personneExistanteCombo.setStore(personneExistanteMagazin);
2139
						personneExistanteCombo.expand();
2124
						personneExistanteCombo.expand();
Line 2291... Line 2276...
2291
			record.set("prenom", personnel.getPrenom());
2276
			record.set("prenom", personnel.getPrenom());
2292
		}
2277
		}
2293
		if (!personnel.getNom().equals("")) {
2278
		if (!personnel.getNom().equals("")) {
2294
			record.set("nom", personnel.getNom());
2279
			record.set("nom", personnel.getNom());
2295
		}
2280
		}
2296
		if (!personnel.getTelephone().equals("")) {
2281
		if (!personnel.getTelephoneFixe().equals("")) {
2297
			record.set("telephone", personnel.selectionnerTelephone(Personne.TELEPHONE_FIXE));
2282
			record.set("tel_fix", personnel.getTelephoneFixe());
2298
		}
2283
		}
2299
		if (!personnel.getFax().equals("")) {
2284
		if (!personnel.getFax().equals("")) {
2300
			record.set("fax", personnel.selectionnerFax(1));
2285
			record.set("tel_fax", personnel.getFax());
2301
		}
2286
		}
2302
		if (!personnel.getCourriel().equals("")) {
2287
		if (!personnel.getCourriel().equals("")) {
2303
			record.set("courriel", personnel.selectionnerCourriel(1));
2288
			record.set("courriel", personnel.selectionnerCourriel(1));
2304
		}
2289
		}
2305
		if (!personnel.getStatut().equals("")) {
2290
		if (!personnel.getStatut().equals("")) {