Subversion Repositories SmartDukaan

Rev

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