Subversion Repositories SmartDukaan

Rev

Rev 7248 | Rev 7323 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7248 Rev 7263
Line 27... Line 27...
27
        /**
27
        /**
28
         * The following code should be in create method.*********************************************************************
28
         * The following code should be in create method.*********************************************************************
29
         */
29
         */
30
        try {
30
        try {
31
            CatalogClient csc = new CatalogClient();
31
            CatalogClient csc = new CatalogClient();
32
            setItem(csc.getClient().getItem(itemId));
32
            setItem(csc.getClient().getItem(product_id));
33
            
33
            
34
            setDealText("Get a house free with this product");
34
            setDealText("Get a house free with this product");
35
            
35
            
36
       } catch (Exception e) {
36
       } catch (Exception e) {
37
           log.error("Unable to get item from catalog service", e);
37
           log.error("Unable to get item from catalog service", e);
Line 58... Line 58...
58
 
58
 
59
        SimpleDateFormat sdf = new SimpleDateFormat("h:m a, d MMMM yyyy");
59
        SimpleDateFormat sdf = new SimpleDateFormat("h:m a, d MMMM yyyy");
60
        /**
60
        /**
61
         * TODO : Ask for advance to be paid, price and DeliveryDate from catalog Service
61
         * TODO : Ask for advance to be paid, price and DeliveryDate from catalog Service
62
         */
62
         */
-
 
63
        
-
 
64
        
63
        price = 10000.0;
65
        price = 10000.0;
64
        advanceAmount = 6000.0;
66
        advanceAmount = 6000.0;
65
        deliveryDate = 1367498907000L;
67
        deliveryDate = 1367498907000L;
66
        
68
        
67
        setDisplayDate(sdf.format(new Date(deliveryDate)));
69
        setDisplayDate(sdf.format(new Date(deliveryDate)));
Line 133... Line 135...
133
 
135
 
134
    public void setProduct_id(long product_id) {
136
    public void setProduct_id(long product_id) {
135
        this.itemId = product_id;
137
        this.itemId = product_id;
136
    }
138
    }
137
 
139
 
-
 
140
    public long getProduct_id() {
-
 
141
        return product_id;
-
 
142
    }
-
 
143
 
138
}
144
}