| Line 17... | 
            Line 17... | 
          
          
            | 17 | 
            	private String location=null;
  | 
            17 | 
            	private String location=null;
  | 
          
          
            | 18 | 
            	private String location_id=null;
  | 
            18 | 
            	private String location_id=null;
  | 
          
          
            | 19 | 
            	private String date=null;
  | 
            19 | 
            	private String date=null;
  | 
          
          
            | 20 | 
            	private String lieudit=null;
  | 
            20 | 
            	private String lieudit=null;
  | 
          
          
            | 21 | 
            	private String station=null;
  | 
            21 | 
            	private String station=null;
  | 
          
          
            | - | 
               | 
            22 | 
            	private String milieu=null;
  | 
          
          
            | 22 | 
            	private String comment=null;
  | 
            23 | 
            	private String comment=null;
  | 
          
          
            | 23 | 
            	private String ordre=null;
  | 
            24 | 
            	private String ordre=null;
  | 
          
          
            | Line 24... | 
            Line 25... | 
          
          
            | 24 | 
             
  | 
            25 | 
             
  | 
          
          
            | 25 | 
            	private Mediator mediator = null;
  | 
            26 | 
            	private Mediator mediator = null;
  | 
          
          
            | Line 42... | 
            Line 43... | 
          
          
            | 42 | 
            	}
  | 
            43 | 
            	}
  | 
          
          
            | Line 43... | 
            Line 44... | 
          
          
            | 43 | 
             
  | 
            44 | 
             
  | 
          
          
            | Line 44... | 
            Line 45... | 
          
          
            | 44 | 
            	
  | 
            45 | 
            	
  | 
          
          
            | Line 45... | 
            Line 46... | 
          
          
            | 45 | 
            	// Alimentation contenu depuis saisie
  | 
            46 | 
            	// Alimentation contenu depuis saisie
  | 
          
          
            | 46 | 
            	
  | 
            47 | 
            	
  | 
          
          
            | Line 63... | 
            Line 64... | 
          
          
            | 63 | 
            		if (location.compareTo("")==0) this.location_id="";
  | 
            64 | 
            		if (location.compareTo("")==0) this.location_id="";
  | 
          
          
            | 64 | 
            		if (location_id==null) this.location_id="";
  | 
            65 | 
            		if (location_id==null) this.location_id="";
  | 
          
          
            | 65 | 
            		this.date=date;
  | 
            66 | 
            		this.date=date;
  | 
          
          
            | 66 | 
            		this.lieudit=lieudit;
  | 
            67 | 
            		this.lieudit=lieudit;
  | 
          
          
            | 67 | 
            		this.station=station;
  | 
            68 | 
            		this.station=station;
  | 
          
          
            | - | 
               | 
            69 | 
            		this.milieu=milieu;
  | 
          
          
            | 68 | 
            		this.comment=comment;
  | 
            70 | 
            		this.comment=comment;
  | 
          
          
            | 69 | 
            		this.ordre=ordre;
  | 
            71 | 
            		this.ordre=ordre;
  | 
          
          
            | Line 70... | 
            Line 72... | 
          
          
            | 70 | 
            		
  | 
            72 | 
            		
  | 
          
          
            | Line 117... | 
            Line 119... | 
          
          
            | 117 | 
            														.stringValue(),
  | 
            119 | 
            														.stringValue(),
  | 
          
          
            | 118 | 
            												((JSONString) jsonArray.get(2))
  | 
            120 | 
            												((JSONString) jsonArray.get(2))
  | 
          
          
            | 119 | 
            														.stringValue(),
  | 
            121 | 
            														.stringValue(),
  | 
          
          
            | 120 | 
            												Util.toCelString(((JSONString) jsonArray.get(3))
  | 
            122 | 
            												Util.toCelString(((JSONString) jsonArray.get(3))
  | 
          
          
            | 121 | 
            														.toString()),
  | 
            123 | 
            														.toString()),
  | 
          
          
            | 122 | 
            														location,location_id,date,lieudit,station,comment);
  | 
            124 | 
            														location,location_id,date,lieudit,station,milieu,comment);
  | 
          
          
            | 123 | 
            									}
  | 
            125 | 
            									}
  | 
          
          
            | 124 | 
            								}
  | 
            126 | 
            								}
  | 
          
          
            | Line 125... | 
            Line 127... | 
          
          
            | 125 | 
            		
  | 
            127 | 
            		
  | 
          
          
            | 126 | 
            							});
  | 
            128 | 
            							});
  | 
          
          
            | 127 | 
            				}
  | 
            129 | 
            				}
  | 
          
          
            | 128 | 
            				// Saisie libre
  | 
            130 | 
            				// Saisie libre
  | 
          
          
            | 129 | 
            				else {
  | 
            131 | 
            				else {
  | 
          
          
            | 130 | 
            					addElement(name, " ", " ", " ", " ", " ",location,location_id,date,lieudit,station,comment);
  | 
            132 | 
            					addElement(name, " ", " ", " ", " ", " ",location,location_id,date,lieudit,station,milieu,comment);
  | 
          
          
            | Line 131... | 
            Line 133... | 
          
          
            | 131 | 
            				}
  | 
            133 | 
            				}
  | 
          
          
            | 132 | 
            			
  | 
            134 | 
            			
  | 
          
          
            | 133 | 
            		}
  | 
            135 | 
            		}
  | 
          
          
            | Line 155... | 
            Line 157... | 
          
          
            | 155 | 
            	 * @param famille :
  | 
            157 | 
            	 * @param famille :
  | 
          
          
            | 156 | 
            	 *            famille
  | 
            158 | 
            	 *            famille
  | 
          
          
            | 157 | 
            	 */
  | 
            159 | 
            	 */
  | 
          
          
            | Line 158... | 
            Line 160... | 
          
          
            | 158 | 
             
  | 
            160 | 
             
  | 
          
          
            | 159 | 
            	private void addElement(String nom_sel, String num_nom_sel, String nom_ret,
  | 
            161 | 
            	private void addElement(String nom_sel, String num_nom_sel, String nom_ret,
  | 
          
          
            | Line 160... | 
            Line 162... | 
          
          
            | 160 | 
            			String num_nom_ret, String num_taxon, String famille,final String loc, String id_location,String dat, String lieu, String sta, String comment) {
  | 
            162 | 
            			String num_nom_ret, String num_taxon, String famille,final String loc, String id_location,String dat, String lieu, String sta,  String mil, String comment) {
  | 
          
          
            | 161 | 
             
  | 
            163 | 
             
  | 
          
          
            | 162 | 
             
  | 
            164 | 
             
  | 
          
          
            | 163 | 
            		HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/", "identifiant="
  | 
            165 | 
            		HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/", "identifiant="
  | 
          
          
            | 164 | 
            				+ mediator.getUser() + "&nom_sel=" + URL.encodeComponent(nom_sel) + "&num_nom_sel=" + num_nom_sel
  | 
            166 | 
            				+ mediator.getUser() + "&nom_sel=" + URL.encodeComponent(nom_sel) + "&num_nom_sel=" + num_nom_sel
  | 
          
          
            | Line 165... | 
            Line 167... | 
          
          
            | 165 | 
            				+ "&nom_ret=" + URL.encodeComponent(nom_ret) + "&num_nom_ret=" + num_nom_ret
  | 
            167 | 
            				+ "&nom_ret=" + URL.encodeComponent(nom_ret) + "&num_nom_ret=" + num_nom_ret
  | 
          
          
            | Line 166... | 
            Line 168... | 
          
          
            | 166 | 
            				+ "&num_taxon=" + num_taxon + "&famille=" + URL.encodeComponent(famille) + "&location=" + URL.encodeComponent(loc) + "&id_location=" + id_location + "&date_observation=" + dat
  | 
            168 | 
            				+ "&num_taxon=" + num_taxon + "&famille=" + URL.encodeComponent(famille) + "&location=" + URL.encodeComponent(loc) + "&id_location=" + id_location + "&date_observation=" + dat
  | 
          
          
            | 167 | 
            				+ "&lieudit="+ URL.encodeComponent(lieu) + "&station="+ URL.encodeComponent(sta) + "&commentaire="+ URL.encodeComponent(comment),
  | 
            169 | 
            				+ "&lieudit="+ URL.encodeComponent(lieu) + "&station="+ URL.encodeComponent(sta) +"&milieu="+ URL.encodeComponent(mil) + "&commentaire="+ URL.encodeComponent(comment),
  | 
          
          
            | Line 208... | 
            Line 210... | 
          
          
            | 208 | 
            														.stringValue(),
  | 
            210 | 
            														.stringValue(),
  | 
          
          
            | 209 | 
            												((JSONString) jsonArray.get(2))
  | 
            211 | 
            												((JSONString) jsonArray.get(2))
  | 
          
          
            | 210 | 
            														.stringValue(),
  | 
            212 | 
            														.stringValue(),
  | 
          
          
            | 211 | 
            												Util.toCelString(((JSONString) jsonArray.get(3))
  | 
            213 | 
            												Util.toCelString(((JSONString) jsonArray.get(3))
  | 
          
          
            | 212 | 
            														.toString()),
  | 
            214 | 
            														.toString()),
  | 
          
          
            | 213 | 
            														location,location_id,date,lieudit,station,comment);
  | 
            215 | 
            														location,location_id,date,lieudit,station, milieu,comment);
  | 
          
          
            | 214 | 
            									}
  | 
            216 | 
            									}
  | 
          
          
            | 215 | 
            								}
  | 
            217 | 
            								}
  | 
          
          
            | Line 216... | 
            Line 218... | 
          
          
            | 216 | 
            		
  | 
            218 | 
            		
  | 
          
          
            | 217 | 
            							});
  | 
            219 | 
            							});
  | 
          
          
            | 218 | 
            				}
  | 
            220 | 
            				}
  | 
          
          
            | 219 | 
            				//  Modification d'un nom ne faisant pas parti du referentiel (saisie libre)
  | 
            221 | 
            				//  Modification d'un nom ne faisant pas parti du referentiel (saisie libre)
  | 
          
          
            | 220 | 
            				else {
  | 
            222 | 
            				else {
  | 
          
          
            | 221 | 
            					updateElement(ordre,name, " ", " ", " ", " ", " ",location,location_id,date,lieudit,station,comment);
  | 
            223 | 
            					updateElement(ordre,name, " ", " ", " ", " ", " ",location,location_id,date,lieudit,station, milieu, comment);
  | 
          
          
            | Line 222... | 
            Line 224... | 
          
          
            | 222 | 
            				}
  | 
            224 | 
            				}
  | 
          
          
            | 223 | 
            			
  | 
            225 | 
            			
  | 
          
          
            | 224 | 
            		}
  | 
            226 | 
            		}
  | 
          
          
            | Line 249... | 
            Line 251... | 
          
          
            | 249 | 
            	 * @param famille :
  | 
            251 | 
            	 * @param famille :
  | 
          
          
            | 250 | 
            	 *            famille
  | 
            252 | 
            	 *            famille
  | 
          
          
            | 251 | 
            	 */
  | 
            253 | 
            	 */
  | 
          
          
            | Line 252... | 
            Line 254... | 
          
          
            | 252 | 
             
  | 
            254 | 
             
  | 
          
          
            | 253 | 
            	private void updateElement(String ordre, String nom_sel, String num_nom_sel, String nom_ret,
  | 
            255 | 
            	private void updateElement(String ordre, String nom_sel, String num_nom_sel, String nom_ret,
  | 
          
          
            | Line 254... | 
            Line 256... | 
          
          
            | 254 | 
            			String num_nom_ret, String num_taxon, String famille,final String loc, String id_location,String dat, String lieu, String sta, String comment) {
  | 
            256 | 
            			String num_nom_ret, String num_taxon, String famille,final String loc, String id_location,String dat, String lieu, String sta, String mil, String comment) {
  | 
          
          
            | 255 | 
             
  | 
            257 | 
             
  | 
          
          
            | 256 | 
             
  | 
            258 | 
             
  | 
          
          
            | 257 | 
            		HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/" + mediator.getUser() + "/" +ordre + "/",
  | 
            259 | 
            		HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/" + mediator.getUser() + "/" +ordre + "/",
  | 
          
          
            | 258 | 
            				 "&nom_sel=" + URL.encodeComponent(nom_sel) + "&num_nom_sel=" + num_nom_sel
  | 
            260 | 
            				 "&nom_sel=" + URL.encodeComponent(nom_sel) + "&num_nom_sel=" + num_nom_sel
  | 
          
          
            | Line 259... | 
            Line 261... | 
          
          
            | 259 | 
            				+ "&nom_ret=" + URL.encodeComponent(nom_ret) + "&num_nom_ret=" + num_nom_ret
  | 
            261 | 
            				+ "&nom_ret=" + URL.encodeComponent(nom_ret) + "&num_nom_ret=" + num_nom_ret
  | 
          
          
            | Line 260... | 
            Line 262... | 
          
          
            | 260 | 
            				+ "&num_taxon=" + num_taxon + "&famille=" + URL.encodeComponent(famille) + "&location=" + URL.encodeComponent(loc) + "&id_location=" + id_location + "&date_observation=" + dat
  | 
            262 | 
            				+ "&num_taxon=" + num_taxon + "&famille=" + URL.encodeComponent(famille) + "&location=" + URL.encodeComponent(loc) + "&id_location=" + id_location + "&date_observation=" + dat
  | 
          
          
            | 261 | 
            				+ "&lieudit="+ URL.encodeComponent(lieu) + "&station="+ URL.encodeComponent(sta) + "&commentaire="+ URL.encodeComponent(comment),
  | 
            263 | 
            				+ "&lieudit="+ URL.encodeComponent(lieu) + "&station="+ URL.encodeComponent(sta) + "&milieu="+ URL.encodeComponent(mil) + "&commentaire="+ URL.encodeComponent(comment),
  |