Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 540 Rev 622
Line 20... Line 20...
20
import org.tela_botanica.client.modeles.PersonneListe;
20
import org.tela_botanica.client.modeles.PersonneListe;
21
import org.tela_botanica.client.modeles.Projet;
21
import org.tela_botanica.client.modeles.Projet;
22
import org.tela_botanica.client.modeles.ProjetListe;
22
import org.tela_botanica.client.modeles.ProjetListe;
23
import org.tela_botanica.client.modeles.Valeur;
23
import org.tela_botanica.client.modeles.Valeur;
24
import org.tela_botanica.client.modeles.ValeurListe;
24
import org.tela_botanica.client.modeles.ValeurListe;
-
 
25
import org.tela_botanica.client.util.UtilString;
Line 25... Line 26...
25
 
26
 
26
import com.extjs.gxt.ui.client.event.Events;
27
import com.extjs.gxt.ui.client.event.Events;
27
import com.extjs.gxt.ui.client.Registry;
28
import com.extjs.gxt.ui.client.Registry;
28
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
29
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
Line 1540... Line 1541...
1540
		}
1541
		}
Line 1541... Line 1542...
1541
		
1542
		
1542
		String strTfNom = ((TextField<String>) hmIdentite.get("tfNom")).getValue();
1543
		String strTfNom = ((TextField<String>) hmIdentite.get("tfNom")).getValue();
1543
		if ((strTfNom == null)||(strTfNom.trim().equals("")))	{
1544
		if ((strTfNom == null)||(strTfNom.trim().equals("")))	{
-
 
1545
			lstMessageErreur.add("Le nom n'a pas été saisi");
-
 
1546
		} else {
-
 
1547
			strTfNom = UtilString.ucFirst(strTfNom);
1544
			lstMessageErreur.add("Le nom n'a pas été saisi");
1548
			personneSelectionnee.set("nom", strTfNom);
1545
		}
1549
		}
-
 
1550
		
-
 
1551
		String strTfPrenom = ((TextField<String>) hmIdentite.get("tfPrenom")).getValue();
Line 1546... Line 1552...
1546
		 
1552
		personneSelectionnee.set("prenom", UtilString.ucFirst(strTfPrenom));
1547
		
1553
		
1548
		//Préparer les données
1554
		//Préparer les données
1549
		ComboBox combo = (ComboBox) hmIdentite.get("cbSexe");
1555
		ComboBox combo = (ComboBox) hmIdentite.get("cbSexe");