Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1255 → Rev 1256

/branches/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureForm.java
1038,7 → 1038,7
int nbrePersonne = personnelGrilleMagazin.getCount();
for (int i = 0; i < nbrePersonne; i++) {
StructureAPersonne personne = personnelGrilleMagazin.getAt(i);
 
// Seules les lignes ajoutées ou modifiées sont prises en compte.
Record record = personnelGrilleMagazin.getRecord(personne);
if (personnelGrilleMagazin.getModifiedRecords().contains(record) == true
1181,7 → 1181,7
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT));
personnelOnglet.setStyleAttribute("padding", "0");
personnelOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
public void handleEvent(ComponentEvent be) {
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
personnelOnglet.setData("acces", true);
1484,7 → 1484,16
personnelGrilleMagazin.addListener(Store.Update, new Listener<StoreEvent<StructureAPersonne>>() {
public void handleEvent(StoreEvent<StructureAPersonne> ce) {
ce.getModel().set("etat", aDonnee.ETAT_MODIFIE);
 
StructureAPersonne structureAPersonne = ce.getModel();
String etat = structureAPersonne.get("etat");
if (!etat.equals(aDonnee.ETAT_AJOUTE) && !UtilString.isEmpty(structureAPersonne.getId())) {
System.out.println("modifier");
ce.getModel().set("etat", aDonnee.ETAT_MODIFIE);
} else {
System.out.println("ajoute");
}
}
});
1987,6 → 1996,7
public void rafraichir(Object nouvellesDonnees) {
try {
if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
2011,6 → 2021,7
if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
}
 
if (info.getType().equals("modif_structure")) {
InfoLogger.display("Modification d'une institution", info.toString());
2209,15 → 2220,16
projetsCombo.setStore(projetsMagazin);
}
private void testerLancementRafraichirPersonnel() {
private void testerLancementRafraichirPersonnel() {
decompteRafraichissementPersonnel--;
if (decompteRafraichissementPersonnel == 0) {
// Nous rechargeons la liste du Personnel
rafraichirPersonnel();
}
}
}
private void rafraichirPersonnel() {
private void rafraichirPersonnel() {
decompteRafraichissementPersonnel = 0;
if (mode.equals(MODE_MODIFIER)) {
initialiserGrillePersonnelEnModification();