-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCapacitacion.java
98 lines (73 loc) · 1.94 KB
/
Capacitacion.java
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
86
87
88
89
90
91
92
93
94
95
96
97
98
package sprint;
public class Capacitacion {
private Integer identificador;
private Integer rutCliente;
private String dia;
private String hora;
private String lugar;
private Integer duracion;
private int cantidadAsistentes;
public Capacitacion() {
}
public Capacitacion(Integer identificador, Integer rutCliente, String dia, String hora, String lugar, Integer duracion, int cantidadAsistentes) {
super();
this.identificador = identificador;
this.rutCliente = rutCliente;
this.dia = dia;
this.hora = hora;
this.lugar = lugar;
this.duracion = duracion;
this.cantidadAsistentes = cantidadAsistentes;
}
public Integer getIdentificador() {
return identificador;
}
public void setIdentificador(Integer identificador) {
this.identificador = identificador;
}
public Integer getRutCliente() {
return rutCliente;
}
public void setRutCliente(Integer rutCliente) {
this.rutCliente = rutCliente;
}
public String getDia() {
return dia;
}
public void setDia(String dia) {
this.dia = dia;
}
public String getHora() {
return hora;
}
public void setHora(String hora) {
this.hora = hora;
}
public String getLugar() {
return lugar;
}
public void setLugar(String lugar) {
this.lugar = lugar;
}
public Integer getDuracion() {
return duracion;
}
public void setDuracion(Integer duracion) {
String duracionStr = String.valueOf(duracion);
this.duracion = duracion;
}
public int getCantidadAsistentes() {
return cantidadAsistentes;
}
public void setCantidadAsistentes(int cantidadAsistentes) {
this.cantidadAsistentes = cantidadAsistentes;
}
@Override
public String toString() {
return "Capacitacion [identificador=" + identificador + ", rutCliente=" + rutCliente + mostrarDetalle() +", cantidadAsistentes="
+ cantidadAsistentes + "]";
}
public String mostrarDetalle() {
return "La capacitacion sera en " + lugar + " del dia " +dia +" y durara " + duracion*60 + " minutos";
}
}