| Line 1... |
Line 1... |
| 1 |
package in.shop2020.support.services;
|
1 |
package in.shop2020.support.services;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.model.v1.catalog.InventoryServiceException;
|
3 |
import in.shop2020.model.v1.catalog.CatalogServiceException;
|
| 4 |
import in.shop2020.model.v1.catalog.Item;
|
4 |
import in.shop2020.model.v1.catalog.Item;
|
| 5 |
import in.shop2020.model.v1.order.LineItem;
|
5 |
import in.shop2020.model.v1.order.LineItem;
|
| 6 |
import in.shop2020.model.v1.order.Order;
|
6 |
import in.shop2020.model.v1.order.Order;
|
| 7 |
import in.shop2020.model.v1.order.Transaction;
|
7 |
import in.shop2020.model.v1.order.Transaction;
|
| 8 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
8 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
| Line 48... |
Line 48... |
| 48 |
|
48 |
|
| 49 |
UserClient usc;
|
49 |
UserClient usc;
|
| 50 |
in.shop2020.model.v1.user.UserContextService.Client uClient;
|
50 |
in.shop2020.model.v1.user.UserContextService.Client uClient;
|
| 51 |
|
51 |
|
| 52 |
CatalogClient csc;
|
52 |
CatalogClient csc;
|
| 53 |
in.shop2020.model.v1.catalog.InventoryService.Client cClient;
|
53 |
in.shop2020.model.v1.catalog.CatalogService.Client cClient;
|
| 54 |
|
54 |
|
| 55 |
TransactionClient tsc;
|
55 |
TransactionClient tsc;
|
| 56 |
in.shop2020.model.v1.order.TransactionService.Client tClient;
|
56 |
in.shop2020.model.v1.order.TransactionService.Client tClient;
|
| 57 |
|
57 |
|
| 58 |
public AnalysisDataGenerator() {
|
58 |
public AnalysisDataGenerator() {
|
| Line 212... |
Line 212... |
| 212 |
contentRow.createCell(itemOffset + 1).setCellValue(catalogItem.getBrand());
|
212 |
contentRow.createCell(itemOffset + 1).setCellValue(catalogItem.getBrand());
|
| 213 |
contentRow.createCell(itemOffset + 2).setCellValue(catalogItem.getModelName());
|
213 |
contentRow.createCell(itemOffset + 2).setCellValue(catalogItem.getModelName());
|
| 214 |
contentRow.createCell(itemOffset + 3).setCellValue(catalogItem.getModelNumber());
|
214 |
contentRow.createCell(itemOffset + 3).setCellValue(catalogItem.getModelNumber());
|
| 215 |
// linesCount++;
|
215 |
// linesCount++;
|
| 216 |
// rowNo++;
|
216 |
// rowNo++;
|
| 217 |
} catch (InventoryServiceException e) {
|
217 |
} catch (CatalogServiceException e) {
|
| 218 |
logger.error("Unable to get the item:" + line.getItemId(), e);
|
218 |
logger.error("Unable to get the item:" + line.getItemId(), e);
|
| 219 |
} catch (TException e) {
|
219 |
} catch (TException e) {
|
| 220 |
logger.error("Error while getting the item:" + line.getItemId(), e);
|
220 |
logger.error("Error while getting the item:" + line.getItemId(), e);
|
| 221 |
}
|
221 |
}
|
| 222 |
for(int i = itemOffset; i < orderOffset; i++) {
|
222 |
for(int i = itemOffset; i < orderOffset; i++) {
|