git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@21110 d1611594-4594-4d17-8e1d-87c2c4800839
parent
7854d1a808
commit
4a1985b300
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Conexion;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConexionService;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Gleimar
|
||||||
|
*/
|
||||||
|
@Controller("busquedaConexionController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class BusquedaConexionController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ConexionService conexionService;
|
||||||
|
private MyListbox conexionesList;
|
||||||
|
private Paging pagingConexiones;
|
||||||
|
private Combobox cmbParadaOrigem;
|
||||||
|
private Combobox cmbParadaDestino;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
conexionesList.setData(conexionService.buscarConexiones(null, null));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuConexion extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuConexion() {
|
||||||
|
super("indexController.mniConexion.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.CONEXION";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/esquema_operacional/busquedaConexion.zul",
|
||||||
|
Labels.getLabel("busquedaConexionController.window.title"), null, desktop);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winConexion"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winConexion" title="${c:l('busquedaConexionController.window.title')}" apply="${busquedaConexionController}" contentStyle="overflow:auto"
|
||||||
|
width="820px" height="550px" border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnCerrar" onClick="winConexion.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaConexionController.btnCerrar.tooltiptext')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||||
|
<combobox id="cmbParadaOrigem" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" buttonVisible="true" width="100%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||||
|
<combobox id="cmbParadaDestino" autodrop="false" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" buttonVisible="true"
|
||||||
|
width="100%" />
|
||||||
|
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png" label="${c:l('busquedaConexionController.btnPesquisa.label')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<paging id="pagingConexiones" pageSize="20" />
|
||||||
|
<listbox id="conexionesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false" vflex="true" height="50%">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="50px" image="/gui/img/builder.gif" label="${c:l('busquedaConexionController.lhId.label')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue