Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 461 Rev 473
Line 67... Line 67...
67
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
67
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
68
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
68
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
69
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
69
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
70
import com.google.gwt.core.client.GWT;
70
import com.google.gwt.core.client.GWT;
71
import com.google.gwt.i18n.client.DateTimeFormat;
71
import com.google.gwt.i18n.client.DateTimeFormat;
-
 
72
import com.google.gwt.user.client.Window;
72
import com.google.gwt.user.client.ui.Widget;
73
import com.google.gwt.user.client.ui.Widget;
Line 73... Line 74...
73
 
74
 
Line 74... Line 75...
74
public class PersonneForm extends FormPanel implements Rafraichissable {
75
public class PersonneForm extends FormPanel implements Rafraichissable {
Line 849... Line 850...
849
		//Le bouton réintialiser recharge la page sans sauvegarder les informations
850
		//Le bouton réintialiser recharge la page sans sauvegarder les informations
850
		Button enregistrer = new Button("Enregistrer et revenir à la liste");
851
		Button enregistrer = new Button("Enregistrer et revenir à la liste");
851
		enregistrer.setIconStyle(ComposantClass.ICONE_PREFERENCE);
852
		enregistrer.setIconStyle(ComposantClass.ICONE_PREFERENCE);
852
		enregistrer.addSelectionListener(new SelectionListener<ComponentEvent>() {  
853
		enregistrer.addSelectionListener(new SelectionListener<ComponentEvent>() {  
853
			public void componentSelected(ComponentEvent ce) {  
854
			public void componentSelected(ComponentEvent ce) {  
854
				// TODO : Enregistrer le formulaire
-
 
-
 
855
				
855
			}  
856
			}  
856
		});
857
		});
857
		enregistrer.setEnabled(false);
858
		enregistrer.setEnabled(false);
Line 858... Line 859...
858
		
859
		
Line 1042... Line 1043...
1042
					((TextField) hmIdentite.get("tfLieuNaissance")).setValue(personne.get("naissance_lieu"));
1043
					((TextField) hmIdentite.get("tfLieuNaissance")).setValue(personne.get("naissance_lieu"));
Line 1043... Line 1044...
1043
					
1044
					
1044
					(((DateField) hmIdentite.get("dfDateDeces"))).setValue(personne.getDate("deces_date"));
1045
					(((DateField) hmIdentite.get("dfDateDeces"))).setValue(personne.getDate("deces_date"));
Line -... Line 1046...
-
 
1046
					((TextField) hmIdentite.get("tfLieuDeces")).setValue(personne.get("deces_lieu"));
1045
					((TextField) hmIdentite.get("tfLieuDeces")).setValue(personne.get("deces_lieu"));
1047
					
1046
					
1048
					
1047
					// Telephone
1049
					// Telephone
Line 1048... Line -...
1048
					HashMap<String, String> hmTelephone = (HashMap<String, String>) personne.getChaineDenormaliseAsMapOrList("truk_telephone");
-
 
1049
					if (hmTelephone!=null)	{
1050
					HashMap<String, String> hmTelephone = (HashMap<String, String>) personne.getChaineDenormaliseAsMapOrList("truk_telephone");
1050
						
1051
					if (hmTelephone!=null)	{
1051
						
1052
						
1052
						ListStore storeTelephone = ((ComboBox) hmIdentite.get("cbTelephone")).getStore();
1053
						ListStore storeTelephone = ((ComboBox) hmIdentite.get("cbTelephone")).getStore();
1053
						List lstModelsTelephone = storeTelephone.getModels();
1054
						List lstModelsTelephone = storeTelephone.getModels();
1054
						Iterator<Valeur> itStore = lstModelsTelephone.iterator();
1055
						Iterator<Valeur> itStore = lstModelsTelephone.iterator();
1055
						HashMap<String, String> hmTel = new HashMap();
1056
						HashMap<String, String> hmTel = new HashMap();
1056
						while (itStore.hasNext())	{
1057
						while (itStore.hasNext())	{
Line 1057... Line -...
1057
							Valeur v = itStore.next();
-
 
1058
							hmTel.put(v.getAbreviation(), v.getNom());
1058
							Valeur v = itStore.next();
1059
						}
1059
							hmTel.put(v.getAbreviation(), v.getNom());
Line 1060... Line 1060...
1060
						
1060
						}
1061
						
1061
						
1062
						Collection<String> colTelephone = hmTelephone.keySet();
1062
						Collection<String> colTelephone = hmTelephone.keySet();
1063
						Iterator<String> itTelephone = colTelephone.iterator();
1063
						Iterator<String> itTelephone = colTelephone.iterator();
1064
					
1064
					
1065
						while (itTelephone.hasNext())	{
1065
						while (itTelephone.hasNext())	{
1066
							String strTypeTelephone = itTelephone.next();
1066
							String strTelephone = itTelephone.next();
Line 1114... Line 1114...
1114
					LinkedList<String> lLogo = (LinkedList<String>) personne.getChaineDenormaliseAsMapOrList("truk_logo");
1114
					LinkedList<String> lLogo = (LinkedList<String>) personne.getChaineDenormaliseAsMapOrList("truk_logo");
1115
					if (lLogo!=null)	{
1115
					if (lLogo!=null)	{
1116
						Iterator<String> itLogo = lLogo.iterator(); 
1116
						Iterator<String> itLogo = lLogo.iterator(); 
1117
						String strValeurLogo = "";
1117
						String strValeurLogo = "";
1118
						while (itLogo.hasNext())	{
1118
						while (itLogo.hasNext())	{
1119
							strValeurLogo += itLogo.next() + "\n";
1119
							strValeurLogo += itLogo.next();
1120
						}
-
 
1121
					
-
 
1122
						if (!strValeurLogo.trim().equals(""))	{
1120
							if (!strValeurLogo.trim().equals(""))	{
1123
							ajouterUrlLogo(strValeurLogo);
1121
								ajouterUrlLogo(strValeurLogo);
-
 
1122
							}
1124
						}
1123
						}
1125
					}
1124
					}
Line 1126... Line 1125...
1126
					
1125
					
1127
					/*--------------------------------------------------
1126
					/*--------------------------------------------------