-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChiPhi.java
More file actions
85 lines (67 loc) · 1.86 KB
/
ChiPhi.java
File metadata and controls
85 lines (67 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package thanh.Model;
/**
*
* @author Do Chi Thanh
*/
public class ChiPhi {
private String ten;
private String loaiChiPhi;
private int ngayChiPhi, namChiPhi, thangChiPhi;
private double soTien;
public String getTen() {
return ten;
}
public void setTen(String ten) {
this.ten = ten;
}
public String getLoaiChiPhi() {
return loaiChiPhi;
}
public void setLoaiChiPhi(String loaiChiPhi) {
this.loaiChiPhi = loaiChiPhi;
}
public double getSoTien() {
return soTien;
}
public void setSoTien(double soTien) {
this.soTien = soTien;
}
public int getNgayChiPhi() {
return ngayChiPhi;
}
public void setNgayChiPhi(int ngayChiPhi) {
this.ngayChiPhi = ngayChiPhi;
}
public int getNamChiPhi() {
return namChiPhi;
}
public void setNamChiPhi(int namChiPhi) {
this.namChiPhi = namChiPhi;
}
public int getThangChiPhi() {
return thangChiPhi;
}
public void setThangChiPhi(int thangChiPhi) {
this.thangChiPhi = thangChiPhi;
}
public ChiPhi(){
this.ten = null;
this.loaiChiPhi = null;
this.ngayChiPhi = 0;
this.namChiPhi = 0;
this.thangChiPhi = 0;
}
public ChiPhi(String ten, String loaiChiPhi, double soTien, ThoiGian thoiGian){
this.ten = ten;
this.loaiChiPhi = loaiChiPhi;
this.ngayChiPhi = thoiGian.getNgay();
this.thangChiPhi = thoiGian.getThang();
this.namChiPhi = thoiGian.getNam();
this.soTien = soTien;
}
}