Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 22 Rev 24
Line 62... Line 62...
62
import com.google.gwt.user.client.HTTPRequest;
62
import com.google.gwt.user.client.HTTPRequest;
63
import com.google.gwt.user.client.History;
63
import com.google.gwt.user.client.History;
64
import com.google.gwt.user.client.ResponseTextHandler;
64
import com.google.gwt.user.client.ResponseTextHandler;
65
import com.google.gwt.user.client.ui.Button;
65
import com.google.gwt.user.client.ui.Button;
66
import com.google.gwt.user.client.ui.ChangeListener;
66
import com.google.gwt.user.client.ui.ChangeListener;
67
import com.google.gwt.user.client.ui.CheckBox;
-
 
68
import com.google.gwt.user.client.ui.ClickListener;
67
import com.google.gwt.user.client.ui.ClickListener;
69
import com.google.gwt.user.client.ui.Composite;
68
import com.google.gwt.user.client.ui.Composite;
70
import com.google.gwt.user.client.ui.Grid;
69
import com.google.gwt.user.client.ui.Grid;
71
import com.google.gwt.user.client.ui.HTML;
70
import com.google.gwt.user.client.ui.HTML;
72
import com.google.gwt.user.client.ui.HorizontalPanel;
71
import com.google.gwt.user.client.ui.HorizontalPanel;
Line 194... Line 193...
194
    date.addKeyboardListener( new KeyboardListener() {
193
    date.addKeyboardListener( new KeyboardListener() {
Line 195... Line 194...
195
 
194
 
196
    		  public void onKeyDown(Widget arg0, char arg1, int arg2) {
195
    		  public void onKeyDown(Widget arg0, char arg1, int arg2) {
197
    			  if(arg1 == KEY_ENTER)
196
    			  if(arg1 == KEY_ENTER)
-
 
197
    			    {
198
    			    {
198
    				 if (ordre==null) {
199
    			     mediator.onAddInventoryItem(); 
199
       				     mediator.onAddInventoryItem(); 
-
 
200
       				     date.setText("");
-
 
201
    				 }
-
 
202
       				 else {
-
 
203
       				     mediator.onModifyInventoryItem(ordre); 
-
 
204
       				     ordre=null;
200
    			     date.setText("");
205
       				 }
201
    			    }
206
    			    }
Line 202... Line 207...
202
    		  }
207
    		  }
203
    		  
208
    		  
Line 220... Line 225...
220
    complementLocation.addKeyboardListener( new KeyboardListener() {
225
    complementLocation.addKeyboardListener( new KeyboardListener() {
Line 221... Line 226...
221
 
226
 
222
		  public void onKeyDown(Widget arg0, char arg1, int arg2) {
227
		  public void onKeyDown(Widget arg0, char arg1, int arg2) {
223
			  if(arg1 == KEY_ENTER)
228
			  if(arg1 == KEY_ENTER)
-
 
229
			    {
224
			    {
230
				  	if (ordre==null) {
225
			     mediator.onAddInventoryItem(); 
231
   				     mediator.onAddInventoryItem(); 
-
 
232
   				     complementLocation.setText("");
-
 
233
   				  	}
-
 
234
   				  	else {
-
 
235
   				     mediator.onModifyInventoryItem(ordre); 
-
 
236
   				     ordre=null;
226
			     complementLocation.setText("");
237
   				 }
Line 227... Line 238...
227
			    }
238
			    }
Line 228... Line 239...
228
 
239
 
Line 247... Line 258...
247
    comment.addKeyboardListener( new KeyboardListener() {
258
    comment.addKeyboardListener( new KeyboardListener() {
Line 248... Line 259...
248
 
259
 
249
		  public void onKeyDown(Widget arg0, char arg1, int arg2) {
260
		  public void onKeyDown(Widget arg0, char arg1, int arg2) {
250
			  if(arg1 == KEY_ENTER)
261
			  if(arg1 == KEY_ENTER)
-
 
262
			    {
251
			    {
263
				  	if (ordre==null) {
252
			     mediator.onAddInventoryItem(); 
264
   				     mediator.onAddInventoryItem(); 
-
 
265
   				     comment.setText("");
-
 
266
   				  	}
-
 
267
   				  	else {
-
 
268
   				     mediator.onModifyInventoryItem(ordre); 
-
 
269
   				     ordre=null;
253
			     comment.setText("");
270
   				  	}
Line 254... Line 271...
254
			    }
271
			    }
Line 255... Line 272...
255
 
272
 
Line 387... Line 404...
387
							// Numero nomenclatural
404
							// Numero nomenclatural
Line 388... Line 405...
388
						
405
						
Line 389... Line 406...
389
							String ann=((JSONString) jsonArray .get(3)).stringValue();
406
							String ann=((JSONString) jsonArray .get(3)).stringValue();
390
							
407
							
-
 
408
							if (ann.compareTo("0")!=0) {
-
 
409
								nameAssistant.setValue(null);
-
 
410
							}
391
							if (ann.compareTo("0")!=0) {
411
							else {
Line 392... Line 412...
392
								nameAssistant.setValue(ann);
412
								nameAssistant.setValue(null);
393
							}
413
							}
Line 446... Line 466...
446
	}
466
	}
Line 447... Line 467...
447
 
467
 
Line 448... Line 468...
448
}
468
}
449
 
469
 
-
 
470
/* +--Fin du code ---------------------------------------------------------------------------------------+
-
 
471
* $Log$
-
 
472
* Revision 1.4  2007-05-21 21:01:35  ddelon
450
/* +--Fin du code ---------------------------------------------------------------------------------------+
473
* Modification comportement boutons
451
* $Log$
474
*