Rev 13 | Rev 28 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client;
public class InventoryItem {
// TODO : Singleton ?
private String name=null;
private String nomenclaturalNumber=null;
private String location=null;
private String location_id=null;
private String date=null;
private String milieu=null;
private String comment=null;
private String ordre=null;
// Constructeur
// Constructeur sur saisie
public InventoryItem() {
}
// Alimentation contenu depuis saisie
public void setContent(String name,String nomenclaturalNumber, String location, String location_id, String date, String milieu, String comment,String ordre) {
this.name=name;
this.nomenclaturalNumber=nomenclaturalNumber;
// Suppresion indication departementale (on pourrait faire mieux !!)
int pos=location.indexOf(" (" );
if (pos>=0) {
this.location=location.substring(0,pos);
}
else {
this.location=location;
}
this.location_id=location_id;
this.date=date;
this.milieu=milieu;
this.comment=comment;
this.ordre=ordre;
}
public String getLocation() {
return location;
}
public String getLocation_id() {
return location_id;
}
public String getName() {
return name;
}
public String getNomenclaturalNumber() {
return nomenclaturalNumber;
}
public String getComment() {
return comment;
}
public String getMilieu() {
return milieu;
}
public String getDate() {
return date;
}
public String getOrdre() {
return ordre;
}
}