338,10 → 338,7 |
if ((relationCollectionACommentaire.get("_etat_").equals("") || !relationCollectionACommentaire.get("_etat_").equals(aDonnee.ETAT_AJOUTE)) |
&& relationCollectionACommentaire.getId() != null |
&& !relationCollectionACommentaire.getId().equals("")) { |
Debug.log("Nbre commentaires supprimées avant:"+commentairesSupprimes.size()); |
commentairesSupprimes.put("id"+idGenere++, relationCollectionACommentaire); |
Debug.log("Commentaires supprimées : "+relationCollectionACommentaire.getCommentaire().getId()); |
Debug.log("Nbre commentaires supprimées :"+commentairesSupprimes.size()); |
} |
|
// Suppression de l'enregistrement de la grille |
364,7 → 361,6 |
storeGrille.addListener(Store.Update, new Listener<StoreEvent<CollectionACommentaire>>() { |
public void handleEvent(StoreEvent<CollectionACommentaire> ce) { |
if (ce.getRecord().isModified("_type_") && !ce.getModel().get("_etat_").equals(aDonnee.ETAT_AJOUTE)) { |
Debug.log("id type modifié : "+ce.getModel().get("_type_")); |
ce.getModel().set("_etat_", aDonnee.ETAT_MODIFIE); |
} |
} |
424,7 → 420,6 |
if (getField().getRawValue() != null ) { |
retour = getField().getRawValue(); |
} |
Debug.log("Post : "+retour); |
return retour; |
} |
}; |
432,11 → 427,9 |
GridCellRenderer<CollectionACommentaire> typeRendu = new GridCellRenderer<CollectionACommentaire>() { |
public String render(CollectionACommentaire model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<CollectionACommentaire> store, Grid<CollectionACommentaire> grid) { |
String type = model.get("_type_"); |
Debug.log("Initialisation type origine :"+type); |
if (typeCombo.getStore() != null && type != null && (type.matches("[0-9]+") || type.contains(aDonnee.SEPARATEUR_VALEURS))) { |
type = typeCombo.formaterIdentifiantsEnTexte(type); |
model.set("_type_", type); |
Debug.log("Initialisation :"+type); |
} |
return type; |
} |
577,12 → 570,10 |
if (relationCollectionACommentaire.get("_etat_").equals(aDonnee.ETAT_MODIFIE)) { |
corrigerChampsGrille(relationCollectionACommentaire);// Nous modifions l'id_type |
commentairesModifies.put("id"+idGenere++, relationCollectionACommentaire); |
Debug.log("Commentaires modifiés : "+relationCollectionACommentaire.getCommentaire().getTitre()); |
} |
if (relationCollectionACommentaire.get("_etat_").equals(aDonnee.ETAT_AJOUTE)) { |
corrigerChampsGrille(relationCollectionACommentaire);// Nous modifions l'id_type |
commentairesAjoutes.put("id"+idGenere++, relationCollectionACommentaire); |
Debug.log("Commentaires ajoutés : "+relationCollectionACommentaire.getCommentaire().getTitre()); |
} |
// Initialisation de la grille |
relationCollectionACommentaire.set("_etat_", ""); |