diff --git a/jsp/Basura/med/Copia de detallePacientes.jsp b/jsp/Basura/med/Copia de detallePacientes.jsp
new file mode 100644
index 0000000..856119b
--- /dev/null
+++ b/jsp/Basura/med/Copia de detallePacientes.jsp
@@ -0,0 +1,328 @@
+<%@ page import="com.tarisan.control.*" %>
+<%@ page import="com.tarisan.data.*" %>
+<%@ page import="com.tarisan.excepcion.*" %>
+<%@ page import="com.tarisan.log.*" %>
+<%@ page import="com.tarisan.util.Utilidades" %>
+<%@ page import="com.tarisan.persistencia.PersistenciaParametros" %>
+<%@ page import="java.sql.*" %>
+<%@ page import="java.util.Vector" %>
+<%@ page import="java.text.SimpleDateFormat" %>
+
+<%
+ LogTarisan.logger.log(NivelLog.INFO, "Inicio página de pacientes (med/detallePacientes.jsp)");
+
+ response.setHeader("Expires", "0");
+ response.setHeader("Pragma", "no-cache");
+ response.setHeader("Cache-Control", "no-cache");
+ HttpSession sesion = request.getSession(true);
+
+ if(sesion.isNew() || (sesion.getAttribute("USUARIO") == null))
+ {
+ LogTarisan.logger.log(NivelLog.INFO, "Sesión invalidada");
+ response.sendRedirect("../../html/login.html");
+ }
+ else
+ {
+ try
+ {
+
+// Definicion de variables
+String strParametroMenu="";
+String strFecha = "";
+StringBuffer strSql = new StringBuffer();
+int intPagina = 0;
+SimpleDateFormat sdfFormateadorFecha=new SimpleDateFormat(PersistenciaParametros.formatoFechas);
+Object aCondiciones[]=null;
+
+//Obtención del perfil del usuario conectado
+StringBuffer perfil = new StringBuffer();
+perfil.append("|");
+perfil.append(sesion.getAttribute("PERFIL"));
+perfil.append("|");
+
+//Obtenemos los valores de los parametros que se pasan a la pagina
+//En caso de que no se le pasen parametros, quedaram inicializados
+//a sus valores por defecto
+
+//parametro x para marcar la opcion del menu en la que se encuentra el usuario
+if (request.getParameter("x")!=null)
+ strParametroMenu=(String)request.getParameter("x");
+
+//parametro fecha que indica el año para el que desea realizar la impresion
+if (request.getParameter("fecha")!=null)
+ strFecha=(String)request.getParameter("fecha");
+
+//parametro pagina para realizar la paginacion
+if (request.getParameter("pagina")!=null)
+ intPagina=Integer.parseInt(request.getParameter("pagina"));
+%>
+
+
+
+Pacientes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%= sesion.getAttribute("USUARIO") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<%
+//Creación de la tabla presentación de resultados
+
+ strSql.append("SELECT tamovext.fecha, tamovext.precio as precioActoMedico, ttactmed.descripcion as descripcionActoMedico, ttclient.nombre, ttclient.apellidos");
+ strSql.append(" FROM tamovext, ttactmed, ttbenefi, ttclient");
+ strSql.append(" WHERE tamovext.acto=ttactmed.acto");
+ strSql.append(" and tamovext.especialidad=ttactmed.especialidad");
+ strSql.append(" and tamovext.medico=?");
+ strSql.append(" and tamovext.especialidad=?");
+ strSql.append(" and tamovext.colectivo=ttbenefi.colectivo");
+ strSql.append(" and tamovext.poliza=ttbenefi.poliza");
+ strSql.append(" and tamovext.orden=ttbenefi.orden");
+ strSql.append(" and ttbenefi.cliente=ttclient.cliente");
+ strSql.append(" and ttbenefi.fecha_baja is null");
+ strSql.append(" ORDER BY tamovext.fecha");
+
+ aCondiciones = new Object[2];
+ aCondiciones[0] = Integer.valueOf( ((Usuario)sesion.getAttribute("USUARIO")).getMedico() );
+ aCondiciones[1] = Integer.valueOf( ((Usuario)sesion.getAttribute("USUARIO")).getEspecialidad() );
+
+ PersistenciaVTamovextTaclient per = new PersistenciaVTamovextTaclient();
+ Vector vSeleccion = per.seleccionar(strSql.toString(), intPagina, aCondiciones);
+
+ if (vSeleccion.size()==0) //No se han encontrado datos
+ {
+%>
+
+
+
+
+
No se ha encontrado ningún dato.
+
+<%
+ }
+ else
+ {
+ if (intPagina != 0){ //se tiene en cuenta la paginacion
+%>
+
+
Página <%=per.getPaginacion().getNumeroPagina()%> de <%=per.getPaginacion().getNumeroPaginasTotales()%>
+
+<%
+ }
+%>
+
+
Fecha
+
Nombre
+
Descripción
+
Precio
+
+
+<%
+ VTamovextTaclient vTamovextTaclient = null;
+ String estilo = "";
+ for(int i = 0; i < vSeleccion.size(); i++)
+ {
+ if (i % 2 == 0)
+ {
+ estilo = "filaA";
+ }
+ else
+ {
+ estilo = "filaB";
+ }
+ vTamovextTaclient = (VTamovextTaclient)vSeleccion.elementAt(i);
+%>
+
+
+
+
+
+<%
+ }
+ catch(ExcepcionTarisan ex)
+ {
+ LogTarisan.logger.log(NivelLog.ERROR, "ExcepcionTarisan: " + ex.getMensaje());
+ sesion.setAttribute("ERROR", "ExcepcionTarisan: " + ex.getMensaje());
+ response.sendRedirect("../error.jsp");
+ }
+ catch(Exception ex)
+ {
+ LogTarisan.logger.log(NivelLog.ERROR, "Exception: " + ex);
+ sesion.setAttribute("ERROR", "ExcepcionTarisan: " + ex);
+ response.sendRedirect("../error.jsp");
+ }
+ }
+ LogTarisan.logger.log(NivelLog.INFO, "Final página de pacientes (med/detallePacientes.jsp)");
+%>
diff --git a/jsp/Basura/med/analisis_15122005.jsp b/jsp/Basura/med/analisis_15122005.jsp
new file mode 100644
index 0000000..88f6500
--- /dev/null
+++ b/jsp/Basura/med/analisis_15122005.jsp
@@ -0,0 +1,272 @@
+<%@ page import="com.tarisan.control.*" %>
+<%@ page import="com.tarisan.data.*" %>
+<%@ page import="com.tarisan.excepcion.*" %>
+<%@ page import="com.tarisan.log.*" %>
+<%@ page import="com.tarisan.util.Utilidades" %>
+<%@ page import="com.tarisan.persistencia.PersistenciaParametros" %>
+<%@ page import="java.sql.*" %>
+<%@ page import="java.util.Vector" %>
+<%@ page import="java.text.SimpleDateFormat" %>
+
+<%
+ LogTarisan.logger.log(NivelLog.INFO, "Inicio página de analisis (med/analisis.jsp)");
+
+ response.setHeader("Expires", "0");
+ response.setHeader("Pragma", "no-cache");
+ response.setHeader("Cache-Control", "no-cache");
+ HttpSession sesion = request.getSession(true);
+
+ if(sesion.isNew() || (sesion.getAttribute("USUARIO") == null))
+ {
+ LogTarisan.logger.log(NivelLog.INFO, "Sesión invalidada");
+ response.sendRedirect("../../html/login.html");
+ }
+ else
+ {
+ try
+ {
+
+// Definicion de variables
+String strParametroMenu="";
+StringBuffer strSql = new StringBuffer();
+int intPagina = 0;
+SimpleDateFormat sdfFormateadorFecha=new SimpleDateFormat(PersistenciaParametros.formatoFechas);
+Object aCondiciones[]=null;
+
+//Obtención del perfil del usuario conectado
+StringBuffer perfil = new StringBuffer();
+perfil.append("|");
+perfil.append(sesion.getAttribute("PERFIL"));
+perfil.append("|");
+
+//Obtenemos los valores de los parametros que se pasan a la pagina
+//En caso de que no se le pasen parametros, quedaram inicializados
+//a sus valores por defecto
+
+//parametro x para marcar la opcion del menu en la que se encuentra el usuario
+if (request.getParameter("x")!=null)
+ strParametroMenu=(String)request.getParameter("x");
+
+//parametro pagina para realizar la paginacion
+if (request.getParameter("pagina")!=null)
+ intPagina=Integer.parseInt(request.getParameter("pagina"));
+%>
+
+
+
+Análisis
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%= sesion.getAttribute("USUARIO") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<%
+//Creación de la tabla presentación de resultados
+
+
+
+ PersistenciaVTaresanaTaclient per = new PersistenciaVTaresanaTaclient();
+ Vector vSeleccion = per.listado_analisis_por_medico(((Usuario)sesion.getAttribute("USUARIO")).getMedico(),intPagina);
+
+ if (vSeleccion.size()==0) //No se han encontrado datos
+ {
+%>
+
+
+
+
+
No se ha encontrado ningún dato.
+
+<%
+ }
+ else
+ {
+ if (intPagina != 0){ //se tiene en cuenta la paginacion
+%>
+
+
Página <%=per.getPaginacion().getNumeroPagina()%> de <%=per.getPaginacion().getNumeroPaginasTotales()%>
+
+<%
+ }
+%>
+
+
Fecha
+
Nombre
+
+
+<%
+ VTaresanaTaclient vTaresanaTaclient = null;
+ String estilo = "";
+ for(int i = 0; i < vSeleccion.size(); i++)
+ {
+ if (i % 2 == 0)
+ {
+ estilo = "filaA";
+ }
+ else
+ {
+ estilo = "filaB";
+ }
+ vTaresanaTaclient = (VTaresanaTaclient)vSeleccion.elementAt(i);
+%>
+
+ <%
+ if (vTaresanaTaclient.getAutorizacion() == 0) //campo autorizacion nulo o inicializado a 0. Valor no valido.
+ {
+ %>
+
+
+
+
+
+<%
+ }
+
+ catch(Exception ex)
+ {
+ LogTarisan.logger.log(NivelLog.ERROR, "Exception: " + ex);
+ sesion.setAttribute("ERROR", "ExcepcionTarisan: " + ex);
+ response.sendRedirect("../error.jsp");
+ }
+ }
+ LogTarisan.logger.log(NivelLog.INFO, "Final página de analisis (med/analisis.jsp)");
+%>
diff --git a/jsp/Basura/med/detallePacientes_15122005.jsp b/jsp/Basura/med/detallePacientes_15122005.jsp
new file mode 100644
index 0000000..bbc2093
--- /dev/null
+++ b/jsp/Basura/med/detallePacientes_15122005.jsp
@@ -0,0 +1,345 @@
+<%@ page import="com.tarisan.control.*" %>
+<%@ page import="com.tarisan.data.*" %>
+<%@ page import="com.tarisan.excepcion.*" %>
+<%@ page import="com.tarisan.log.*" %>
+<%@ page import="com.tarisan.util.Utilidades" %>
+<%@ page import="com.tarisan.persistencia.PersistenciaParametros" %>
+<%@ page import="java.sql.*" %>
+<%@ page import="java.util.Vector" %>
+<%@ page import="java.text.SimpleDateFormat" %>
+
+<%
+ LogTarisan.logger.log(NivelLog.INFO, "Inicio página de pacientes (med/detallePacientes.jsp)");
+
+ response.setHeader("Expires", "0");
+ response.setHeader("Pragma", "no-cache");
+ response.setHeader("Cache-Control", "no-cache");
+ HttpSession sesion = request.getSession(true);
+
+ if(sesion.isNew() || (sesion.getAttribute("USUARIO") == null))
+ {
+ LogTarisan.logger.log(NivelLog.INFO, "Sesión invalidada");
+ response.sendRedirect("../../html/login.html");
+ }
+ else
+ {
+ try
+ {
+
+// Definicion de variables
+String strParametroMenu="";
+String strFecha = "";
+StringBuffer strSql = new StringBuffer();
+int intPagina = 0;
+SimpleDateFormat sdfFormateadorFecha=new SimpleDateFormat(PersistenciaParametros.formatoFechas);
+Object aCondiciones[]=null;
+
+//Obtención del perfil del usuario conectado
+StringBuffer perfil = new StringBuffer();
+perfil.append("|");
+perfil.append(sesion.getAttribute("PERFIL"));
+perfil.append("|");
+
+//Obtenemos los valores de los parametros que se pasan a la pagina
+//En caso de que no se le pasen parametros, quedaram inicializados
+//a sus valores por defecto
+
+//parametro x para marcar la opcion del menu en la que se encuentra el usuario
+if (request.getParameter("x")!=null)
+ strParametroMenu=(String)request.getParameter("x");
+
+//parametro fecha que indica el año para el que desea realizar la impresion
+if (request.getParameter("fecha")!=null)
+ strFecha=(String)request.getParameter("fecha");
+
+//parametro pagina para realizar la paginacion
+if (request.getParameter("pagina")!=null)
+ intPagina=Integer.parseInt(request.getParameter("pagina"));
+
+//parametro impresion que nos indica que se ha de realizar una impresion
+int intImpresion = 0;
+if (request.getParameter("imp")!=null) {
+ intImpresion = Integer.parseInt(request.getParameter("imp"));
+}
+%>
+
+
+
+Pacientes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<%= sesion.getAttribute("USUARIO") %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<%
+//Creación de la tabla presentación de resultados
+
+ strSql.append("SELECT tamovext.fecha, tamovext.precio as precioActoMedico, ttactmed.descripcion as descripcionActoMedico, ttclient.nombre, ttclient.apellidos");
+ strSql.append(" FROM tamovext, ttactmed, ttbenefi, ttclient");
+ strSql.append(" WHERE tamovext.acto=ttactmed.acto");
+ strSql.append(" and tamovext.especialidad=ttactmed.especialidad");
+ strSql.append(" and tamovext.medico=?");
+ strSql.append(" and tamovext.especialidad=?");
+ strSql.append(" and tamovext.colectivo=ttbenefi.colectivo");
+ strSql.append(" and tamovext.poliza=ttbenefi.poliza");
+ strSql.append(" and tamovext.orden=ttbenefi.orden");
+ strSql.append(" and tamovext.entidad=ttbenefi.entidad");
+ strSql.append(" and ttbenefi.cliente=ttclient.cliente");
+ strSql.append(" ORDER BY tamovext.fecha");
+
+ aCondiciones = new Object[2];
+ aCondiciones[0] = Integer.valueOf( ((Usuario)sesion.getAttribute("USUARIO")).getMedico() );
+ aCondiciones[1] = Integer.valueOf( ((Usuario)sesion.getAttribute("USUARIO")).getEspecialidad() );
+
+ PersistenciaVTamovextTaclient per = new PersistenciaVTamovextTaclient();
+ Vector vSeleccion = per.seleccionar(strSql.toString(), intPagina, aCondiciones);
+
+ if (vSeleccion.size()==0) //No se han encontrado datos
+ {
+%>
+
+
+
+
+
No se ha encontrado ningún dato.
+
+<%
+ }
+ else
+ {
+ if (intPagina != 0){ //se tiene en cuenta la paginacion
+%>
+
+
Página <%=per.getPaginacion().getNumeroPagina()%> de <%=per.getPaginacion().getNumeroPaginasTotales()%>
+
+<%
+ }
+%>
+
+
Fecha
+
Nombre
+
Descripción
+
Precio
+
+
+<%
+ VTamovextTaclient vTamovextTaclient = null;
+ String estilo = "";
+ for(int i = 0; i < vSeleccion.size(); i++)
+ {
+ if (i % 2 == 0)
+ {
+ estilo = "filaA";
+ }
+ else
+ {
+ estilo = "filaB";
+ }
+ vTamovextTaclient = (VTamovextTaclient)vSeleccion.elementAt(i);
+%>
+