Subversion Repositories SmartDukaan

Rev

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

Rev 2105 Rev 2119
Line 1... Line 1...
1
package in.shop2020.catalog.dashboard.shared;
1
package in.shop2020.catalog.dashboard.shared;
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
4
import java.util.Calendar;
-
 
5
import java.util.Date;
-
 
6
import java.util.Map;
4
import java.util.Map;
7
 
5
 
8
import com.google.gwt.user.client.rpc.IsSerializable;
6
import com.google.gwt.user.client.rpc.IsSerializable;
9
 
7
 
10
public class Item implements IsSerializable, Serializable {
8
public class Item implements IsSerializable, Serializable {
Line 13... Line 11...
13
    
11
    
14
    private long id;
12
    private long id;
15
    
13
    
16
    private String vendorCategory;
14
    private String vendorCategory;
17
    private String productGroup;
15
    private String productGroup;
18
 
-
 
19
    
-
 
20
    
16
    
21
    private String brand;
17
    private String brand;
22
    private String modelNumber;
18
    private String modelNumber;
23
    private String modelName;
19
    private String modelName;
24
    private String color;
20
    private String color;
25
    private long contentCategory;
21
    private String contentCategory;
26
    private String comments;
22
    private String comments;
27
    private long catalogItemId;
23
    private long catalogItemId;
28
    private long featureId;
24
    private long featureId;
29
    private String featureDescription;
25
    private String featureDescription;
30
    private double mrp;
26
    private double mrp;
Line 46... Line 42...
46
    
42
    
47
    private Map<String, String> otherInfo;
43
    private Map<String, String> otherInfo;
48
    private Map<Long, Long> availability;
44
    private Map<Long, Long> availability;
49
    
45
    
50
    //private Map<Long, double[]> vendorPricings;
46
    //private Map<Long, double[]> vendorPricings;
51
    private Map<Long, VendorDetails> vendorDetails;
47
    private Map<Long, VendorPricings> vendorPricesMap;
-
 
48
    private Map<Long, VendorItemMapping> vendorMappingsMap;
52
    
49
    
53
    private static final long serialVersionUID = -2982668732181655698L;
50
    private static final long serialVersionUID = -2982668732181655698L;
54
 
51
 
55
    public Item() {
52
    public Item() {
56
        
53
        
57
    }
54
    }
58
 
55
 
59
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
56
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
60
            long category, String comments,
57
            String category, String comments,
61
            long catalogItemId, long featureId,
58
            long catalogItemId, long featureId,
62
            String featureDescription, 
59
            String featureDescription, 
63
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
60
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
64
            long addedOn, long startDate, long retireDate, long updatedOn,
61
            long addedOn, long startDate, long retireDate, long updatedOn,
65
            String itemStatus,
62
            String itemStatus,
66
            Map<String, String> otherInfo,
63
            Map<String, String> otherInfo,
67
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, Map<Long, Long> availability, Map<Long,VendorDetails> vendorDetails) {
64
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, 
-
 
65
            Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<Long, VendorItemMapping> vendorMappingsMap) {
68
        this();
66
        this();
69
        this.id = id;
67
        this.id = id;
70
        this.setProductGroup(productGroup);
68
        this.setProductGroup(productGroup);
71
        this.brand = brand;
69
        this.brand = brand;
72
        this.modelNumber = modelNumber;
70
        this.modelNumber = modelNumber;
Line 93... Line 91...
93
        this.bestSellingRank = bestSellingRank;
91
        this.bestSellingRank = bestSellingRank;
94
        this.defaultForEntity = defaultForEntity;
92
        this.defaultForEntity = defaultForEntity;
95
        
93
        
96
        this.availability = availability;
94
        this.availability = availability;
97
        
95
        
-
 
96
        this.vendorPricesMap = vendorPricesMap;
98
        this.vendorDetails = vendorDetails;
97
        this.vendorMappingsMap = vendorMappingsMap;
99
    }
98
    }
100
 
99
 
101
    public long getId() {
100
    public long getId() {
102
        return id;
101
        return id;
103
    }
102
    }
Line 136... Line 135...
136
 
135
 
137
    public void setModelName(String modelName) {
136
    public void setModelName(String modelName) {
138
        this.modelName = modelName;
137
        this.modelName = modelName;
139
    }
138
    }
140
 
139
 
141
    public long getContentCategory() {
140
    public String getContentCategory() {
142
        return contentCategory;
141
        return contentCategory;
143
    }
142
    }
144
 
143
 
145
    public void setContentCategory(long contentCategory) {
144
    public void setContentCategory(String contentCategory) {
146
        this.contentCategory = contentCategory;
145
        this.contentCategory = contentCategory;
147
    }
146
    }
148
 
147
 
149
    public String getComments() {
148
    public String getComments() {
150
        return comments;
149
        return comments;
Line 304... Line 303...
304
 
303
 
305
    public void setAvailability(Map<Long, Long> availability) {
304
    public void setAvailability(Map<Long, Long> availability) {
306
        this.availability = availability;
305
        this.availability = availability;
307
    }
306
    }
308
 
307
 
309
    public Map<Long, VendorDetails> getVendorDetails() {
308
    public Map<Long, VendorPricings> getVendorPricesMap() {
310
        return vendorDetails;
309
        return vendorPricesMap;
311
    }
310
    }
312
 
311
 
313
    public void setVendorDetails(Map<Long, VendorDetails> vendorDetails) {
312
    public void setVendorPricesMap(Map<Long, VendorPricings> vendorPricesMap) {
314
        this.vendorDetails = vendorDetails;
313
        this.vendorPricesMap = vendorPricesMap;
315
    }
314
    }
316
 
315
 
317
    public long getBestSellingRank() {
316
    public long getBestSellingRank() {
318
        return bestSellingRank;
317
        return bestSellingRank;
319
    }
318
    }
Line 335... Line 334...
335
    }
334
    }
336
 
335
 
337
    public void setVendorCategory(String vendorCategory) {
336
    public void setVendorCategory(String vendorCategory) {
338
        this.vendorCategory = vendorCategory;
337
        this.vendorCategory = vendorCategory;
339
    }
338
    }
-
 
339
 
-
 
340
    public Map<Long, VendorItemMapping> getVendorMappingsMap() {
-
 
341
        return vendorMappingsMap;
340
    
342
    }
-
 
343
 
-
 
344
    public void setVendorMappingsMap(Map<Long, VendorItemMapping> vendorMappingsMap) {
-
 
345
        this.vendorMappingsMap = vendorMappingsMap;
-
 
346
    }
-
 
347
 
341
}
348
}