Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28004 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
29964 amit.gupta 3
import java.util.Objects;
4
 
5
public class BrandRegionPOModel {
28020 tejbeer 6
	private int warehouseId;
28004 tejbeer 7
	private String brand;
29964 amit.gupta 8
	private long todayPOValue;
9
	private long todayPOBilledValue;
10
	private long todayBilledValue;
28004 tejbeer 11
 
29964 amit.gupta 12
	public BrandRegionPOModel(int warehouseId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue) {
28020 tejbeer 13
		this.warehouseId = warehouseId;
28004 tejbeer 14
		this.brand = brand;
29964 amit.gupta 15
		this.todayPOValue = todayPOValue;
16
		this.todayPOBilledValue = todayPOBilledValue;
17
		this.todayBilledValue = todayBilledValue;
28004 tejbeer 18
	}
19
 
29964 amit.gupta 20
	@Override
21
	public boolean equals(Object o) {
22
		if (this == o) return true;
23
		if (o == null || getClass() != o.getClass()) return false;
24
		BrandRegionPOModel that = (BrandRegionPOModel) o;
25
		return warehouseId == that.warehouseId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && Objects.equals(brand, that.brand);
28053 tejbeer 26
	}
27
 
29964 amit.gupta 28
	@Override
29
	public int hashCode() {
30
		return Objects.hash(warehouseId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
28053 tejbeer 31
	}
32
 
29964 amit.gupta 33
	public int getWarehouseId() {
34
		return warehouseId;
28004 tejbeer 35
	}
36
 
29964 amit.gupta 37
	public void setWarehouseId(int warehouseId) {
38
		this.warehouseId = warehouseId;
28004 tejbeer 39
	}
40
 
41
	public String getBrand() {
42
		return brand;
43
	}
44
 
45
	public void setBrand(String brand) {
46
		this.brand = brand;
47
	}
48
 
29964 amit.gupta 49
	public long getTodayPOValue() {
50
		return todayPOValue;
28004 tejbeer 51
	}
52
 
29964 amit.gupta 53
	public void setTodayPOValue(long todayPOValue) {
54
		this.todayPOValue = todayPOValue;
28004 tejbeer 55
	}
56
 
29964 amit.gupta 57
	public long getTodayPOBilledValue() {
58
		return todayPOBilledValue;
28004 tejbeer 59
	}
60
 
29964 amit.gupta 61
	public void setTodayPOBilledValue(long todayPOBilledValue) {
62
		this.todayPOBilledValue = todayPOBilledValue;
28004 tejbeer 63
	}
64
 
29964 amit.gupta 65
	public long getTodayBilledValue() {
66
		return todayBilledValue;
28004 tejbeer 67
	}
68
 
29964 amit.gupta 69
	public void setTodayBilledValue(long todayBilledValue) {
70
		this.todayBilledValue = todayBilledValue;
28004 tejbeer 71
	}
72
}