Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 12 | Rev 27 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12 ddelon 1
package org.tela_botanica.client;
2
 
3
public class InventoryItem {
4
 
5
 
6
	private String name=null;
7
	private String nomenclaturalNumber=null;
8
	private String location=null;
9
	private String location_id=null;
10
	private String date=null;
11
	private String complementlocation=null;
12
	private String comment=null;
13 ddelon 13
	private String ordre=null;
12 ddelon 14
 
15
 
13 ddelon 16
	public InventoryItem(String name,String nomenclaturalNumber, String location, String location_id, String date, String complementlocation, String comment,String ordre) {
12 ddelon 17
 
18
 
19
		this.name=name;
20
		this.nomenclaturalNumber=nomenclaturalNumber;
21
 
22
	 // Suppresion indication departementale (on pourrait faire mieux !!)
23
		int pos=location.indexOf(" (" );
24
	    if (pos>=0) {
25
	    	this.location=location.substring(0,pos);
26
	    }
27
		else {
28
			 this.location=location;
29
		}
30
 
31
		this.location_id=location_id;
32
		this.date=date;
33
		this.complementlocation=complementlocation;
34
		this.comment=comment;
13 ddelon 35
		this.ordre=ordre;
12 ddelon 36
 
37
	}
38
 
39
 
40
	public String getLocation() {
41
		return location;
42
	}
43
 
44
 
45
	public String getLocation_id() {
46
		return location_id;
47
	}
48
 
49
 
50
	public String getName() {
51
		return name;
52
	}
53
 
54
 
55
	public String getNomenclaturalNumber() {
56
		return nomenclaturalNumber;
57
	}
58
 
59
 
60
	public String getComment() {
61
		return comment;
62
	}
63
 
64
 
65
	public String getComplementlocation() {
66
		return complementlocation;
67
	}
68
 
69
 
70
	public String getDate() {
71
		return date;
72
	}
13 ddelon 73
 
74
 
75
	public String getOrdre() {
76
		return ordre;
77
	}
12 ddelon 78
 
79
}