Subversion Repositories eFlore/Applications.coel

Rev

Rev 1331 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1331 Rev 1339
Line 1... Line 1...
1
package org.tela_botanica.client.modeles.personne;
1
package org.tela_botanica.client.modeles.personne;
Line 2... Line 2...
2
 
2
 
3
import java.util.Date;
3
import java.util.Date;
-
 
4
import java.util.Iterator;
4
import java.util.Iterator;
5
import java.util.Map;
Line 5... Line 6...
5
import java.util.Set;
6
import java.util.Set;
6
 
7
 
7
import org.tela_botanica.client.Mediateur;
8
import org.tela_botanica.client.Mediateur;
Line 31... Line 32...
31
	
32
	
32
	public Personne() {
33
	public Personne() {
Line 33... Line 34...
33
	}
34
	}
34
 
35
 
35
	public Personne(ModelData model)
36
	public Personne(ModelData model)
-
 
37
	{
36
	{		
38
		Map<String, Object> a = model.getProperties();
37
		this.set("id_personne", model.get("cp_id_personne"));
39
 
-
 
40
		Set<String> cles = a.keySet();
-
 
41
		Iterator<String> it = cles.iterator();
38
		this.set("fmt_nom_complet", model.get("cp_fmt_nom_complet"));
42
		while (it.hasNext()) {
-
 
43
			String cle = it.next();			
39
		this.set("code_postal", model.get("cp_code_postal"));
44
			if (a.get(cle) != null) {
-
 
45
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
-
 
46
				this.set(cleObjet, a.get(cle));
40
		this.set("ville", model.get("cp_ville"));
47
			}
Line 41... Line 48...
41
		this.set("truk_courriel", model.get("cp_truk_courriel"));
48
		}
42
	}	
49
	}	
43
	
50