/trunk/src/org/tela_botanica/client/modeles/collection/CollectionBotanique.java |
---|
382,12 → 382,12 |
this.set("ce_inventaire_etat", inventaireEtat); |
} |
// INVENTAIRE DONNÉES TYPES |
public String getInventaireDonneesTypes() { |
//DELETEME ::: INVENTAIRE DONNÉES TYPES |
/*public String getInventaireDonneesTypes() { |
return renvoyerValeurCorrecte("inventaire_donnee_type"); |
} |
public void setInventaireDonneesTypes(String inventaireDonneesTypes) { |
this.set("inventaire_donnee_type", inventaireDonneesTypes); |
} |
}*/ |
} |
/trunk/src/org/tela_botanica/client/modeles/collection/Collection.java |
---|
4,6 → 4,7 |
import java.util.List; |
import org.tela_botanica.client.modeles.aDonnee; |
import org.tela_botanica.client.util.Debug; |
import com.google.gwt.json.client.JSONObject; |
323,7 → 324,10 |
return renvoyerValeurCorrecte("truk_periode_constitution"); |
} |
public void setPeriodeConstitution(String periodeConstitution) { |
this.set("truk_periode_constitution", periodeConstitution); |
if (periodeConstitution.equals(new String(""))) |
this.set("truk_periode_constitution", null); |
else |
this.set("truk_periode_constitution", periodeConstitution); |
} |
// COUVERTURE LIEU |
/trunk/src/org/tela_botanica/client/modeles/structure/StructureAPersonne.java |
---|
5,6 → 5,7 |
import org.tela_botanica.client.modeles.aDonnee; |
import org.tela_botanica.client.modeles.personne.Personne; |
import org.tela_botanica.client.util.UtilString; |
import com.google.gwt.json.client.JSONObject; |
250,6 → 251,14 |
set("nom", nom); |
} |
// NOM COMPLET |
public String getNomComplet() { |
return renvoyerValeurCorrecte("fmt_nom_complet"); |
} |
public void setNomComplet(String nomComplet) { |
set("fmt_nom_complet", nomComplet); |
} |
// TÉLÉPHONE |
public String getTelephone() { |
return renvoyerValeurCorrecte("telephone"); |
263,7 → 272,7 |
return getInfoDenormaliseParType(renvoyerValeurCorrecte("telephone"), Personne.TELEPHONE_FIXE); |
} |
public void setTelephoneFixe(String fixe) { |
// Nous remplaçons le premier numéro de Téléphone FIX de la personne |
// Nous remplaçons le premier numéro de Téléphone FIXE de la personne |
modifierChaineDenormaliseParType("telephone", Personne.TELEPHONE_FIXE, fixe); |
} |
/trunk/src/org/tela_botanica/client/modeles/structure/StructureAPersonneAsyncDao.java |
---|
6,6 → 6,7 |
import org.tela_botanica.client.http.JsonRestRequestCallback; |
import org.tela_botanica.client.interfaces.Rafraichissable; |
import org.tela_botanica.client.modeles.Information; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilDAO; |
import com.extjs.gxt.ui.client.Registry; |
57,6 → 58,11 |
} |
public void ajouter(String structureId, StructureAPersonne personnel) { |
Debug.log("<<<< BEGIN StructureAPersonneAsyncDao.ajouter()"); |
Debug.log("<<<< StructureAPersonneAsyncDao.ajouter(), personnel="+personnel.toString()); |
String postDonneesEncodees = construirePost(structureId, personnel); |
final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM); |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() { |
72,6 → 78,9 |
} |
} |
}); |
Debug.log("<<<< END StructureAPersonneAsyncDao.supprimer()"); |
} |
public void modifier(StructureAPersonne personnel) { |
128,6 → 137,7 |
"&cp_ce_projet=" + URL.encodeComponent(personnel.getIdProjetPersonne()) + |
"&cp_prenom=" + URL.encodeComponent(personnel.getPrenom()) + |
"&cp_nom=" + URL.encodeComponent(personnel.getNom()) + |
"&cp_fmt_nom_complet=" + URL.encodeComponent(personnel.getNomComplet()) + |
"&cp_truk_telephone=" + URL.encodeComponent(personnel.getTelephone()) + |
"&cp_truk_courriel=" + URL.encodeComponent(personnel.getCourriel()) + |
"&cp_ce_truk_specialite=" + URL.encodeComponent(personnel.getSpecialite()) + |
/trunk/src/org/tela_botanica/client/modeles/UtilisateurAsyncDao.java |
---|
78,9 → 78,9 |
if (responseValue.isArray() != null) { |
final JSONArray reponse = responseValue.isArray(); |
// Identifiant utilisateur ou identifiant de session si non identifié |
String id = ((JSONString) reponse.get(2)).stringValue(); |
String id = ((JSONString) reponse.get(1)).stringValue(); |
// Drapeau levé si l'utilisateur est déjà identifié |
boolean identifie = ((JSONBoolean) reponse.get(3)).booleanValue(); |
boolean identifie = ((JSONBoolean) reponse.get(2)).booleanValue(); |
// Nous réinitialisons l'utilisateur |
utilisateur = new Utilisateur(id, identifie); |
125,22 → 125,22 |
if (reponse.size() > 3) { |
// Nom complet de l'utilisateur |
if (reponse.get(3).isString() != null) { |
utilisateur.setNomComplet(((JSONString) reponse.get(4)).stringValue()); |
utilisateur.setNomComplet(((JSONString) reponse.get(3)).stringValue()); |
} |
// Prénom de l'utilisateur |
if (reponse.get(4).isString() != null) { |
utilisateur.setPrenom(((JSONString) reponse.get(5)).stringValue()); |
utilisateur.setPrenom(((JSONString) reponse.get(4)).stringValue()); |
} |
// Nom de l'utilisateur |
if (reponse.get(5).isString() != null) { |
utilisateur.setNom(((JSONString) reponse.get(6)).stringValue()); |
utilisateur.setNom(((JSONString) reponse.get(5)).stringValue()); |
} |
// Paramètres |
if (reponse.get(6).isString() != null) { |
Debug.log(((JSONString) reponse.get(7)).stringValue()); |
utilisateur.setParametre(((JSONString) reponse.get(7)).stringValue()); |
Debug.log(((JSONString) reponse.get(6)).stringValue()); |
utilisateur.setParametre(((JSONString) reponse.get(6)).stringValue()); |
} |
} |