Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33845 tejus.loha 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.spice.profitmandi.dao.enumuration.dtr.ServiceType;
4
 
5
public class WodFinMappingModel {
6
 
7
    private Integer id;
8
    private String code;
9
    private String outletName;
10
    private String city;
11
    private String brandName;
12
    private String dmsCode;
13
    private String serviceName;
14
    private Boolean active;
15
    private ServiceType serviceType;
16
 
17
    public WodFinMappingModel() {
18
    }
19
 
20
    public WodFinMappingModel(Integer id, String code, String outletName, String city, String brandName, String dmsCode, String serviceName, String serviceType, Boolean active) {
21
        super();
22
        this.id = id;
23
        this.code = code;
24
        this.outletName = outletName;
25
        this.city = city;
26
        this.brandName = brandName;
27
 
28
        if (dmsCode == null || dmsCode.isEmpty())
29
            this.dmsCode = "";
30
        else
31
            this.dmsCode = dmsCode;
32
 
33
        this.serviceName = serviceName;
34
        if (serviceType == null) {
35
            this.serviceType = null;
36
        } else {
37
            this.serviceType = ServiceType.valueOf(serviceType);
38
        }
39
        this.active = active;
40
 
41
    }
42
 
43
    public Integer getId() {
44
        return id;
45
    }
46
 
47
    public void setId(Integer id) {
48
        this.id = id;
49
    }
50
 
51
 
52
    public String getCode() {
53
        return code;
54
    }
55
 
56
    public void setCode(String code) {
57
        this.code = code;
58
    }
59
 
60
    public String getOutletName() {
61
        return outletName;
62
    }
63
 
64
    public void setOutletName(String outletName) {
65
        this.outletName = outletName;
66
    }
67
 
68
    public String getCity() {
69
        return city;
70
    }
71
 
72
    public void setCity(String city) {
73
        this.city = city;
74
    }
75
 
76
    public String getBrandName() {
77
        return brandName;
78
    }
79
 
80
    public void setBrandName(String brandName) {
81
        this.brandName = brandName;
82
    }
83
 
84
    public String getDmsCode() {
85
        return dmsCode;
86
    }
87
 
88
    public void setDmsCode(String dmsCode) {
89
        this.dmsCode = dmsCode;
90
    }
91
 
92
    public String getServiceName() {
93
        return serviceName;
94
    }
95
 
96
    public void setServiceName(String serviceName) {
97
        this.serviceName = serviceName;
98
    }
99
 
100
    public Boolean getActive() {
101
        return active;
102
    }
103
 
104
    public void setActive(Boolean active) {
105
        this.active = active;
106
    }
107
 
108
    public ServiceType getServiceType() {
109
        return serviceType;
110
    }
111
 
112
    public void setServiceType(ServiceType serviceType) {
113
        this.serviceType = serviceType;
114
    }
115
 
116
    @Override
117
    public String toString() {
118
        return "WodFinMappingReportModel{" +
119
                "id='" + id + '\'' +
120
                "code='" + code + '\'' +
121
                ", outletName='" + outletName + '\'' +
122
                ", city='" + city + '\'' +
123
                ", brandName='" + brandName + '\'' +
124
                ", dmsCode='" + dmsCode + '\'' +
125
                ", serviceName='" + serviceName + '\'' +
126
                ", serviceType='" + serviceType + '\'' +
127
                ", active='" + active + '\'' +
128
                '}';
129
    }
130
}