Subversion Repositories SmartDukaan

Rev

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

Rev 5308 Rev 5684
Line 130... Line 130...
130
			e.printStackTrace();
130
			e.printStackTrace();
131
		}
131
		}
132
		return null;
132
		return null;
133
	}
133
	}
134
 
134
 
-
 
135
    public static Warehouse getWarehouse(long warehouseId) {
-
 
136
        try{
-
 
137
            CatalogClient catalogServiceClient = new CatalogClient();
-
 
138
            InventoryService.Client catalogClient = catalogServiceClient.getClient();
-
 
139
            return catalogClient.getWarehouse(warehouseId);
-
 
140
        }catch(Exception e){
-
 
141
            e.printStackTrace();
-
 
142
        }
-
 
143
        return null;
-
 
144
    }
-
 
145
 
135
	private static Item getItemFromThriftItem(in.shop2020.model.v1.catalog.Item thriftItem){
146
    private static Item getItemFromThriftItem(in.shop2020.model.v1.catalog.Item thriftItem){
136
		Item item = new Item(thriftItem.getId(),
147
		Item item = new Item(thriftItem.getId(),
137
				thriftItem.getProductGroup(),
148
				thriftItem.getProductGroup(),
138
				thriftItem.getBrand(),
149
				thriftItem.getBrand(),
139
				thriftItem.getModelNumber(),
150
				thriftItem.getModelNumber(),
140
				thriftItem.getModelName(),
151
				thriftItem.getModelName(),