Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 181 Rev 208
Line 4... Line 4...
4
import java.util.Set;
4
import java.util.Set;
Line 5... Line 5...
5
 
5
 
Line 6... Line 6...
6
import com.google.gwt.json.client.JSONObject;
6
import com.google.gwt.json.client.JSONObject;
-
 
7
 
-
 
8
public class Personne extends aDonnee {
-
 
9
 
7
 
10
	public static final String PREFIXE = "cp";
8
public class Personne extends aDonnee {
11
	
9
	/**
12
	/**
10
	 * Constructeur vide
13
	 * Constructeur vide
11
	 */
-
 
-
 
14
	 */
12
	public Personne() {
15
	public Personne() {
Line 13... Line 16...
13
		this.set("mark_contact", false);
16
		
14
	}
17
	}
15
	
18
	
Line 37... Line 40...
37
				this.set(cleObjet, valeur);
40
				this.set(cleObjet, valeur);
38
			}
41
			}
39
		}
42
		}
40
	}
43
	}
Line 41... Line -...
41
	
-
 
42
	/**
-
 
43
	 * Constructeur avec la fonction à passer en paramètre
-
 
44
	 * 
-
 
45
	 * @param image
-
 
46
	 */
-
 
47
	public Personne(String fonction) {
-
 
48
		this.set("ce_truk_fonction", fonction);
-
 
49
		this.set("mark_contact", false);
-
 
50
	}
-
 
51
	
44
	
52
	public String getId() {
45
	public String getId() {
53
		return (String) renvoyerValeurCorrecte("id_personne");
46
		return (String) renvoyerValeurCorrecte("id_personne");
Line 54... Line -...
54
	}
-
 
55
	
-
 
56
	public String getFonction() {
-
 
57
		String fonction = (String) renvoyerValeurCorrecte("ce_truk_fonction");
-
 
58
		if (fonction.equals(Valeur.FONCTION_DIRECTEUR)) {
-
 
59
			return "Directeur";
-
 
60
		} else if (fonction.equals(Valeur.FONCTION_CONSERVATEUR)) {
-
 
61
			return "Conservateur";
-
 
62
		} else {
-
 
63
			return "";
-
 
64
		}		
-
 
65
	}
-
 
66
	
47
	}
67
 
48
	
68
	public String getNom()	{
49
	public String getNom()	{
Line 69... Line -...
69
		return (String) renvoyerValeurCorrecte("cp_nom");
-
 
70
	}
50
		return (String) renvoyerValeurCorrecte("cp_nom");
71
	
51
	}
72
 
52
	
Line 73... Line 53...
73
	public String getPrenom()	{
53
	public String getPrenom()	{