Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
23001 amit.gupta 3
import java.util.List;
21686 ashik.ali 4
import java.util.Set;
5
 
6
public class PdfModel {
7
	private String title;
8
	private String auther;
9
	private CustomCustomer customer;
10
	private CustomRetailer retailer;
11
	private String invoiceNumber;
24509 amit.gupta 12
	private boolean isCancelled;
13
	public boolean isCancelled() {
14
		return isCancelled;
15
	}
16
	public void setCancelled(boolean isCancelled) {
17
		this.isCancelled = isCancelled;
18
	}
22688 amit.gupta 19
	private String invoiceDate;
22858 ashik.ali 20
	private Set<CustomOrderItem> orderItems;
22215 ashik.ali 21
	private Set<CustomInsurancePolicy> insurancePolicies;
23552 amit.gupta 22
	private List<CustomPaymentOption> paymentOptions;
23001 amit.gupta 23
	private List<String> tncs;
21686 ashik.ali 24
	private float totalAmount;
25
	public String getTitle() {
26
		return title;
27
	}
28
	public void setTitle(String title) {
29
		this.title = title;
30
	}
31
	public String getAuther() {
32
		return auther;
33
	}
34
	public void setAuther(String auther) {
35
		this.auther = auther;
36
	}
37
	public CustomCustomer getCustomer() {
38
		return customer;
39
	}
40
	public void setCustomer(CustomCustomer customer) {
41
		this.customer = customer;
42
	}
43
	public CustomRetailer getRetailer() {
44
		return retailer;
45
	}
46
	public void setRetailer(CustomRetailer retailer) {
47
		this.retailer = retailer;
48
	}
49
	public String getInvoiceNumber() {
50
		return invoiceNumber;
51
	}
52
	public void setInvoiceNumber(String invoiceNumber) {
53
		this.invoiceNumber = invoiceNumber;
54
	}
22858 ashik.ali 55
	public Set<CustomOrderItem> getOrderItems() {
21686 ashik.ali 56
		return orderItems;
57
	}
22858 ashik.ali 58
	public void setOrderItems(Set<CustomOrderItem> orderItems) {
21686 ashik.ali 59
		this.orderItems = orderItems;
60
	}
22215 ashik.ali 61
	public Set<CustomInsurancePolicy> getInsurancePolicies() {
62
		return insurancePolicies;
63
	}
64
	public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
65
		this.insurancePolicies = insurancePolicies;
66
	}
21686 ashik.ali 67
	public float getTotalAmount() {
68
		return totalAmount;
69
	}
70
	public void setTotalAmount(float totalAmount) {
71
		this.totalAmount = totalAmount;
72
	}
21923 ashik.ali 73
	@Override
74
	public int hashCode() {
75
		final int prime = 31;
76
		int result = 1;
77
		result = prime * result + ((auther == null) ? 0 : auther.hashCode());
78
		result = prime * result + ((customer == null) ? 0 : customer.hashCode());
23552 amit.gupta 79
		result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
80
		result = prime * result + ((invoiceDate == null) ? 0 : invoiceDate.hashCode());
21923 ashik.ali 81
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
82
		result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
23552 amit.gupta 83
		result = prime * result + ((paymentOptions == null) ? 0 : paymentOptions.hashCode());
21923 ashik.ali 84
		result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
85
		result = prime * result + ((title == null) ? 0 : title.hashCode());
23552 amit.gupta 86
		result = prime * result + ((tncs == null) ? 0 : tncs.hashCode());
21923 ashik.ali 87
		result = prime * result + Float.floatToIntBits(totalAmount);
88
		return result;
89
	}
90
	@Override
91
	public boolean equals(Object obj) {
92
		if (this == obj)
93
			return true;
94
		if (obj == null)
95
			return false;
96
		if (getClass() != obj.getClass())
97
			return false;
98
		PdfModel other = (PdfModel) obj;
99
		if (auther == null) {
100
			if (other.auther != null)
101
				return false;
102
		} else if (!auther.equals(other.auther))
103
			return false;
104
		if (customer == null) {
105
			if (other.customer != null)
106
				return false;
107
		} else if (!customer.equals(other.customer))
108
			return false;
23552 amit.gupta 109
		if (insurancePolicies == null) {
110
			if (other.insurancePolicies != null)
111
				return false;
112
		} else if (!insurancePolicies.equals(other.insurancePolicies))
113
			return false;
114
		if (invoiceDate == null) {
115
			if (other.invoiceDate != null)
116
				return false;
117
		} else if (!invoiceDate.equals(other.invoiceDate))
118
			return false;
21923 ashik.ali 119
		if (invoiceNumber == null) {
120
			if (other.invoiceNumber != null)
121
				return false;
122
		} else if (!invoiceNumber.equals(other.invoiceNumber))
123
			return false;
124
		if (orderItems == null) {
125
			if (other.orderItems != null)
126
				return false;
127
		} else if (!orderItems.equals(other.orderItems))
128
			return false;
23552 amit.gupta 129
		if (paymentOptions == null) {
130
			if (other.paymentOptions != null)
22215 ashik.ali 131
				return false;
23552 amit.gupta 132
		} else if (!paymentOptions.equals(other.paymentOptions))
22215 ashik.ali 133
			return false;
21923 ashik.ali 134
		if (retailer == null) {
135
			if (other.retailer != null)
136
				return false;
137
		} else if (!retailer.equals(other.retailer))
138
			return false;
139
		if (title == null) {
140
			if (other.title != null)
141
				return false;
142
		} else if (!title.equals(other.title))
143
			return false;
23552 amit.gupta 144
		if (tncs == null) {
145
			if (other.tncs != null)
146
				return false;
147
		} else if (!tncs.equals(other.tncs))
148
			return false;
21923 ashik.ali 149
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
150
			return false;
151
		return true;
152
	}
153
	@Override
154
	public String toString() {
155
		return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
24509 amit.gupta 156
				+ ", invoiceNumber=" + invoiceNumber + ", isCancelled=" + isCancelled + ", invoiceDate=" + invoiceDate
157
				+ ", orderItems=" + orderItems + ", insurancePolicies=" + insurancePolicies + ", paymentOptions="
158
				+ paymentOptions + ", tncs=" + tncs + ", totalAmount=" + totalAmount + "]";
21923 ashik.ali 159
	}
22688 amit.gupta 160
	public String getInvoiceDate() {
161
		return invoiceDate;
162
	}
163
	public void setInvoiceDate(String invoiceDate) {
164
		this.invoiceDate = invoiceDate;
165
	}
23001 amit.gupta 166
	public List<String> getTncs() {
167
		return tncs;
168
	}
169
	public void setTncs(List<String> tncs) {
170
		this.tncs = tncs;
171
	}
23552 amit.gupta 172
	public List<CustomPaymentOption> getPaymentOptions() {
173
		return paymentOptions;
174
	}
175
	public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
176
		this.paymentOptions = paymentOptions;
177
	}
21923 ashik.ali 178
 
179
 
22215 ashik.ali 180
 
21686 ashik.ali 181
}