Subversion Repositories SmartDukaan

Rev

Rev 2027 | Rev 2068 | 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
 
2066 ankur.sing 37
    private long bestSellingRank;
38
    private boolean defaultForEntity;
39
 
1992 ankur.sing 40
    private Map<String, String> otherInfo;
41
    private Map<Long, Long> availability;
42
 
43
    private Map<Long, double[]> vendorPricings;
44
 
1961 ankur.sing 45
    private static final long serialVersionUID = -2982668732181655698L;
46
 
47
    public Item() {
1992 ankur.sing 48
 
1961 ankur.sing 49
    }
50
 
51
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
52
            long category, String comments,
53
            long catalogItemId, long featureId,
54
            String featureDescription, 
55
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
56
            long addedOn, long startDate, long retireDate, long updatedOn,
1992 ankur.sing 57
            String itemStatus,
1961 ankur.sing 58
            Map<String, String> otherInfo,
2066 ankur.sing 59
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, Map<Long, Long> availability, Map<Long, double[]> vendorPricings) {
1961 ankur.sing 60
        this();
61
        this.id = id;
62
        this.setProductGroup(productGroup);
63
        this.brand = brand;
64
        this.modelNumber = modelNumber;
65
        this.modelName = modelName;
66
        this.color = color;
67
        this.category = category;
68
        this.comments = comments;
69
        this.catalogItemId = catalogItemId;
70
        this.featureId = featureId;
71
        this.featureDescription = featureDescription;
72
        this.mrp = mrp;
73
        this.mop = mop;
74
        this.sellingPrice = sellingPrice;
75
        this.dealerPrice = dealerPrice;
76
        this.weight = weight;
77
        this.addedOn = addedOn;
78
        this.startDate = startDate;
79
        this.retireDate = retireDate;
80
        this.updatedOn = updatedOn;
1992 ankur.sing 81
        this.itemStatus = itemStatus;
1961 ankur.sing 82
        this.otherInfo = otherInfo;
83
        this.bestDealsText = bestDealsText;
84
        this.bestDealsValue = bestDealsValue;
2066 ankur.sing 85
        this.bestSellingRank = bestSellingRank;
86
        this.defaultForEntity = defaultForEntity;
87
 
1992 ankur.sing 88
        this.availability = availability;
89
 
90
        this.vendorPricings = vendorPricings;
1961 ankur.sing 91
    }
92
 
93
    public long getId() {
94
        return id;
95
    }
96
 
97
    public void setId(long id) {
98
        this.id = id;
99
    }
100
 
101
    public void setProductGroup(String productGroup) {
102
        this.productGroup = productGroup;
103
    }
104
 
105
    public String getProductGroup() {
106
        return productGroup;
107
    }
108
 
109
    public String getBrand() {
110
        return brand;
111
    }
112
 
113
    public void setBrand(String brand) {
114
        this.brand = brand;
115
    }
116
 
117
    public String getModelNumber() {
118
        return modelNumber;
119
    }
120
 
121
    public void setModelNumber(String modelNumber) {
122
        this.modelNumber = modelNumber;
123
    }
124
 
125
    public String getModelName() {
126
        return modelName;
127
    }
128
 
129
    public void setModelName(String modelName) {
130
        this.modelName = modelName;
131
    }
132
 
133
    public long getCategory() {
134
        return category;
135
    }
136
 
2066 ankur.sing 137
    public void setCategory(long category) {
1961 ankur.sing 138
        this.category = category;
2066 ankur.sing 139
    }
1961 ankur.sing 140
 
141
    public String getComments() {
142
        return comments;
143
    }
144
 
145
    public void setComments(String comments) {
146
        this.comments = comments;
147
    }
148
 
149
    public long getCatalogItemId() {
150
        return catalogItemId;
151
    }
152
 
153
    public void setCatalogItemId(long catalogItemId) {
154
        this.catalogItemId = catalogItemId;
155
    }
156
 
157
    public long getFeatureId() {
158
        return featureId;
159
    }
160
 
161
    public void setFeatureId(long featureId) {
162
        this.featureId = featureId;
163
    }
164
 
165
    public String getFeatureDescription() {
166
        return featureDescription;
167
    }
168
 
