1,8 → 1,11 |
package org.tela_botanica.client.modeles; |
|
import java.util.Date; |
import java.util.Iterator; |
import java.util.Set; |
|
import com.google.gwt.core.client.GWT; |
import com.google.gwt.i18n.client.DateTimeFormat; |
import com.google.gwt.json.client.JSONObject; |
|
public class Personne extends aDonnee { |
67,6 → 70,22 |
return renvoyerValeurCorrecte("prenom"); |
} |
|
public Date getDate(String nomChamp) { |
|
String strDate = renvoyerValeurCorrecte(nomChamp); |
|
Date dateRetour = null; |
try |
{ |
if ((strDate != null) && (!strDate.equals("0000-00-00"))) { |
dateRetour = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(strDate); |
} |
} catch (StringIndexOutOfBoundsException e) { |
GWT.log("Impossible de parser la date " + strDate, e); |
} |
return dateRetour; |
} |
|
// TÉLÉPHONE |
public String getTelephone() { |
return renvoyerValeurCorrecte("truk_telephone"); |