-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReceta.java
68 lines (51 loc) · 1.7 KB
/
Receta.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
/*
* 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 farmaciaapp;
import java.io.Serializable;
import java.util.ArrayList;
public class Receta implements Serializable{
private int nroReceta;
private int nroRegMedico;
private ArrayList<CodigoCantMedicamento> vccm ;
private String nomPaciente;
public Receta(int nroReceta, int nroRegMedico,String nomPaciente) {
this.nroReceta = nroReceta;
this.nroRegMedico = nroRegMedico;
this.nomPaciente = nomPaciente;
vccm = new ArrayList<CodigoCantMedicamento>();
}
public Receta() {
vccm = new ArrayList<CodigoCantMedicamento>();
}
public int getNroReceta() {
return nroReceta;
}
public void setNroReceta(int nroReceta) {
this.nroReceta = nroReceta;
}
public int getNroRegMedico() {
return nroRegMedico;
}
public void setNroRegMedico(int nroRegMedico) {
this.nroRegMedico = nroRegMedico;
}
public ArrayList<CodigoCantMedicamento> getVccm() {
return vccm;
}
public void setVccm(ArrayList<CodigoCantMedicamento> vccm) {
this.vccm = vccm;
}
public String getNomPaciente() {
return nomPaciente;
}
public void setNomPaciente(String nomPaciente) {
this.nomPaciente = nomPaciente;
}
@Override
public String toString() {
return "Receta{" + "nroReceta=" + nroReceta + ", nroRegMedico=" + nroRegMedico + ", vccm=" + vccm.toString() + ", nomPaciente=" + nomPaciente + '}';
}
}