| Line 152... |
Line 152... |
| 152 |
contentRow.createCell(3).setCellValue(u.getCommunicationEmail());
|
152 |
contentRow.createCell(3).setCellValue(u.getCommunicationEmail());
|
| 153 |
contentRow.createCell(4).setCellValue(u.getDateOfBirth());
|
153 |
contentRow.createCell(4).setCellValue(u.getDateOfBirth());
|
| 154 |
// calendar.setTimeInMillis
|
154 |
// calendar.setTimeInMillis
|
| 155 |
contentRow.createCell(5).setCellValue(u.getSex().name());
|
155 |
contentRow.createCell(5).setCellValue(u.getSex().name());
|
| 156 |
contentRow.createCell(6).setCellValue(u.getMobileNumber());
|
156 |
contentRow.createCell(6).setCellValue(u.getMobileNumber());
|
| - |
|
157 |
calendar.setTimeInMillis(u.getActiveSince());
|
| - |
|
158 |
contentRow.createCell(7).setCellValue(formatter.format(calendar.getTime()));
|
| - |
|
159 |
calendar.setTimeInMillis(u.getLastLogin());
|
| - |
|
160 |
contentRow.createCell(8).setCellValue(formatter.format(calendar.getTime()));
|
| 157 |
|
161 |
|
| 158 |
|
162 |
|
| 159 |
|
163 |
|
| 160 |
try {
|
164 |
try {
|
| 161 |
uState = uClient.getUserState(u.getUserId());
|
- |
|
| 162 |
calendar.setTimeInMillis(uState.getActiveSince());
|
- |
|
| 163 |
contentRow.createCell(7).setCellValue(formatter.format(calendar.getTime()));
|
- |
|
| 164 |
calendar.setTimeInMillis(uState.getLastLogin());
|
- |
|
| 165 |
contentRow.createCell(8).setCellValue(formatter.format(calendar.getTime()));
|
- |
|
| 166 |
} catch (UserContextException e) {
|
- |
|
| 167 |
logger.error("Error while getting user state", e);
|
- |
|
| 168 |
} catch (TException e) {
|
- |
|
| 169 |
logger.error("Unable to get user state", e);
|
- |
|
| 170 |
}
|
- |
|
| 171 |
|
- |
|
| 172 |
try {
|
- |
|
| 173 |
List<Order> orders = tClient.getOrdersForCustomer(u.getUserId(), 0, currentDate.getTime(), null);
|
165 |
List<Order> orders = tClient.getOrdersForCustomer(u.getUserId(), 0, currentDate.getTime(), null);
|
| 174 |
int noOfFailedOrders = 0, noOfValidOrders = 0;
|
166 |
int noOfFailedOrders = 0, noOfValidOrders = 0;
|
| 175 |
for(Order order : orders) {
|
167 |
for(Order order : orders) {
|
| 176 |
if(order.getStatus().getValue() < 3) {
|
168 |
if(order.getStatus().getValue() < 3) {
|
| 177 |
noOfFailedOrders++;
|
169 |
noOfFailedOrders++;
|