Subversion Repositories SmartDukaan

Rev

Rev 26131 | Rev 27770 | Go to most recent revision | 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;
25721 tejbeer 20
 
26176 tejbeer 21
	public int getRemaining() {
22
		return remaining;
23
	}
24
 
25
	public void setRemaining(int remaining) {
26
		this.remaining = remaining;
27
	}
28
 
26131 tejbeer 29
	public Integer getLastMonthSaleMap() {
30
		return lastMonthSaleMap;
31
	}
32
 
33
	public void setLastMonthSaleMap(Integer lastMonthSaleMap) {
34
		this.lastMonthSaleMap = lastMonthSaleMap;
35
	}
36
 
37
	public void setLast15DaysSale(Integer last15DaysSale) {
38
		this.last15DaysSale = last15DaysSale;
39
	}
40
 
25721 tejbeer 41
	public int getRecommendedQty() {
42
		return recommendedQty;
43
	}
44
 
45
	public int getLast15DaysSale() {
46
		return last15DaysSale;
47
	}
48
 
49
	public void setLast15DaysSale(int last15DaysSale) {
50
		this.last15DaysSale = last15DaysSale;
51
	}
52
 
53
	public void setRecommendedQty(int recommendedQty) {
54
		this.recommendedQty = recommendedQty;
55
	}
56
 
57
	public int getMinimumQty() {
58
		return minimumQty;
59
	}
60
 
61
	public void setMinimumQty(int minimumQty) {
62
		this.minimumQty = minimumQty;
63
	}
64
 
24229 amit.gupta 65
	public String getModelName() {
66
		return modelName;
67
	}
68
 
69
	public void setModelName(String modelName) {
70
		this.modelName = modelName;
71
	}
72
 
73
	public String getModelNumber() {
74
		return modelNumber;
75
	}
76
 
77
	public void setModelNumber(String modelNumber) {
78
		this.modelNumber = modelNumber;
79
	}
80
 
25721 tejbeer 81
	// Optional
24229 amit.gupta 82
	private int fofoId;
83
 
84
	public int getFofoId() {
85
		return fofoId;
86
	}
87
 
88
	public void setFofoId(int fofoId) {
89
		this.fofoId = fofoId;
90
	}
91
 
92
	public String getBrand() {
93
		return brand;
94
	}
95
 
96
	public void setBrand(String brand) {
97
		this.brand = brand;
98
	}
99
 
100
	private int last30DaysSale;
101
 
102
	public int getLast30DaysSale() {
103
		return last30DaysSale;
104
	}
105
 
106
	public void setLast30DaysSale(int last30DaysSale) {
107
		this.last30DaysSale = last30DaysSale;
108
	}
109
 
110
	public int getCategoryId() {
111
		return categoryId;
112
	}
113
 
114
	public void setCategoryId(int categoryId) {
115
		this.categoryId = categoryId;
116
	}
117
 
118
	private int categoryId;
119
 
120
	@Override
121
	public String toString() {
122
		return "CatalogListingModel [stockInHand=" + stockInHand + ", inTransitQuantity=" + inTransitQuantity
123
				+ ", toBeOrdered=" + toBeOrdered + ", allocatedQuantity=" + allocatedQuantity + ", catalogId="
124
				+ catalogId + ", itemDescription=" + itemDescription + ", dp=" + dp + ", mop=" + mop + ", brand="
125
				+ brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", fofoId=" + fofoId
126
				+ ", last30DaysSale=" + last30DaysSale + ", categoryId=" + categoryId + "]";
127
	}
128
 
129
	public int getStockInHand() {
130
		return stockInHand;
131
	}
132
 
133
	public void setStockInHand(int stockInHand) {
134
		this.stockInHand = stockInHand;
135
	}
136
 
137
	public int getInTransitQuantity() {
138
		return inTransitQuantity;
139
	}
140
 
141
	public void setInTransitQuantity(int inTransitQuantity) {
142
		this.inTransitQuantity = inTransitQuantity;
143
	}
144
 
145
	public int getToBeOrdered() {
146
		return toBeOrdered;
147
	}
148
 
149
	public void setToBeOrdered(int toBeOrdered) {
150
		this.toBeOrdered = toBeOrdered;
151
	}
