Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 620 Rev 748
Line 1... Line 1...
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles;
Line 2... Line -...
2
 
-
 
3
import java.util.Collection;
2
 
4
import java.util.Date;
-
 
5
import java.util.HashMap;
3
import java.util.Date;
6
import java.util.Iterator;
4
import java.util.Iterator;
Line 7... Line 5...
7
import java.util.Set;
5
import java.util.Set;
Line 8... Line 6...
8
 
6
 
9
import org.tela_botanica.client.util.UtilString;
-
 
10
 
7
import org.tela_botanica.client.util.UtilString;
11
import com.google.gwt.core.client.GWT;
8
 
Line 12... Line 9...
12
import com.google.gwt.http.client.URL;
9
import com.google.gwt.core.client.GWT;
Line -... Line 10...
-
 
10
import com.google.gwt.i18n.client.DateTimeFormat;
-
 
11
import com.google.gwt.json.client.JSONObject;
13
import com.google.gwt.i18n.client.DateTimeFormat;
12
 
14
import com.google.gwt.json.client.JSONObject;
13
public class Personne extends aDonnee {
15
 
14
 
16
public class Personne extends aDonnee {
15
	private static final long serialVersionUID = -6974716696155349332L;
Line 17... Line -...
17
 
-
 
18
	public static final String PREFIXE = "cp";
-
 
19
	public static final String TELEPHONE_FIXE = "FIX";
-
 
20
	public static final String TELEPHONE_GSM = "GSM";
16
 
21
	public static final String TELEPHONE_FAX = "FAX";
-
 
22
	
17
	public static final String PREFIXE = "cp";
Line 23... Line -...
23
	/**
-
 
24
	 * Constructeur vide
-
 
25
	 */
-
 
26
	public Personne() {
-
 
27
		
-
 
28
	}
18
	public static final String TELEPHONE_FIXE = "FIX";
29
	
19
	public static final String TELEPHONE_GSM = "GSM";
30
	/**
20
	public static final String TELEPHONE_FAX = "FAX";
Line 31... Line 21...
31
	 * Constructeur avec un objet JSON
21
	
Line 58... Line 48...
58
		
48
		
59
		//Ajout du champ courriel principal
49
		//Ajout du champ courriel principal
60
		this.set("courriel_princ", this.getInfoDenormaliseParPosition(this.renvoyerValeurCorrecte("truk_courriel"), 1));
50
		this.set("courriel_princ", this.getInfoDenormaliseParPosition(this.renvoyerValeurCorrecte("truk_courriel"), 1));
Line -... Line 51...
-
 
51
	}
-
 
52
	
-
 
53
	@Override
-
 
54
	protected String getPrefixe() {
-
 
55
		return PREFIXE;
61
	}
56
	}
62
	
57
	
63
	// ID PERSONNE
58
	// ID PERSONNE
64
	public String getId() {
59
	public String getId() {
Line 159... Line 154...
159
		return renvoyerValeurCorrecte(nomChamp);
154
		return renvoyerValeurCorrecte(nomChamp);
160
	}
155
	}
Line 161... Line 156...
161
	
156
	
162
	
-
 
163
	public String getString(String champ)	{
157
	
164
		
-
 
165
		return String.valueOf(renvoyerValeurCorrecte(champ));
158
	public String getString(String champ)	{
Line 166... Line 159...
166
		
159
		return String.valueOf(renvoyerValeurCorrecte(champ));
167
	}
160
	}
168
	
161
	
Line 194... Line 187...
194
		
187
		
195
		if ((suffixe!=null)&&(!suffixe.trim().equals("")))	{
188
		if ((suffixe!=null)&&(!suffixe.trim().equals("")))	{
196
			fmtNomComplet += suffixe;
189
			fmtNomComplet += suffixe;
Line 197... Line -...
197
		}
-
 
198
		
190
		}
199
		
191
		
200
		this.set("fmt_nom_complet", UtilString.ucFirst(fmtNomComplet));
-
 
201
	}
-
 
Line 202... Line 192...
202
	
192
		this.set("fmt_nom_complet", UtilString.ucFirst(fmtNomComplet));