Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 342 Rev 359
Line 929... Line 929...
929
	}
929
	}
Line 930... Line 930...
930
	
930
	
Line 931... Line 931...
931
	public boolean gererDDObsSurMotCle(TreeNode NoeudMotCle, DragData dragData) {
931
	public boolean gererDDObsSurMotCle(TreeNode NoeudMotCle, DragData dragData) {
932
		
-
 
-
 
932
		
933
		if(dragData instanceof GridDragData) {
933
		if(dragData instanceof GridDragData) {
Line 934... Line 934...
934
			// TODO : reporter cette logique dans le médiateur !
934
 
Line 935... Line 935...
935
			GridDragData gdd = ((GridDragData)dragData);
935
			GridDragData gdd = ((GridDragData)dragData);
Line 944... Line 944...
944
			for(int i = 0; i < obsALier.length; i++) {
944
			for(int i = 0; i < obsALier.length; i++) {
945
				if(i != 0) {
945
				if(i != 0) {
946
					idObsALierString += ", ";
946
					idObsALierString += ", ";
947
				}
947
				}
948
				idObsALierString += obsALier[i].getAsString("ordre_observation");
948
				idObsALierString += obsALier[i].getAsString("ordre_observation");
949
				idObsALier[i] = obsALier[i].getAsString("ordre_observation");
-
 
Line -... Line 949...
-
 
949
				
-
 
950
				if(!observationAvoirMotCle(idMotCle, obsALier[i].getAsString("ordre_observation"))) {
-
 
951
					idObsALier[i] = obsALier[i].getAsString("ordre_observation");
-
 
952
				} else {
-
 
953
					idObsALier[i] = "";
950
				
954
				}
Line 951... Line 955...
951
			}
955
			}
Line 952... Line 956...
952
			
956
			
Line 1118... Line 1122...
1118
	}
1122
	}
Line 1119... Line 1123...
1119
 
1123
 
Line 1120... Line 1124...
1120
	public void onModeModification() {
1124
	public void onModeModification() {
1121
		
1125
		
-
 
1126
		String[] ids = listeObservation.getIdSelectionnees();
1122
		String[] ids = listeObservation.getIdSelectionnees();
1127
		Observation obs = listeObservation.getCacheListeObservation().get(ids[ids.length - 1]);
1123
		Observation obs = listeObservation.getCacheListeObservation().get(ids[ids.length]);
1128
		
1124
		if(ids.length > 1) {
1129
		if(ids.length > 1) {
1125
			formulaireSaisieObservationVue.setMasseModification(true);
1130
			formulaireSaisieObservationVue.setMasseModification(true);
1126
			ListeObservation listeObs = new ListeObservation();
1131
			ListeObservation listeObs = new ListeObservation();
Line 1137... Line 1142...
1137
		
1142
		
1138
		conteneurFormulaire.setTitle("Modification");
1143
		conteneurFormulaire.setTitle("Modification");
Line 1139... Line 1144...
1139
	}
1144
	}
-
 
1145
	
1140
	
1146
	public void onModeCreation() {
-
 
1147
		
-
 
1148
		conteneurFormulaire.setTitle("Création");
-
 
1149
		String[] ids = listeObservation.getIdSelectionnees();
-
 
1150
		
-
 
1151
		if(ids.length > 1) {
-
 
1152
			Observation obs = listeObservation.getCacheListeObservation().get(ids[ids.length - 1]);
-
 
1153
			// affichage des détails dans le formulaire d'observation
1141
	public void onModeCreation() {
1154
			formulaireSaisieObservationVue.rafraichir(obs, false) ;
Line 1142... Line 1155...
1142
		conteneurFormulaire.setTitle("Création");
1155
		}
1143
	}
1156
	}
1144
 
1157