Subversion Repositories SmartDukaan

Rev

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