Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 386 Rev 433
Line 912... Line 912...
912
			if (info.getType().equals("ajout_personne"))	{
912
			if (info.getType().equals("ajout_personne"))	{
Line 913... Line 913...
913
				
913
				
914
				personneSelectionnee.set("id_personne", info.toString());
914
				personneSelectionnee.set("id_personne", info.toString());
Line 915... Line 915...
915
				GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
915
				GWT.log("Ajout de la personne " + personneSelectionnee.getId(), null);
916
				
916
				
Line -... Line 917...
-
 
917
				Info.display("Enregistrement", "La personne a été ajoutée (PID:" + personneSelectionnee.getId() + ")");
-
 
918
				//Passer en mode modifier
-
 
919
				
-
 
920
			} else if (info.getType().equals("modification_personne"))	{
917
				Info.display("Enregistrement", "Les modifications apportées à la personne " + personneSelectionnee.getId() + " ont été enregistrées");
921
				
-
 
922
				Info.display("Enregistrement", "Les modifications apportées à la personne " + personneSelectionnee.getId() + " ont été correctement enregistrées.");
918
				//Passer en mode modifier
923
				
919
				
924
			} else if (info.getType().equals("suppression_personne"))	{
920
			} else if (info.getType().equals("suppression_personne"))	{
925
				
Line 1013... Line 1018...
1013
						ajouterCourriel(strEmail);
1018
						ajouterCourriel(strEmail);
1014
					}
1019
					}
Line 1015... Line 1020...
1015
					
1020
					
1016
					// Sites
1021
					// Sites
-
 
1022
					LinkedList<String> lUrl = (LinkedList<String>) personne.getChaineDenormaliseAsMapOrList("truk_url");
1017
					LinkedList<String> lUrl = (LinkedList<String>) personne.getChaineDenormaliseAsMapOrList("truk_url");
1023
					if (lUrl!=null) {
1018
					Iterator<String> itUrl = lUrl.iterator(); 
-
 
1019
					
-
 
1020
					
1024
						Iterator<String> itUrl = lUrl.iterator(); 
1021
					while (itUrl.hasNext())	{
1025
						while (itUrl.hasNext())	{
1022
						String strUrl = itUrl.next();
1026
							String strUrl = itUrl.next();
-
 
1027
							ajouterUrl(strUrl);
1023
						ajouterUrl(strUrl);
1028
						}
Line 1024... Line 1029...
1024
					}
1029
					}
1025
					
1030
					
1026
					// Sexe
1031
					// Sexe
Line 1038... Line 1043...
1038
					((TextArea) hmIdentite.get("taDescription")).setRawValue((String) personne.get("description"));
1043
					((TextArea) hmIdentite.get("taDescription")).setRawValue((String) personne.get("description"));
Line 1039... Line 1044...
1039
					
1044
					
1040
					// Logos
1045
					// Logos
1041
					TextArea taLogo = (TextArea) hmIdentite.get("taLogo");
1046
					TextArea taLogo = (TextArea) hmIdentite.get("taLogo");
-
 
1047
					LinkedList<String> lLogo = (LinkedList<String>) personne.getChaineDenormaliseAsMapOrList("truk_logo");
1042
					LinkedList<String> lLogo = (LinkedList<String>) personne.getChaineDenormaliseAsMapOrList("truk_logo");
1048
					if (lLogo!=null)	{
1043
					Iterator<String> itLogo = lLogo.iterator(); 
-
 
1044
					
1049
						Iterator<String> itLogo = lLogo.iterator(); 
1045
					String strValeurLogo = "";
1050
						String strValeurLogo = "";
1046
					while (itLogo.hasNext())	{
1051
						while (itLogo.hasNext())	{
1047
						strValeurLogo += itLogo.next() + "\n";
1052
							strValeurLogo += itLogo.next() + "\n";
Line 1048... Line 1053...
1048
					}
1053
						}
1049
					
1054
					
-
 
1055
						if (!strValeurLogo.trim().equals(""))	{
1050
					if (!strValeurLogo.trim().equals(""))	{
1056
							taLogo.setRawValue(strValeurLogo);
Line 1051... Line -...
1051
						taLogo.setRawValue(strValeurLogo);
-
 
1052
					}
1057
						}
1053
					
1058
					}
1054
					
1059
					
Line 1055... Line 1060...
1055
					/*--------------------------------------------------
1060
					/*--------------------------------------------------