Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24229 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
3
public class CatalogListingModel {
4
	private int stockInHand;
5
	private int inTransitQuantity;
6
	private int toBeOrdered;
7
	private int allocatedQuantity;
8
	private int catalogId;
9
	private String itemDescription;
25721 tejbeer 10
	private int recommendedQty;
11
	private int minimumQty;
24229 amit.gupta 12
	private float dp;
13
	private float mop;
26131 tejbeer 14
	private Integer last15DaysSale;
15
	private Integer lastMonthSaleMap;
24229 amit.gupta 16
	private String brand;
17
	private String modelName;
18
	private String modelNumber;
26176 tejbeer 19
	private int remaining;
27770 tejbeer 20
	private int ourStockQty;
29667 tejbeer 21
	private int obsRecommendedQty;
25721 tejbeer 22
 
29667 tejbeer 23
	private int obsMinimumQty;
24
 
25
	public int getObsRecommendedQty() {
26
		return obsRecommendedQty;
27
	}
28
 
29
	public void setObsRecommendedQty(int obsRecommendedQty) {
30
		this.obsRecommendedQty = obsRecommendedQty;
31
	}
32
 
33
	public int getObsMinimumQty() {
34
		return obsMinimumQty;
35
	}
36
 
37
	public void setObsMinimumQty(int obsMinimumQty) {
38
		this.obsMinimumQty = obsMinimumQty;
39
	}
40
 
27770 tejbeer 41
	public int getOurStockQty() {
42
		return ourStockQty;
43
	}
44
 
45
	public void setOurStockQty(int ourStockQty) {
46
		this.ourStockQty = ourStockQty;
47
	}
48
 
26176 tejbeer 49
	public int getRemaining() {
50
		return remaining;
51
	}
52
 
53
	public void setRemaining(int remaining) {
54
		this.remaining = remaining;
55
	}
56
 
26131 tejbeer 57
	public Integer getLastMonthSaleMap() {
58
		return lastMonthSaleMap;
59
	}
60
 
61
	public void setLastMonthSaleMap(Integer lastMonthSaleMap) {
62
		this.lastMonthSaleMap = lastMonthSaleMap;
63
	}
64
 
65
	public void setLast15DaysSale(Integer last15DaysSale) {
66
		this.last15DaysSale = last15DaysSale;
67
	}
68
 
25721 tejbeer 69
	public int getRecommendedQty() {
70
		return recommendedQty;
71
	}
72
 
73
	public int getLast15DaysSale() {
74
		return last15DaysSale;
75
	}
76
 
77
	public void setLast15DaysSale(int last15DaysSale) {
78
		this.last15DaysSale = last15DaysSale;
79
	}
80
 
81
	public void setRecommendedQty(int recommendedQty) {
82
		this.recommendedQty = recommendedQty;
83
	}
84
 
85
	public int getMinimumQty() {
86
		return minimumQty;
87
	}
88
 
89
	public void setMinimumQty(int minimumQty) {
90
		this.minimumQty = minimumQty;
91
	}
92
 
24229 amit.gupta 93
	public String getModelName() {
94
		return modelName;
95
	}
96
 
97
	public void setModelName(String modelName) {
98
		this.modelName = modelName;
99
	}
100
 
101
	public String getModelNumber() {
102
		return modelNumber;
103
	}
104
 
105
	public void setModelNumber(String modelNumber) {
106
		this.modelNumber = modelNumber;
107
	}
108
 
25721 tejbeer 109
	// Optional
24229 amit.gupta 110
	private int fofoId;
111
 
112
	public int getFofoId() {
113
		return fofoId;
114
	}
115
 
116
	public void setFofoId(int fofoId) {
117
		this.fofoId = fofoId;
118
	}
119
 
120
	public String getBrand() {
121
		return brand;
122
	}
123
 
124
	public void setBrand(String brand) {
125
		this.brand = brand;
126
	}
127
 
128
	private int last30DaysSale;
129
 
130
	public int getLast30DaysSale() {
131
		return last30DaysSale;
132
	}
133
 
134
	public void setLast30DaysSale(int last30DaysSale) {
135
		this.last30DaysSale = last30DaysSale;
136
	}
137
 
138
	public int getCategoryId() {
139
		return categoryId;
140
	}
141
 
142
	public void setCategoryId(int categoryId) {
143
		this.categoryId = categoryId;
144
	}
145
 
146
	private int categoryId;
147
 
148
	@Override
149
	public String toString() {
150
		return "CatalogListingModel [stockInHand=" + stockInHand + ", inTransitQuantity=" + inTransitQuantity
151
				+ ", toBeOrdered=" + toBeOrdered + ", allocatedQuantity=" + allocatedQuantity + ", catalogId="
27770 tejbeer 152
				+ catalogId + ", itemDescription=" + itemDescription + ", recommendedQty=" + recommendedQty
153
				+ ", minimumQty=" + minimumQty + ", dp=" + dp + ", mop=" + mop + ", last15DaysSale=" + last15DaysSale
154
				+ ", lastMonthSaleMap=" + lastMonthSaleMap + ", brand=" + brand + ", modelName=" + modelName
155
				+ ", modelNumber=" + modelNumber + ", remaining=" + remaining + ", ourStockQty=" + ourStockQty
29667 tejbeer 156
				+ ", obsRecommendedQty=" + obsRecommendedQty + ", obsMinimumQty=" + obsMinimumQty + ", fofoId=" + fofoId
157
				+ ", last30DaysSale=" + last30DaysSale + ", categoryId=" + categoryId + "]";
24229 amit.gupta 158
	}
159
 
160
	public int getStockInHand() {
161
		return stockInHand;
162
	}
163
 
164
	public void setStockInHand(int stockInHand) {
165
		this.stockInHand = stockInHand;
166
	}
167
 
168
	public int getInTransitQuantity() {
169
		return inTransitQuantity;
170
	}
171
 
172
	public void setInTransitQuantity(int inTransitQuantity) {
173
		this.inTransitQuantity = inTransitQuantity;
174
	}
175
 
176
	public int getToBeOrdered() {
177
		return toBeOrdered;
178
	}
179
 
180
	public void setToBeOrdered(int toBeOrdered) {
181
		this.toBeOrdered = toBeOrdered;
182
	}
183
 
184
	public int getAllocatedQuantity() {
185
		return allocatedQuantity;
186
	}
187
 
188
	public void setAllocatedQuantity(int allocatedQuantity) {
189
		this.allocatedQuantity = allocatedQuantity;
190
	}
191
 
192
	public int getCatalogId() {
193
		return catalogId;
194
	}
195
 
196
	public void setCatalogId(int catalogId) {
197
		this.catalogId = catalogId;
198
	}
199
 
200
	public String getItemDescription() {
201
		return itemDescription;
202
	}
203
 
204
	public void setItemDescription(String itemDescription) {
205
		this.itemDescription = itemDescription;
206
	}
207
 
208
	public float getDp() {
209
		return dp;
210
	}
211
 
212
	public void setDp(float dp) {
213
		this.dp = dp;
214
	}
215
 
216
	public float getMop() {
217
		return mop;
218
	}
219
 
220
	public void setMop(float mop) {
221
		this.mop = mop;
222
	}
223
 
224
	@Override
225
	public int hashCode() {
226
		final int prime = 31;
227
		int result = 1;
228
		result = prime * result + allocatedQuantity;
229
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
230
		result = prime * result + catalogId;
231
		result = prime * result + categoryId;
232
		result = prime * result + Float.floatToIntBits(dp);
233
		result = prime * result + fofoId;
234
		result = prime * result + inTransitQuantity;
235
		result = prime * result + ((itemDescription == null) ? 0 : itemDescription.hashCode());
27770 tejbeer 236
		result = prime * result + ((last15DaysSale == null) ? 0 : last15DaysSale.hashCode());
24229 amit.gupta 237
		result = prime * result + last30DaysSale;
27770 tejbeer 238
		result = prime * result + ((lastMonthSaleMap == null) ? 0 : lastMonthSaleMap.hashCode());
25721 tejbeer 239
		result = prime * result + minimumQty;
24229 amit.gupta 240
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
241
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
242
		result = prime * result + Float.floatToIntBits(mop);
29667 tejbeer 243
		result = prime * result + obsMinimumQty;
244
		result = prime * result + obsRecommendedQty;
27770 tejbeer 245
		result = prime * result + ourStockQty;
25721 tejbeer 246
		result = prime * result + recommendedQty;
27770 tejbeer 247
		result = prime * result + remaining;
24229 amit.gupta 248
		result = prime * result + stockInHand;
249
		result = prime * result + toBeOrdered;
250
		return result;
251
	}
252
 
253
	@Override
254
	public boolean equals(Object obj) {
255
		if (this == obj)
256
			return true;
257
		if (obj == null)
258
			return false;
259
		if (getClass() != obj.getClass())
260
			return false;
261
		CatalogListingModel other = (CatalogListingModel) obj;
262
		if (allocatedQuantity != other.allocatedQuantity)
263
			return false;
264
		if (brand == null) {
265
			if (other.brand != null)
266
				return false;
267
		} else if (!brand.equals(other.brand))
268
			return false;
269
		if (catalogId != other.catalogId)
270
			return false;
271
		if (categoryId != other.categoryId)
272
			return false;
273
		if (Float.floatToIntBits(dp) != Float.floatToIntBits(other.dp))
274
			return false;
275
		if (fofoId != other.fofoId)
276
			return false;
277
		if (inTransitQuantity != other.inTransitQuantity)
278
			return false;
279
		if (itemDescription == null) {
280
			if (other.itemDescription != null)
281
				return false;
282
		} else if (!itemDescription.equals(other.itemDescription))
283
			return false;
27770 tejbeer 284
		if (last15DaysSale == null) {
285
			if (other.last15DaysSale != null)
286
				return false;
287
		} else if (!last15DaysSale.equals(other.last15DaysSale))
25721 tejbeer 288
			return false;
24229 amit.gupta 289
		if (last30DaysSale != other.last30DaysSale)
290
			return false;
27770 tejbeer 291
		if (lastMonthSaleMap == null) {
292
			if (other.lastMonthSaleMap != null)
293
				return false;
294
		} else if (!lastMonthSaleMap.equals(other.lastMonthSaleMap))
295
			return false;
25721 tejbeer 296
		if (minimumQty != other.minimumQty)
297
			return false;
24229 amit.gupta 298
		if (modelName == null) {
299
			if (other.modelName != null)
300
				return false;
301
		} else if (!modelName.equals(other.modelName))
302
			return false;
303
		if (modelNumber == null) {
304
			if (other.modelNumber != null)
305
				return false;
306
		} else if (!modelNumber.equals(other.modelNumber))
307
			return false;
308
		if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop))
309
			return false;
29667 tejbeer 310
		if (obsMinimumQty != other.obsMinimumQty)
311
			return false;
312
		if (obsRecommendedQty != other.obsRecommendedQty)
313
			return false;
27770 tejbeer 314
		if (ourStockQty != other.ourStockQty)
315
			return false;
25721 tejbeer 316
		if (recommendedQty != other.recommendedQty)
317
			return false;
27770 tejbeer 318
		if (remaining != other.remaining)
319
			return false;
24229 amit.gupta 320
		if (stockInHand != other.stockInHand)
321
			return false;
322
		if (toBeOrdered != other.toBeOrdered)
323
			return false;
324
		return true;
325
	}
326
 
327
}