| Line 39... |
Line 39... |
| 39 |
import org.apache.poi.ss.usermodel.Font;
|
39 |
import org.apache.poi.ss.usermodel.Font;
|
| 40 |
import org.apache.poi.ss.usermodel.Row;
|
40 |
import org.apache.poi.ss.usermodel.Row;
|
| 41 |
import org.apache.poi.ss.usermodel.Sheet;
|
41 |
import org.apache.poi.ss.usermodel.Sheet;
|
| 42 |
import org.apache.poi.ss.usermodel.Workbook;
|
42 |
import org.apache.poi.ss.usermodel.Workbook;
|
| 43 |
import org.apache.poi.ss.util.CellRangeAddress;
|
43 |
import org.apache.poi.ss.util.CellRangeAddress;
|
| - |
|
44 |
import org.apache.struts2.convention.annotation.InterceptorRef;
|
| - |
|
45 |
import org.apache.struts2.convention.annotation.InterceptorRefs;
|
| - |
|
46 |
import org.apache.struts2.convention.annotation.Result;
|
| - |
|
47 |
import org.apache.struts2.convention.annotation.Results;
|
| 44 |
import org.apache.struts2.interceptor.ServletRequestAware;
|
48 |
import org.apache.struts2.interceptor.ServletRequestAware;
|
| 45 |
import org.apache.struts2.interceptor.ServletResponseAware;
|
49 |
import org.apache.struts2.interceptor.ServletResponseAware;
|
| 46 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
50 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
| 47 |
import org.apache.struts2.rest.HttpHeaders;
|
51 |
import org.apache.struts2.rest.HttpHeaders;
|
| 48 |
import org.apache.struts2.util.ServletContextAware;
|
52 |
import org.apache.struts2.util.ServletContextAware;
|
| Line 55... |
Line 59... |
| 55 |
* @author Varun Gupta
|
59 |
* @author Varun Gupta
|
| 56 |
* @description: This class handles web requests to generate vendor specific reconciliation reports
|
60 |
* @description: This class handles web requests to generate vendor specific reconciliation reports
|
| 57 |
* for given vendor for a given date range
|
61 |
* for given vendor for a given date range
|
| 58 |
*/
|
62 |
*/
|
| 59 |
|
63 |
|
| - |
|
64 |
@InterceptorRefs({
|
| - |
|
65 |
@InterceptorRef("defaultStack"),
|
| - |
|
66 |
@InterceptorRef("login")
|
| - |
|
67 |
})
|
| - |
|
68 |
@Results({
|
| - |
|
69 |
@Result(name="authfail", type="redirectAction", params = {"actionName" , "reports"})
|
| - |
|
70 |
})
|
| 60 |
public class VendorReconciliationController implements ServletRequestAware, ServletResponseAware, ServletContextAware {
|
71 |
public class VendorReconciliationController implements ServletRequestAware, ServletResponseAware, ServletContextAware {
|
| 61 |
|
72 |
|
| 62 |
private static Logger logger = LoggerFactory.getLogger(VendorReconciliationController.class);
|
73 |
private static Logger logger = LoggerFactory.getLogger(VendorReconciliationController.class);
|
| 63 |
|
74 |
|
| 64 |
private enum OrderReportColumn {
|
75 |
private enum OrderReportColumn {
|