| Line 83... |
Line 83... |
| 83 |
row.getCell(LISTING_ID_INDEX).setCellType(Cell.CELL_TYPE_STRING);
|
83 |
row.getCell(LISTING_ID_INDEX).setCellType(Cell.CELL_TYPE_STRING);
|
| 84 |
listingId = row.getCell(LISTING_ID_INDEX).getStringCellValue();
|
84 |
listingId = row.getCell(LISTING_ID_INDEX).getStringCellValue();
|
| 85 |
itemId = new Double(row.getCell(ITEM_ID_INDEX).getNumericCellValue()).longValue();
|
85 |
itemId = new Double(row.getCell(ITEM_ID_INDEX).getNumericCellValue()).longValue();
|
| 86 |
listingName = row.getCell(LISTING_NAME_INDEX).getStringCellValue();
|
86 |
listingName = row.getCell(LISTING_NAME_INDEX).getStringCellValue();
|
| 87 |
price = new Double(row.getCell(PRICE_INDEX).getNumericCellValue()).longValue();
|
87 |
price = new Double(row.getCell(PRICE_INDEX).getNumericCellValue()).longValue();
|
| - |
|
88 |
Cell subsidyCell = row.getCell(SUBSIDY_INDEX);
|
| - |
|
89 |
if(subsidyCell != null && subsidyCell.getCellType() != Cell.CELL_TYPE_BLANK) {
|
| 88 |
subsidy = row.getCell(SUBSIDY_INDEX).getNumericCellValue();
|
90 |
subsidy = row.getCell(SUBSIDY_INDEX).getNumericCellValue();
|
| - |
|
91 |
} else {
|
| - |
|
92 |
subsidy = 0.0;
|
| - |
|
93 |
}
|
| 89 |
Cell warehouseCell = row.getCell(DEFAULT_WAREHOUSE_INDEX);
|
94 |
Cell warehouseCell = row.getCell(DEFAULT_WAREHOUSE_INDEX);
|
| 90 |
if(warehouseCell != null && warehouseCell.getCellType() != Cell.CELL_TYPE_BLANK) {
|
95 |
if(warehouseCell != null && warehouseCell.getCellType() != Cell.CELL_TYPE_BLANK) {
|
| 91 |
warehouseId = new Double(row.getCell(DEFAULT_WAREHOUSE_INDEX).getNumericCellValue()).longValue();
|
96 |
warehouseId = new Double(row.getCell(DEFAULT_WAREHOUSE_INDEX).getNumericCellValue()).longValue();
|
| 92 |
} else {
|
97 |
} else {
|
| 93 |
warehouseId = 0L;
|
98 |
warehouseId = 0L;
|
| 94 |
}
|
99 |
}
|
| 95 |
} catch (Exception e) {
|
100 |
} catch (Exception e) {
|
| - |
|
101 |
logger.error("Error in reading input for row number " + totalNumRows, e);
|
| 96 |
setErrorMsg(getErrorMsg() + "<br/>Error in reading input for row number " + totalNumRows);
|
102 |
setErrorMsg(getErrorMsg() + "<br/>Error in reading input for row number " + totalNumRows);
|
| 97 |
continue;
|
103 |
continue;
|
| 98 |
}
|
104 |
}
|
| 99 |
|
105 |
|
| 100 |
CatalogService.Client catalogClient = new CatalogClient().getClient();
|
106 |
CatalogService.Client catalogClient = new CatalogClient().getClient();
|