Subversion Repositories SmartDukaan

Rev

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

Rev 1962 Rev 1992
Line 4... Line 4...
4
import java.util.Map;
4
import java.util.Map;
5
 
5
 
6
import com.google.gwt.user.client.rpc.IsSerializable;
6
import com.google.gwt.user.client.rpc.IsSerializable;
7
 
7
 
8
public class Item implements IsSerializable, Serializable {
8
public class Item implements IsSerializable, Serializable {
-
 
9
    
-
 
10
    public static final int INDEX_MOP = 0, INDEX_DP = 1, INDEX_TP = 2;
9
 
11
    
10
    private long id;
12
    private long id;
11
    private String productGroup;
13
    private String productGroup;
12
    private String brand;
14
    private String brand;
13
    private String modelNumber;
15
    private String modelNumber;
14
    private String modelName;
16
    private String modelName;
Line 16... Line 18...
16
    private long category;
18
    private long category;
17
    private String comments;
19
    private String comments;
18
    private long catalogItemId;
20
    private long catalogItemId;
19
    private long featureId;
21
    private long featureId;
20
    private String featureDescription;
22
    private String featureDescription;
21
//  private ItemInventory itemInventory;
-
 
22
    private double mrp;
23
    private double mrp;
23
    private double mop;
24
    private double mop;
24
    private double sellingPrice;
25
    private double sellingPrice;
25
    private double dealerPrice;
26
    private double dealerPrice;
-
 
27
    private double transferPrice;
26
    private double weight;
28
    private double weight;
27
    private long addedOn;
29
    private long addedOn;
-
 
30
    private long updatedOn;
28
    private long startDate;
31
    private long startDate;
29
    private long retireDate;
32
    private long retireDate;
30
    private long updatedOn;
-
 
31
//  private status itemStatus;
33
    private String itemStatus;
32
    private Map<String, String> otherInfo;
-
 
33
    private String bestDealsText;
34
    private String bestDealsText;
34
    private double bestDealsValue;
35
    private double bestDealsValue;
35
 
-
 
36
    /**
36
    
-
 
37
    private Map<String, String> otherInfo;
-
 
38
    private Map<Long, Long> availability;
37
     * 
39
    
-
 
40
    private Map<Long, double[]> vendorPricings;
38
     */
41
    
39
    private static final long serialVersionUID = -2982668732181655698L;
42
    private static final long serialVersionUID = -2982668732181655698L;
40
 
43
 
41
    public Item() {
44
    public Item() {
42
 
45
        
43
    }
46
    }
44
 
47
 
45
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
48
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
46
            long category, String comments,
49
            long category, String comments,
47
            long catalogItemId, long featureId,
50
            long catalogItemId, long featureId,
48
            String featureDescription, 
51
            String featureDescription, 
49
            //ItemInventory itemInventory,
-
 
50
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
52
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
51
            long addedOn, long startDate, long retireDate, long updatedOn,
53
            long addedOn, long startDate, long retireDate, long updatedOn,
52
            //status itemStatus,
54
            String itemStatus,
53
            Map<String, String> otherInfo,
55
            Map<String, String> otherInfo,
54
            String bestDealsText, double bestDealsValue) {
56
            String bestDealsText, double bestDealsValue, Map<Long, Long> availability, Map<Long, double[]> vendorPricings) {
55
        this();
57
        this();
56
        this.id = id;
58
        this.id = id;
57
        this.setProductGroup(productGroup);
59
        this.setProductGroup(productGroup);
58
        this.brand = brand;
60
        this.brand = brand;
59
        this.modelNumber = modelNumber;
61
        this.modelNumber = modelNumber;
Line 62... Line 64...
62
        this.category = category;
64
        this.category = category;
63
        this.comments = comments;
65
        this.comments = comments;
64
        this.catalogItemId = catalogItemId;
66
        this.catalogItemId = catalogItemId;
65
        this.featureId = featureId;
67
        this.featureId = featureId;
66
        this.featureDescription = featureDescription;
68
        this.featureDescription = featureDescription;
67
        //this.itemInventory = itemInventory;
-
 
68
        this.mrp = mrp;
69
        this.mrp = mrp;
69
        this.mop = mop;
70
        this.mop = mop;
70
        this.sellingPrice = sellingPrice;
71
        this.sellingPrice = sellingPrice;
71
        this.dealerPrice = dealerPrice;
72
        this.dealerPrice = dealerPrice;
72
        this.weight = weight;
73
        this.weight = weight;
73
        this.addedOn = addedOn;
74
        this.addedOn = addedOn;
74
        this.startDate = startDate;
75
        this.startDate = startDate;
75
        this.retireDate = retireDate;
76
        this.retireDate = retireDate;
76
        this.updatedOn = updatedOn;
77
        this.updatedOn = updatedOn;
77
        //this.itemStatus = itemStatus;
78
        this.itemStatus = itemStatus;
78
        this.otherInfo = otherInfo;
79
        this.otherInfo = otherInfo;
79
        this.bestDealsText = bestDealsText;
80
        this.bestDealsText = bestDealsText;
80
        this.bestDealsValue = bestDealsValue;
81
        this.bestDealsValue = bestDealsValue;
-
 
82
        this.availability = availability;
-
 
83
        
-
 
84
        this.vendorPricings = vendorPricings;
81
    }
85
    }
82
 
86
 
83
    public long getId() {
87
    public long getId() {
84
        return id;
88
        return id;
85
    }
89
    }
Line 262... Line 266...
262
 
266
 
263
    public double getBestDealsValue() {
267
    public double getBestDealsValue() {
264
        return bestDealsValue;
268
        return bestDealsValue;
265
    }
269
    }
266
 
270
 
-
 
271
    public double getTransferPrice() {
-
 
272
        return transferPrice;
-
 
273
    }
-
 
274
 
-
 
275
    public void setTransferPrice(double transferPrice) {
-
 
276
        this.transferPrice = transferPrice;
-
 
277
    }
-
 
278
 
-
 
279
    public String getItemStatus() {
-
 
280
        return itemStatus;
-
 
281
    }
-
 
282
 
-
 
283
    public void setItemStatus(String itemStatus) {
-
 
284
        this.itemStatus = itemStatus;
-
 
285
    }
-
 
286
 
-
 
287
    public Map<Long, Long> getAvailability() {
-
 
288
        return availability;
-
 
289
    }
-
 
290
 
-
 
291
    public void setAvailability(Map<Long, Long> availability) {
-
 
292
        this.availability = availability;
-
 
293
    }
-
 
294
 
-
 
295
    public Map<Long, double[]> getVendorPricings() {
-
 
296
        return vendorPricings;
-
 
297
    }
-
 
298
 
-
 
299
    public void setVendorPricings(Map<Long, double[]> vendorPricings) {
-
 
300
        this.vendorPricings = vendorPricings;
-
 
301
    }
-
 
302
    
-
 
303
    
-
 
304
 
267
}
305
}