Subversion Repositories SmartDukaan

Rev

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

Rev 23568 Rev 23615
Line 4... Line 4...
4
import java.io.IOException;
4
import java.io.IOException;
5
import java.io.InputStream;
5
import java.io.InputStream;
6
import java.net.URISyntaxException;
6
import java.net.URISyntaxException;
7
import java.net.URL;
7
import java.net.URL;
8
import java.util.ArrayList;
8
import java.util.ArrayList;
-
 
9
import java.util.Collection;
9
import java.util.Collections;
10
import java.util.Collections;
10
import java.util.HashMap;
11
import java.util.HashMap;
11
import java.util.HashSet;
12
import java.util.HashSet;
12
import java.util.List;
13
import java.util.List;
13
import java.util.Map;
14
import java.util.Map;
Line 363... Line 364...
363
			
364
			
364
		}
365
		}
365
		return serialNumberWarehouseMap;
366
		return serialNumberWarehouseMap;
366
	}
367
	}
367
	
368
	
-
 
369
	public static Map<Integer, Warehouse> getWarehousesByIds(Set<Integer> warehouseIds) throws Exception {
-
 
370
		InventoryClient client = new InventoryClient();
-
 
371
		InventoryService.Client inventoryClient = client.getClient();
-
 
372
		Map<Integer, Warehouse> warehouseMap = new HashMap<>();
-
 
373
		for (Integer warehouseId : warehouseIds) {
-
 
374
			warehouseMap.put(warehouseId, inventoryClient.getWarehouse(warehouseId));
-
 
375
		}
-
 
376
		return warehouseMap;
-
 
377
	}
-
 
378
	
368
	
379
	
369
	public static String getStateCode(String stateName) throws Exception{
380
	public static String getStateCode(String stateName) throws Exception{
370
		return getStateInfo(stateName).getStateCode();
381
		return getStateInfo(stateName).getStateCode();
371
	}
382
	}
372
	
383
	
Line 464... Line 475...
464
	public static WarehouseAddress getWarehouseByWarehouseId(int warehouseAddressId) throws Exception{
475
	public static WarehouseAddress getWarehouseByWarehouseId(int warehouseAddressId) throws Exception{
465
		TransactionClient tcl = new TransactionClient();
476
		TransactionClient tcl = new TransactionClient();
466
		return tcl.getClient().getWarehouseAddress((long)warehouseAddressId);
477
		return tcl.getClient().getWarehouseAddress((long)warehouseAddressId);
467
	}
478
	}
468
	
479
	
469
	
-
 
470
}
480
}