Subversion Repositories eFlore/Applications.coel

Rev

Rev 739 | Rev 771 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 739 Rev 770
Line 1861... Line 1861...
1861
		}
1861
		}
Line 1862... Line 1862...
1862
		
1862
		
1863
		if (info.getType().equals("modif_structure")) {
1863
		if (info.getType().equals("modif_structure")) {
1864
			Info.display("Modification d'une institution", info.toString());
1864
			Info.display("Modification d'une institution", info.toString());
1865
		} else if (info.getType().equals("ajout_structure")) {
1865
		} else if (info.getType().equals("ajout_structure")) {
-
 
1866
			if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
1866
			if (info.getMessage(0) != null && info.getMessage(0).matches("^[0-9]+$")) {
1867
				String structureId = (String) info.getDonnee(0);
1867
				Info.display("Ajout d'une Institution", "L'intitution a bien été ajoutée");
1868
				Info.display("Ajout d'une Institution", "L'intitution '"+structureId+"' a bien été ajoutée");
1868
				
1869
			
1869
				// Suite à la récupération de l'id de l'institution nouvellement ajoutée nous ajoutons le personnel
1870
				// Suite à la récupération de l'id de l'institution nouvellement ajoutée nous ajoutons le personnel
1870
				mediateur.ajouterStructureAPersonne(this, info.toString(), personnelAjoute);
-
 
1871
				
1871
				mediateur.ajouterStructureAPersonne(this, structureId, personnelAjoute);
1872
			} else {
1872
			} else {
1873
				Info.display("Ajout d'une Institution", info.toString());
1873
				Info.display("Ajout d'une Institution", info.toString());
1874
			}
1874
			}
1875
		} else if (info.getType().equals("modif_structure_a_personne")) {
1875
		} else if (info.getType().equals("modif_structure_a_personne")) {