Subversion Repositories SmartDukaan

Rev

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

Rev 34111 Rev 34117
Line 3... Line 3...
3
import java.util.Objects;
3
import java.util.Objects;
4
 
4
 
5
public class UpsellingReportModel {
5
public class UpsellingReportModel {
6
    int agentId;
6
    int agentId;
7
    String agentEmail;
7
    String agentEmail;
-
 
8
    String partnerName;
8
    int orderId;
9
    int orderId;
9
    String customerNumber;
10
    String customerNumber;
10
    String callingDate;
11
    String callingDate;
11
    String paymentStatus;
12
    String paymentStatus;
12
    String insuranceStatus;
13
    String insuranceStatus;
13
    float policySoldAmount;
14
    float policySoldAmount;
14
    String invoiceNumber;
15
    String invoiceNumber;
15
    String serialNumber;
16
    String serialNumber;
16
 
17
 
17
    public UpsellingReportModel(int agentId, String agentEmail, int orderId, String customerNumber, String callingDate, String paymentStatus, String insuranceStatus, float policySoldAmount, String invoiceNumber, String serialNumber) {
18
    public UpsellingReportModel(int agentId, String agentEmail, String partnerName, int orderId, String customerNumber, String callingDate, String paymentStatus, String insuranceStatus, float policySoldAmount, String invoiceNumber, String serialNumber) {
18
        this.agentId = agentId;
19
        this.agentId = agentId;
19
        this.agentEmail = agentEmail;
20
        this.agentEmail = agentEmail;
-
 
21
        this.partnerName = partnerName;
20
        this.orderId = orderId;
22
        this.orderId = orderId;
21
        this.customerNumber = customerNumber;
23
        this.customerNumber = customerNumber;
22
        this.callingDate = callingDate;
24
        this.callingDate = callingDate;
23
        this.paymentStatus = paymentStatus;
25
        this.paymentStatus = paymentStatus;
24
        this.insuranceStatus = insuranceStatus;
26
        this.insuranceStatus = insuranceStatus;
Line 41... Line 43...
41
 
43
 
42
    public void setAgentEmail(String agentEmail) {
44
    public void setAgentEmail(String agentEmail) {
43
        this.agentEmail = agentEmail;
45
        this.agentEmail = agentEmail;
44
    }
46
    }
45
 
47
 
-
 
48
    public String getPartnerName() {
-
 
49
        return partnerName;
-
 
50
    }
-
 
51
 
-
 
52
    public void setPartnerName(String partnerName) {
-
 
53
        this.partnerName = partnerName;
-
 
54
    }
-
 
55
 
46
    public int getOrderId() {
56
    public int getOrderId() {
47
        return orderId;
57
        return orderId;
48
    }
58
    }
49
 
59
 
50
    public void setOrderId(int orderId) {
60
    public void setOrderId(int orderId) {
Line 106... Line 116...
106
    public void setSerialNumber(String serialNumber) {
116
    public void setSerialNumber(String serialNumber) {
107
        this.serialNumber = serialNumber;
117
        this.serialNumber = serialNumber;
108
    }
118
    }
109
 
119
 
110
    @Override
120
    @Override
-
 
121
    public boolean equals(Object o) {
-
 
122
        if (this == o) return true;
-
 
123
        if (o == null || getClass() != o.getClass()) return false;
-
 
124
        UpsellingReportModel that = (UpsellingReportModel) o;
-
 
125
        return agentId == that.agentId && orderId == that.orderId && Float.compare(policySoldAmount, that.policySoldAmount) == 0 && Objects.equals(agentEmail, that.agentEmail) && Objects.equals(partnerName, that.partnerName) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(callingDate, that.callingDate) && Objects.equals(paymentStatus, that.paymentStatus) && Objects.equals(insuranceStatus, that.insuranceStatus) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(serialNumber, that.serialNumber);
-
 
126
    }
-
 
127
 
-
 
128
    @Override
-
 
129
    public int hashCode() {
-
 
130
        return Objects.hash(agentId, agentEmail, partnerName, orderId, customerNumber, callingDate, paymentStatus, insuranceStatus, policySoldAmount, invoiceNumber, serialNumber);
-
 
131
    }
-
 
132
 
-
 
133
    @Override
111
    public String toString() {
134
    public String toString() {
112
        return "UpsellingReportModel{" +
135
        return "UpsellingReportModel{" +
113
                "agentId=" + agentId +
136
                "agentId=" + agentId +
114
                ", agentEmail='" + agentEmail + '\'' +
137
                ", agentEmail='" + agentEmail + '\'' +
-
 
138
                ", partnerName='" + partnerName + '\'' +
115
                ", orderId=" + orderId +
139
                ", orderId=" + orderId +
116
                ", customerNumber='" + customerNumber + '\'' +
140
                ", customerNumber='" + customerNumber + '\'' +
117
                ", callingDate=" + callingDate +
141
                ", callingDate='" + callingDate + '\'' +
118
                ", paymentStatus='" + paymentStatus + '\'' +
142
                ", paymentStatus='" + paymentStatus + '\'' +
119
                ", insuranceStatus='" + insuranceStatus + '\'' +
143
                ", insuranceStatus='" + insuranceStatus + '\'' +
120
                ", policySoldAmount=" + policySoldAmount +
144
                ", policySoldAmount=" + policySoldAmount +
121
                ", invoiceNumber='" + invoiceNumber + '\'' +
145
                ", invoiceNumber='" + invoiceNumber + '\'' +
122
                ", serialNumber='" + serialNumber + '\'' +
146
                ", serialNumber='" + serialNumber + '\'' +
123
                '}';
147
                '}';
124
    }
148
    }
125
 
149
 
126
    @Override
-
 
127
    public boolean equals(Object o) {
-
 
128
        if (this == o) return true;
-
 
129
        if (o == null || getClass() != o.getClass()) return false;
-
 
130
        UpsellingReportModel that = (UpsellingReportModel) o;
-
 
131
        return agentId == that.agentId && orderId == that.orderId && Float.compare(policySoldAmount, that.policySoldAmount) == 0 && Objects.equals(agentEmail, that.agentEmail) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(callingDate, that.callingDate) && Objects.equals(paymentStatus, that.paymentStatus) && Objects.equals(insuranceStatus, that.insuranceStatus) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(serialNumber, that.serialNumber);
-
 
132
    }
-
 
133
 
-
 
134
    @Override
-
 
135
    public int hashCode() {
-
 
136
        return Objects.hash(agentId, agentEmail, orderId, customerNumber, callingDate, paymentStatus, insuranceStatus, policySoldAmount, invoiceNumber, serialNumber);
-
 
137
    }
-
 
138
}
150
}