233 lines
7.7 KiB
Plaintext
233 lines
7.7 KiB
Plaintext
<%@ 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="java.sql.*" %>
|
|
<%@ page import="java.util.Vector" %>
|
|
|
|
<%
|
|
LogTarisan.logger.log(NivelLog.INFO, "Inicio página de de mantenimiento de autorizaciones (adm/movimientos_tamovext.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
|
|
{
|
|
//Obtención del perfil del usuario conectado
|
|
LogTarisan.logger.log(NivelLog.DEBUG, "Llega 27");
|
|
StringBuffer perfil = new StringBuffer();
|
|
perfil.append("|");
|
|
perfil.append(sesion.getAttribute("PERFIL"));
|
|
perfil.append("|");
|
|
|
|
// Definicion de variables
|
|
String strParametroMenu = "";
|
|
String mensaje = "";
|
|
long CampoAutorizacion = 0;
|
|
int intPagina = 0;
|
|
StringBuffer strSql = new StringBuffer();
|
|
Object aCondiciones[] = null;
|
|
LogTarisan.logger.log(NivelLog.DEBUG, "Llega 40");
|
|
//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 apellido para las busquedas
|
|
if (request.getParameter("num_aut")!=null)
|
|
CampoAutorizacion = Long.parseLong(request.getParameter("num_aut"));
|
|
|
|
//parametro pagina para realizar la paginacion
|
|
if (request.getParameter("pagina")!=null)
|
|
intPagina=Integer.parseInt(request.getParameter("pagina"));
|
|
|
|
if(sesion.getAttribute("MENSAJE")!=null)
|
|
{
|
|
mensaje=(String)sesion.getAttribute("MENSAJE");
|
|
sesion.removeAttribute("MENSAJE");
|
|
}
|
|
LogTarisan.logger.log(NivelLog.DEBUG, "Llega 62");
|
|
|
|
boolean mostrarNoticia = true;
|
|
PersistenciaTanoticias perTaNo = new PersistenciaTanoticias();
|
|
Vector vSeleccionNot = perTaNo.obtener_noticias_cabecera();
|
|
Vector vNoticias = new Vector();
|
|
String strNoticia = "";
|
|
String noticias ="";
|
|
String espacio = "";
|
|
for(int x = 0; x < 100; x++){
|
|
espacio = espacio + " ";
|
|
}
|
|
if(vSeleccionNot.size()==0){
|
|
mostrarNoticia = false;
|
|
}else{
|
|
mostrarNoticia = true;
|
|
Tanoticias tanoticia = null;
|
|
for(int i = 0; i < vSeleccionNot.size(); i++)
|
|
{
|
|
tanoticia = (Tanoticias)vSeleccionNot.elementAt(i);
|
|
if (i!=0){
|
|
strNoticia = strNoticia + espacio + tanoticia.getNoticia();
|
|
}else{
|
|
strNoticia = tanoticia.getNoticia();
|
|
}
|
|
strNoticia = strNoticia.replaceAll("<br/>", " ");
|
|
}
|
|
}
|
|
//Lo pongo a false para que no salga la noticia
|
|
mostrarNoticia = false;
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<title>Mantenimiento autorizaciones</title>
|
|
<link rel="STYLESHEET" type="text/css" href="../../css/estilos.css">
|
|
<script language="JavaScript" src="../../js/inicio_tarisan.js"></script>
|
|
<script language="JavaScript" src="../../js/menu_adm.js"></script>
|
|
<script language="JavaScript" src="../../js/bloques_tarisan.js"></script>
|
|
<script language="JavaScript" src="../../js/funciones.js"></script>
|
|
<script language="JavaScript" src="../../js/jquery-1.11.3.js"></script>
|
|
<script language="JavaScript">pNG="<%= perfil.toString() %>";</script>
|
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
<!--
|
|
function buscar(aut)
|
|
{
|
|
document.frm_buscar.autorizacion.value = aut;
|
|
document.frm_buscar.submit();
|
|
}
|
|
//-->
|
|
</script>
|
|
|
|
</head>
|
|
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" alink="#43881A" bgcolor="#FFFFFF" onload="">
|
|
<div class="marco">
|
|
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
|
|
<tr>
|
|
<td class="tdLogoCabecera"><img src="<%=request.getContextPath()%>/img/logo.png" class="logoCabecera"></td>
|
|
<td>
|
|
<table width="100%">
|
|
<tr><td class="tituloTablaMedico" align="center"><%= sesion.getAttribute("USUARIO") %></td></tr>
|
|
<tr>
|
|
<td>
|
|
<div id="contenedorNoticia">
|
|
<br>
|
|
<div class="tituloNoticia">
|
|
<p class="marquee"><%=strNoticia %></p>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- Cabecera de Navegación superior //-->
|
|
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
|
|
<tr>
|
|
<td><script language="JavaScript">bloques();</script></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<!-- Cuerpo de la página //-->
|
|
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
|
|
<tr valign="top">
|
|
<!--<td width="180">//-->
|
|
<td width="5%">
|
|
<!-- Menú de navegación del módulo de navegación (zona izquierda) //-->
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr valign="top">
|
|
<td colspan="2"><img src="../../img/sp.gif" width="180" height="12" border="0"></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td><script language="JavaScript">escribirMenuGst();</script></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<!--<td bgcolor="#CCCCCC"><img src="../../img/sp.gif" width="1" height="12" border="0"></td>//-->
|
|
<td width="565">
|
|
<!-- Tabla con el contenido de la página (zona central-derecha) //-->
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
<tr>
|
|
<!--<td><img src="../../img/sp.gif" width="4" height="261" border="0"></td>//-->
|
|
<td width="1px" bgcolor="#CCCCCC" height="190px"></td>
|
|
<td class="txt" valign="top">
|
|
<img src="../../img/sp.gif" width="1" height="11" border="0"><br>
|
|
<%PersistenciaTTMovaut perttmov = new PersistenciaTTMovaut();
|
|
Vector resul = perttmov.ObtenerAutorizacionesPoliza(CampoAutorizacion);
|
|
%>
|
|
<form name="frm_buscar" action="mto_taconaut.jsp?x=<%=strParametroMenu%>" method="post" ><input type="hidden" class="txt" id="autorizacion" name="autorizacion" value=""/></form>
|
|
<table border="0" align="center" width="100%">
|
|
<%
|
|
if(resul != null)
|
|
{
|
|
if(resul.size()>0)
|
|
{
|
|
%>
|
|
<tr><td class="txt">Autorizacion</td><td class="txt">Fecha</td><td class="txt">Especialidad</td><td class="txt">Médico</td><td class="txt">Detalles</td></tr>
|
|
<%
|
|
for(int i=0; i<resul.size();i++)
|
|
{
|
|
TTMovaut ttmov = new TTMovaut();
|
|
ttmov = perttmov.ObtenerAutorizacionTTmovaut((Integer)resul.get(i));
|
|
%>
|
|
<tr><td class="txt"><%=ttmov.get_autorizacion() %></td><td class="txt"><%=Utilidades.formatear_fecha(ttmov.get_fecha_autorizacion()) %></td><td class="txt"><%=ttmov.get_especialidad1() %></td><td class="txt"><%=ttmov.get_medico() %></td><td class="txt"><a href="javascript:buscar(<%=ttmov.get_autorizacion() %>)" class="enlace">Ver</a></td></tr>
|
|
<%
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
%>
|
|
<tr><td class="txt">No se han encontrado autorizaciones <br/>para este asegurado</td></tr>
|
|
<%
|
|
}
|
|
%>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<script>
|
|
var jsMostrarNoticia = <%=mostrarNoticia %>;
|
|
if (!jsMostrarNoticia){
|
|
document.getElementById('contenedorNoticia').style.display="none";
|
|
}else{
|
|
<% strNoticia = strNoticia.replaceAll("\"", "'"); %>
|
|
var not = "<%=strNoticia %>";
|
|
tamanioNoticia(not);
|
|
marquee($('.tituloNoticia'), $('.marquee'),not);
|
|
}
|
|
</script>
|
|
<%
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
LogTarisan.logger.log(NivelLog.ERROR, "Exception: " + ex);
|
|
sesion.setAttribute("ERROR", "Error en la presentación de la página al usuario.");
|
|
response.sendRedirect("../error.jsp");
|
|
}
|
|
}
|
|
LogTarisan.logger.log(NivelLog.INFO, "Final página de mantenimiento de autorizaciones (adm/movimientos_tamovext.jsp)");
|
|
%> |