| Line 79... |
Line 79... |
| 79 |
public String index() throws Exception{
|
79 |
public String index() throws Exception{
|
| 80 |
String loginStatus = (String) request.getSession().getAttribute("LOGGED_IN");
|
80 |
String loginStatus = (String) request.getSession().getAttribute("LOGGED_IN");
|
| 81 |
if(loginStatus == null || !loginStatus.equals("TRUE")){
|
81 |
if(loginStatus == null || !loginStatus.equals("TRUE")){
|
| 82 |
return "authfail";
|
82 |
return "authfail";
|
| 83 |
}
|
83 |
}
|
| - |
|
84 |
long today = -1;
|
| - |
|
85 |
today = new Date().getTime();
|
| 84 |
txns = tClient.getRechargeTransactions(Long.parseLong((String) request.getSession().getAttribute("STORE_ID")));
|
86 |
txns = tClient.getRechargeTrans(Long.parseLong((String) request.getSession().getAttribute("STORE_ID")), today, today, null);
|
| 85 |
return "index";
|
87 |
return "index";
|
| 86 |
}
|
88 |
}
|
| 87 |
|
89 |
|
| 88 |
public String search() throws Exception {
|
90 |
public String search() throws Exception {
|
| 89 |
String loginStatus = (String) request.getSession().getAttribute("LOGGED_IN");
|
91 |
String loginStatus = (String) request.getSession().getAttribute("LOGGED_IN");
|
| Line 223... |
Line 225... |
| 223 |
eDate = dateFormatter.parse(endDate).getTime();
|
225 |
eDate = dateFormatter.parse(endDate).getTime();
|
| 224 |
endDate = dateFormatter.format(sDate);
|
226 |
endDate = dateFormatter.format(sDate);
|
| 225 |
}
|
227 |
}
|
| 226 |
}
|
228 |
}
|
| 227 |
if(!status.equals("-1")){
|
229 |
if(!status.equals("-1")){
|
| 228 |
st = RechargeOrderStatus.findByValue(Integer.parseInt("0"));
|
230 |
st = RechargeOrderStatus.findByValue(Integer.parseInt(status));
|
| 229 |
}
|
231 |
}
|
| 230 |
|
232 |
|
| 231 |
ByteArrayOutputStream baos = generateReport(tClient.getRechargeTrans(Long.parseLong((String) request.getSession().getAttribute("STORE_ID")), sDate, eDate, st));
|
233 |
ByteArrayOutputStream baos = generateReport(tClient.getRechargeTrans(Long.parseLong((String) request.getSession().getAttribute("STORE_ID")), sDate, eDate, st));
|
| 232 |
|
234 |
|
| 233 |
response.setContentType("application/vnd.ms-excel");
|
235 |
response.setContentType("application/vnd.ms-excel");
|