Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 171 Rev 188
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.io.Serializable;
Line 3... Line 4...
3
import java.io.Serializable;
4
import java.util.List;
-
 
5
 
Line 4... Line 6...
4
 
6
import com.extjs.gxt.ui.client.data.BaseModelData;
Line 5... Line 7...
5
import com.extjs.gxt.ui.client.data.BaseModelData;
7
import com.extjs.gxt.ui.client.widget.form.CheckBox;
6
 
8
 
Line 18... Line 20...
18
	 * 
20
	 * 
19
	 * @param cle
21
	 * @param cle
20
	 * @return la valeur associée à la clé
22
	 * @return la valeur associée à la clé
21
	 */
23
	 */
22
	public String renvoyerValeurCorrecte(String cle) {
24
	public String renvoyerValeurCorrecte(String cle) {
-
 
25
		String sortie = "";
23
		if (this.get(cle) != null) {
26
		if (this.get(cle) != null) {
24
			String valeur = this.get(cle);
27
			String valeur = this.get(cle);
25
			if (valeur.equals("null")) {
28
			if (! valeur.equals("null")) {
26
				return "";
-
 
27
			} else {
-
 
28
				char nullChar = '\u0000';
29
				char nullChar = '\u0000';
29
				String sNull = "" + nullChar;
30
				String sNull = "" + nullChar;
30
				valeur = valeur.replaceAll(sNull, "");
31
				valeur = valeur.replaceAll(sNull, "");
31
				return valeur;
32
				sortie =  valeur;
32
			}
33
			}
33
		} else {
-
 
34
			return "";
-
 
35
		}
34
		}
-
 
35
		return sortie;
36
	}
36
	}
Line 37... Line 37...
37
	
37
	
38
	public String getDateModification() {
38
	public String getDateModification() {
39
		return (String) renvoyerValeurCorrecte("cmhl_date_modification");
39
		return (String) renvoyerValeurCorrecte("cmhl_date_modification");