Subversion Repositories eFlore/Applications.coel

Rev

Rev 1219 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1219 Rev 1327
Line 4... Line 4...
4
import java.util.List;
4
import java.util.List;
Line 5... Line 5...
5
 
5
 
6
import org.tela_botanica.client.modeles.aDonnee;
6
import org.tela_botanica.client.modeles.aDonnee;
Line -... Line 7...
-
 
7
import org.tela_botanica.client.util.Debug;
7
import org.tela_botanica.client.util.Debug;
8
 
Line 8... Line 9...
8
 
9
import com.extjs.gxt.ui.client.data.ModelData;
Line 9... Line 10...
9
import com.google.gwt.json.client.JSONObject;
10
import com.google.gwt.json.client.JSONObject;
Line 20... Line 21...
20
	public static String[] champsObligatoires = {"cc_id_collection","cc_ce_type"};
21
	public static String[] champsObligatoires = {"cc_id_collection","cc_ce_type"};
Line 21... Line 22...
21
		
22
		
22
	public Collection() {
23
	public Collection() {
Line -... Line 24...
-
 
24
	}
-
 
25
	
-
 
26
	public Collection(ModelData model)
-
 
27
	{		
-
 
28
		this.set("id_collection", model.get("cc_id_collection"));
-
 
29
		this.set("nom", model.get("cc_nom"));
23
	}
30
	}
24
	
31
	
25
	public Collection(JSONObject collection) {
32
	public Collection(JSONObject collection) {
Line 26... Line 33...
26
		initialiserModele(collection);
33
		initialiserModele(collection);
Line 206... Line 213...
206
	public void setGroupementBut(String groupementBut) {
213
	public void setGroupementBut(String groupementBut) {
207
		this.set("truk_groupement_but", groupementBut);
214
		this.set("truk_groupement_but", groupementBut);
208
	}
215
	}
Line 209... Line 216...
209
	
216
	
210
	// TYPE NCD
217
	// TYPE NCD
211
	public String getTypeNcd() {
218
	public String getTypeNcd() {		
212
		return renvoyerValeurCorrecte("ce_type");
219
		return renvoyerValeurCorrecte("ce_type");
213
	}
220
	}
214
	public void setTypeNcd(String typeNcd) {
221
	public void setTypeNcd(String typeNcd) {
215
		this.set("ce_type", typeNcd);
222
		this.set("ce_type", typeNcd);