Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 678 Rev 681
Line 991... Line 991...
991
			if (info.getType().equals("ajout_personne"))	{
991
			if (info.getType().equals("ajout_personne"))	{
Line 992... Line 992...
992
				
992
				
993
				GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
993
				GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
Line 994... Line -...
994
				Info.display("Enregistrement", "La personne a été ajoutée (id: " + personneSelectionnee.getId() + ")");
-
 
995
				
-
 
996
				personneSelectionnee.set("id_personne", info.toString());
-
 
997
				this.mode = MODE_MODIFIER;
-
 
998
				this.setHeading(mediateur.i18nC.personneModeModifier());
-
 
999
				setIcon(Images.ICONES.formModifier());
994
				Info.display("Enregistrement", "La personne a été ajoutée (id: " + personneSelectionnee.getId() + ")");
Line 1000... Line 995...
1000
				
995
				
1001
			} else if (info.getType().equals("modification_personne"))	{
996
			} else if (info.getType().equals("modification_personne"))	{
1002
				
997
				
Line 1110... Line 1105...
1110
					}
1105
					}
Line 1111... Line 1106...
1111
					
1106
					
1112
					// Sexe
1107
					// Sexe
1113
					String strSexe = personne.get("ce_sexe");
1108
					String strSexe = personne.get("ce_sexe");
1114
					ComboBox<Valeur> cbSexe = (ComboBox<Valeur>) hmIdentite.get("cbSexe");
-
 
1115
					
1109
					ComboBox<Valeur> cbSexe = (ComboBox<Valeur>) hmIdentite.get("cbSexe");
1116
					
-
 
1117
					//FIXME : le lien avec la bdd ne peut pas se faire
1110
 
1118
					if (cbSexe.getStore().findModel("id_valeur", strSexe) != null)	{
1111
					if (cbSexe.getStore().findModel("id_valeur", strSexe) != null)	{
1119
						cbSexe.setValue(cbSexe.getStore().findModel("id_valeur", strSexe));
1112
						cbSexe.setValue(cbSexe.getStore().findModel("id_valeur", strSexe));
1120
					}	else	{
1113
					}	else	{
1121
						cbSexe.setRawValue(strSexe);
1114
						cbSexe.setRawValue(strSexe);
Line 1552... Line 1545...
1552
		
1545
		
1553
		ComboBox<Projet> cbProjets = (ComboBox<Projet>) hmIdentite.get("cbProjets");
1546
		ComboBox<Projet> cbProjets = (ComboBox<Projet>) hmIdentite.get("cbProjets");
1554
		Projet projet = cbProjets.getValue();
1547
		Projet projet = cbProjets.getValue();
1555
		if (projet == null)	{
1548
		if (projet == null)	{
-
 
1549
			lstMessageErreur.add("Le projet n'a pas été renseigné");
-
 
1550
		} else {
1556
			lstMessageErreur.add("Le projet n'a pas été renseigné");
1551
			personneSelectionnee.set("ce_projet", projet.getId());
Line 1557... Line 1552...
1557
		}
1552
		}
1558
		
1553
		
1559
		String strTfNom = ((TextField<String>) hmIdentite.get("tfNom")).getValue();
1554
		String strTfNom = ((TextField<String>) hmIdentite.get("tfNom")).getValue();