Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 382 Rev 392
Line 1... Line 1...
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles;
Line 2... Line 2...
2
 
2
 
3
import java.util.Date;
-
 
4
import java.util.HashMap;
3
import java.util.Date;
5
import java.util.Iterator;
-
 
6
import java.util.Map;
4
import java.util.Iterator;
Line 7... Line 5...
7
import java.util.Set;
5
import java.util.Set;
8
 
-
 
9
import com.extjs.gxt.ui.client.data.BaseModelData;
6
 
10
import com.google.gwt.core.client.GWT;
7
import com.extjs.gxt.ui.client.data.BaseModelData;
Line 11... Line 8...
11
import com.google.gwt.i18n.client.DateTimeFormat;
8
import com.google.gwt.i18n.client.DateTimeFormat;
Line 146... Line 143...
146
	}
143
	}
Line 147... Line 144...
147
 
144
 
148
	public String getDateFondationFormatMysql() {
145
	public String getDateFondationFormatMysql() {
149
		return (String) renvoyerValeurCorrecte("date_fondation");
146
		return (String) renvoyerValeurCorrecte("date_fondation");
-
 
147
	}
-
 
148
	public String getDateFondationFormatLong() {
-
 
149
		String dateFormatee = "";
-
 
150
		Date dateFondation = getDateFondation();
-
 
151
		if (dateFondation != null) {
-
 
152
			dateFormatee = DateTimeFormat.getLongDateFormat().format(dateFondation);
-
 
153
		}
-
 
154
		return dateFormatee;
150
	}
155
	}
151
	public Date getDateFondation() {
156
	public Date getDateFondation() {
152
		Date fondationDate = null;
157
		Date fondationDate = null;
153
		String fondationChaine = (String) renvoyerValeurCorrecte("date_fondation");
158
		String fondationChaine = (String) renvoyerValeurCorrecte("date_fondation");
154
		if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {
159
		if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {