/trunk/jrest/services/CoelStructure.php |
---|
15,6 → 15,7 |
'csc_mark_formation', 'csc_mark_formation_interet', |
'csc_mark_collection_commune', 'csc_mark_acces_controle', 'csc_mark_restauration', 'csc_mark_traitement', |
'csc_mark_acquisition_collection', 'csc_mark_acquisition_echantillon', |
'csv_mark_action', 'csv_mark_action_future', 'csv_mark_recherche', 'csv_mark_acces_ss_motif', 'csv_mark_visite_avec_motif', |
'cs_latitude', 'cs_longitude', |
); |
/trunk/src/org/tela_botanica/client/modeles/structure/StructureValorisation.java |
---|
48,11 → 48,14 |
} |
// ACTION |
public String getAction() { |
return renvoyerValeurCorrecte("mark_action"); |
public Integer getAction() { |
if (renvoyerValeurCorrecte("mark_action").equals("")) { |
return null; |
} |
return Integer.parseInt(renvoyerValeurCorrecte("mark_action")); |
} |
public void setAction(String a) { |
this.set("mark_action", a); |
this.set("mark_action", a != null ? Integer.parseInt(a) : null); |
} |
// ACTION INFO |
86,11 → 89,14 |
} |
// ACTION FUTURE |
public String getActionFuture() { |
return renvoyerValeurCorrecte("mark_action_future"); |
public Integer getActionFuture() { |
if (renvoyerValeurCorrecte("mark_action_future").equals("")) { |
return null; |
} |
return Integer.parseInt(renvoyerValeurCorrecte("mark_action_future")); |
} |
public void setActionFuture(String af) { |
this.set("mark_action_future", af); |
this.set("mark_action_future", af != null ? Integer.parseInt(af) : null); |
} |
// ACTION FUTURE INFO |
103,11 → 109,15 |
// RECHERCHE |
public String getRecherche() { |
return renvoyerValeurCorrecte("mark_recherche"); |
public Integer getRecherche() { |
if (renvoyerValeurCorrecte("mark_recherche").equals("")) { |
return null; |
} |
return Integer.parseInt(renvoyerValeurCorrecte("mark_recherche")); |
} |
public void setRecherche(String r) { |
this.set("mark_recherche", r); |
this.set("mark_recherche", r != null ? Integer.parseInt(r) : null); |
} |
// RECHERCHE PROVENANCE |
133,11 → 143,15 |
} |
// ACCES SANS MOTIF |
public String getAccesSansMotif() { |
return renvoyerValeurCorrecte("mark_acces_ss_motif"); |
public Integer getAccesSansMotif() { |
if (renvoyerValeurCorrecte("mark_acces_ss_motif").equals("")) { |
return null; |
} |
return Integer.parseInt(renvoyerValeurCorrecte("mark_acces_ss_motif")); |
} |
public void setAccesSansMotif(String asm) { |
this.set("mark_acces_ss_motif", asm); |
this.set("mark_acces_ss_motif", asm != null ? Integer.parseInt(asm) : null); |
} |
// ACCES SANS MOTIF INFO |
149,11 → 163,15 |
} |
// VISITE AVEC MOTIF |
public String getVisiteAvecMotif() { |
return renvoyerValeurCorrecte("mark_visite_avec_motif"); |
public Integer getVisiteAvecMotif() { |
if (renvoyerValeurCorrecte("mark_visite_avec_motif").equals("")) { |
return null; |
} |
return Integer.parseInt(renvoyerValeurCorrecte("mark_visite_avec_motif")); |
} |
public void setVisiteAvecMotif(String vam) { |
this.set("mark_visite_avec_motif", vam); |
this.set("mark_visite_avec_motif", vam != null ? Integer.parseInt(vam) : null); |
} |
// VISITE AVEC MOTIF INFO |
/trunk/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java |
---|
296,18 → 296,18 |
if (structureId != null) { |
postDonnees += "&csv_id_structure=" + URL.encodeComponent(structureId); |
} |
postDonnees += "&csv_mark_action=" + URL.encodeComponent(valorisation.getAction()) + |
postDonnees += "&csv_mark_action=" + (valorisation.getAction() != null ? valorisation.getAction() : "") + |
"&csv_truk_action=" + URL.encodeComponent(valorisation.getActionInfo()) + |
"&csv_publication=" + URL.encodeComponent(valorisation.getPublication()) + |
"&csv_collection_autre=" + URL.encodeComponent(valorisation.getCollectionAutre()) + |
"&csv_mark_action_future=" + URL.encodeComponent(valorisation.getActionFuture()) + |
"&csv_mark_action_future=" + (valorisation.getActionFuture() != null ? valorisation.getActionFuture() : "") + |
"&csv_action_future=" + URL.encodeComponent(valorisation.getActionFutureInfo()) + |
"&csv_mark_recherche=" + URL.encodeComponent(valorisation.getRecherche()) + |
"&csv_mark_recherche=" + (valorisation.getRecherche() != null ? valorisation.getRecherche() : "") + |
"&csv_truk_recherche_provenance=" + URL.encodeComponent(valorisation.getRechercheProvenance()) + |
"&csv_truk_recherche_type=" + URL.encodeComponent(valorisation.getRechercheType()) + |
"&csv_mark_acces_ss_motif=" + URL.encodeComponent(valorisation.getAccesSansMotif()) + |
"&csv_mark_acces_ss_motif=" + (valorisation.getAccesSansMotif() != null ? valorisation.getAccesSansMotif() : "") + |
"&csv_acces_ss_motif=" + URL.encodeComponent(valorisation.getAccesSansMotifInfo()) + |
"&csv_mark_visite_avec_motif=" + URL.encodeComponent(valorisation.getVisiteAvecMotif()) + |
"&csv_mark_visite_avec_motif=" + (valorisation.getVisiteAvecMotif() != null ? valorisation.getVisiteAvecMotif() : "") + |
"&csv_visite_avec_motif=" + URL.encodeComponent(valorisation.getVisiteAvecMotifInfo()); |
} |
return postDonnees; |
/trunk/src/org/tela_botanica/client/vues/structure/StructureFormValorisation.java |
---|
183,7 → 183,9 |
if (formulaireCourant.mode.equals(Formulaire.MODE_MODIFIER) && valorisation != null) { |
// ACTION : |
//TODO : check below: |
((Radio) actionMarkRGrpChp.get((valorisation.getAction().equals("1") ? 0 : 1))).setValue(true); |
if(valorisation.getAction() != null) { |
((Radio) actionMarkRGrpChp.get(valorisation.getAction() ^ 1)).setValue(true); |
} |
// ACTION INFO |
peuplerCasesACocher(valorisation.getActionInfo(), actionTrukCacGrpChp, actionAutreChp); |
195,13 → 197,17 |
peuplerCasesACocher(valorisation.getCollectionAutre(), autreCollectionTrukCacGrpChp, autreCollectionAutreChp); |
// ACTION FUTURE |
((Radio) futureActionMarkRGrpChp.get((valorisation.getActionFuture().equals("1") ? 0 : 1))).setValue(true); |
if(valorisation.getActionFuture() != null) { |
((Radio) futureActionMarkRGrpChp.get(valorisation.getActionFuture() ^ 1)).setValue(true); |
} |
// ACTION FUTURE INFO |
futureActionChp.setValue(valorisation.getActionFutureInfo()); |
// RECHERCHE |
((Radio) rechercheMarkRGrpChp.get((valorisation.getRecherche().equals("1") ? 0 : 1))).setValue(true); |
if(valorisation.getRecherche() != null) { |
((Radio) rechercheMarkRGrpChp.get(valorisation.getRecherche() ^ 1)).setValue(true); |
} |
// RECHERCHE PROVENANCE |
peuplerCasesACocher(valorisation.getRechercheProvenance(), provenanceRechercheTrukCacGrpChp, provenanceRechercheAutreChp); |
// RECHERCHE TYPE |
208,12 → 214,16 |
peuplerCasesACocher(valorisation.getRechercheType(), typeRechercheTrukCacGrpChp, typeRechercheAutreChp); |
// ACCÈS SANS MOTIF |
((Radio) sansMotifAccesMarkRGrpChp.get((valorisation.getAccesSansMotif().equals("1") ? 0 : 1))).setValue(true); |
if(valorisation.getAccesSansMotif() != null) { |
((Radio) sansMotifAccesMarkRGrpChp.get(valorisation.getAccesSansMotif() ^ 1)).setValue(true); |
} |
// ACCÈS SANS MOTIF INFO |
sansMotifAccesChp.setValue(valorisation.getAccesSansMotifInfo()); |
// VISITE AVEC MOTIF |
((Radio) avecMotifAccesMarkRGrpChp.get((valorisation.getVisiteAvecMotif().equals("1") ? 0 : 1))).setValue(true); |
if(valorisation.getVisiteAvecMotif() != null) { |
((Radio) avecMotifAccesMarkRGrpChp.get(valorisation.getVisiteAvecMotif() ^ 1)).setValue(true); |
} |
// VISITE AVEC MOTIF INFO |
avecMotifAccesChp.setValue(valorisation.getVisiteAvecMotifInfo()); |
/trunk/src/org/tela_botanica/client/vues/structure/StructureDetailVue.java |
---|
426,9 → 426,9 |
private String construireRecherche() { |
String cHtml = ""; |
String recherche = valorisation.getRecherche(); |
Integer recherche = valorisation.getRecherche(); |
if (recherche.equals("1")) { |
if (recherche != null && recherche.intValue() == 1) { |
Params rechercheParams = new Params(); |
rechercheParams.set("i18n_recherche_provenance", i18nC.rechercheProvenance()); |
rechercheParams.set("i18n_recherche_type", i18nC.rechercheType()); |