Subversion Repositories SmartDukaan

Rev

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

Rev 2068 Rev 2105
Line 7... Line 7...
7
 
7
 
8
import com.google.gwt.user.client.rpc.IsSerializable;
8
import com.google.gwt.user.client.rpc.IsSerializable;
9
 
9
 
10
public class Item implements IsSerializable, Serializable {
10
public class Item implements IsSerializable, Serializable {
11
    
11
    
12
    public static final int INDEX_MOP = 0, INDEX_DP = 1, INDEX_TP = 2;
12
    //public static final int INDEX_MOP = 0, INDEX_DP = 1, INDEX_TP = 2;
13
    
13
    
14
    private long id;
14
    private long id;
-
 
15
    
-
 
16
    private String vendorCategory;
15
    private String productGroup;
17
    private String productGroup;
-
 
18
 
-
 
19
    
-
 
20
    
16
    private String brand;
21
    private String brand;
17
    private String modelNumber;
22
    private String modelNumber;
18
    private String modelName;
23
    private String modelName;
19
    private String color;
24
    private String color;
20
    private long category;
25
    private long contentCategory;
21
    private String comments;
26
    private String comments;
22
    private long catalogItemId;
27
    private long catalogItemId;
23
    private long featureId;
28
    private long featureId;
24
    private String featureDescription;
29
    private String featureDescription;
25
    private double mrp;
30
    private double mrp;
Line 40... Line 45...
40
    private boolean defaultForEntity;
45
    private boolean defaultForEntity;
41
    
46
    
42
    private Map<String, String> otherInfo;
47
    private Map<String, String> otherInfo;
43
    private Map<Long, Long> availability;
48
    private Map<Long, Long> availability;
44
    
49
    
45
    private Map<Long, double[]> vendorPricings;
50
    //private Map<Long, double[]> vendorPricings;
-
 
51
    private Map<Long, VendorDetails> vendorDetails;
46
    
52
    
47
    private static final long serialVersionUID = -2982668732181655698L;
53
    private static final long serialVersionUID = -2982668732181655698L;
48
 
54
 
49
    public Item() {
55
    public Item() {
50
        
56
        
Line 56... Line 62...
56
            String featureDescription, 
62
            String featureDescription, 
57
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
63
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
58
            long addedOn, long startDate, long retireDate, long updatedOn,
64
            long addedOn, long startDate, long retireDate, long updatedOn,
59
            String itemStatus,
65
            String itemStatus,
60
            Map<String, String> otherInfo,
66
            Map<String, String> otherInfo,
61
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, Map<Long, Long> availability, Map<Long, double[]> vendorPricings) {
67
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, Map<Long, Long> availability, Map<Long,VendorDetails> vendorDetails) {
62
        this();
68
        this();
63
        this.id = id;
69
        this.id = id;
64
        this.setProductGroup(productGroup);
70
        this.setProductGroup(productGroup);
65
        this.brand = brand;
71
        this.brand = brand;
66
        this.modelNumber = modelNumber;
72
        this.modelNumber = modelNumber;
67
        this.modelName = modelName;
73
        this.modelName = modelName;
68
        this.color = color;
74
        this.color = color;
69
        this.category = category;
75
        this.contentCategory = category;
70
        this.comments = comments;
76
        this.comments = comments;
71
        this.catalogItemId = catalogItemId;
77
        this.catalogItemId = catalogItemId;
72
        this.featureId = featureId;
78
        this.featureId = featureId;
73
        this.featureDescription = featureDescription;
79
        this.featureDescription = featureDescription;
74
        this.mrp = mrp;
80
        this.mrp = mrp;
Line 87... Line 93...
87
        this.bestSellingRank = bestSellingRank;
93
        this.bestSellingRank = bestSellingRank;
88
        this.defaultForEntity = defaultForEntity;
94
        this.defaultForEntity = defaultForEntity;
89
        
95
        
90
        this.availability = availability;
96
        this.availability = availability;
91
        
97
        
92
        this.vendorPricings = vendorPricings;
98
        this.vendorDetails = vendorDetails;
93
    }
99
    }
94
 
100
 
95
    public long getId() {
101
    public long getId() {
96
        return id;
102
        return id;
97
    }
103
    }
Line 130... Line 136...
130
 
136
 
131
    public void setModelName(String modelName) {
137
    public void setModelName(String modelName) {
132
        this.modelName = modelName;
138
        this.modelName = modelName;
133
    }
139
    }
134
 
140
 
135
    public long getCategory() {
141
    public long getContentCategory() {
136
        return category;
142
        return contentCategory;
137
    }
143
    }
138
 
144
 
139
    public void setCategory(long category) {
145
    public void setContentCategory(long contentCategory) {
140
        this.category = category;
146
        this.contentCategory = contentCategory;
141
    }
147
    }
142
 
148
 
143
    public String getComments() {
149
    public String getComments() {
144
        return comments;
150
        return comments;
145
    }
151
    }
Line 298... Line 304...
298
 
304
 
299
    public void setAvailability(Map<Long, Long> availability) {
305
    public void setAvailability(Map<Long, Long> availability) {
300
        this.availability = availability;
306
        this.availability = availability;
301
    }
307
    }
302
 
308
 
303
    public Map<Long, double[]> getVendorPricings() {
309
    public Map<Long, VendorDetails> getVendorDetails() {
304
        return vendorPricings;
310
        return vendorDetails;
305
    }
311
    }
306
 
312
 
307
    public void setVendorPricings(Map<Long, double[]> vendorPricings) {
313
    public void setVendorDetails(Map<Long, VendorDetails> vendorDetails) {
308
        this.vendorPricings = vendorPricings;
314
        this.vendorDetails = vendorDetails;
309
    }
315
    }
310
 
316
 
311
    public long getBestSellingRank() {
317
    public long getBestSellingRank() {
312
        return bestSellingRank;
318
        return bestSellingRank;
313
    }
319
    }
Line 321... Line 327...
321
    }
327
    }
322
 
328
 
323
    public void setDefaultForEntity(boolean defaultForEntity) {
329
    public void setDefaultForEntity(boolean defaultForEntity) {
324
        this.defaultForEntity = defaultForEntity;
330
        this.defaultForEntity = defaultForEntity;
325
    }
331
    }
-
 
332
 
-
 
333
    public String getVendorCategory() {
-
 
334
        return vendorCategory;
-
 
335
    }
-
 
336
 
-
 
337
    public void setVendorCategory(String vendorCategory) {
-
 
338
        this.vendorCategory = vendorCategory;
-
 
339
    }
326
    
340
    
327
}
341
}