Subversion Repositories SmartDukaan

Rev

Rev 1992 | Rev 2066 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1961 ankur.sing 1
package in.shop2020.catalog.dashboard.shared;
2
 
3
import java.io.Serializable;
4
import java.util.Map;
5
 
6
import com.google.gwt.user.client.rpc.IsSerializable;
7
 
8
public class Item implements IsSerializable, Serializable {
1992 ankur.sing 9
 
10
    public static final int INDEX_MOP = 0, INDEX_DP = 1, INDEX_TP = 2;
11
 
1961 ankur.sing 12
    private long id;
13
    private String productGroup;
14
    private String brand;
15
    private String modelNumber;
16
    private String modelName;
17
    private String color;
18
    private long category;
19
    private String comments;
20
    private long catalogItemId;
21
    private long featureId;
22
    private String featureDescription;
23
    private double mrp;
24
    private double mop;
25
    private double sellingPrice;
26
    private double dealerPrice;
1992 ankur.sing 27
    private double transferPrice;
1961 ankur.sing 28
    private double weight;
29
    private long addedOn;
1992 ankur.sing 30
    private long updatedOn;
1961 ankur.sing 31
    private long startDate;
32
    private long retireDate;
1992 ankur.sing 33
    private String itemStatus;
1961 ankur.sing 34
    private String bestDealsText;
35
    private double bestDealsValue;
1992 ankur.sing 36
 
37
    private Map<String, String> otherInfo;
38
    private Map<Long, Long> availability;
39
 
40
    private Map<Long, double[]> vendorPricings;
41
 
1961 ankur.sing 42
    private static final long serialVersionUID = -2982668732181655698L;
43
 
44
    public Item() {
1992 ankur.sing 45
 
1961 ankur.sing 46
    }
47
 
48
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
49
            long category, String comments,
50
            long catalogItemId, long featureId,
51
            String featureDescription, 
52
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
53
            long addedOn, long startDate, long retireDate, long updatedOn,
1992 ankur.sing 54
            String itemStatus,
1961 ankur.sing 55
            Map<String, String> otherInfo,
1992 ankur.sing 56
            String bestDealsText, double bestDealsValue, Map<Long, Long> availability, Map<Long, double[]> vendorPricings) {
1961 ankur.sing 57
        this();
58
        this.id = id;
59
        this.setProductGroup(productGroup);
60
        this.brand = brand;
61
        this.modelNumber = modelNumber;
62
        this.modelName = modelName;
63
        this.color = color;
64
        this.category = category;
65
        this.comments = comments;
66
        this.catalogItemId = catalogItemId;
67
        this.featureId = featureId;
68
        this.featureDescription = featureDescription;
69
        this.mrp = mrp;
70
        this.mop = mop;
71
        this.sellingPrice = sellingPrice;
72
        this.dealerPrice = dealerPrice;
73
        this.weight = weight;
74
        this.addedOn = addedOn;
75
        this.startDate = startDate;
76
        this.retireDate = retireDate;
77
        this.updatedOn = updatedOn;
1992 ankur.sing 78
        this.itemStatus = itemStatus;
1961 ankur.sing 79
        this.otherInfo = otherInfo;
80
        this.bestDealsText = bestDealsText;
81
        this.bestDealsValue = bestDealsValue;
1992 ankur.sing 82
        this.availability = availability;
83
 
84
        this.vendorPricings = vendorPricings;
1961 ankur.sing 85
    }
86
 
87
    public long getId() {
88
        return id;
89
    }
90
 
91
    public void setId(long id) {
92
        this.id = id;
93
    }
94
 
95
    public void setProductGroup(String productGroup) {
96
        this.productGroup = productGroup;
97
    }
98
 
99
    public String getProductGroup() {
100
        return productGroup;
101
    }
102
 
103
    public String getBrand() {
104
        return brand;
105
    }
106
 
107
    public void setBrand(String brand) {
108
        this.brand = brand;
109
    }
110
 
111
    public String getModelNumber() {
112
        return modelNumber;
113
    }