169
    public void setFeatureDescription(String featureDescription) {
170
        this.featureDescription = featureDescription;
171
    }
172
 
173
    public double getMrp() {
174
        return mrp;
175
    }
176
 
177
    public void setMrp(double mrp) {
178
        this.mrp = mrp;
179
    }
180
 
181
    public double getMop() {
182
        return mop;
183
    }
184
 
185
    public void setMop(double mop) {
186
        this.mop = mop;
187
    }
188
 
189
    public double getSellingPrice() {
190
        return sellingPrice;
191
    }
192
 
193
    public void setSellingPrice(double sellingPrice) {
194
        this.sellingPrice = sellingPrice;
195
    }
196
 
197
    public double getWeight() {
198
        return weight;
199
    }
200
 
201
    public void setWeight(double weight) {
202
        this.weight = weight;
203
    }
204
 
205
    public long getAddedOn() {
206
        return addedOn;
207
    }
208
 
209
    public void setAddedOn(long addedOn) {
210
        this.addedOn = addedOn;
211
    }
212
 
213
    public long getStartDate() {
214
        return startDate;
215
    }
216
 
217
    public void setStartDate(long startDate) {
218
        this.startDate = startDate;
219
    }
220
 
221
    public long getRetireDate() {
222
        return retireDate;
223
    }
224
 
225
    public void setRetireDate(long retireDate) {
226
        this.retireDate = retireDate;
227
    }
228
 
229
    public Map<String, String> getOtherInfo() {
230
        return otherInfo;
231
    }
232
 
233
    public void setOtherInfo(Map<String, String> otherInfo) {
234
        this.otherInfo = otherInfo;
235
    }
236
 
237
    public void setUpdatedOn(long updatedOn) {
238
        this.updatedOn = updatedOn;
239
    }
240
 
241
    public long getUpdatedOn() {
242
        return updatedOn;
243
    }
244
 
245
    public void setColor(String color) {
246
        this.color = color;
247
    }
248
 
249
    public String getColor() {
250
        return color;
251
    }
252
 
253
    public void setDealerPrice(double dealerPrice) {
254
        this.dealerPrice = dealerPrice;
255
    }
256
 
257
    public double getDealerPrice() {
258
        return dealerPrice;
259
    }
260
 
261
    public void setBestDealsText(String bestDealsText) {
262
        this.bestDealsText = bestDealsText;
263
    }
264
 
265
    public String getBestDealsText() {
266
        return bestDealsText;
267
    }
268
 
269
    public void setBestDealsValue(double bestDealsValue) {
270
        this.bestDealsValue = bestDealsValue;
271
    }
272
 
273
    public double getBestDealsValue() {
274
        return bestDealsValue;
275
    }
276
 
1992 ankur.sing 277
    public double getTransferPrice() {
278
        return transferPrice;
279
    }
280
 
281
    public void setTransferPrice(double transferPrice) {
282
        this.transferPrice = transferPrice;
283
    }
284
 
285
    public String getItemStatus() {
286
        return itemStatus;
287
    }
288
 
289
    public void setItemStatus(String itemStatus) {
290
        this.itemStatus = itemStatus;
291
    }
292
 
293
    public Map<Long, Long> getAvailability() {
294
        return availability;
295
    }
296
 
297
    public void setAvailability(Map<Long, Long> availability) {
298
        this.availability = availability;
299
    }
300
 
301
    public Map<Long, double[]> getVendorPricings() {
302
        return vendorPricings;
303
    }
304
 
305
    public void setVendorPricings(Map<Long, double[]> vendorPricings) {
306
        this.vendorPricings = vendorPricings;
307
    }
2066 ankur.sing 308
 
309
    public long getBestSellingRank() {
310
        return bestSellingRank;
311
    }
312
 
313
    public void setBestSellingRank(long bestSellingRank) {
314
        this.bestSellingRank = bestSellingRank;
315
    }
316
 
317
    public boolean isDefaultForEntity() {
318
        return defaultForEntity;
319
    }
320
 
321
    public void setDefaultForEntity(boolean defaultForEntity) {
322
        this.defaultForEntity = defaultForEntity;
323
    }
1992 ankur.sing 324
 
1961 ankur.sing 325
}