Line 33... |
Line 33... |
33 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
33 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
34 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
34 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
35 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
35 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
36 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
36 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
37 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
37 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
- |
|
38 |
import com.google.gwt.user.client.Window;
|
Line 38... |
Line 39... |
38 |
|
39 |
|
Line 39... |
Line 40... |
39 |
public class ProjetForm extends Formulaire implements Rafraichissable {
|
40 |
public class ProjetForm extends Formulaire implements Rafraichissable {
|
Line 66... |
Line 67... |
66 |
private boolean formulaireValideOk = false;
|
67 |
private boolean formulaireValideOk = false;
|
67 |
private boolean projetValideOk = false;
|
68 |
private boolean projetValideOk = false;
|
Line 68... |
Line 69... |
68 |
|
69 |
|
Line 69... |
Line 70... |
69 |
private Sequenceur sequenceur = new Sequenceur();
|
70 |
private Sequenceur sequenceur = new Sequenceur();
|
Line 70... |
Line 71... |
70 |
|
71 |
|
71 |
private Rafraichissable vueExterneARafraichirApresValidation = null;
|
72 |
public Rafraichissable vueExterneARafraichirApresValidation = null;
|
72 |
|
73 |
|
Line 297... |
Line 298... |
297 |
genererTitreFormulaire();
|
298 |
genererTitreFormulaire();
|
298 |
}
|
299 |
}
|
299 |
if (type.equals("ajout_projet") || type.equals("modif_projet")) {
|
300 |
if (type.equals("ajout_projet") || type.equals("modif_projet")) {
|
300 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
301 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
301 |
projetValideOk = true;
|
302 |
projetValideOk = true;
|
- |
|
303 |
if(!type.equals("modif_projet")) {
|
302 |
String projetId = (String) info.getDonnee(0);
|
304 |
String projetId = (String) info.getDonnee(0);
|
303 |
if (vueExterneARafraichirApresValidation != null) {
|
305 |
if (vueExterneARafraichirApresValidation != null) {
|
304 |
projet.setId(projetId);
|
306 |
projet.setId(projetId);
|
- |
|
307 |
}
|
305 |
}
|
308 |
}
|
- |
|
309 |
controlerFermeture();
|
306 |
}
|
310 |
}
|
307 |
}
|
311 |
}
|
Line 308... |
Line 312... |
308 |
|
312 |
|
309 |
// Gestion des messages
|
313 |
// Gestion des messages
|
310 |
if (type.equals("selection_projet")) {
|
314 |
if (type.equals("selection_projet")) {
|
311 |
InfoLogger.display(i18nC.projetTitreFormModif(), info.toString());
|
315 |
InfoLogger.display(i18nC.projetTitreFormModif(), info.toString());
|
312 |
} else if (type.equals("modif_projet")) {
|
316 |
} else if (type.equals("modif_projet")) {
|
313 |
InfoLogger.display(i18nC.projetTitreFormModif(), info.toString());
|
317 |
//InfoLogger.display(i18nC.projetTitreFormModif(), info.toString());
|
314 |
} else if (type.equals("ajout_projet")) {
|
318 |
} else if (type.equals("ajout_projet")) {
|
315 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
319 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
316 |
String projetId = (String) info.getDonnee(0);
|
320 |
String projetId = (String) info.getDonnee(0);
|
317 |
InfoLogger.display(i18nC.projetTitreFormAjout(), "Le projet '"+projetId+"' a bien été ajouté");
|
321 |
InfoLogger.display(i18nC.projetTitreFormAjout(), "Le projet '"+projetId+"' a bien été ajouté");
|