Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 676 Rev 678
Line 50... Line 50...
50
import com.extjs.gxt.ui.client.widget.TabPanel;
50
import com.extjs.gxt.ui.client.widget.TabPanel;
51
import com.extjs.gxt.ui.client.widget.Text;
51
import com.extjs.gxt.ui.client.widget.Text;
Line 52... Line 52...
52
 
52
 
53
import com.extjs.gxt.ui.client.widget.button.Button;
53
import com.extjs.gxt.ui.client.widget.button.Button;
54
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
-
 
55
import com.extjs.gxt.ui.client.widget.button.IconButton;
54
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
56
import com.extjs.gxt.ui.client.widget.form.ComboBox;
55
import com.extjs.gxt.ui.client.widget.form.ComboBox;
57
import com.extjs.gxt.ui.client.widget.form.DateField;
56
import com.extjs.gxt.ui.client.widget.form.DateField;
58
import com.extjs.gxt.ui.client.widget.form.FieldSet;
57
import com.extjs.gxt.ui.client.widget.form.FieldSet;
59
import com.extjs.gxt.ui.client.widget.form.FormPanel;
58
import com.extjs.gxt.ui.client.widget.form.FormPanel;
Line 1114... Line 1113...
1114
					String strSexe = personne.get("ce_sexe");
1113
					String strSexe = personne.get("ce_sexe");
1115
					ComboBox<Valeur> cbSexe = (ComboBox<Valeur>) hmIdentite.get("cbSexe");
1114
					ComboBox<Valeur> cbSexe = (ComboBox<Valeur>) hmIdentite.get("cbSexe");
Line 1116... Line 1115...
1116
					
1115
					
1117
					
1116
					
1118
					//FIXME : le lien avec la bdd ne peut pas se faire
1117
					//FIXME : le lien avec la bdd ne peut pas se faire
1119
					if (cbSexe.getStore().findModel("abreviation", strSexe) != null)	{
1118
					if (cbSexe.getStore().findModel("id_valeur", strSexe) != null)	{
1120
						cbSexe.setValue(cbSexe.getStore().findModel("abreviation", strSexe));
1119
						cbSexe.setValue(cbSexe.getStore().findModel("id_valeur", strSexe));
1121
					}	else	{
1120
					}	else	{
Line 1122... Line 1121...
1122
						cbSexe.setRawValue(strSexe);
1121
						cbSexe.setRawValue(strSexe);
Line 1571... Line 1570...
1571
		//Préparer les données
1570
		//Préparer les données
1572
		ComboBox combo = (ComboBox) hmIdentite.get("cbSexe");
1571
		ComboBox combo = (ComboBox) hmIdentite.get("cbSexe");
1573
		Valeur valeur;
1572
		Valeur valeur;
1574
		String strValeur = "";
1573
		String strValeur = "";
Line 1575... Line -...
1575
		
-
 
1576
		if (combo.getValue()!=null)	{
1574
		
1577
			valeur = (Valeur) combo.getValue();
-
 
1578
			strValeur = valeur.getId();
-
 
1579
		} 
-
 
1580
		
1575
		valeur = (Valeur) combo.getValue();
1581
		if (!strValeur.trim().equals(""))	{
1576
		if (valeur!=null)	{
1582
			personneSelectionnee.set("sexe", strValeur);
1577
			personneSelectionnee.set("ce_sexe", valeur.getId());
Line 1583... Line 1578...
1583
		} 
1578
		}
1584
		
1579
		
Line 1585... Line 1580...
1585
		strValeur = obtenirValeurCombo("cbPrefixe");
1580
		strValeur = obtenirValeurCombo("cbPrefixe");