169 lines
2.8 KiB
Java
169 lines
2.8 KiB
Java
package com.tarisan.data;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.sql.Date;
|
|
import java.util.Calendar;
|
|
//import java.text.DecimalFormat;
|
|
|
|
public class TaliquimediDet implements Serializable
|
|
{
|
|
private int medico;
|
|
|
|
private int factura;
|
|
|
|
private String apellidos;
|
|
|
|
private int entidad;
|
|
|
|
private int colectivo;
|
|
|
|
private double poliza;
|
|
|
|
private int orden;
|
|
|
|
private Date fecha_gasto;
|
|
|
|
private Date fecha_factura;
|
|
|
|
private int especialidad;
|
|
|
|
private String descripcion;
|
|
|
|
private double importe;
|
|
//
|
|
//DecimalFormat df = new DecimalFormat("#.##");
|
|
// df.format(resul.getDouble("PRECIO"))
|
|
|
|
public int getMedico()
|
|
{
|
|
return this.medico;
|
|
}
|
|
|
|
public void setMedico(int med)
|
|
{
|
|
this.medico = med;
|
|
}
|
|
|
|
public int getFactura()
|
|
{
|
|
return this.factura;
|
|
}
|
|
|
|
public void setFactura(int fac)
|
|
{
|
|
this.factura = fac;
|
|
}
|
|
|
|
public String getApellidos()
|
|
{
|
|
return (this.apellidos == null)?"":this.apellidos;
|
|
}
|
|
|
|
public void setApellidos(String ape)
|
|
{
|
|
this.apellidos = (ape == null)?"":ape;
|
|
}
|
|
|
|
public int getEntidad()
|
|
{
|
|
return this.entidad;
|
|
}
|
|
|
|
public void setEntidad(int enti)
|
|
{
|
|
this.entidad = enti;
|
|
}
|
|
|
|
public int getColectivo()
|
|
{
|
|
return this.colectivo;
|
|
}
|
|
|
|
public void setColectivo(int col)
|
|
{
|
|
this.colectivo = col;
|
|
}
|
|
|
|
public double getPoliza()
|
|
{
|
|
return this.poliza;
|
|
}
|
|
|
|
public void setPoliza(double pol)
|
|
{
|
|
this.poliza = pol;
|
|
}
|
|
|
|
public int getOrden()
|
|
{
|
|
return this.orden;
|
|
}
|
|
|
|
public void setOrden(int ord)
|
|
{
|
|
this.orden = ord;
|
|
}
|
|
|
|
public Date getFecha_gasto()
|
|
{
|
|
Calendar nuevo = Calendar.getInstance();
|
|
nuevo.set(1900, 1, 1);
|
|
Date esNula = new Date(nuevo.getTimeInMillis());
|
|
return (this.fecha_gasto == null)?esNula:this.fecha_gasto;
|
|
}
|
|
|
|
public void setFecha_gasto(Date fecgas)
|
|
{
|
|
Calendar nuevo = Calendar.getInstance();
|
|
nuevo.set(1900, 1, 1);
|
|
Date esNula = new Date(nuevo.getTimeInMillis());
|
|
this.fecha_gasto = (fecgas == null)?esNula:fecgas;
|
|
}
|
|
|
|
public Date getFecha_factura()
|
|
{
|
|
Calendar nuevo = Calendar.getInstance();
|
|
nuevo.set(1900, 1, 1);
|
|
Date esNula = new Date(nuevo.getTimeInMillis());
|
|
return (this.fecha_factura == null)?esNula:this.fecha_factura;
|
|
}
|
|
|
|
public void setFecha_factura(Date fecfac)
|
|
{
|
|
Calendar nuevo = Calendar.getInstance();
|
|
nuevo.set(1900, 1, 1);
|
|
Date esNula = new Date(nuevo.getTimeInMillis());
|
|
this.fecha_factura = (fecfac == null)?esNula:fecfac;
|
|
}
|
|
|
|
public int getEspecialidad()
|
|
{
|
|
return this.especialidad;
|
|
}
|
|
|
|
public void setEspecialidad(int espe)
|
|
{
|
|
this.especialidad = espe;
|
|
}
|
|
|
|
public String getDescripcion()
|
|
{
|
|
return (this.descripcion == null)?"":this.descripcion;
|
|
}
|
|
|
|
public void setDescripcion(String desc)
|
|
{
|
|
this.descripcion = (desc == null)?"":desc;
|
|
}
|
|
|
|
public double getImporte()
|
|
{
|
|
return this.importe;
|
|
}
|
|
|
|
public void setImporte(double imp)
|
|
{
|
|
this.importe = imp;
|
|
}
|
|
} |