609 lines
23 KiB
Plaintext
609 lines
23 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" %>
|
|
<%@ page import="java.io.*" %>
|
|
|
|
<%
|
|
LogTarisan.logger.log(NivelLog.INFO, "Inicio página de de mantenimiento de autorizaciones (adm/mto_taconaut.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
|
|
StringBuffer perfil = new StringBuffer();
|
|
perfil.append("|");
|
|
perfil.append(sesion.getAttribute("PERFIL"));
|
|
perfil.append("|");
|
|
|
|
// Definicion de variables
|
|
String strParametroMenu = "";
|
|
String mensaje = "";
|
|
int CampoMedico = 0;
|
|
long CampoPoliza = 0;
|
|
int CampoColectivo = 0;
|
|
int CampoOrden = 0;
|
|
int intPagina = 0;
|
|
StringBuffer strSql = new StringBuffer();
|
|
Object aCondiciones[] = null;
|
|
|
|
//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 medico para las busquedas
|
|
if (request.getParameter("medico")!=null){
|
|
if (request.getParameter("medico").compareTo("")!=0){
|
|
CampoMedico = Integer.parseInt(request.getParameter("medico"));
|
|
}
|
|
}
|
|
|
|
//parametro poliza para las busquedas
|
|
if (request.getParameter("poliza")!=null)
|
|
CampoPoliza = Long.parseLong(request.getParameter("poliza"));
|
|
|
|
//parametro medico para las busquedas
|
|
if (request.getParameter("colectivo")!=null)
|
|
CampoColectivo = Integer.parseInt(request.getParameter("colectivo"));
|
|
|
|
//parametro poliza para las busquedas
|
|
if (request.getParameter("orden")!=null)
|
|
CampoOrden = Integer.parseInt(request.getParameter("orden"));
|
|
|
|
//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");
|
|
}
|
|
|
|
Tamensaje tamensaje = new Tamensaje();
|
|
PersistenciaTamensaje pertamensaje = new PersistenciaTamensaje();
|
|
|
|
boolean mostrarNoticia = true;
|
|
PersistenciaTanoticias perTaNo = new PersistenciaTanoticias();
|
|
Vector vSeleccionNot = perTaNo.obtener_noticias_cabecera();
|
|
Vector vNoticias = new Vector();
|
|
String strNoticia = "";
|
|
String noticias ="";
|
|
String separador = " ---//--- ";
|
|
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 + separador + 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 pasarAMayusculas(campo)
|
|
{
|
|
campo.value = campo.value.toUpperCase();
|
|
}
|
|
|
|
function buscar()
|
|
{
|
|
/*if(document.frm_buscar.medico.value.length == 0)
|
|
{
|
|
alert("Introduce un numero de medico");
|
|
document.frm_buscar.medico.focus();
|
|
}
|
|
else */ if (isNaN(document.frm_buscar.medico.value)){
|
|
alert("Introduce un numero de medico válido. Sólo se permiten números");
|
|
document.frm_buscar.medico.value = "";
|
|
document.frm_buscar.medico.focus();
|
|
}
|
|
else if(document.frm_buscar.colectivo.value.length == 0)
|
|
{
|
|
alert("Introduce un numero de colectivo");
|
|
document.frm_buscar.colectivo.focus();
|
|
}
|
|
else if (isNaN(document.frm_buscar.colectivo.value)){
|
|
alert("Introduce un numero de colectivo válido. Sólo se permiten números");
|
|
document.frm_buscar.colectivo.value = "";
|
|
document.frm_buscar.colectivo.focus();
|
|
}
|
|
else if(document.frm_buscar.poliza.value.length == 0)
|
|
{
|
|
alert("Introduce un numero de poliza");
|
|
document.frm_buscar.poliza.focus();
|
|
}
|
|
else if (isNaN(document.frm_buscar.poliza.value)){
|
|
alert("Introduce un numero de poliza válido. Sólo se permiten números");
|
|
document.frm_buscar.poliza.value = "";
|
|
document.frm_buscar.poliza.focus();
|
|
}
|
|
else if(document.frm_buscar.orden.value.length == 0)
|
|
{
|
|
alert("Introduce un numero de orden");
|
|
document.frm_buscar.orden.focus();
|
|
}
|
|
else if (isNaN(document.frm_buscar.orden.value)){
|
|
alert("Introduce un numero de orden válido. Sólo se permiten números");
|
|
document.frm_buscar.orden.value = "";
|
|
document.frm_buscar.orden.focus();
|
|
}
|
|
else
|
|
{
|
|
document.frm_buscar.submit();
|
|
}
|
|
}
|
|
|
|
function actualizar()
|
|
{
|
|
if(document.actualizar_autorizacion.cantidad.value < 0)
|
|
{
|
|
alert("Introduce un numero de sesiones disponibles valido")
|
|
document.actualizar_autorizacion.cantidad.focus();
|
|
}
|
|
else if (document.actualizar_autorizacion.cantidad.value.length < 1)
|
|
{
|
|
alert("Introduce un numero de sesiones disponibles valido")
|
|
document.actualizar_autorizacion.cantidad.focus();
|
|
}
|
|
else
|
|
{
|
|
document.actualizar_autorizacion.submit();
|
|
}
|
|
|
|
}
|
|
|
|
function paginacion(pagina)
|
|
{
|
|
document.frm_buscar.pagina.value = pagina;
|
|
document.frm_buscar.submit();
|
|
}
|
|
|
|
function enfocar()
|
|
{
|
|
if(document.actualizar_autorizacion === undefined)
|
|
document.frm_buscar.medico.focus();
|
|
else
|
|
document.actualizar_autorizacion.cantidad.focus();
|
|
}
|
|
//-->
|
|
</script>
|
|
|
|
</head>
|
|
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" alink="#43881A" bgcolor="#FFFFFF" onload="javascript:enfocar()">
|
|
<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="90px"></td>
|
|
<td class="txt" valign="top">
|
|
<img src="../../img/sp.gif" width="1" height="11" border="0"><br>
|
|
<table border="0" align="center" width="100%">
|
|
<form name="frm_buscar" action="descarga_pdfs_autorizaciones.jsp?x=<%=strParametroMenu%>" method="post" >
|
|
<input type="hidden" name="pagina" value="1" />
|
|
<table border="0" align="center">
|
|
<tr>
|
|
<td align="right">
|
|
<span class="txtnegrita"><%=pertamensaje.obtenerMensaje(20).getMensaje() %></span>
|
|
</td>
|
|
<td>
|
|
<input size="20" type="text" class="txt" id="medico" name="medico" <%if(CampoMedico!=0){%>value="<%=CampoMedico %>"<%}%>/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<span class="txtnegrita"><%=pertamensaje.obtenerMensaje(21).getMensaje() %></span>
|
|
</td>
|
|
<td>
|
|
<input size="20" type="text" class="txt" id="colectivo" name="colectivo" <%if(CampoPoliza!=0){%>value="<%=CampoColectivo %>"<%}%>/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<label class="txtnegrita"><%=pertamensaje.obtenerMensaje(22).getMensaje() %></label>
|
|
</td>
|
|
<td>
|
|
<input size="20" type="text" class="txt" id="poliza" name="poliza" <%if(CampoPoliza!=0){%>value="<%=CampoPoliza %>"<%}%>/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<label class="txtnegrita"><%=pertamensaje.obtenerMensaje(23).getMensaje() %></label>
|
|
</td>
|
|
<td>
|
|
<input size="20" type="text" class="txt" id="orden" name="orden" <%if(CampoPoliza!=0){%>value="<%=CampoOrden %>"<%}%>/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="right">
|
|
<a href="javascript:buscar()" class="enlace"><%=pertamensaje.obtenerMensaje(24).getMensaje() %></a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="right"> </td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<%if(CampoMedico >= 0 && CampoPoliza > 0 && CampoColectivo >= 0 && CampoOrden >= 0)
|
|
{
|
|
PersistenciaTaconaut pertacon = new PersistenciaTaconaut();
|
|
PersistenciaTTMovaut perttmov = new PersistenciaTTMovaut();
|
|
Vector vSeleccion = pertacon.BuscarAutorizacionPorMedicoYPoliza(CampoMedico,CampoColectivo,CampoPoliza,CampoOrden,intPagina);
|
|
if(vSeleccion.size()>0)
|
|
{
|
|
LogTarisan.logger.log(NivelLog.DEBUG, "La autorizacion del medico "+CampoMedico+" con poliza "+CampoPoliza+" esta en taconaut");
|
|
%>
|
|
<table border="0" align="center" width="100%">
|
|
<%if (intPagina != 0){ %>
|
|
<tr>
|
|
<td colspan="2" align="right"><span class="txt">Página <%=pertacon.getPaginacion().getNumeroPagina()%> de <%=pertacon.getPaginacion().getNumeroPaginasTotales()%></span></td>
|
|
</tr>
|
|
<% }%>
|
|
<tr>
|
|
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA"><%=pertamensaje.obtenerMensaje(18).getMensaje() %></td>
|
|
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA"><%=pertamensaje.obtenerMensaje(17).getMensaje() %></td>
|
|
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA"><%=pertamensaje.obtenerMensaje(16).getMensaje() %></td>
|
|
</tr>
|
|
<%
|
|
String estilo = "";
|
|
for(int i=0;i<vSeleccion.size();i++)
|
|
{
|
|
if (i % 2 == 0)
|
|
{
|
|
estilo = "filaA";
|
|
}
|
|
else
|
|
{
|
|
estilo = "filaB";
|
|
}
|
|
%>
|
|
<tr>
|
|
<td class="<%=estilo%>" align="center"><%= vSeleccion.get(i)%></td>
|
|
<td class="<%=estilo%>" align="center">
|
|
<%
|
|
//mostrar el bot�n de resultados
|
|
%><form name="resultados" action="../adm/mto_taconaut.jsp?x=2" target="blank" method="post">
|
|
<input type="hidden" name="autorizacion" value="<%=vSeleccion.get(i) %>" />
|
|
<input type="submit" value="<%=pertamensaje.obtenerMensaje(65).getMensaje() %>" class="enlace"></input>
|
|
</form><%
|
|
%>
|
|
</td>
|
|
<td class="<%=estilo%>" colspan="2" align="center">
|
|
<%
|
|
String resultado = ""+vSeleccion.get(i).toString();
|
|
//resultado = (resultado.length()<8)?"0"+resultado:resultado;
|
|
File fichero = new File(ParametrosConfiguracion.ruta_pdf+resultado+".pdf");
|
|
if(fichero.exists())
|
|
{
|
|
//mostrar el bot�n de resultados
|
|
%><form name="resultados" action="../ver_peticiones_pdf.jsp" target="blank" method="post">
|
|
<input type="hidden" name="fichero" value="<%=fichero.getName() %>" />
|
|
<input type="submit" value="<%=pertamensaje.obtenerMensaje(64).getMensaje() %>" class="enlace"></input>
|
|
</form><%
|
|
}
|
|
else
|
|
{
|
|
fichero = new File(ParametrosConfiguracion.ruta_pdf+vSeleccion.get(i).toString()+".PDF");
|
|
if(fichero.exists())
|
|
{
|
|
//mostrar el bot�n de resultados
|
|
%><form name="resultados" action="../ver_peticiones_pdf.jsp" target="blank" method="post">
|
|
<input type="hidden" name="fichero" value="<%=fichero.getName() %>" />
|
|
<input type="submit" value="<%=pertamensaje.obtenerMensaje(64).getMensaje() %>" class="enlace"></input>
|
|
</form><%
|
|
}
|
|
else
|
|
{
|
|
%><p><%=pertamensaje.obtenerMensaje(6).getMensaje() %></p><%
|
|
}
|
|
}
|
|
%>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
}
|
|
if (intPagina!=0){ //se tiene en cuenta la paginacion %>
|
|
<tr><td colspan="2"></td></tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<table border="0" align="center">
|
|
<tr>
|
|
<%if (pertacon.getPaginacion().esPrimeraPagina()){%>
|
|
<td width="70" align="right"><span class="pagDesactivo">primero</span></td>
|
|
<td></td>
|
|
<td width="70" align="left"><span class="pagDesactivo">anterior</span></td>
|
|
<%}else{%>
|
|
<td width="70" align="right"><a href="javascript:paginacion(1)" class="enlace">primero</a></td>
|
|
<td></td>
|
|
<td width="70" align="left"><a href="javascript:paginacion(<%=pertacon.getPaginacion().getNumeroPagina() - 1%>)" class="enlace">anterior</a></td>
|
|
<%}%>
|
|
|
|
<%if (pertacon.getPaginacion().esUltimaPagina()){%>
|
|
<td width="70" align="right"><span class="pagDesactivo">siguiente</span></td>
|
|
<td></td>
|
|
<td width="70" align="left"><span class="pagDesactivo">último</span></td>
|
|
<%}else{%>
|
|
<td width="70" align="right"><a href="javascript:paginacion(<%=pertacon.getPaginacion().getNumeroPagina() + 1%>)" class="enlace">siguiente</a></td>
|
|
<td></td>
|
|
<td width="70" align="left"><a href="javascript:paginacion(<%=pertacon.getPaginacion().getNumeroPaginasTotales()%>)" class="enlace">último</a></td>
|
|
<%}%>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
} //fin if(pagina!=0) %>
|
|
</table>
|
|
<%
|
|
}
|
|
else
|
|
{
|
|
boolean yaExisteEnTaconaut = false;
|
|
LogTarisan.logger.log(NivelLog.DEBUG, "La autorizacion del medico "+CampoMedico+" con poliza "+CampoPoliza+" no esta en taconaut la buscamos en ttmovaut");
|
|
vSeleccion = perttmov.BuscarAutorizacionPorMedicoYPoliza(CampoMedico,CampoColectivo,CampoPoliza,CampoOrden,intPagina);
|
|
if(vSeleccion.size() > 0)
|
|
{
|
|
%>
|
|
<table border="0" align="center" width="100%">
|
|
<%if (intPagina != 0){ %>
|
|
<tr>
|
|
<td colspan="2" align="right"><span class="txt">Página <%=perttmov.getPaginacion().getNumeroPagina()%> de <%=perttmov.getPaginacion().getNumeroPaginasTotales()%></span></td>
|
|
</tr>
|
|
<% }%>
|
|
<tr>
|
|
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA"><%=pertamensaje.obtenerMensaje(18).getMensaje() %></td>
|
|
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA"><%=pertamensaje.obtenerMensaje(17).getMensaje() %></td>
|
|
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA"><%=pertamensaje.obtenerMensaje(16).getMensaje() %></td>
|
|
</tr>
|
|
<%
|
|
String estilo = "";
|
|
for(int i=0;i<vSeleccion.size();i++)
|
|
{
|
|
|
|
if (i % 2 == 0)
|
|
{
|
|
estilo = "filaA";
|
|
}
|
|
else
|
|
{
|
|
estilo = "filaB";
|
|
}
|
|
Taconaut tacon = new Taconaut();
|
|
tacon = (Taconaut)vSeleccion.get(i);
|
|
//Vuelvo a buscar en taconaut por si la primera vez no ha encontrado la autorizacion porque tarjeta=0 y tarjeta_chipcard=nulll
|
|
Vector vSeleccion2 = pertacon.ObtenerAutorizacionADM(Long.parseLong(tacon.getAutorizacion()));
|
|
if (vSeleccion2.size()>0){
|
|
tacon = (Taconaut)vSeleccion2.get(i);
|
|
yaExisteEnTaconaut = true;
|
|
}
|
|
int gesigu = 0;
|
|
if(tacon.getFromGesigu())
|
|
gesigu = 1;
|
|
|
|
if (!yaExisteEnTaconaut){
|
|
pertacon.CrearAutorizacionValida(Long.parseLong(tacon.getAutorizacion()), tacon.getMedico(), tacon.getEspecialidad(), tacon.getActo(), tacon.getCantidad(), gesigu, "");
|
|
}
|
|
|
|
/*if(pertacon.CrearAutorizacionValida(Integer.parseInt(tacon.getAutorizacion()), tacon.getMedico(), tacon.getEspecialidad(), tacon.getActo(), tacon.getCantidad(), gesigu, ""))
|
|
{*/
|
|
%>
|
|
<tr>
|
|
<td class="<%=estilo%>" align="center"><%= tacon.getAutorizacion()%></td>
|
|
<td class="<%=estilo%>" align="center">
|
|
<%
|
|
//mostrar el bot�n de resultados
|
|
%><form name="resultados" action="../adm/mto_taconaut.jsp?x=2" target="blank" method="post">
|
|
<input type="hidden" name="autorizacion" value="<%=tacon.getAutorizacion() %>" />
|
|
<input type="submit" value="Ver Detalle" class="enlace"></input>
|
|
</form><%
|
|
%>
|
|
</td>
|
|
<td class="<%=estilo%>" align="center">
|
|
<%
|
|
String resultado = ""+vSeleccion.get(i).toString();
|
|
//resultado = (resultado.length()<8)?"0"+resultado:resultado;
|
|
File fichero = new File(ParametrosConfiguracion.ruta_pdf+resultado+".pdf");
|
|
if(fichero.exists())
|
|
{
|
|
//mostrar el bot�n de resultados
|
|
%><form name="resultados" action="../ver_peticiones_pdf.jsp" target="blank" method="post">
|
|
<input type="hidden" name="fichero" value="<%=fichero.getName() %>" />
|
|
<input type="submit" value="Ver Resultado" class="enlace"></input>
|
|
</form><%
|
|
}
|
|
else
|
|
{
|
|
fichero = new File(ParametrosConfiguracion.ruta_pdf+vSeleccion.get(i).toString()+".PDF");
|
|
if(fichero.exists())
|
|
{
|
|
//mostrar el bot�n de resultados
|
|
%><form name="resultados" action="../ver_peticiones_pdf.jsp" target="blank" method="post">
|
|
<input type="hidden" name="fichero" value="<%=fichero.getName() %>" />
|
|
<input type="submit" value="Ver Resultado" class="enlace"></input>
|
|
</form><%
|
|
}
|
|
else
|
|
{
|
|
%><p><%=pertamensaje.obtenerMensaje(6).getMensaje() %></p><%
|
|
}
|
|
}
|
|
%>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
/* }
|
|
else
|
|
{ */
|
|
%>
|
|
<!-- <tr><td class="txt"><%=pertamensaje.obtenerMensaje(14).getMensaje() %></td></tr> -->
|
|
<%
|
|
// }
|
|
}
|
|
%>
|
|
<% if (intPagina!=0){ //se tiene en cuenta la paginacion %>
|
|
<tr><td colspan="2"></td></tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<table border="0" align="center">
|
|
<tr>
|
|
<%if (perttmov.getPaginacion().esPrimeraPagina()){%>
|
|
<td width="70" align="right"><span class="pagDesactivo">primero</span></td>
|
|
<td></td>
|
|
<td width="70" align="left"><span class="pagDesactivo">anterior</span></td>
|
|
<%}else{%>
|
|
<td width="70" align="right"><a href="javascript:paginacion(1)" class="enlace">primero</a></td>
|
|
<td></td>
|
|
<td width="70" align="left"><a href="javascript:paginacion(<%=perttmov.getPaginacion().getNumeroPagina() - 1%>)" class="enlace">anterior</a></td>
|
|
<%}%>
|
|
|
|
<%if (perttmov.getPaginacion().esUltimaPagina()){%>
|
|
<td width="70" align="right"><span class="pagDesactivo">siguiente</span></td>
|
|
<td></td>
|
|
<td width="70" align="left"><span class="pagDesactivo">último</span></td>
|
|
<%}else{%>
|
|
<td width="70" align="right"><a href="javascript:paginacion(<%=perttmov.getPaginacion().getNumeroPagina() + 1%>)" class="enlace">siguiente</a></td>
|
|
<td></td>
|
|
<td width="70" align="left"><a href="javascript:paginacion(<%=perttmov.getPaginacion().getNumeroPaginasTotales()%>)" class="enlace">último</a></td>
|
|
<%}%>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
} //fin if(pagina!=0) %>
|
|
</table>
|
|
<%
|
|
}
|
|
else
|
|
{
|
|
%>
|
|
<table border="0" align="center">
|
|
<tr><td class="txtnegrita"><%=pertamensaje.obtenerMensaje(13).getMensaje() %></td></tr>
|
|
</table>
|
|
<%
|
|
}
|
|
}
|
|
}
|
|
%>
|
|
<tr><td class="txt"><%=mensaje %></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/mto_taconaut.jsp)");
|
|
%>
|