152
 
153
	public int getAllocatedQuantity() {
154
		return allocatedQuantity;
155
	}
156
 
157
	public void setAllocatedQuantity(int allocatedQuantity) {
158
		this.allocatedQuantity = allocatedQuantity;
159
	}
160
 
161
	public int getCatalogId() {
162
		return catalogId;
163
	}
164
 
165
	public void setCatalogId(int catalogId) {
166
		this.catalogId = catalogId;
167
	}
168
 
169
	public String getItemDescription() {
170
		return itemDescription;
171
	}
172
 
173
	public void setItemDescription(String itemDescription) {
174
		this.itemDescription = itemDescription;
175
	}
176
 
177
	public float getDp() {
178
		return dp;
179
	}
180
 
181
	public void setDp(float dp) {
182
		this.dp = dp;
183
	}
184
 
185
	public float getMop() {
186
		return mop;
187
	}
188
 
189
	public void setMop(float mop) {
190
		this.mop = mop;
191
	}
192
 
193
	@Override
194
	public int hashCode() {
195
		final int prime = 31;
196
		int result = 1;
197
		result = prime * result + allocatedQuantity;
198
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
199
		result = prime * result + catalogId;
200
		result = prime * result + categoryId;
201
		result = prime * result + Float.floatToIntBits(dp);
202
		result = prime * result + fofoId;
203
		result = prime * result + inTransitQuantity;
204
		result = prime * result + ((itemDescription == null) ? 0 : itemDescription.hashCode());
25721 tejbeer 205
		result = prime * result + last15DaysSale;
24229 amit.gupta 206
		result = prime * result + last30DaysSale;
25721 tejbeer 207
		result = prime * result + minimumQty;
24229 amit.gupta 208
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
209
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
210
		result = prime * result + Float.floatToIntBits(mop);
25721 tejbeer 211
		result = prime * result + recommendedQty;
24229 amit.gupta 212
		result = prime * result + stockInHand;
213
		result = prime * result + toBeOrdered;
214
		return result;
215
	}
216
 
217
	@Override
218
	public boolean equals(Object obj) {
219
		if (this == obj)
220
			return true;
221
		if (obj == null)
222
			return false;
223
		if (getClass() != obj.getClass())
224
			return false;
225
		CatalogListingModel other = (CatalogListingModel) obj;
226
		if (allocatedQuantity != other.allocatedQuantity)
227
			return false;
228
		if (brand == null) {
229
			if (other.brand != null)
230
				return false;
231
		} else if (!brand.equals(other.brand))
232
			return false;
233
		if (catalogId != other.catalogId)
234
			return false;
235
		if (categoryId != other.categoryId)
236
			return false;
237
		if (Float.floatToIntBits(dp) != Float.floatToIntBits(other.dp))
238
			return false;
239
		if (fofoId != other.fofoId)
240
			return false;
241
		if (inTransitQuantity != other.inTransitQuantity)
242
			return false;
243
		if (itemDescription == null) {
244
			if (other.itemDescription != null)
245
				return false;
246
		} else if (!itemDescription.equals(other.itemDescription))
247
			return false;
25721 tejbeer 248
		if (last15DaysSale != other.last15DaysSale)
249
			return false;
24229 amit.gupta 250
		if (last30DaysSale != other.last30DaysSale)
251
			return false;
25721 tejbeer 252
		if (minimumQty != other.minimumQty)
253
			return false;
24229 amit.gupta 254
		if (modelName == null) {
255
			if (other.modelName != null)
256
				return false;
257
		} else if (!modelName.equals(other.modelName))
258
			return false;
259
		if (modelNumber == null) {
260
			if (other.modelNumber != null)
261
				return false;
262
		} else if (!modelNumber.equals(other.modelNumber))
263
			return false;
264
		if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop))
265
			return false;
25721 tejbeer 266
		if (recommendedQty != other.recommendedQty)
267
			return false;
24229 amit.gupta 268
		if (stockInHand != other.stockInHand)
269
			return false;
270
		if (toBeOrdered != other.toBeOrdered)
271
			return false;
272
		return true;
273
	}
274
 
275
}