git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@21906 d1611594-4594-4d17-8e1d-87c2c4800839
parent
3a76f7907f
commit
448839b28e
|
@ -0,0 +1,141 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AliasServico;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderAliasServico;
|
||||
|
||||
@Controller("busquedaAliasServicoController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaAliasServicoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<AliasServico> plwAliasServico;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
private List<Ruta> lsRutas;
|
||||
private MyListbox aliasServicoList;
|
||||
private Paging pagingAliasServico;
|
||||
private Combobox cmbOrigen;
|
||||
private Combobox cmbDestino;
|
||||
private Combobox cmbRuta;
|
||||
private Intbox txtCorrida;
|
||||
|
||||
public List<Ruta> getLsRutas() {
|
||||
return lsRutas;
|
||||
}
|
||||
|
||||
public void setLsRutas(List<Ruta> lsRutas) {
|
||||
this.lsRutas = lsRutas;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsRutas = rutaService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
aliasServicoList.setItemRenderer(new RenderAliasServico());
|
||||
aliasServicoList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
AliasServico as = (AliasServico) aliasServicoList.getSelected();
|
||||
verAliasServico(as);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verAliasServico(AliasServico as) {
|
||||
if (as == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("aliasServico", as);
|
||||
args.put("aliasServicoList", aliasServicoList);
|
||||
|
||||
openWindow("/gui/esquema_operacional/editarAliasServico.zul",
|
||||
Labels.getLabel("editarAliasServicoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<AliasServico> aliasServicoBusqueda =
|
||||
new HibernateSearchObject<AliasServico>(AliasServico.class, pagingAliasServico.getPageSize());
|
||||
|
||||
aliasServicoBusqueda.addFilterEqual("activo", true);
|
||||
|
||||
Comboitem cbiOrigem = cmbOrigen.getSelectedItem();
|
||||
if (cbiOrigem != null) {
|
||||
Parada origen = (Parada) cbiOrigem.getValue();
|
||||
aliasServicoBusqueda.addFilterEqual("origen", origen);
|
||||
}
|
||||
|
||||
Comboitem cbiDestino = cmbDestino.getSelectedItem();
|
||||
if (cbiDestino != null) {
|
||||
Parada destino = (Parada) cbiDestino.getValue();
|
||||
aliasServicoBusqueda.addFilterEqual("destino", destino);
|
||||
}
|
||||
|
||||
Comboitem cbiRuta = cmbRuta.getSelectedItem();
|
||||
if (cbiRuta != null) {
|
||||
Ruta ruta = (Ruta) cbiRuta.getValue();
|
||||
aliasServicoBusqueda.addFilterEqual("ruta", ruta);
|
||||
}
|
||||
|
||||
Integer corridaId = txtCorrida.getValue();
|
||||
if (corridaId != null) {
|
||||
aliasServicoBusqueda.addFilterEqual("corridaId", corridaId);
|
||||
}
|
||||
|
||||
aliasServicoBusqueda.addSortAsc("aliasServicoId");
|
||||
|
||||
plwAliasServico.init(aliasServicoBusqueda, aliasServicoList, pagingAliasServico);
|
||||
|
||||
if (aliasServicoList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaAutobusController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verAliasServico(new AliasServico());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AliasServico;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.service.AliasServicoService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
@Controller("editarAliasServicoController")
|
||||
@Scope("prototype")
|
||||
public class EditarAliasServicoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private AliasServicoService aliasServicoService;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
private List<Ruta> lsRutas;
|
||||
private MyListbox aliasServicoList;
|
||||
private AliasServico aliasServico;
|
||||
|
||||
public AliasServico getAliasServico() {
|
||||
return aliasServico;
|
||||
}
|
||||
|
||||
public void setAliasServico(AliasServico aliasServico) {
|
||||
this.aliasServico = aliasServico;
|
||||
}
|
||||
|
||||
public List<Ruta> getLsRutas() {
|
||||
return lsRutas;
|
||||
}
|
||||
|
||||
public void setLsRutas(List<Ruta> lsRutas) {
|
||||
this.lsRutas = lsRutas;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsRutas = rutaService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
aliasServico = (AliasServico) Executions.getCurrent().getArg().get("aliasServico");
|
||||
aliasServicoList = (MyListbox) Executions.getCurrent().getArg().get("aliasServicoList");
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
try {
|
||||
if (aliasServico.getAliasServicoId() == null) {
|
||||
aliasServicoService.suscribir(aliasServico);
|
||||
aliasServicoList.addItem(aliasServico);
|
||||
} else {
|
||||
aliasServicoService.actualizacion(aliasServico);
|
||||
aliasServicoList.updateItem(aliasServico);
|
||||
}
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarAliasServicoController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarAliasServicoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
} catch (Exception ex) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarAliasServicoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||
Integer resp = Messagebox.show(
|
||||
Labels.getLabel("editarAliasServicoController.MSG.borrarPergunta"),
|
||||
Labels.getLabel("editarAliasServicoController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
||||
aliasServicoService.borrar(aliasServico);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarAliasServicoController.MSG.borrarOK"),
|
||||
Labels.getLabel("editarAliasServicoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
aliasServicoList.removeItem(aliasServico);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 ItemMenuAliasServico extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuAliasServico() {
|
||||
super("indexController.mniAliasServico.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.ALIASSERVICO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/esquema_operacional/busquedaAliasServico.zul",
|
||||
Labels.getLabel("busquedaAliasServicoController.window.title"), null, desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -22,5 +22,4 @@ public class ItemMenuAutobus extends DefaultItemMenuSistema {
|
|||
Labels.getLabel("busquedaAutobusController.window.title"), null, desktop);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AliasServico;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
|
||||
public class RenderAliasServico implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
AliasServico aliasServico = (AliasServico) o;
|
||||
|
||||
Listcell lc = new Listcell(aliasServico.getAliasServicoId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
Parada origem = aliasServico.getOrigen();
|
||||
if (origem != null) {
|
||||
lc = new Listcell(origem.getDescparada());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
Parada destino = aliasServico.getDestino();
|
||||
if (destino != null) {
|
||||
lc = new Listcell(destino.getDescparada());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
Ruta ruta = aliasServico.getRuta();
|
||||
if (ruta != null) {
|
||||
lc = new Listcell(ruta.toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
Integer corridaId = aliasServico.getCorridaId();
|
||||
if (corridaId != null) {
|
||||
lc = new Listcell(corridaId.toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
Parada aliasOrigem = aliasServico.getAliasOrigen();
|
||||
if (aliasOrigem != null) {
|
||||
lc = new Listcell(aliasOrigem.getDescparada());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
Parada alliasDestino = aliasServico.getAliasDestino();
|
||||
if (alliasDestino != null) {
|
||||
lc = new Listcell(alliasDestino.getDescparada());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", aliasServico);
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
<property name="annotatedClasses">
|
||||
<list>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AlertaCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AliasServico</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Autobus</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Autorizacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil
|
||||
|
@ -292,19 +293,19 @@
|
|||
<bean id="contextApplicationContextProvider" class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
||||
</bean>
|
||||
|
||||
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
|
||||
<property name="resourceRef" value="true" />
|
||||
<property name="jndiName" value="${database.jndi.name}" />
|
||||
</bean>
|
||||
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> -->
|
||||
<!-- <property name="resourceRef" value="true" /> -->
|
||||
<!-- <property name="jndiName" value="${database.jndi.name}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<bean id="dataSource"
|
||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||
<property name="driverClassName" value="${database.driver}" />
|
||||
<property name="url" value="${database.url}" />
|
||||
<property name="username" value="${database.username}" />
|
||||
<property name="password" value="${database.password}" />
|
||||
</bean>
|
||||
|
||||
<!-- ====================================================== -->
|
||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||
<!-- ====================================================== -->
|
||||
|
|
|
@ -195,6 +195,7 @@ indexController.mniCoeficienteTarifa.label = Coeficiente Tarifario
|
|||
indexController.mniGenerarTarifaOrgao.label= Gerar/Atualizar Tarifa Oficial
|
||||
indexController.mniCopiarTarifaOficial.label= Copiar Tarifa Oficial
|
||||
indexController.mniConfigLayoutImpressaoBoleto.label = Config Layout Impressão Boleto
|
||||
indexController.mniAliasServico.label = Alias Serviço
|
||||
|
||||
#PARTE REALIZADA POR MANUEL
|
||||
indexController.mnCortesias.label = Cortesias Para Funcionários
|
||||
|
@ -3798,3 +3799,28 @@ TramoServiceImpl.msg.validacionOrigen=A origem do trecho não pode ser alterada
|
|||
TramoServiceImpl.msg.validacionDestino=O destino do trecho não pode ser alterado
|
||||
TramoServiceImpl.msg.validacionTramoServicio=Não pode ser apagado o Tempo Geral de um Tipo de Classe que é usado em uma ruta
|
||||
TramoServiceImpl.msg.validacionTramoTiempo=Não pode ser apagado a Exceção de Tempo de um Tipo de Classe que é usado em uma ruta
|
||||
|
||||
#Busqueda Alias Servico
|
||||
busquedaAliasServicoController.window.title = Alias Serviço
|
||||
busquedaAliasServicoController.btnRefresh.tooltiptext = Atualizar
|
||||
busquedaAliasServicoController.btnNovo.tooltiptext = Novo
|
||||
busquedaAliasServicoController.btnCerrar.tooltiptext = Fechar
|
||||
busquedaAliasServicoController.lhId.label = Id
|
||||
busquedaAliasServicoController.lhOrigen.label = Origem
|
||||
busquedaAliasServicoController.lbDestino.label = Destino
|
||||
busquedaAliasServicoController.lbRuta.label = Linha
|
||||
busquedaAliasServicoController.btnPesquisa.label = Buscar
|
||||
busquedaAliasServicoController.lbCorrida.label = Serviço
|
||||
busquedaAliasServicoController.lbFechCorrida.label = Data Serviço
|
||||
busquedaAliasServicoController.lhAliasOrigen.label = Alias Origem
|
||||
busquedaAliasServicoController.lbAliasDestino.label = Alias Destino
|
||||
|
||||
#Editar Alias Servico
|
||||
editarAliasServicoController.window.title = Alias Serviço
|
||||
editarAliasServicoController.btnApagar.tooltiptext = Apagar
|
||||
editarAliasServicoController.btnSalvar.tooltiptext = Salvar
|
||||
editarAliasServicoController.btnFechar.tooltiptext = Fechar
|
||||
editarAliasServicoController.MSG.suscribirOK = Alias Serviço gravado com sucesso.
|
||||
editarAliasServicoController.MSG.borrarPergunta = Deseja apagar Alias Serviço?
|
||||
editarAliasServicoController.MSG.borrarOK = Alias Serviço apagado com sucesso.
|
||||
editarAliasServicoController.btnBuscarServico.tooltiptext = Buscar Serviço
|
|
@ -0,0 +1,96 @@
|
|||
<?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="winBusquedaAliasServico"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaAliasServico"
|
||||
title="${c:l('busquedaAliasServicoController.window.title')}"
|
||||
apply="${busquedaAliasServicoController}" contentStyle="overflow:auto"
|
||||
height="500px" width="1100px" border="normal">
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaAliasServicoController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaAliasServicoController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar"
|
||||
onClick="winBusquedaAliasServico.detach()" image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaAliasServicoController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="85%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lhOrigen.label')}" />
|
||||
<combobox id="cmbOrigen"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="35%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbDestino.label')}" />
|
||||
<combobox id="cmbDestino" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="35%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbRuta.label')}" />
|
||||
<combobox id="cmbRuta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="35%"
|
||||
model="@{winBusquedaAliasServico$composer.lsRutas}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbCorrida.label')}" />
|
||||
<intbox id="txtCorrida" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaAliasServicoController.btnPesquisa.label')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingAliasServico" pageSize="15" />
|
||||
<listbox id="aliasServicoList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader width="5%" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lhId.label')}"
|
||||
sort="auto(aliasServicoId)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lhOrigen.label')}"
|
||||
sort="auto(origen.descparada)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lbDestino.label')}"
|
||||
sort="auto(destino.descparada)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lbRuta.label')}"
|
||||
sort="auto(ruta.descruta)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lbCorrida.label')}"
|
||||
sort="auto(corrida.id.corridaId)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lhAliasOrigen.label')}"
|
||||
sort="auto(aliasOrigen.descparada)" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAliasServicoController.lbAliasDestino.label')}"
|
||||
sort="auto(aliasDestino.descparada)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,93 @@
|
|||
<?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="winEditarAliasServico"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarAliasServico" border="normal"
|
||||
apply="${editarAliasServicoController}" width="500px"
|
||||
contentStyle="overflow:auto"
|
||||
title="${c:l('editarAliasServicoController.window.title')}">
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarAliasServicoController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarAliasServicoController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarAliasServico.detach()"
|
||||
tooltiptext="${c:l('editarAliasServicoController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lhOrigen.label')}" />
|
||||
<combobox id="cmbOrigen"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="98%"
|
||||
constraint="no empty"
|
||||
initialValue="@{winEditarAliasServico$composer.aliasServico.origen}"
|
||||
selectedItem="@{winEditarAliasServico$composer.aliasServico.origen}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbDestino.label')}" />
|
||||
<combobox id="cmbDestino" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="98%"
|
||||
constraint="no empty"
|
||||
initialValue="@{winEditarAliasServico$composer.aliasServico.destino}"
|
||||
selectedItem="@{winEditarAliasServico$composer.aliasServico.destino}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbRuta.label')}" />
|
||||
<combobox id="cmbRuta" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="98%"
|
||||
constraint="no empty"
|
||||
model="@{winEditarAliasServico$composer.lsRutas}"
|
||||
selectedItem="@{winEditarAliasServico$composer.aliasServico.ruta}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbCorrida.label')}" />
|
||||
<intbox id="txtCorrida"
|
||||
value="@{winEditarAliasServico$composer.aliasServico.corridaId}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lhAliasOrigen.label')}" />
|
||||
<combobox id="cmbAliasOrigen"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="98%"
|
||||
constraint="no empty"
|
||||
initialValue="@{winEditarAliasServico$composer.aliasServico.aliasOrigen}"
|
||||
selectedItem="@{winEditarAliasServico$composer.aliasServico.aliasOrigen}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaAliasServicoController.lbAliasDestino.label')}" />
|
||||
<combobox id="cmbAliasDestino" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="98%"
|
||||
constraint="no empty"
|
||||
initialValue="@{winEditarAliasServico$composer.aliasServico.aliasDestino}"
|
||||
selectedItem="@{winEditarAliasServico$composer.aliasServico.aliasDestino}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue