Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 13 Rev 14
Line 142... Line 142...
142
		private String user;
142
		private String user;
Line 143... Line 143...
143
 
143
 
Line 144... Line 144...
144
		private String serviceBaseUrl = null;
144
		private String serviceBaseUrl = null;
145
 
-
 
Line 146... Line 145...
146
		private String location = "all";
145
 
Line 147... Line 146...
147
		
146
		private String location = "all";
Line 233... Line 232...
233
				  public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
232
				  public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
Line 234... Line 233...
234
					  
233
					  
235
					      selectRow(row);
234
					      selectRow(row);
236
					      String loc=table.getText(row,cell);
235
					      String loc=table.getText(row,cell);
-
 
236
					      if (loc.compareTo(VALUE_UNKNOWN)!=0) {
237
					      if (loc.compareTo(VALUE_UNKNOWN)!=0) {
237
					    	  location=loc;
238
					    	  mediator.onLocationSelected(table.getText(row,cell));
238
					    	  mediator.onLocationSelected(table.getText(row,cell));
239
					      }
239
					      }
-
 
240
					      else {
240
					      else {
241
					    	  location="000null";
241
					    	  mediator.onLocationSelected("000null");
242
					    	  mediator.onLocationSelected("000null");
Line 242... Line 243...
242
					      }
243
					      }
Line 266... Line 267...
266
		
267
		
Line 267... Line 268...
267
		public void updateCount() {
268
		public void updateCount() {
Line 268... Line 269...
268
			
269
			
-
 
270
			setStatusDisabled();
269
			setStatusDisabled();
271
 
Line 270... Line 272...
270
 
272
//			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location + "/"  ,
271
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location ,
273
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user ,
272
					new ResponseTextHandler() {
274
					new ResponseTextHandler() {
273
 
275
 
274
						public void onCompletion(String str) {
276
						public void onCompletion(String str) {
275
							JSONValue jsonValue = JSONParser.parse(str);
-
 
276
							JSONNumber jsonNumber;
277
							JSONValue jsonValue = JSONParser.parse(str);
277
							if ((jsonNumber = jsonValue.isNumber()) != null) {
278
							JSONNumber jsonNumber;
278
								count = (int) jsonNumber.getValue();
279
							if ((jsonNumber = jsonValue.isNumber()) != null) {
279
								mediator.onLocationUpdate(location);
280
								count = (int) jsonNumber.getValue();
Line 319... Line 320...
319
		public void update() {
320
		public void update() {
Line 320... Line 321...
320
 
321
 
Line 321... Line 322...
321
			
322
			
-
 
323
			setStatusDisabled();
322
			setStatusDisabled();
324
 
Line 323... Line 325...
323
 
325
//			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location + "/" +  
Line 324... Line 326...
324
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location + "/"
326
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" +  
Line 476... Line 478...
476
 
478
 
477
 
479
 
478
		private void setStatusText(String text) {
480
		private void setStatusText(String text) {
-
 
481
			navBar.status.setText(text);
-
 
482
		}
-
 
483
		
-
 
484
		public void setUser(String user) {
Line 479... Line 485...
479
			navBar.status.setText(text);
485
			this.user = user;