Subversion Repositories eFlore/Applications.coel

Rev

Rev 1843 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1843 Rev 1898
Line 492... Line 492...
492
	public ColumnConfig creerColonneDeces() {
492
	public ColumnConfig creerColonneDeces() {
493
		GridCellRenderer<ModelData> decesRendu = new GridCellRenderer<ModelData>() {
493
		GridCellRenderer<ModelData> decesRendu = new GridCellRenderer<ModelData>() {
494
			public String render(ModelData modele, String property, ColumnData config, int rowIndex, int colIndex, ListStore<ModelData> store, Grid<ModelData> grid) {
494
			public String render(ModelData modele, String property, ColumnData config, int rowIndex, int colIndex, ListStore<ModelData> store, Grid<ModelData> grid) {
495
				CollectionAPersonne cap = new CollectionAPersonne(modele);
495
				CollectionAPersonne cap = new CollectionAPersonne(modele);
496
				String deces = cap.getPersonne().getDeces();
496
				String deces = cap.getPersonne().getDeces();
-
 
497
				deces = deces.equals("0") ? "" : deces;
497
				if (listeIon != null && cap.getPersonne().getDeces().matches("[0-9]+")) {
498
				if (listeIon != null && cap.getPersonne().getDeces().matches("[0-9]+")) {
498
					deces = listeIon.findModel("id_valeur", cap.getPersonne().getDeces()).getNom();
499
					Valeur valeurDeces = listeIon.findModel("id_valeur", cap.getPersonne().getDeces());
-
 
500
					if(valeurDeces != null) {
-
 
501
						deces = valeurDeces.getNom();
-
 
502
					}
499
				}
503
				}
500
				modele.set("_deces_", deces);
504
				modele.set("_deces_", deces);
501
				return deces;
505
				return deces;
502
			}
506
			}
503
		};
507
		};