Subversion Repositories SmartDukaan

Rev

Rev 5308 | Details | Compare with Previous | Last modification | View Log | RSS feed

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