Line 126... |
Line 126... |
126 |
modelTypeProjets.setTotalName("nbElements");
|
126 |
modelTypeProjets.setTotalName("nbElements");
|
127 |
modelTypeProjets.addField("cpr_nom");
|
127 |
modelTypeProjets.addField("cpr_nom");
|
128 |
modelTypeProjets.addField("cpr_id_projet");
|
128 |
modelTypeProjets.addField("cpr_id_projet");
|
Line 129... |
Line 129... |
129 |
|
129 |
|
130 |
String displayNameProjets = "cpr_nom";
|
130 |
String displayNameProjets = "cpr_nom";
|
Line 131... |
Line 131... |
131 |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(sequenceur);
|
131 |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(null);
|
132 |
|
132 |
|
133 |
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets);
|
133 |
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets);
|
134 |
projetsCombo.setWidth(250, 600);
|
134 |
projetsCombo.setWidth(250, 600);
|
Line 165... |
Line 165... |
165 |
modelTypeStructures.setTotalName("nbElements");
|
165 |
modelTypeStructures.setTotalName("nbElements");
|
166 |
modelTypeStructures.addField("cs_nom");
|
166 |
modelTypeStructures.addField("cs_nom");
|
167 |
modelTypeStructures.addField("cs_id_structure");
|
167 |
modelTypeStructures.addField("cs_id_structure");
|
Line 168... |
Line 168... |
168 |
|
168 |
|
169 |
String displayNameStructures = "cs_nom";
|
169 |
String displayNameStructures = "cs_nom";
|
Line 170... |
Line 170... |
170 |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(sequenceur);
|
170 |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(null);
|
171 |
|
171 |
|
172 |
structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures);
|
172 |
structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures);
|
173 |
structuresCombo.setWidth(250, 600);
|
173 |
structuresCombo.setWidth(250, 600);
|
Line 203... |
Line 203... |
203 |
modelTypeCollections.addField("cc_nom");
|
203 |
modelTypeCollections.addField("cc_nom");
|
204 |
modelTypeCollections.addField("cc_id_collection");
|
204 |
modelTypeCollections.addField("cc_id_collection");
|
205 |
modelTypeCollections.addField("cc_ce_mere");
|
205 |
modelTypeCollections.addField("cc_ce_mere");
|
Line 206... |
Line 206... |
206 |
|
206 |
|
207 |
String displayNameCollections = "cc_nom";
|
207 |
String displayNameCollections = "cc_nom";
|
Line 208... |
Line 208... |
208 |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(sequenceur);
|
208 |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(null);
|
209 |
|
209 |
|
210 |
collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections);
|
210 |
collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections);
|
211 |
collectionsCombo.setWidth(250, 600);
|
211 |
collectionsCombo.setWidth(250, 600);
|
Line 416... |
Line 416... |
416 |
Projet projet = new Projet(projetsCombo.getValeur());
|
416 |
Projet projet = new Projet(projetsCombo.getValeur());
|
417 |
valeur = projet.getId();
|
417 |
valeur = projet.getId();
|
418 |
}
|
418 |
}
|
419 |
return valeur;
|
419 |
return valeur;
|
420 |
}
|
420 |
}
|
421 |
private void setValeurComboProjets() {
|
421 |
private void setValeurComboProjets() {
|
422 |
if (projetsCombo.getStore() != null && collection != null) {
|
422 |
if (projetsCombo.getCombo().getStore() != null
|
- |
|
423 |
&& collection != null
|
- |
|
424 |
&& collection.getIdProjet() != null
|
- |
|
425 |
&& !UtilString.isEmpty(collection.getIdProjet())) {
|
423 |
projetsCombo.getCombo().setValue(projetsCombo.getStore().findModel("cpr_id_projet", collection.getIdProjet()));
|
426 |
projetsCombo.chargerValeurInitiale(collection.getIdProjet(), "cpr_id_projet");
|
- |
|
427 |
} else {
|
- |
|
428 |
projetsCombo.getCombo().setValue(null);
|
424 |
}
|
429 |
}
|
425 |
}
|
430 |
}
|
Line 426... |
Line 431... |
426 |
|
431 |
|
427 |
private String getValeurComboStructures() {
|
432 |
private String getValeurComboStructures() {
|