Subversion Repositories SmartDukaan

Rev

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

Rev 7695 Rev 12334
Line 74... Line 74...
74
        
74
        
75
        try {
75
        try {
76
            catalogServiceClient = new CatalogClient();
76
            catalogServiceClient = new CatalogClient();
77
            ItemShippingInfo info = catalogServiceClient.getClient().isActive(itemId);
77
            ItemShippingInfo info = catalogServiceClient.getClient().isActive(itemId);
78
            isActive = info.isIsActive();
78
            isActive = info.isIsActive();
79
            activeOnStore = catalogServiceClient.getClient().getItem(itemId).isActiveOnStore();
79
            //activeOnStore = catalogServiceClient.getClient().getItem(itemId).isActiveOnStore();
80
            sp = catalogServiceClient.getClient().getStorePricing(itemId);
80
            sp = catalogServiceClient.getClient().getStorePricing(itemId);
81
            sellingPrice = sp.getRecommendedPrice();
81
            sellingPrice = sp.getRecommendedPrice();
82
            maxSellingPrice = sp.getMaxPrice();
82
            maxSellingPrice = sp.getMaxPrice();
83
            minSellingPrice = sp.getMinPrice();
83
            minSellingPrice = sp.getMinPrice();
84
        } catch (Exception e)   {
84
        } catch (Exception e)   {
Line 96... Line 96...
96
        response.put("max_selling_price", Double.toString(maxSellingPrice));
96
        response.put("max_selling_price", Double.toString(maxSellingPrice));
97
        response.put("best_deal_text", sp.getBestDealText() == null ? " " : sp.getBestDealText());
97
        response.put("best_deal_text", sp.getBestDealText() == null ? " " : sp.getBestDealText());
98
        response.put("freebie_item_id", Long.toString(sp.getFreebieItemId()));
98
        response.put("freebie_item_id", Long.toString(sp.getFreebieItemId()));
99
        response.put("absolute_min_price", Double.toString(sp.getAbsoluteMinPrice()));
99
        response.put("absolute_min_price", Double.toString(sp.getAbsoluteMinPrice()));
100
        response.put("is_active", Boolean.toString(isActive));
100
        response.put("is_active", Boolean.toString(isActive));
101
        response.put("active_on_store", Boolean.toString(activeOnStore));
101
        response.put("active_on_store", "true");
102
        return "index";
102
        return "index";
103
    }
103
    }
104
    
104
    
105
    public String show(){
105
    public String show(){
106
        StringTokenizer tokenizer = new StringTokenizer(this.id, "_");
106
        StringTokenizer tokenizer = new StringTokenizer(this.id, "_");