Subversion Repositories SmartDukaan

Rev

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