Subversion Repositories SmartDukaan

Rev

Rev 34163 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34163 Rev 34256
Line 7... Line 7...
7
    int catalogId;
7
    int catalogId;
8
    String modelNumber;
8
    String modelNumber;
9
    String brand;
9
    String brand;
10
    int availableStock;
10
    int availableStock;
11
    int last2DaysSoldQtySum;
11
    int last2DaysSoldQtySum;
12
    int lastThirdDaySoldQty;
-
 
13
    int hidAllocation;
12
    int hidAllocation;
14
    int purchaseLimit;
13
    int purchaseLimit;
-
 
14
    int currentSnapshotStock;
-
 
15
    int orderedStock;
15
 
16
 
16
    public HidAllocationModel(int fofoId, int catalogId, String modelNumber, String brand, int availableStock, int last2DaysSoldQtySum, int lastThirdDaySoldQty, int hidAllocation, int purchaseLimit) {
17
    public HidAllocationModel(int fofoId, int catalogId, String modelNumber, String brand, int availableStock, int last2DaysSoldQtySum, int hidAllocation) {
17
        this.fofoId = fofoId;
18
        this.fofoId = fofoId;
18
        this.catalogId = catalogId;
19
        this.catalogId = catalogId;
19
        this.modelNumber = modelNumber;
20
        this.modelNumber = modelNumber;
20
        this.brand = brand;
21
        this.brand = brand;
21
        this.availableStock = availableStock;
22
        this.availableStock = availableStock;
22
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
23
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
23
        this.lastThirdDaySoldQty = lastThirdDaySoldQty;
-
 
24
        this.hidAllocation = hidAllocation;
24
        this.hidAllocation = hidAllocation;
25
        this.purchaseLimit = purchaseLimit;
-
 
26
    }
25
    }
27
 
26
 
28
    public int getFofoId() {
27
    public int getFofoId() {
29
        return fofoId;
28
        return fofoId;
30
    }
29
    }
Line 71... Line 70...
71
 
70
 
72
    public void setLast2DaysSoldQtySum(int last2DaysSoldQtySum) {
71
    public void setLast2DaysSoldQtySum(int last2DaysSoldQtySum) {
73
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
72
        this.last2DaysSoldQtySum = last2DaysSoldQtySum;
74
    }
73
    }
75
 
74
 
76
    public int getLastThirdDaySoldQty() {
-
 
77
        return lastThirdDaySoldQty;
-
 
78
    }
-
 
79
 
-
 
80
    public void setLastThirdDaySoldQty(int lastThirdDaySoldQty) {
-
 
81
        this.lastThirdDaySoldQty = lastThirdDaySoldQty;
-
 
82
    }
-
 
83
 
-
 
84
    public int getHidAllocation() {
75
    public int getHidAllocation() {
85
        return hidAllocation;
76
        return hidAllocation;
86
    }
77
    }
87
 
78
 
88
    public void setHidAllocation(int hidAllocation) {
79
    public void setHidAllocation(int hidAllocation) {
Line 95... Line 86...
95
 
86
 
96
    public void setPurchaseLimit(int purchaseLimit) {
87
    public void setPurchaseLimit(int purchaseLimit) {
97
        this.purchaseLimit = purchaseLimit;
88
        this.purchaseLimit = purchaseLimit;
98
    }
89
    }
99
 
90
 
-
 
91
    public int getCurrentSnapshotStock() {
-
 
92
        return currentSnapshotStock;
-
 
93
    }
-
 
94
 
-
 
95
    public void setCurrentSnapshotStock(int currentSnapshotStock) {
-
 
96
        this.currentSnapshotStock = currentSnapshotStock;
-
 
97
    }
-
 
98
 
-
 
99
    public int getOrderedStock() {
-
 
100
        return orderedStock;
-
 
101
    }
-
 
102
 
-
 
103
    public void setOrderedStock(int orderedStock) {
-
 
104
        this.orderedStock = orderedStock;
-
 
105
    }
-
 
106
 
-
 
107
    @Override
-
 
108
    public boolean equals(Object o) {
-
 
109
        if (this == o) return true;
-
 
110
        if (o == null || getClass() != o.getClass()) return false;
-
 
111
        HidAllocationModel that = (HidAllocationModel) o;
-
 
112
        return fofoId == that.fofoId && catalogId == that.catalogId && availableStock == that.availableStock && last2DaysSoldQtySum == that.last2DaysSoldQtySum && hidAllocation == that.hidAllocation && purchaseLimit == that.purchaseLimit && currentSnapshotStock == that.currentSnapshotStock && orderedStock == that.orderedStock && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(brand, that.brand);
-
 
113
    }
-
 
114
 
-
 
115
    @Override
-
 
116
    public int hashCode() {
-
 
117
        return Objects.hash(fofoId, catalogId, modelNumber, brand, availableStock, last2DaysSoldQtySum, hidAllocation, purchaseLimit, currentSnapshotStock, orderedStock);
-
 
118
    }
-
 
119
 
100
    @Override
120
    @Override
101
    public String toString() {
121
    public String toString() {
102
        return "HidAllocationModel{" +
122
        return "HidAllocationModel{" +
103
                "fofoId=" + fofoId +
123
                "fofoId=" + fofoId +
104
                ", catalogId=" + catalogId +
124
                ", catalogId=" + catalogId +
105
                ", modelNumber='" + modelNumber + '\'' +
125
                ", modelNumber='" + modelNumber + '\'' +
106
                ", brand='" + brand + '\'' +
126
                ", brand='" + brand + '\'' +
107
                ", availableStock=" + availableStock +
127
                ", availableStock=" + availableStock +
108
                ", last2DaysSoldQtySum=" + last2DaysSoldQtySum +
128
                ", last2DaysSoldQtySum=" + last2DaysSoldQtySum +
109
                ", lastThirdDaySoldQty=" + lastThirdDaySoldQty +
-
 
110
                ", hidAllocation=" + hidAllocation +
129
                ", hidAllocation=" + hidAllocation +
111
                ", purchaseLimit=" + purchaseLimit +
130
                ", purchaseLimit=" + purchaseLimit +
-
 
131
                ", currentSnapshotStock=" + currentSnapshotStock +
-
 
132
                ", orderedStock=" + orderedStock +
112
                '}';
133
                '}';
113
    }
134
    }
114
 
-
 
115
    @Override
-
 
116
    public boolean equals(Object o) {
-
 
117
        if (this == o) return true;
-
 
118
        if (o == null || getClass() != o.getClass()) return false;
-
 
119
        HidAllocationModel that = (HidAllocationModel) o;
-
 
120
        return fofoId == that.fofoId && catalogId == that.catalogId && availableStock == that.availableStock && last2DaysSoldQtySum == that.last2DaysSoldQtySum && lastThirdDaySoldQty == that.lastThirdDaySoldQty && hidAllocation == that.hidAllocation && purchaseLimit == that.purchaseLimit && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(brand, that.brand);
-
 
121
    }
-
 
122
 
-
 
123
    @Override
-
 
124
    public int hashCode() {
-
 
125
        return Objects.hash(fofoId, catalogId, modelNumber, brand, availableStock, last2DaysSoldQtySum, lastThirdDaySoldQty, hidAllocation, purchaseLimit);
-
 
126
    }
-
 
127
}
135
}