Subversion Repositories SmartDukaan

Rev

Rev 27211 | Rev 30201 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27030 amit.gupta 1
package com.spice.profitmandi.dao.entity.inventory;
2
 
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
 
5
public class SaholicCIS {
6
 
7
	@JsonProperty("Itemid")
8
	private int itemId;
9
	@JsonProperty("Warehouseid")
10
	private int warehouseId;
27051 amit.gupta 11
	@JsonProperty("Warehousefrom")
12
	private int warehouseFrom;
27211 tejbeer 13
 
14
	@JsonProperty("Category")
15
	public int category;
16
 
30197 tejbeer 17
	public SaholicCIS(int itemId, int warehouseId, int warehouseFrom, int category, int availability, int reserved,
18
			int netavailability) {
19
		super();
20
		this.itemId = itemId;
21
		this.warehouseId = warehouseId;
22
		this.warehouseFrom = warehouseFrom;
23
		this.category = category;
24
		this.availability = availability;
25
		this.reserved = reserved;
26
		Netavailability = netavailability;
27
 
28
	}
29
 
27211 tejbeer 30
	public int getCategory() {
31
		return category;
32
	}
33
 
34
	public void setCategory(int category) {
35
		this.category = category;
36
	}
37
 
27053 amit.gupta 38
	public int getWarehouseFrom() {
39
		return warehouseFrom;
40
	}
41
 
42
	public void setWarehouseFrom(int warehouseFrom) {
43
		this.warehouseFrom = warehouseFrom;
44
	}
45
 
46
	public int getPopendingQty() {
47
		return popendingQty;
48
	}
49
 
50
	public void setPopendingQty(int popendingQty) {
51
		this.popendingQty = popendingQty;
52
	}
53
 
27030 amit.gupta 54
	@JsonProperty("Availability")
55
	private int availability;
56
	@JsonProperty("Reserved")
57
	private int reserved;
58
	@JsonProperty("Netavailability")
59
	private int Netavailability;
27211 tejbeer 60
 
27053 amit.gupta 61
	private int popendingQty;
27211 tejbeer 62
 
27059 amit.gupta 63
	private String warehouseName;
27211 tejbeer 64
 
27059 amit.gupta 65
	public String getWarehouseName() {
66
		return warehouseName;
67
	}
27030 amit.gupta 68
 
27059 amit.gupta 69
	public void setWarehouseName(String warehouseName) {
70
		this.warehouseName = warehouseName;
71
	}
72
 
27030 amit.gupta 73
	@Override
74
	public String toString() {
27053 amit.gupta 75
		return "SaholicCIS [itemId=" + itemId + ", warehouseId=" + warehouseId + ", warehouseFrom=" + warehouseFrom
27211 tejbeer 76
				+ ", category=" + category + ", availability=" + availability + ", reserved=" + reserved
77
				+ ", Netavailability=" + Netavailability + ", popendingQty=" + popendingQty + ", warehouseName="
78
				+ warehouseName + "]";
27030 amit.gupta 79
	}
80
 
81
	public int getItemId() {
82
		return itemId;
83
	}
84
 
85
	public void setItemId(int itemId) {
86
		this.itemId = itemId;
87
	}
88
 
89
	public int getWarehouseId() {
90
		return warehouseId;
91
	}
92
 
93
	public void setWarehouseId(int warehouseId) {
94
		this.warehouseId = warehouseId;
95
	}
96
 
97
	public int getNetavailability() {
98
		return Netavailability;
99
	}
100
 
101
	public void setNetavailability(int netavailability) {
102
		Netavailability = netavailability;
103
	}
104
 
105
	public int getAvailability() {
106
		return availability;
107
	}
108
 
109
	public void setAvailability(int availability) {
110
		this.availability = availability;
111
	}
112
 
113
	public int getReserved() {
114
		return reserved;
115
	}
116
 
117
	public void setReserved(int reserved) {
118
		this.reserved = reserved;
119
	}
120
 
121
	@Override
122
	public int hashCode() {
123
		final int prime = 31;
124
		int result = 1;
125
		result = prime * result + Netavailability;
126
		result = prime * result + availability;
27211 tejbeer 127
		result = prime * result + category;
27030 amit.gupta 128
		result = prime * result + itemId;
27059 amit.gupta 129
		result = prime * result + popendingQty;
27030 amit.gupta 130
		result = prime * result + reserved;
27059 amit.gupta 131
		result = prime * result + warehouseFrom;
27030 amit.gupta 132
		result = prime * result + warehouseId;
27059 amit.gupta 133
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
27030 amit.gupta 134
		return result;
135
	}
136
 
137
	@Override
138
	public boolean equals(Object obj) {
139
		if (this == obj)
140
			return true;
141
		if (obj == null)
142
			return false;
143
		if (getClass() != obj.getClass())
144
			return false;
145
		SaholicCIS other = (SaholicCIS) obj;
146
		if (Netavailability != other.Netavailability)
147
			return false;
148
		if (availability != other.availability)
149
			return false;
27211 tejbeer 150
		if (category != other.category)
151
			return false;
27030 amit.gupta 152
		if (itemId != other.itemId)
153
			return false;
27059 amit.gupta 154
		if (popendingQty != other.popendingQty)
155
			return false;
27030 amit.gupta 156
		if (reserved != other.reserved)
157
			return false;
27059 amit.gupta 158
		if (warehouseFrom != other.warehouseFrom)
159
			return false;
27030 amit.gupta 160
		if (warehouseId != other.warehouseId)
161
			return false;
27059 amit.gupta 162
		if (warehouseName == null) {
163
			if (other.warehouseName != null)
164
				return false;
165
		} else if (!warehouseName.equals(other.warehouseName))
166
			return false;
27030 amit.gupta 167
		return true;
168
	}
169
 
170
}