Subversion Repositories SmartDukaan

Rev

Rev 27053 | Rev 27211 | 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;
27053 amit.gupta 13
	public int getWarehouseFrom() {
14
		return warehouseFrom;
15
	}
16
 
17
 
18
	public void setWarehouseFrom(int warehouseFrom) {
19
		this.warehouseFrom = warehouseFrom;
20
	}
21
 
22
 
23
	public int getPopendingQty() {
24
		return popendingQty;
25
	}
26
 
27
 
28
	public void setPopendingQty(int popendingQty) {
29
		this.popendingQty = popendingQty;
30
	}
31
 
27030 amit.gupta 32
	@JsonProperty("Availability")
33
	private int availability;
34
	@JsonProperty("Reserved")
35
	private int reserved;
36
	@JsonProperty("Netavailability")
37
	private int Netavailability;
27053 amit.gupta 38
 
39
	private int popendingQty;
27059 amit.gupta 40
 
41
	private String warehouseName;
42
 
43
	public String getWarehouseName() {
44
		return warehouseName;
45
	}
27030 amit.gupta 46
 
27059 amit.gupta 47
	public void setWarehouseName(String warehouseName) {
48
		this.warehouseName = warehouseName;
49
	}
50
 
51
 
27030 amit.gupta 52
	@Override
53
	public String toString() {
27053 amit.gupta 54
		return "SaholicCIS [itemId=" + itemId + ", warehouseId=" + warehouseId + ", warehouseFrom=" + warehouseFrom
55
				+ ", availability=" + availability + ", reserved=" + reserved + ", Netavailability=" + Netavailability
27059 amit.gupta 56
				+ ", popendingQty=" + popendingQty + ", warehouseName=" + warehouseName + "]";
27030 amit.gupta 57
	}
58
 
59
 
60
	public int getItemId() {
61
		return itemId;
62
	}
63
 
64
	public void setItemId(int itemId) {
65
		this.itemId = itemId;
66
	}
67
 
68
	public int getWarehouseId() {
69
		return warehouseId;
70
	}
71
 
72
	public void setWarehouseId(int warehouseId) {
73
		this.warehouseId = warehouseId;
74
	}
75
 
76
	public int getNetavailability() {
77
		return Netavailability;
78
	}
79
 
80
	public void setNetavailability(int netavailability) {
81
		Netavailability = netavailability;
82
	}
83
 
84
	public int getAvailability() {
85
		return availability;
86
	}
87
 
88
	public void setAvailability(int availability) {
89
		this.availability = availability;
90
	}
91
 
92
	public int getReserved() {
93
		return reserved;
94
	}
95
 
96
	public void setReserved(int reserved) {
97
		this.reserved = reserved;
98
	}
99
 
100
	@Override
101
	public int hashCode() {
102
		final int prime = 31;
103
		int result = 1;
104
		result = prime * result + Netavailability;
105
		result = prime * result + availability;
106
		result = prime * result + itemId;
27059 amit.gupta 107
		result = prime * result + popendingQty;
27030 amit.gupta 108
		result = prime * result + reserved;
27059 amit.gupta 109
		result = prime * result + warehouseFrom;
27030 amit.gupta 110
		result = prime * result + warehouseId;
27059 amit.gupta 111
		result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
27030 amit.gupta 112
		return result;
113
	}
114
 
115
	@Override
116
	public boolean equals(Object obj) {
117
		if (this == obj)
118
			return true;
119
		if (obj == null)
120
			return false;
121
		if (getClass() != obj.getClass())
122
			return false;
123
		SaholicCIS other = (SaholicCIS) obj;
124
		if (Netavailability != other.Netavailability)
125
			return false;
126
		if (availability != other.availability)
127
			return false;
128
		if (itemId != other.itemId)
129
			return false;
27059 amit.gupta 130
		if (popendingQty != other.popendingQty)
131
			return false;
27030 amit.gupta 132
		if (reserved != other.reserved)
133
			return false;
27059 amit.gupta 134
		if (warehouseFrom != other.warehouseFrom)
135
			return false;
27030 amit.gupta 136
		if (warehouseId != other.warehouseId)
137
			return false;
27059 amit.gupta 138
		if (warehouseName == null) {
139
			if (other.warehouseName != null)
140
				return false;
141
		} else if (!warehouseName.equals(other.warehouseName))
142
			return false;
27030 amit.gupta 143
		return true;
144
	}
145
 
146
}