Subversion Repositories SmartDukaan

Rev

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