| 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.ValeurListe;
|
7 |
import org.tela_botanica.client.modeles.ValeurListe;
|
| 8 |
import org.tela_botanica.client.modeles.projet.Projet;
|
8 |
import org.tela_botanica.client.modeles.projet.Projet;
|
| 9 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
9 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
| - |
|
10 |
import org.tela_botanica.client.util.Pattern;
|
| - |
|
11 |
import org.tela_botanica.client.util.UtilString;
|
| 10 |
import org.tela_botanica.client.vues.DetailVue;
|
12 |
import org.tela_botanica.client.vues.DetailVue;
|
| Line 11... |
Line 13... |
| 11 |
|
13 |
|
| 12 |
import com.extjs.gxt.ui.client.util.Format;
|
14 |
import com.extjs.gxt.ui.client.util.Format;
|
| 13 |
import com.extjs.gxt.ui.client.util.Params;
|
15 |
import com.extjs.gxt.ui.client.util.Params;
|
| Line 169... |
Line 171... |
| 169 |
contenuParams.set("langue", obtenirValeurLangue(projet.getLangue()));
|
171 |
contenuParams.set("langue", obtenirValeurLangue(projet.getLangue()));
|
| Line 170... |
Line 172... |
| 170 |
|
172 |
|
| Line 171... |
Line 173... |
| 171 |
contenuParams.set("i18n_titre_indexation", i18nC.projetTitreIndexation());
|
173 |
contenuParams.set("i18n_titre_indexation", i18nC.projetTitreIndexation());
|
| 172 |
|
174 |
|
| Line 173... |
Line 175... |
| 173 |
contenuParams.set("i18n_indexation_heure", i18nC.projetIndexationHeure());
|
175 |
contenuParams.set("i18n_indexation_heure", i18nC.projetIndexationHeure());
|
| 174 |
contenuParams.set("indexation_heure", projet.getIndexationHeure());
|
176 |
contenuParams.set("indexation_heure", corrigerIndexationHeure(projet.getIndexationHeure()));
|
| Line 175... |
Line 177... |
| 175 |
|
177 |
|
| Line 184... |
Line 186... |
| 184 |
|
186 |
|
| 185 |
String gHtml = formaterContenu(contenuTpl, contenuParams);
|
187 |
String gHtml = formaterContenu(contenuTpl, contenuParams);
|
| 186 |
contenu.getElement().setInnerHTML(gHtml);
|
188 |
contenu.getElement().setInnerHTML(gHtml);
|
| Line -... |
Line 189... |
| - |
|
189 |
}
|
| - |
|
190 |
|
| - |
|
191 |
private String corrigerIndexationHeure(String heureMinuteSecondeEnBdd) {
|
| - |
|
192 |
String heureMinute = "";
|
| - |
|
193 |
if (!UtilString.isEmpty(heureMinuteSecondeEnBdd)) {
|
| - |
|
194 |
heureMinute = heureMinuteSecondeEnBdd.replaceAll(":00$", "");
|
| - |
|
195 |
}
|
| - |
|
196 |
return heureMinute;
|
| 187 |
}
|
197 |
}
|
| 188 |
|
198 |
|
| 189 |
public void rafraichir(Object nouvellesDonnees) {
|
199 |
public void rafraichir(Object nouvellesDonnees) {
|
| 190 |
if (nouvellesDonnees instanceof Projet) {
|
200 |
if (nouvellesDonnees instanceof Projet) {
|
| 191 |
projet = (Projet) nouvellesDonnees;
|
201 |
projet = (Projet) nouvellesDonnees;
|