Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 431 Rev 455
Line 155... Line 155...
155
	public String getString(String champ)	{
155
	public String getString(String champ)	{
Line 156... Line 156...
156
		
156
		
Line 157... Line 157...
157
		return String.valueOf(renvoyerValeurCorrecte(champ));
157
		return String.valueOf(renvoyerValeurCorrecte(champ));
-
 
158
		
-
 
159
	}
-
 
160
	
-
 
161
	public void setNaissanceDate(Date naissanceDate) {
-
 
162
		if (naissanceDate != null) {
-
 
163
			this.set("naissance_date", DateTimeFormat.getFormat("yyyy-MM-dd").format(naissanceDate));
-
 
164
		}
-
 
165
	}
-
 
166
	
-
 
167
	public void setDecesDate(Date decesDate) {
-
 
168
		if (decesDate != null) {
-
 
169
			this.set("deces_date", DateTimeFormat.getFormat("yyyy-MM-dd").format(decesDate));
-
 
170
		}
-
 
171
	}
-
 
172
	
-
 
173
	public void setFmtNomComplet(String prefixe, String suffixe)	{
-
 
174
		String fmtNomComplet = "";
-
 
175
		if ((prefixe != null)&&(!prefixe.trim().equals("")))	{
-
 
176
			fmtNomComplet += prefixe + " ";
-
 
177
		}
-
 
178
		
-
 
179
		if ((this.getPrenom()!=null)&&(!this.getPrenom().trim().equals("")))	{
-
 
180
			fmtNomComplet += this.getPrenom() + " ";
-
 
181
		}
-
 
182
		
-
 
183
		if ((this.getNom()!=null)&&(!this.getNom().trim().equals("")))	{
-
 
184
			fmtNomComplet += this.getNom() + " ";
-
 
185
		}
-
 
186
		
-
 
187
		if ((suffixe!=null)&&(!suffixe.trim().equals("")))	{
-
 
188
			fmtNomComplet += suffixe;
-
 
189
		}
-
 
190
		
-
 
191
		this.set("fmt_nom_complet", fmtNomComplet);
-
 
192
	}
Line 158... Line 193...
158
		
193