Subversion Repositories SmartDukaan

Rev

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