Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 453 Rev 468
Line 5... Line 5...
5
import org.tela_botanica.client.Mediateur;
5
import org.tela_botanica.client.Mediateur;
6
import org.tela_botanica.client.interfaces.Rafraichissable;
6
import org.tela_botanica.client.interfaces.Rafraichissable;
7
import org.tela_botanica.client.modeles.Collection;
7
import org.tela_botanica.client.modeles.Collection;
8
import org.tela_botanica.client.modeles.ProjetListe;
8
import org.tela_botanica.client.modeles.ProjetListe;
9
import org.tela_botanica.client.modeles.Structure;
9
import org.tela_botanica.client.modeles.Structure;
10
import org.tela_botanica.client.modeles.StructureListe;
-
 
11
import org.tela_botanica.client.modeles.ValeurListe;
10
import org.tela_botanica.client.modeles.ValeurListe;
Line 12... Line 11...
12
 
11
 
13
import com.extjs.gxt.ui.client.Style.Scroll;
12
import com.extjs.gxt.ui.client.Style.Scroll;
14
import com.extjs.gxt.ui.client.util.Format;
13
import com.extjs.gxt.ui.client.util.Format;
Line 21... Line 20...
21
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
20
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
22
import com.google.gwt.core.client.GWT;
21
import com.google.gwt.core.client.GWT;
Line 23... Line 22...
23
 
22
 
Line 24... Line 23...
24
public class CollectionDetailVue extends DetailVue implements Rafraichissable {
23
public class CollectionDetailVue extends DetailVue implements Rafraichissable {
Line 25... Line 24...
25
 
24
 
26
	private StructureListe structures = null;
25
	private Structure structure = null;
Line 27... Line 26...
27
	
26
	
Line 117... Line 116...
117
		Params enteteParams = new Params();
116
		Params enteteParams = new Params();
118
		enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
117
		enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
119
		enteteParams.set("css_meta", ComposantClass.META);
118
		enteteParams.set("css_meta", ComposantClass.META);
Line 120... Line 119...
120
		
119
		
121
		enteteParams.set("nom", collection.getNom());
120
		enteteParams.set("nom", collection.getNom());
122
		enteteParams.set("structure", construireTxtStructure(collection.getIdStructure()));
121
		enteteParams.set("structure", collection.getStructureNom());
123
		enteteParams.set("id", collection.getId());
122
		enteteParams.set("id", collection.getId());
124
		enteteParams.set("guid", collection.getGuid());
123
		enteteParams.set("guid", collection.getGuid());
Line 125... Line 124...
125
		enteteParams.set("projet", construireTxtProjet(collection.getIdProjet()));
124
		enteteParams.set("projet", construireTxtProjet(collection.getIdProjet()));
Line 138... Line 137...
138
		generalParams.set("acronyme", acronyme);
137
		generalParams.set("acronyme", acronyme);
Line 139... Line 138...
139
		
138
		
140
		afficherOnglet(generalTpl, generalParams, generalOnglet);
139
		afficherOnglet(generalTpl, generalParams, generalOnglet);
Line 141... Line 140...
141
	}
140
	}
142
	
141
	
143
	protected String construireTxtStructure(String idStructure) {
-
 
144
		String chaineARetourner = idStructure;
142
	protected String getNomStructure() {
145
		
-
 
146
		if (structures != null) {
143
		String nomStructure = "";
147
			Structure structure = structures.get(idStructure);
144
		if (structure != null) {
148
			String nomStructure = structure.getNom();
145
			nomStructure = structure.getNom();
149
			if  (!nomStructure.equals("")) {
-
 
150
				chaineARetourner = nomStructure;
146
		} else {
151
			}
-
 
152
		}
147
			nomStructure = collection.getIdStructure();
153
		
148
		}
154
		return chaineARetourner;
149
		return nomStructure;