Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 13 Rev 27
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
	// TODO : Singleton ?
5
	
6
	
6
	private String name=null;
7
	private String name=null;
7
	private String nomenclaturalNumber=null;
8
	private String nomenclaturalNumber=null;
8
	private String location=null;
9
	private String location=null;
9
	private String location_id=null;
10
	private String location_id=null;
10
	private String date=null;
11
	private String date=null;
11
	private String complementlocation=null;
12
	private String milieu=null;
12
	private String comment=null;
13
	private String comment=null;
13
	private String ordre=null;
14
	private String ordre=null;
-
 
15
 
-
 
16
 
-
 
17
	
-
 
18
//	 Constructeur  
-
 
19
	
-
 
20
	
-
 
21
	// Constructeur sur saisie 
-
 
22
	
-
 
23
	public InventoryItem() {
-
 
24
 
-
 
25
	}
-
 
26
 
-
 
27
	
14
 
28
	// Alimentation contenu depuis saisie
15
	
29
	
16
	public InventoryItem(String name,String nomenclaturalNumber, String location, String location_id, String date, String complementlocation, String comment,String ordre) {
30
	public void setContent(String name,String nomenclaturalNumber, String location, String location_id, String date, String milieu, String comment,String ordre) {
17
 
31
 
18
		
32
		
19
		this.name=name;
33
		this.name=name;
20
		this.nomenclaturalNumber=nomenclaturalNumber;
34
		this.nomenclaturalNumber=nomenclaturalNumber;
21
 
35
 
22
	 // Suppresion indication departementale (on pourrait faire mieux !!)
36
	 // Suppresion indication departementale (on pourrait faire mieux !!)
23
		int pos=location.indexOf(" (" );
37
		int pos=location.indexOf(" (" );
24
	    if (pos>=0) {
38
	    if (pos>=0) {
25
	    	this.location=location.substring(0,pos);
39
	    	this.location=location.substring(0,pos);
26
	    }
40
	    }
27
		else {
41
		else {
28
			 this.location=location;
42
			 this.location=location;
29
		}
43
		}
30
		 
44
		 
31
		this.location_id=location_id;
45
		this.location_id=location_id;
32
		this.date=date;
46
		this.date=date;
33
		this.complementlocation=complementlocation;
47
		this.milieu=milieu;
34
		this.comment=comment;
48
		this.comment=comment;
35
		this.ordre=ordre;
49
		this.ordre=ordre;
36
		
50
		
37
	}
51
	}
38
 
52
 
-
 
53
 
39
 
54
 
40
	public String getLocation() {
55
	public String getLocation() {
41
		return location;
56
		return location;
42
	}
57
	}
43
 
58
 
44
 
59
 
45
	public String getLocation_id() {
60
	public String getLocation_id() {
46
		return location_id;
61
		return location_id;
47
	}
62
	}
48
 
63
 
49
 
64
 
50
	public String getName() {
65
	public String getName() {
51
		return name;
66
		return name;
52
	}
67
	}
53
 
68
 
54
 
69
 
55
	public String getNomenclaturalNumber() {
70
	public String getNomenclaturalNumber() {
56
		return nomenclaturalNumber;
71
		return nomenclaturalNumber;
57
	}
72
	}
58
 
73
 
59
 
74
 
60
	public String getComment() {
75
	public String getComment() {
61
		return comment;
76
		return comment;
62
	}
77
	}
63
 
78
 
64
 
79
 
65
	public String getComplementlocation() {
80
	public String getMilieu() {
66
		return complementlocation;
81
		return milieu;
67
	}
82
	}
68
 
83
 
69
 
84
 
70
	public String getDate() {
85
	public String getDate() {
71
		return date;
86
		return date;
72
	}
87
	}
73
 
88
 
74
 
89
 
75
	public String getOrdre() {
90
	public String getOrdre() {
76
		return ordre;
91
		return ordre;
77
	}
92
	}
78
	
93
	
79
}
94
}