Subversion Repositories SmartDukaan

Rev

Rev 35154 | Details | Compare with Previous | 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
 
33791 amit.gupta 5
public class BrandAuthUserPOModel {
6
	private int authUserId;
28004 tejbeer 7
	private String brand;
29964 amit.gupta 8
	private long todayPOValue;
9
	private long todayPOBilledValue;
10
	private long todayBilledValue;
33801 amit.gupta 11
	private int partiesBilled;
28004 tejbeer 12
 
35155 ranu 13
	public BrandAuthUserPOModel(Integer authUserId,
14
								String brand,
15
								Long todayPOValue,
16
								Long todayPOBilledValue,
17
								Long todayBilledValue,
18
								Integer partiesBilled) {
35154 ranu 19
		this.authUserId = authUserId;
35155 ranu 20
		this.brand = brand != null ? brand : "-";
21
		this.todayPOValue = todayPOValue != null ? todayPOValue : 0L;
22
		this.todayPOBilledValue = todayPOBilledValue != null ? todayPOBilledValue : 0L;
23
		this.todayBilledValue = todayBilledValue != null ? todayBilledValue : 0L;
24
		this.partiesBilled = partiesBilled != null ? partiesBilled : 0;
28004 tejbeer 25
	}
26
 
35155 ranu 27
	public BrandAuthUserPOModel() {
28053 tejbeer 28
	}
29
 
30
 
33791 amit.gupta 31
	public int getAuthUserId() {
32
		return authUserId;
28004 tejbeer 33
	}
34
 
33791 amit.gupta 35
	public void setAuthUserId(int authUserId) {
36
		this.authUserId = authUserId;
28004 tejbeer 37
	}
38
 
39
	public String getBrand() {
40
		return brand;
41
	}
42
 
43
	public void setBrand(String brand) {
44
		this.brand = brand;
45
	}
46
 
29964 amit.gupta 47
	public long getTodayPOValue() {
48
		return todayPOValue;
28004 tejbeer 49
	}
50
 
29964 amit.gupta 51
	public void setTodayPOValue(long todayPOValue) {
52
		this.todayPOValue = todayPOValue;
28004 tejbeer 53
	}
54
 
29964 amit.gupta 55
	public long getTodayPOBilledValue() {
56
		return todayPOBilledValue;
28004 tejbeer 57
	}
58
 
29964 amit.gupta 59
	public void setTodayPOBilledValue(long todayPOBilledValue) {
60
		this.todayPOBilledValue = todayPOBilledValue;
28004 tejbeer 61
	}
62
 
29964 amit.gupta 63
	public long getTodayBilledValue() {
64
		return todayBilledValue;
28004 tejbeer 65
	}
66
 
29964 amit.gupta 67
	public void setTodayBilledValue(long todayBilledValue) {
68
		this.todayBilledValue = todayBilledValue;
28004 tejbeer 69
	}
33801 amit.gupta 70
 
71
	public int getPartiesBilled() {
72
		return partiesBilled;
73
	}
74
 
75
	public void setPartiesBilled(int partiesBilled) {
76
		this.partiesBilled = partiesBilled;
77
	}
35155 ranu 78
 
79
	@Override
80
	public boolean equals(Object o) {
81
		if (this == o) return true;
82
		if (o == null || getClass() != o.getClass()) return false;
83
		BrandAuthUserPOModel that = (BrandAuthUserPOModel) o;
84
		return authUserId == that.authUserId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && partiesBilled == that.partiesBilled && Objects.equals(brand, that.brand);
85
	}
86
 
87
	@Override
88
	public int hashCode() {
89
		return Objects.hash(authUserId, brand, todayPOValue, todayPOBilledValue, todayBilledValue, partiesBilled);
90
	}
91
 
92
	@Override
93
	public String toString() {
94
		return "BrandAuthUserPOModel{" +
95
				"authUserId=" + authUserId +
96
				", brand='" + brand + '\'' +
97
				", todayPOValue=" + todayPOValue +
98
				", todayPOBilledValue=" + todayPOBilledValue +
99
				", todayBilledValue=" + todayBilledValue +
100
				", partiesBilled=" + partiesBilled +
101
				'}';
102
	}
28004 tejbeer 103
}