Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 12 | Rev 27 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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