Subversion Repositories SmartDukaan

Rev

Rev 28053 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28053 Rev 29964
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import java.util.Objects;
-
 
4
 
3
public class FofoIdItemDetailModel {
5
public class BrandRegionPOModel {
4
	private int warehouseId;
6
	private int warehouseId;
5
	private int fofoId;
-
 
6
	private long qty;
-
 
7
	private String brand;
7
	private String brand;
8
	private String modelName;
8
	private long todayPOValue;
9
	private String modelNumber;
9
	private long todayPOBilledValue;
10
	private int catalogItemId;
10
	private long todayBilledValue;
11
	private int warehouseQty;
-
 
12
 
11
 
13
	public FofoIdItemDetailModel(int warehouseId, int fofoId, long qty, String brand, String modelName,
12
	public BrandRegionPOModel(int warehouseId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue) {
14
			String modelNumber, int catalogItemId) {
-
 
15
		super();
-
 
16
		this.warehouseId = warehouseId;
13
		this.warehouseId = warehouseId;
17
		this.fofoId = fofoId;
-
 
18
		this.qty = qty;
-
 
19
		this.brand = brand;
14
		this.brand = brand;
20
		this.modelName = modelName;
15
		this.todayPOValue = todayPOValue;
21
		this.modelNumber = modelNumber;
16
		this.todayPOBilledValue = todayPOBilledValue;
22
		this.catalogItemId = catalogItemId;
17
		this.todayBilledValue = todayBilledValue;
23
	}
-
 
24
 
-
 
25
	public int getWarehouseQty() {
-
 
26
		return warehouseQty;
-
 
27
	}
-
 
28
 
-
 
29
	public void setWarehouseQty(int warehouseQty) {
-
 
30
		this.warehouseQty = warehouseQty;
-
 
31
	}
18
	}
32
 
19
 
-
 
20
	@Override
33
	public int getFofoId() {
21
	public boolean equals(Object o) {
34
		return fofoId;
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);
35
	}
26
	}
36
 
27
 
-
 
28
	@Override
37
	public void setFofoId(int fofoId) {
29
	public int hashCode() {
38
		this.fofoId = fofoId;
30
		return Objects.hash(warehouseId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
39
	}
31
	}
40
 
32
 
41
	public long getQty() {
33
	public int getWarehouseId() {
42
		return qty;
34
		return warehouseId;
43
	}
35
	}
44
 
36
 
45
	public void setQty(long qty) {
37
	public void setWarehouseId(int warehouseId) {
46
		this.qty = qty;
38
		this.warehouseId = warehouseId;
47
	}
39
	}
48
 
40
 
49
	public String getBrand() {
41
	public String getBrand() {
50
		return brand;
42
		return brand;
51
	}
43
	}
52
 
44
 
53
	public void setBrand(String brand) {
45
	public void setBrand(String brand) {
54
		this.brand = brand;
46
		this.brand = brand;
55
	}
47
	}
56
 
48
 
57
	public String getModelName() {
49
	public long getTodayPOValue() {
58
		return modelName;
50
		return todayPOValue;
59
	}
51
	}
60
 
52
 
61
	public void setModelName(String modelName) {
53
	public void setTodayPOValue(long todayPOValue) {
62
		this.modelName = modelName;
54
		this.todayPOValue = todayPOValue;
63
	}
55
	}
64
 
56
 
65
	public String getModelNumber() {
57
	public long getTodayPOBilledValue() {
66
		return modelNumber;
58
		return todayPOBilledValue;
67
	}
59
	}
68
 
60
 
69
	public void setModelNumber(String modelNumber) {
61
	public void setTodayPOBilledValue(long todayPOBilledValue) {
70
		this.modelNumber = modelNumber;
62
		this.todayPOBilledValue = todayPOBilledValue;
71
	}
63
	}
72
 
64
 
73
	public int getCatalogItemId() {
65
	public long getTodayBilledValue() {
74
		return catalogItemId;
66
		return todayBilledValue;
75
	}
67
	}
76
 
68
 
77
	public void setCatalogItemId(int catalogItemId) {
69
	public void setTodayBilledValue(long todayBilledValue) {
78
		this.catalogItemId = catalogItemId;
70
		this.todayBilledValue = todayBilledValue;
79
	}
71
	}
80
 
-
 
81
	public int getWarehouseId() {
-
 
82
		return warehouseId;
-
 
83
	}
-
 
84
 
-
 
85
	public void setWarehouseId(int warehouseId) {
-
 
86
		this.warehouseId = warehouseId;
-
 
87
	}
-
 
88
 
-
 
89
	@Override
-
 
90
	public String toString() {
-
 
91
		return "FofoIdItemDetailModel [warehouseId=" + warehouseId + ", fofoId=" + fofoId + ", qty=" + qty + ", brand="
-
 
92
				+ brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", catalogItemId="
-
 
93
				+ catalogItemId + "]";
-
 
94
	}
-
 
95
 
-
 
96
}
72
}