Subversion Repositories SmartDukaan

Rev

Rev 32952 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32952 amit.gupta 1
package com.spice.profitmandi.service.catalog;
2
 
3
import java.time.LocalDateTime;
4
import java.util.Objects;
5
 
6
public class ItemLoaderModel {
7
        int rowIndex;
8
        private String productGroup;
9
        private int categoryId;
10
        private String category;
11
        private String brand;
12
        private String modelNumber;
13
        private String modelName;
14
        private String color;
15
        private double mrp;
16
        private double sp;
17
        private double mop;
18
        private double dp;
19
        private double tp;
20
        private double nlc;
21
        private LocalDateTime startDate;
22
        private int preferredVendor;
23
        private boolean risky;
24
        private double weight;
25
        private int itemType;
26
        private double taxRate;
27
        private String hsnCode;
37218 amit 28
        private String brandIdentifier;
32952 amit.gupta 29
 
30
        public int getCategoryId() {
31
                return categoryId;
32
        }
33
 
34
        public void setCategoryId(int categoryId) {
35
                this.categoryId = categoryId;
36
        }
37
 
38
        public double getTaxRate() {
39
                return taxRate;
40
        }
41
 
42
        public void setTaxRate(double taxRate) {
43
                this.taxRate = taxRate;
44
        }
45
 
46
 
47
        public String getProductGroup() {
48
                return productGroup;
49
        }
50
 
51
        public void setProductGroup(String productGroup) {
52
                this.productGroup = productGroup;
53
        }
54
 
55
        public String getCategory() {
56
                return category;
57
        }
58
 
59
        public void setCategory(String category) {
60
                this.category = category;
61
        }
62
 
63
        public String getBrand() {
64
                return brand;
65
        }
66
 
67
        public void setBrand(String brand) {
68
                this.brand = brand;
69
        }
70
 
71
        public String getModelNumber() {
72
                return modelNumber;
73
        }
74
 
75
        public void setModelNumber(String modelNumber) {
76
                this.modelNumber = modelNumber;
77
        }
78
 
79
        public String getModelName() {
80
                return modelName;
81
        }
82
 
83
        public void setModelName(String modelName) {
84
                this.modelName = modelName;
85
        }
86
 
87
        public String getColor() {
88
                return color;
89
        }
90
 
91
        public void setColor(String color) {
92
                this.color = color;
93
        }
94
 
95
        public double getMrp() {
96
                return mrp;
97
        }
98
 
99
        public void setMrp(double mrp) {
100
                this.mrp = mrp;
101
        }
102
 
103
        public double getSp() {
104
                return sp;
105
        }
106
 
107
        public void setSp(double sp) {
108
                this.sp = sp;
109
        }
110
 
111
        public double getMop() {
112
                return mop;
113
        }
114
 
115
        public void setMop(double mop) {
116
                this.mop = mop;
117
        }
118
 
119
        public double getDp() {
120
                return dp;
121
        }
122
 
123
        public void setDp(double dp) {
124
                this.dp = dp;
125
        }
126
 
127
        public double getTp() {
128
                return tp;
129
        }
130
 
131
        public void setTp(double tp) {
132
                this.tp = tp;
133
        }
134
 
135
        public double getNlc() {
136
                return nlc;
137
        }
138
 
139
        public void setNlc(double nlc) {
140
                this.nlc = nlc;
141
        }
142
 
143
        public LocalDateTime getStartDate() {
144
                return startDate;
145
        }
146
 
147
        public void setStartDate(LocalDateTime startDate) {
148
                this.startDate = startDate;
149
        }
150
 
151
        public int getPreferredVendor() {
152
                return preferredVendor;
153
        }
154
 
155
        public void setPreferredVendor(int preferredVendor) {
156
                this.preferredVendor = preferredVendor;
157
        }
158
 
159
        public boolean isRisky() {
160
                return risky;
161
        }
162
 
163
        public void setRisky(boolean risky) {
164
                this.risky = risky;
165
        }
166
 
167
        public double getWeight() {
168
                return weight;
169
        }
170
 
171
        public void setWeight(double weight) {
172
                this.weight = weight;
173
        }
174
 
175
        public int getItemType() {
176
                return itemType;
177
        }
178
 
179
        public void setItemType(int itemType) {
180
                this.itemType = itemType;
181
        }
182
 
183
        public int getRowIndex() {
184
                return rowIndex;
185
        }
186
 
187
        public void setRowIndex(int rowIndex) {
188
                this.rowIndex = rowIndex;
189
        }
190
 
191
        public String getHsnCode() {
192
                return hsnCode;
193
        }
194
 
195
        public void setHsnCode(String hsnCode) {
196
                this.hsnCode = hsnCode;
197
        }
198
 
37218 amit 199
        public String getBrandIdentifier() {
200
                return brandIdentifier;
201
        }
202
 
203
        public void setBrandIdentifier(String brandIdentifier) {
204
                this.brandIdentifier = brandIdentifier;
205
        }
206
 
32952 amit.gupta 207
        @Override
208
        public boolean equals(Object o) {
209
                if (this == o) return true;
210
                if (o == null || getClass() != o.getClass()) return false;
211
                ItemLoaderModel that = (ItemLoaderModel) o;
212
                return rowIndex == that.rowIndex && categoryId == that.categoryId && Double.compare(mrp, that.mrp) == 0 && Double.compare(sp, that.sp) == 0 && Double.compare(mop, that.mop) == 0 && Double.compare(dp, that.dp) == 0 && Double.compare(tp, that.tp) == 0 && Double.compare(nlc, that.nlc) == 0 && preferredVendor == that.preferredVendor && risky == that.risky && Double.compare(weight, that.weight) == 0 && itemType == that.itemType && Double.compare(taxRate, that.taxRate) == 0 && Objects.equals(productGroup, that.productGroup) && Objects.equals(category, that.category) && Objects.equals(brand, that.brand) && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(modelName, that.modelName) && Objects.equals(color, that.color) && Objects.equals(startDate, that.startDate) && Objects.equals(hsnCode, that.hsnCode);
213
        }
214
 
215
        @Override
216
        public int hashCode() {
217
                return Objects.hash(rowIndex, productGroup, categoryId, category, brand, modelNumber, modelName, color, mrp, sp, mop, dp, tp, nlc, startDate, preferredVendor, risky, weight, itemType, taxRate, hsnCode);
218
        }
219
 
220
        @Override
221
        public String toString() {
222
                return "ItemLoaderModel{" +
223
                        "rowIndex=" + rowIndex +
224
                        ", productGroup='" + productGroup + '\'' +
225
                        ", categoryId=" + categoryId +
226
                        ", category='" + category + '\'' +
227
                        ", brand='" + brand + '\'' +
228
                        ", modelNumber='" + modelNumber + '\'' +
229
                        ", modelName='" + modelName + '\'' +
230
                        ", color='" + color + '\'' +
231
                        ", mrp=" + mrp +
232
                        ", sp=" + sp +
233
                        ", mop=" + mop +
234
                        ", dp=" + dp +
235
                        ", tp=" + tp +
236
                        ", nlc=" + nlc +
237
                        ", startDate=" + startDate +
238
                        ", preferredVendor=" + preferredVendor +
239
                        ", risky=" + risky +
240
                        ", weight=" + weight +
241
                        ", itemType=" + itemType +
242
                        ", taxRate=" + taxRate +
243
                        ", hsnCode='" + hsnCode + '\'' +
244
                        '}';
245
        }
246
}