| Line 1... |
Line 1... |
| 1 |
package in.shop2020.inventory.controllers;
|
1 |
package in.shop2020.inventory.controllers;
|
| 2 |
|
2 |
|
| - |
|
3 |
import java.util.ArrayList;
|
| - |
|
4 |
import java.util.Calendar;
|
| - |
|
5 |
import java.util.Date;
|
| - |
|
6 |
import java.util.HashMap;
|
| - |
|
7 |
import java.util.List;
|
| - |
|
8 |
import java.util.Map;
|
| - |
|
9 |
|
| - |
|
10 |
import javax.servlet.ServletContext;
|
| - |
|
11 |
|
| - |
|
12 |
import org.apache.commons.lang.StringUtils;
|
| - |
|
13 |
import org.apache.struts2.convention.annotation.Result;
|
| - |
|
14 |
import org.apache.struts2.convention.annotation.Results;
|
| - |
|
15 |
import org.apache.thrift.TException;
|
| - |
|
16 |
import org.apache.thrift.transport.TTransportException;
|
| - |
|
17 |
import org.slf4j.Logger;
|
| - |
|
18 |
import org.slf4j.LoggerFactory;
|
| - |
|
19 |
|
| 3 |
import in.shop2020.model.v1.catalog.Item;
|
20 |
import in.shop2020.model.v1.catalog.Item;
|
| 4 |
import in.shop2020.model.v1.inventory.InventoryService;
|
21 |
import in.shop2020.model.v1.inventory.InventoryService;
|
| 5 |
import in.shop2020.model.v1.inventory.InventoryServiceException;
|
- |
|
| 6 |
import in.shop2020.model.v1.inventory.InventoryType;
|
22 |
import in.shop2020.model.v1.inventory.InventoryType;
|
| 7 |
import in.shop2020.model.v1.inventory.Warehouse;
|
23 |
import in.shop2020.model.v1.inventory.Warehouse;
|
| 8 |
import in.shop2020.model.v1.inventory.WarehouseType;
|
24 |
import in.shop2020.model.v1.inventory.WarehouseType;
|
| 9 |
import in.shop2020.model.v1.order.LineItem;
|
25 |
import in.shop2020.model.v1.order.LineItem;
|
| 10 |
import in.shop2020.purchase.Invoice;
|
26 |
import in.shop2020.purchase.Invoice;
|
| 11 |
/*import in.shop2020.purchase.POStatus;*/
|
27 |
/*import in.shop2020.purchase.POStatus;*/
|
| 12 |
import in.shop2020.purchase.PurchaseOrder;
|
28 |
import in.shop2020.purchase.PurchaseOrder;
|
| 13 |
/*import in.shop2020.purchase.PurchaseService;*/
|
29 |
/*import in.shop2020.purchase.PurchaseService;*/
|
| 14 |
import in.shop2020.purchase.PurchaseServiceException;
|
30 |
import in.shop2020.purchase.PurchaseServiceException;
|
| 15 |
import in.shop2020.thrift.clients.CatalogClient;
|
31 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 16 |
import in.shop2020.thrift.clients.HelperClient;
|
- |
|
| 17 |
import in.shop2020.thrift.clients.InventoryClient;
|
32 |
import in.shop2020.thrift.clients.InventoryClient;
|
| 18 |
import in.shop2020.thrift.clients.PurchaseClient;
|
33 |
import in.shop2020.thrift.clients.PurchaseClient;
|
| 19 |
import in.shop2020.thrift.clients.WarehouseClient;
|
34 |
import in.shop2020.thrift.clients.WarehouseClient;
|
| 20 |
import in.shop2020.utils.HelperService;
|
- |
|
| 21 |
import in.shop2020.utils.ModelUtils;
|
35 |
import in.shop2020.utils.ModelUtils;
|
| 22 |
import in.shop2020.warehouse.InventoryItem;
|
36 |
import in.shop2020.warehouse.InventoryItem;
|
| 23 |
import in.shop2020.warehouse.ScanType;
|
37 |
import in.shop2020.warehouse.ScanType;
|
| 24 |
import in.shop2020.warehouse.WarehouseService;
|
38 |
import in.shop2020.warehouse.WarehouseService;
|
| 25 |
import in.shop2020.warehouse.WarehouseService.Client;
|
39 |
import in.shop2020.warehouse.WarehouseService.Client;
|
| 26 |
import in.shop2020.warehouse.WarehouseServiceException;
|
40 |
import in.shop2020.warehouse.WarehouseServiceException;
|
| 27 |
|
41 |
|
| 28 |
import java.util.ArrayList;
|
- |
|
| 29 |
import java.util.Calendar;
|
- |
|
| 30 |
import java.util.Date;
|
- |
|
| 31 |
import java.util.HashMap;
|
- |
|
| 32 |
import java.util.List;
|
- |
|
| 33 |
import java.util.Map;
|
- |
|
| 34 |
|
- |
|
| 35 |
import javax.servlet.ServletContext;
|
- |
|
| 36 |
|
- |
|
| 37 |
import org.apache.commons.lang.StringUtils;
|
- |
|
| 38 |
import org.apache.struts2.convention.annotation.Result;
|
- |
|
| 39 |
import org.apache.struts2.convention.annotation.Results;
|
- |
|
| 40 |
import org.apache.thrift.TException;
|
- |
|
| 41 |
import org.apache.thrift.transport.TTransportException;
|
- |
|
| 42 |
import org.slf4j.Logger;
|
- |
|
| 43 |
import org.slf4j.LoggerFactory;
|
- |
|
| 44 |
|
- |
|
| 45 |
@SuppressWarnings("serial")
|
42 |
@SuppressWarnings("serial")
|
| 46 |
@Results({ @Result(name = "redirect", type = "redirectAction", params = {
|
43 |
@Results({ @Result(name = "redirect", type = "redirectAction", params = {
|
| 47 |
"actionName", "warehouse" }) })
|
44 |
"actionName", "warehouse" }) })
|
| 48 |
public class PurchaseController extends BaseController {
|
45 |
public class PurchaseController extends BaseController {
|
| 49 |
/**
|
46 |
/**
|