Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1694 → Rev 1695

/trunk/src/org/tela_botanica/client/modeles/structure/StructureConservation.java
111,11 → 111,14
}
// COLLECTION COMMUNE
public String getCollectionCommune() {
return renvoyerValeurCorrecte("mark_collection_commune");
public Integer getCollectionCommune() {
if (renvoyerValeurCorrecte("mark_collection_commune").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_collection_commune"));
}
public void setCollectionCommune(String ccm) {
this.set("mark_collection_commune", ccm);
this.set("mark_collection_commune", ccm != null ? Integer.parseInt(ccm) : null);
}
// COLLECTION AUTRE
130,19 → 133,25
}
// ACCÈS CONTROLÉ
public String getAccesControle() {
return renvoyerValeurCorrecte("mark_acces_controle");
public Integer getAccesControle() {
if (renvoyerValeurCorrecte("mark_acces_controle").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_acces_controle"));
}
public void setAccesControle(String ac) {
this.set("mark_acces_controle", ac);
this.set("mark_acces_controle", ac != null ? Integer.parseInt(ac) : null);
}
// RESTAURATION
public String getRestauration() {
return renvoyerValeurCorrecte("mark_restauration");
public Integer getRestauration() {
if (renvoyerValeurCorrecte("mark_restauration").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_restauration"));
}
public void setRestauration(String ccm) {
this.set("mark_restauration", ccm);
this.set("mark_restauration", ccm != null ? Integer.parseInt(ccm) : null);
}
// RESTAURATION OPÉRATION
176,11 → 185,14
}
// TRAITEMENT
public String getTraitement() {
return renvoyerValeurCorrecte("mark_traitement");
public Integer getTraitement() {
if (renvoyerValeurCorrecte("mark_traitement").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_traitement"));
}
public void setTraitement(String t) {
this.set("mark_traitement", t);
this.set("mark_traitement", t != null ? Integer.parseInt(t) : null);
}
// TRAITEMENTS
195,19 → 207,25
}
// ACQUISITION COLLECTION
public String getAcquisitionCollection() {
return renvoyerValeurCorrecte("mark_acquisition_collection");
public Integer getAcquisitionCollection() {
if (renvoyerValeurCorrecte("mark_acquisition_collection").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_acquisition_collection"));
}
public void setAcquisitionCollection(String ac) {
this.set("mark_acquisition_collection", ac);
this.set("mark_acquisition_collection", ac != null ? Integer.parseInt(ac) : null);
}
// ACQUISITION ECHANTILLON
public String getAcquisitionEchantillon() {
return renvoyerValeurCorrecte("mark_acquisition_echantillon");
public Integer getAcquisitionEchantillon() {
if (renvoyerValeurCorrecte("mark_acquisition_echantillon").equals("")) {
return null;
}
return Integer.parseInt(renvoyerValeurCorrecte("mark_acquisition_echantillon"));
}
public void setAcquisitionEchantillon(String ae) {
this.set("mark_acquisition_echantillon", ae);
this.set("mark_acquisition_echantillon", ae != null ? Integer.parseInt(ae) : null);
}
// ACQUISITION TRAITEMENT