114
 
115
    public void setModelNumber(String modelNumber) {
116
        this.modelNumber = modelNumber;
117
    }
118
 
119
    public String getModelName() {
120
        return modelName;
121
    }
122
 
123
    public void setModelName(String modelName) {
124
        this.modelName = modelName;
125
    }
126
 
127
    public long getCategory() {
128
        return category;
129
    }
130
 
2027 ankur.sing 131
    /*public void setCategory(long category) {
1961 ankur.sing 132
        this.category = category;
2027 ankur.sing 133
    }*/
1961 ankur.sing 134
 
135
    public String getComments() {
136
        return comments;
137
    }
138
 
139
    public void setComments(String comments) {
140
        this.comments = comments;
141
    }
142
 
143
    public long getCatalogItemId() {
144
        return catalogItemId;
145
    }
146
 
147
    public void setCatalogItemId(long catalogItemId) {
148
        this.catalogItemId = catalogItemId;
149
    }
150
 
151
    public long getFeatureId() {
152
        return featureId;
153
    }
154
 
155
    public void setFeatureId(long featureId) {
156
        this.featureId = featureId;
157
    }
158
 
159
    public String getFeatureDescription() {
160
        return featureDescription;
161
    }
162
 
163
    public void setFeatureDescription(String featureDescription) {
164
        this.featureDescription = featureDescription;
165
    }
166
 
167
    public double getMrp() {
168
        return mrp;
169
    }
170
 
171
    public void setMrp(double mrp) {
172
        this.mrp = mrp;
173
    }
174
 
175
    public double getMop() {
176
        return mop;
177
    }
178
 
179
    public void setMop(double mop) {
180
        this.mop = mop;
181
    }
182
 
183
    public double getSellingPrice() {
184
        return sellingPrice;
185
    }
186
 
187
    public void setSellingPrice(double sellingPrice) {
188
        this.sellingPrice = sellingPrice;
189
    }
190
 
191
    public double getWeight() {
192
        return weight;
193
    }
194
 
195
    public void setWeight(double weight) {
196
        this.weight = weight;
197
    }
198
 
199
    public long getAddedOn() {
200
        return addedOn;
201
    }
202
 
203
    public void setAddedOn(long addedOn) {
204
        this.addedOn = addedOn;
205
    }
206
 
207
    public long getStartDate() {
208
        return startDate;
209
    }
210
 
211
    public void setStartDate(long startDate) {
212
        this.startDate = startDate;
213
    }
214
 
215
    public long getRetireDate() {
216
        return retireDate;
217
    }
218
 
219
    public void setRetireDate(long retireDate) {
220
        this.retireDate = retireDate;
221
    }
222
 
223
    public Map<String, String> getOtherInfo() {
224
        return otherInfo;
225
    }
226
 
227
    public void setOtherInfo(Map<String, String> otherInfo) {
228
        this.otherInfo = otherInfo;
229
    }
230
 
231
    public void setUpdatedOn(long updatedOn) {
232
        this.updatedOn = updatedOn;
233
    }
234
 
235
    public long getUpdatedOn() {
236
        return updatedOn;
237
    }
238
 
239
    public void setColor(String color) {
240
        this.color = color;
241
    }
242
 
243
    public String getColor() {
244
        return color;
245
    }
246
 
247
    public void setDealerPrice(double dealerPrice) {
248
        this.dealerPrice = dealerPrice;
249
    }
250
 
251
    public double getDealerPrice() {
252
        return dealerPrice;
253
    }
254
 
255
    public void setBestDealsText(String bestDealsText) {
256
        this.bestDealsText = bestDealsText;
257
    }
258
 
259
    public String getBestDealsText() {
260
        return bestDealsText;
261
    }
262
 
263
    public void setBestDealsValue(double bestDealsValue) {
264
        this.bestDealsValue = bestDealsValue;
265
    }
266
 
267
    public double getBestDealsValue() {
268
        return bestDealsValue;
269
    }
270
 
1992 ankur.sing 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
 
1961 ankur.sing 305
}