/**
* libros.js  ventana de busqueda de libros
*/
/** TABLA MAESTRO (MAESTRO-DETALLE)*/
//indicamos el nombre de la variable de busqueda en el grid
var sqlBusqueda="buscarLibros";
//nombre de la pagina de la ventana modal
var jspPage="/libros_m.jsp";
//tabla del diccionario que corresponde a la ventana modal
var tableName="Libros";
/***************************************************************************/
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page
import="org.elf.datalayer.*,org.elf.businesslayer.*,org.elf.weblayer.*,org.el
f.weblayer.controls.*,org.elf.datalayer.kernel.impl.connection.*,java.util.*"
%>
<%
Frame frame=WLSession.getControls().createFrame("frame","Busqueda de
Libros",200,100);
Caption
captionIdLibro=WLSession.getControls().createCaption("captionIdLibro","Libros
.Id_Libro");
//NO PONERLO
//Caption
captionIdEdicion=WLSession.getControls().createCaption("captionIdEdicion","Li
bros.Id_Edicion");
Caption
captionTitulo=WLSession.getControls().createCaption("captionTitulo","Libros.T
itulo");
Caption
captionNumPaginas=WLSession.getControls().createCaption("captionNumPaginas","
Libros.Num_Paginas");
Field
fieldIdLibro=WLSession.getControls().createEmptyField("fieldIdLibro","Libros.
Id_Libro",4);
//NO PONERLO
//Field
fieldIdEdicion=WLSession.getControls().createEmptyField("fieldIdEdicion","Lib
ros.Id_Edicion",4);
Field
fieldTitulo=WLSession.getControls().createEmptyField("fieldTitulo","Libros.Ti
tulo",60);
Field
fieldNumPaginas=WLSession.getControls().createEmptyField("fieldNumPaginas","L
ibros.Num_Paginas",4);
//RecordSet recordSet=DLSession.getConnection().executeQuery("select
Id_Libro,Titulo,Num_Paginas from Libros order by Titulo");
//RecordSet recordSet=DLSession.getConnection().executeQuery("select
Id_Libro,Id_Edicion,Titulo,Num_Paginas from Libros order by Titulo");
Grid grid=WLSession.getControls().createGrid("grid",null,1,true,200);
grid.addColumnDefinition("Id Libro",75);
//grid.addColumnDefinition("Id Edicion",75);  NO PONER ESTA COLUMNA
grid.addColumnDefinition("Titulo",350);
grid.addColumnDefinition("Num. Paginas",150);
Button
buttonLimpiar=WLSession.getControls().createButton("buttonLimpiar","Clear");
Button
buttonBuscar=WLSession.getControls().createButton("buttonBuscar","Find");
Button
buttonNuevo=WLSession.getControls().createButton("buttonNuevo","New");
Button
buttonEditar=WLSession.getControls().createButton("buttonEditar","Edit");
Button
buttonBorrar=WLSession.getControls().createButton("buttonBorrar","Delete");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="<%=WLSession.getPaths().getAbsolutePath()%>/controls/css"
rel="stylesheet" type="text/css">
<script type="text/javascript"
src="<%=WLSession.getPaths().getAbsolutePath()%>/common/javascript"></script>
<script type="text/javascript"
src="<%=WLSession.getPaths().getAbsolutePath()%>/controls/javascript"></scrip
t>
<script type="text/javascript"
src="<%=WLSession.getPaths().getAbsolutePath()%>/common/dictionary/Libros,Gen
eros_Libros"></script><!--TABLAS MAESTRO Y MULTIFIELD-->
<script type="text/javascript" charset="ISO-8859-1"
src="<%=WLSession.getPaths().getAbsolutePath()%>/js/busqueda.js"></script>
<script type="text/javascript" charset="ISO-8859-1"
src="<%=WLSession.getPaths().getAbsolutePath()%>/js/libros.js"></script>
<title>JSP Page</title>
</head>
<body>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td colspan="4"><jsp:include page="/templates/top.jsp" /></td>
<td colspan="4"><%=frame.toHTML() %>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td><%=captionIdLibro.toHTML()%></td>
<td><%=fieldIdLibro.toHTML()%></td>
</tr>
<tr>
<td><%=captionTitulo.toHTML()%></td>
<td><%=fieldTitulo.toHTML()%></td>
<td><%=captionNumPaginas.toHTML()%></td>
<td><%=fieldNumPaginas.toHTML()%></td>
</tr>
<tr>
<td colspan="4"><%=grid.toHTML()%></td>
</tr>
<tr>
<td
colspan="2"><%=buttonLimpiar.toHTML()%><%=buttonBuscar.toHTML()%></td>
<td
colspan="2"><%=buttonNuevo.toHTML()%><%=buttonEditar.toHTML()%><%=buttonBorra
r.toHTML()%></td>
</tr>
</table>
<%=frame.toHTML() %></td>
</tr>
</table>
<table width="100%" height="100%" cellpadding="0" cellspacing="0"
border="0">
<tr><td><table width="100%" height="100%" cellpadding="0"
cellspacing="0" border="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</body>
</html>