| Line 3... |
Line 3... |
| 3 |
import in.shop2020.model.v1.catalog.Warehouse;
|
3 |
import in.shop2020.model.v1.catalog.Warehouse;
|
| 4 |
import in.shop2020.model.v1.order.LineItem;
|
4 |
import in.shop2020.model.v1.order.LineItem;
|
| 5 |
import in.shop2020.model.v1.order.Order;
|
5 |
import in.shop2020.model.v1.order.Order;
|
| 6 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
6 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
| 7 |
import in.shop2020.support.utils.ReportsUtils;
|
7 |
import in.shop2020.support.utils.ReportsUtils;
|
| 8 |
import in.shop2020.thrift.clients.CatalogServiceClient;
|
8 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 9 |
import in.shop2020.thrift.clients.TransactionServiceClient;
|
9 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 10 |
|
10 |
|
| 11 |
import java.text.DateFormat;
|
11 |
import java.text.DateFormat;
|
| 12 |
import java.text.SimpleDateFormat;
|
12 |
import java.text.SimpleDateFormat;
|
| 13 |
import java.text.ParseException;
|
13 |
import java.text.ParseException;
|
| 14 |
|
14 |
|
| Line 106... |
Line 106... |
| 106 |
try {
|
106 |
try {
|
| 107 |
//Formatting Form input parameters
|
107 |
//Formatting Form input parameters
|
| 108 |
startDate = dateFormat.parse(request.getParameter("start"));
|
108 |
startDate = dateFormat.parse(request.getParameter("start"));
|
| 109 |
endDate = dateFormat.parse(request.getParameter("end"));
|
109 |
endDate = dateFormat.parse(request.getParameter("end"));
|
| 110 |
|
110 |
|
| 111 |
CatalogServiceClient csc = new CatalogServiceClient();
|
111 |
CatalogClient csc = new CatalogClient();
|
| 112 |
in.shop2020.model.v1.catalog.InventoryService.Client catalogClient= csc.getClient();
|
112 |
in.shop2020.model.v1.catalog.InventoryService.Client catalogClient= csc.getClient();
|
| 113 |
List<Warehouse> warehouses = catalogClient.getAllWarehouses(true);
|
113 |
List<Warehouse> warehouses = catalogClient.getAllWarehouses(true);
|
| 114 |
|
114 |
|
| 115 |
TransactionServiceClient transactionServiceClient = new TransactionServiceClient();
|
115 |
TransactionClient transactionServiceClient = new TransactionClient();
|
| 116 |
in.shop2020.model.v1.order.TransactionService.Client client = transactionServiceClient.getClient();
|
116 |
in.shop2020.model.v1.order.TransactionService.Client client = transactionServiceClient.getClient();
|
| 117 |
|
117 |
|
| 118 |
List <Order> orders = new ArrayList<Order>();
|
118 |
List <Order> orders = new ArrayList<Order>();
|
| 119 |
|
119 |
|
| 120 |
//Retrieving all the orders across all the warehouses
|
120 |
//Retrieving all the orders across all the warehouses
|