Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 14 Rev 24
Line 159... Line 159...
159
	private String location = "all";
159
	private String location = "all";
160
	private String date = "all";
160
	private String date = "all";
161
	private String search = "all";
161
	private String search = "all";
162
	private String station = "all";
162
	private String station = "all";
Line 163... Line -...
163
 
-
 
164
	private boolean add=false;
-
 
165
	
163
 
Line 166... Line 164...
166
	public InventoryItemList(Mediator med) {
164
	public InventoryItemList(Mediator med) {
Line 167... Line 165...
167
 
165
 
Line 210... Line 208...
210
		 // Hook up events.
208
		 // Hook up events.
211
	    table.addTableListener(new TableListener () {
209
	    table.addTableListener(new TableListener () {
Line 212... Line 210...
212
	    	
210
	    	
Line 213... Line 211...
213
			  public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
211
			  public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
214
				   
212
				   
215
				  if (table.getWidget(row, 0)!=null) {
213
				  if ((table.getWidget(row, 0)!=null) && (cell>0)){
216
				      selectRow(row);
214
				      selectRow(row);
217
				      // Numero d'ordre
215
				      // Numero d'ordre
218
				      mediator.onInventoryItemSelected(table.getText(row, 5));
216
				      mediator.onInventoryItemSelected(table.getText(row, 5));
Line 424... Line 422...
424
			public void onCompletion(String str) {
422
			public void onCompletion(String str) {
425
					location=loc;
423
					location=loc;
426
					if (location.compareTo("")==0) {
424
					if (location.compareTo("")==0) {
427
						location="000null";
425
						location="000null";
428
					}
426
					}
429
					add=true;
-
 
430
					mediator.onInventoryUpdated(location);
427
					mediator.onInventoryUpdated(location);
431
					updateCount();
428
					updateCount();
432
			}
429
			}
433
		});
430
		});
434
	}
431
	}
Line 464... Line 461...
464
				+ "&station="+ complementLocation + "&commentaire="+ comment,
461
				+ "&station="+ complementLocation + "&commentaire="+ comment,
Line 465... Line 462...
465
 
462
 
Line 466... Line 463...
466
		new ResponseTextHandler() {
463
		new ResponseTextHandler() {
467
 
-
 
468
			public void onCompletion(String str) {
464
 
469
				add=false;
465
			public void onCompletion(String str) {
470
				mediator.onInventoryUpdated(location);
466
				mediator.onInventoryUpdated(location);
471
				update();
467
				update();
472
			}
468
			}
Line 860... Line 856...
860
							// Numero d'ordre (caché)
856
							// Numero d'ordre (caché)
Line 861... Line 857...
861
		
857
		
Line -... Line 858...
-
 
858
							
862
							
859
							table.setText(row, 5, aordre);
863
							table.setText(row, 5, aordre);
860
 
864
 
861
							/*
865
							if (add){
862
							if (add){
866
								if (i ==(arraySize -1)) {
863
								if (i ==(arraySize -1)) {
Line 872... Line 869...
872
							else {
869
							else {
873
								if ((mediator.getEntryPanel().getOrdre()!=null) && (mediator.getEntryPanel().getOrdre().compareTo(aordre)==0)) {
870
								if ((mediator.getEntryPanel().getOrdre()!=null) && (mediator.getEntryPanel().getOrdre().compareTo(aordre)==0)) {
874
									selectRow(row);
871
									selectRow(row);
875
								}
872
								}
876
							}
873
							}
-
 
874
							*/
Line 877... Line 875...
877
 
875
 
Line 878... Line 876...
878
							table.getCellFormatter().setVisible(row, 5, false);
876
							table.getCellFormatter().setVisible(row, 5, false);
Line 893... Line 891...
893
						 table.setHTML(j,4," ");
891
						 table.setHTML(j,4," ");
894
						 table.setHTML(j,5," ");
892
						 table.setHTML(j,5," ");
895
						table.getCellFormatter().setVisible(j, 5, false);
893
						table.getCellFormatter().setVisible(j, 5, false);
896
						table.getRowFormatter().removeStyleName(j, "inventoryItem-SelectedRow");
894
						table.getRowFormatter().removeStyleName(j, "inventoryItem-SelectedRow");
897
				}
895
				}
898
				
-
 
899
				add=false;
-
 
Line 900... Line 896...
900
 
896
 
Line 901... Line 897...
901
				setStatusEnabled();
897
				setStatusEnabled();