Subversion Repositories SmartDukaan

Rev

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

Rev 34405 Rev 34443
Line 1... Line 1...
1
package com.spice.profitmandi.service.catalog;
1
package com.spice.profitmandi.service.catalog;
2
 
2
 
-
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
3
import com.spice.profitmandi.dao.entity.catalog.Liquidation;
4
import com.spice.profitmandi.dao.entity.catalog.Liquidation;
4
 
5
 
5
import java.math.BigDecimal;
-
 
6
import java.time.LocalDate;
6
import java.time.LocalDateTime;
7
 
7
 
8
public class LiquidationModel {
8
public class LiquidationModel {
9
 
9
 
10
    private Integer id;
10
    private Integer id;
11
    private Integer catalogId;
11
    private Integer catalogId;
12
    private Boolean restricted;
12
    private Boolean restricted;
13
    private LocalDate startDate;
13
    private LocalDateTime startDate;
14
    private LocalDate endDate;
14
    private LocalDateTime endDate;
15
    private BigDecimal price;
15
    private float price;
-
 
16
    private ProfitMandiConstants.LIQUIDATION_ENUM status;
16
    private Liquidation.Status status;
17
    private int quantity;
17
 
18
 
18
    public Integer getId() {
19
    public Integer getId() {
19
        return id;
20
        return id;
20
    }
21
    }
21
 
22
 
Line 37... Line 38...
37
 
38
 
38
    public void setRestricted(Boolean restricted) {
39
    public void setRestricted(Boolean restricted) {
39
        this.restricted = restricted;
40
        this.restricted = restricted;
40
    }
41
    }
41
 
42
 
42
    public LocalDate getStartDate() {
43
    public LocalDateTime getStartDate() {
43
        return startDate;
44
        return startDate;
44
    }
45
    }
45
 
46
 
46
    public void setStartDate(LocalDate startDate) {
47
    public void setStartDate(LocalDateTime startDate) {
47
        this.startDate = startDate;
48
        this.startDate = startDate;
48
    }
49
    }
49
 
50
 
50
    public LocalDate getEndDate() {
51
    public LocalDateTime getEndDate() {
51
        return endDate;
52
        return endDate;
52
    }
53
    }
53
 
54
 
54
    public void setEndDate(LocalDate endDate) {
55
    public void setEndDate(LocalDateTime endDate) {
55
        this.endDate = endDate;
56
        this.endDate = endDate;
56
    }
57
    }
57
 
58
 
58
    public BigDecimal getPrice() {
59
    public float getPrice() {
59
        return price;
60
        return price;
60
    }
61
    }
61
 
62
 
62
    public void setPrice(BigDecimal price) {
63
    public void setPrice(float price) {
63
        this.price = price;
64
        this.price = price;
64
    }
65
    }
65
 
66
 
66
    public Liquidation.Status getStatus() {
67
    public int getQuantity() {
-
 
68
        return quantity;
-
 
69
    }
-
 
70
 
-
 
71
    public void setQuantity(int quantity) {
-
 
72
        this.quantity = quantity;
-
 
73
    }
-
 
74
 
-
 
75
    public ProfitMandiConstants.LIQUIDATION_ENUM getStatus() {
67
        return status;
76
        return status;
68
    }
77
    }
69
 
78
 
70
    public void setStatus(Liquidation.Status status) {
79
    public void setStatus(ProfitMandiConstants.LIQUIDATION_ENUM status) {
71
        this.status = status;
80
        this.status = status;
72
    }
81
    }
73
 
82
 
74
    @Override
83
    @Override
75
    public String toString() {
84
    public String toString() {
Line 79... Line 88...
79
                ", restricted=" + restricted +
88
                ", restricted=" + restricted +
80
                ", startDate=" + startDate +
89
                ", startDate=" + startDate +
81
                ", endDate=" + endDate +
90
                ", endDate=" + endDate +
82
                ", price=" + price +
91
                ", price=" + price +
83
                ", status=" + status +
92
                ", status=" + status +
-
 
93
                ", quantity=" + quantity +
84
                '}';
94
                '}';
85
    }
95
    }
86
}
96
}