Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 261 Rev 350
Line 1... Line 1...
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles;
Line -... Line 2...
-
 
2
 
2
 
3
import java.util.Date;
3
import java.util.Iterator;
4
import java.util.Iterator;
Line -... Line 5...
-
 
5
import java.util.Set;
-
 
6
 
4
import java.util.Set;
7
import com.google.gwt.core.client.GWT;
Line 5... Line 8...
5
 
8
import com.google.gwt.i18n.client.DateTimeFormat;
Line 6... Line 9...
6
import com.google.gwt.json.client.JSONObject;
9
import com.google.gwt.json.client.JSONObject;
Line 65... Line 68...
65
	// PRÉNOM
68
	// PRÉNOM
66
	public String getPrenom() {
69
	public String getPrenom() {
67
		return renvoyerValeurCorrecte("prenom");
70
		return renvoyerValeurCorrecte("prenom");
68
	}
71
	}
Line -... Line 72...
-
 
72
	
-
 
73
	public Date getDate(String nomChamp)	{
-
 
74
		
-
 
75
		String strDate = renvoyerValeurCorrecte(nomChamp);
-
 
76
		
-
 
77
		Date dateRetour = null;
-
 
78
		try
-
 
79
		{
-
 
80
			if ((strDate != null) && (!strDate.equals("0000-00-00"))) {
-
 
81
				dateRetour = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(strDate);
-
 
82
			}
-
 
83
		} catch (StringIndexOutOfBoundsException e)	{
-
 
84
			GWT.log("Impossible de parser la date " + strDate, e);
-
 
85
		}
-
 
86
		return dateRetour;		
-
 
87
	}
69
	
88
	
70
	// TÉLÉPHONE
89
	// TÉLÉPHONE
71
	public String getTelephone() {
90
	public String getTelephone() {
72
		return renvoyerValeurCorrecte("truk_telephone");
91
		return renvoyerValeurCorrecte("truk_telephone");
73
	}
92
	}