Subversion Repositories SmartDukaan

Rev

Rev 2832 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2832 Rev 3132
Line 1... Line 1...
1
package in.shop2020.hotspot.dashbaord.server;
1
package in.shop2020.hotspot.dashbaord.server;
2
 
2
 
3
import in.shop2020.hotspot.dashbaord.shared.actions.PoType;
3
import in.shop2020.hotspot.dashbaord.shared.actions.PoType;
4
import in.shop2020.hotspot.dashbaord.shared.actions.PurchaseOrder;
4
import in.shop2020.hotspot.dashbaord.shared.actions.PurchaseOrder;
5
import in.shop2020.thrift.clients.WarehouseServiceClient;
5
import in.shop2020.thrift.clients.WarehouseClient;
6
import in.shop2020.utils.GmailUtils;
6
import in.shop2020.utils.GmailUtils;
7
import in.shop2020.warehouse.POStatus;
7
import in.shop2020.warehouse.POStatus;
8
import in.shop2020.warehouse.Supplier;
8
import in.shop2020.warehouse.Supplier;
9
import in.shop2020.warehouse.WarehouseService.Client;
9
import in.shop2020.warehouse.WarehouseService.Client;
10
 
10
 
Line 52... Line 52...
52
        return statuses;
52
        return statuses;
53
    }
53
    }
54
    
54
    
55
    public static void sendPurchaseOrder(long purchaseOrderId){
55
    public static void sendPurchaseOrder(long purchaseOrderId){
56
        try {
56
        try {
57
            WarehouseServiceClient warehouseServiceClient = new WarehouseServiceClient();
57
            WarehouseClient warehouseServiceClient = new WarehouseClient();
58
            Client client = warehouseServiceClient.getClient();
58
            Client client = warehouseServiceClient.getClient();
59
            in.shop2020.warehouse.PurchaseOrder purchaseOrder = client.getPurchaseOrder(purchaseOrderId);
59
            in.shop2020.warehouse.PurchaseOrder purchaseOrder = client.getPurchaseOrder(purchaseOrderId);
60
            Supplier supplier = client.getSupplier(purchaseOrder.getSupplierId());
60
            Supplier supplier = client.getSupplier(purchaseOrder.getSupplierId());
61
            
61
            
62
            String filename = PoSheetGenerator.generatePdfSheet(purchaseOrder, supplier);
62
            String filename = PoSheetGenerator.generatePdfSheet(purchaseOrder, supplier);