69,6 → 69,7 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar; |
import com.google.gwt.core.client.GWT; |
import com.google.gwt.i18n.client.DateTimeFormat; |
import com.google.gwt.user.client.Window; |
import com.google.gwt.user.client.ui.Widget; |
|
public class PersonneForm extends FormPanel implements Rafraichissable { |
851,7 → 852,7 |
enregistrer.setIconStyle(ComposantClass.ICONE_PREFERENCE); |
enregistrer.addSelectionListener(new SelectionListener<ComponentEvent>() { |
public void componentSelected(ComponentEvent ce) { |
// TODO : Enregistrer le formulaire |
|
} |
}); |
enregistrer.setEnabled(false); |
1044,11 → 1045,11 |
(((DateField) hmIdentite.get("dfDateDeces"))).setValue(personne.getDate("deces_date")); |
((TextField) hmIdentite.get("tfLieuDeces")).setValue(personne.get("deces_lieu")); |
|
|
// Telephone |
HashMap<String, String> hmTelephone = (HashMap<String, String>) personne.getChaineDenormaliseAsMapOrList("truk_telephone"); |
if (hmTelephone!=null) { |
|
|
ListStore storeTelephone = ((ComboBox) hmIdentite.get("cbTelephone")).getStore(); |
List lstModelsTelephone = storeTelephone.getModels(); |
Iterator<Valeur> itStore = lstModelsTelephone.iterator(); |
1058,13 → 1059,12 |
hmTel.put(v.getAbreviation(), v.getNom()); |
} |
|
|
Collection<String> colTelephone = hmTelephone.keySet(); |
Iterator<String> itTelephone = colTelephone.iterator(); |
|
while (itTelephone.hasNext()) { |
String strTypeTelephone = itTelephone.next(); |
String strTelephone = hmTelephone.get(strTypeTelephone); |
String strTelephone = itTelephone.next(); |
String strTypeTelephone = hmTelephone.get(strTelephone); |
String idTel = hmTel.get(strTypeTelephone); |
if (idTel == null) { |
idTel = strTypeTelephone; |
1116,12 → 1116,11 |
Iterator<String> itLogo = lLogo.iterator(); |
String strValeurLogo = ""; |
while (itLogo.hasNext()) { |
strValeurLogo += itLogo.next() + "\n"; |
strValeurLogo += itLogo.next(); |
if (!strValeurLogo.trim().equals("")) { |
ajouterUrlLogo(strValeurLogo); |
} |
} |
|
if (!strValeurLogo.trim().equals("")) { |
ajouterUrlLogo(strValeurLogo); |
} |
} |
|
/*-------------------------------------------------- |