128,7 → 128,7 |
modelTypeProjets.addField("cpr_id_projet"); |
|
String displayNameProjets = "cpr_nom"; |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(sequenceur); |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(null); |
|
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets); |
projetsCombo.setWidth(250, 600); |
167,7 → 167,7 |
modelTypeStructures.addField("cs_id_structure"); |
|
String displayNameStructures = "cs_nom"; |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(sequenceur); |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(null); |
|
structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures); |
structuresCombo.setWidth(250, 600); |
205,7 → 205,7 |
modelTypeCollections.addField("cc_ce_mere"); |
|
String displayNameCollections = "cc_nom"; |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(sequenceur); |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(null); |
|
collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections); |
collectionsCombo.setWidth(250, 600); |
418,9 → 418,14 |
} |
return valeur; |
} |
private void setValeurComboProjets() { |
if (projetsCombo.getStore() != null && collection != null) { |
projetsCombo.getCombo().setValue(projetsCombo.getStore().findModel("cpr_id_projet", collection.getIdProjet())); |
private void setValeurComboProjets() { |
if (projetsCombo.getCombo().getStore() != null |
&& collection != null |
&& collection.getIdProjet() != null |
&& !UtilString.isEmpty(collection.getIdProjet())) { |
projetsCombo.chargerValeurInitiale(collection.getIdProjet(), "cpr_id_projet"); |
} else { |
projetsCombo.getCombo().setValue(null); |
} |
} |
|