git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@21161 d1611594-4594-4d17-8e1d-87c2c4800839
parent
4c66335785
commit
9bb2d02c98
|
@ -7,11 +7,14 @@ 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.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -32,7 +35,6 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
|
|||
private Combobox cmbParadaOrigem;
|
||||
private Combobox cmbParadaDestino;
|
||||
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -40,13 +42,26 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public void onClick$btnGenerarConexiones(Event ev) throws InterruptedException {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("busquedaConexionController.msgGerarCombincoes"),
|
||||
Labels.getLabel("busquedaConexionController.window.title"), Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
conexionService.gerarConexiones();
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("busquedaConexionController.msgCombincoesGeradas"),
|
||||
Labels.getLabel("busquedaConexionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
conexionesList.setData(conexionService.buscarConexiones(null, null));
|
||||
conexionesList.setData(conexionService.buscarConexiones( ((Parada) cmbParadaOrigem.getSelectedItem().getValue()).getParadaId(),((Parada) cmbParadaDestino.getSelectedItem().getValue()).getParadaId()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.util.HashMap;
|
||||
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.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ParamConexion;
|
||||
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.RenderParamConexion;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Gleimar
|
||||
*/
|
||||
@Controller("busquedaParamConexionController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaParamConexionController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<ParamConexion> plwParamConexion;
|
||||
private MyListbox paramConexionList;
|
||||
private Paging pagingParamConexion;
|
||||
private Textbox txtNombre;
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verPametro(new ParamConexion());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
paramConexionList.setItemRenderer(new RenderParamConexion());
|
||||
paramConexionList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
ParamConexion c = (ParamConexion) paramConexionList.getSelected();
|
||||
verPametro(c);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
|
||||
txtNombre.focus();
|
||||
}
|
||||
|
||||
private void verPametro(ParamConexion c) {
|
||||
if (c == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("paramConexion", c);
|
||||
args.put("paramConexionList", paramConexionList);
|
||||
|
||||
openWindow("/gui/esquema_operacional/editarParamConexion.zul",
|
||||
Labels.getLabel("editarParamConexionController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() throws InterruptedException {
|
||||
HibernateSearchObject<ParamConexion> paramConexionSearch =
|
||||
new HibernateSearchObject<ParamConexion>(ParamConexion.class, pagingParamConexion.getPageSize());
|
||||
|
||||
paramConexionSearch.addFilterLike("descparametro", "%" + txtNombre.getText().trim().concat("%"));
|
||||
paramConexionSearch.addFilterEqual("activo", Boolean.TRUE);
|
||||
paramConexionSearch.addSortAsc("nombparametro");
|
||||
|
||||
plwParamConexion.init(paramConexionSearch, paramConexionList, pagingParamConexion);
|
||||
|
||||
if (paramConexionList.getData().length == 0) {
|
||||
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaParamConexionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
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.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ParamConexion;
|
||||
import com.rjconsultores.ventaboletos.service.ParamConexionService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Controller("editarParamConexionController")
|
||||
@Scope("prototype")
|
||||
public class EditarParamConexionController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private ParamConexionService paramConexionService;
|
||||
private ParamConexion paramConexion;
|
||||
private MyListbox paramConexionList;
|
||||
private static Logger log = Logger.getLogger(EditarParamConexionController.class);
|
||||
private Textbox txtNome;
|
||||
private Textbox descconstante;
|
||||
private Textbox valorconstante;
|
||||
private Button btnApagar;
|
||||
private Button btnSalvar;
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
paramConexion = (ParamConexion) Executions.getCurrent().getArg().get("paramConexion");
|
||||
paramConexionList = (MyListbox) Executions.getCurrent().getArg().get("paramConexionList");
|
||||
|
||||
if (paramConexion.getParamConexionId() != null) {
|
||||
txtNome.setDisabled(Boolean.TRUE);
|
||||
descconstante.setDisabled(Boolean.TRUE);
|
||||
}
|
||||
|
||||
txtNome.focus();
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
valorconstante.getValue();
|
||||
|
||||
paramConexionService.actualizacion(paramConexion);
|
||||
paramConexionList.updateItem(paramConexion);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarParamConexionController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarParamConexionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
|
||||
}
|
||||
|
||||
public ParamConexion getParamConexion() {
|
||||
return paramConexion;
|
||||
}
|
||||
|
||||
}
|
|
@ -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 ItemMenuParamConexion extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuParamConexion() {
|
||||
super("indexController.mniParamConexion.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.PARAMCONEXION";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/esquema_operacional/busquedaParamConexion.zul",
|
||||
Labels.getLabel("busquedaParamConexionController.window.title"), null, desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -15,25 +15,39 @@ import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO;
|
|||
* @author Administrador
|
||||
*/
|
||||
public class RenderConexion implements ListitemRenderer {
|
||||
private static int cantGrupo=0;
|
||||
private boolean changeColor = true;
|
||||
private String style1 ="Font-weight:bold;background-color: #858a8a";
|
||||
private String style2 ="Font-weight:bold;background-color: #535757";
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ConexionVO conexion = (ConexionVO) o;
|
||||
cantGrupo++;
|
||||
|
||||
Listcell lc = new Listcell(conexion.getConOrigen());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getConDestino());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getGrupo().toString());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getTramoOrigen());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getTramoDestino());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (cantGrupo == 2){
|
||||
cantGrupo=0;
|
||||
changeColor = !changeColor;
|
||||
}
|
||||
|
||||
lstm.setValue(conexion);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
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.ParamConexion;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
public class RenderParamConexion implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ParamConexion paramConexion = (ParamConexion) o;
|
||||
|
||||
Listcell lc = new Listcell(paramConexion.getParamConexionId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(paramConexion.getDescparametro());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(paramConexion.getValorParametro().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setValue(paramConexion);
|
||||
}
|
||||
}
|
|
@ -86,6 +86,7 @@ indexController.mniPlaza.label = Praça
|
|||
indexController.mniClaseServicio.label = Tipo de Classe
|
||||
indexController.mniCorrida.label = Configuração de Serviços
|
||||
indexController.mniConexion.label = Conexões
|
||||
indexController.mniParamConexion.label = Parametros de Conexão
|
||||
indexController.mniGeracionCorrida.label = Geração de Serviço
|
||||
indexController.mniFormaPago.label = Forma de Pagamento
|
||||
indexController.mniPeriodoVacacional.label = Período de Férias
|
||||
|
@ -3724,8 +3725,8 @@ editarSeguroTarifaController.MSG.existe= Já existe um registro com esse Tarifa.
|
|||
#SeguroServiceImpl
|
||||
TarifaOficialServiceImpl.msg.validacion.orgaoObligatorio=Informe o Órgão Concedente
|
||||
|
||||
|
||||
busquedaConexionController.window.title=Conexões Localidades
|
||||
#Búsqueda conexion
|
||||
busquedaConexionController.window.title=Conexões entre Localidades
|
||||
busquedaConexionController.lhOrigenConexion.label=Ori. Conexão
|
||||
busquedaConexionController.lhDestinoConexion.label= Dest. Conexão
|
||||
busquedaConexionController.lhGrupo.label=Grupo
|
||||
|
@ -3733,3 +3734,25 @@ busquedaConexionController.lhOrigenTrecho.label=Ori. Trecho
|
|||
busquedaConexionController.lhDestinoTrecho.label=Dest. Trecho
|
||||
busquedaConexionController.btnCerrar.tooltiptext=Fechar
|
||||
busquedaConexionController.btnGenerarConexiones.tooltiptext=Gerar Conexões
|
||||
busquedaConexionController.msgGerarCombincoes=Deseja gerar as combinações de conexões?
|
||||
busquedaConexionController.msgCombincoesGeradas=Combinações Geradas com Sucesso
|
||||
|
||||
#Busqueda param conexion
|
||||
busquedaParamConexionController.window.title=Parametros de Conexão
|
||||
busquedaParamConexionController.btnRefresh.tooltiptext=Atualizar
|
||||
busquedaParamConexionController.btnNovo.tooltiptext=Incluir
|
||||
busquedaParamConexionController.btnCerrar.tooltiptext=Fechar
|
||||
busquedaParamConexionController.txtNombre.label=Nome
|
||||
busquedaParamConexionController.btnPesquisa.label=Pesquisar
|
||||
busquedaParamConexionController.lhId.label=ID
|
||||
busquedaParamConexionController.lhDesc.label=Descrição
|
||||
busquedaParamConexionController.lhValor.label=Valor
|
||||
|
||||
#Editar param conexion
|
||||
editarParamConexionController.window.title=Parametro de Conexão
|
||||
editarParamConexionController.btnSalvar.tooltiptext=Salvar
|
||||
editarParamConexionController.btnFechar.tooltiptext=Fechar
|
||||
editarParamConexionController.lbNome.value=Nome
|
||||
editarParamConexionController.lbDesc.value=Descrição
|
||||
editarParamConexionController.lbValor.value=Valor
|
||||
editarParamConexionController.MSG.suscribirOK=Parametro Atualizado com sucesso
|
|
@ -11,7 +11,7 @@
|
|||
<button id="btnCerrar" onClick="winConexion.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionController.btnCerrar.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnGenerarConexiones" onClick="winConexion.detach()" image="/gui/img/create_doc.gif" width="35px"
|
||||
<button id="btnGenerarConexiones" image="/gui/img/create_doc.gif" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionController.btnGenerarConexiones.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
<?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="winBusquedaParamConexion"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaParamConexion" title="${c:l('busquedaParamConexionController.window.title')}"
|
||||
apply="${busquedaParamConexionController}" contentStyle="overflow:auto"
|
||||
height="500px" width="600px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaParamConexionController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaParamConexion.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaParamConexionController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaParamConexionController.txtNombre.label')}"/>
|
||||
<textbox id="txtNombre" width="200px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaParamConexionController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingParamConexion" pageSize="15"/>
|
||||
<listbox id="paramConexionList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="70%">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhId" width="50px" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaParamConexionController.lhId.label')}" />
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaParamConexionController.lhDesc.label')}"/>
|
||||
<listheader id="lhValor" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaParamConexionController.lhValor.label')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,52 @@
|
|||
<?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="winEditarParamConexion"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarParamConexion" border="normal"
|
||||
apply="${editarParamConexionController}"
|
||||
width="350px" height="350x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarParamConexionController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarParamConexionController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarParamConexion.detach()"
|
||||
tooltiptext="${c:l('editarParamConexionController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('editarParamConexionController.lbNome.value')}"/>
|
||||
<textbox id="txtNome" constraint="no empty" width="99%" maxlength="40"
|
||||
value="@{winEditarParamConexion$composer.paramConexion.nombparametro}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarParamConexionController.lbDesc.value')}"/>
|
||||
<textbox id="descconstante" constraint="no empty" width="99%" maxlength="60"
|
||||
value="@{winEditarParamConexion$composer.paramConexion.descparametro}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarParamConexionController.lbValor.value')}"/>
|
||||
<textbox id="valorconstante" constraint="no empty" width="99%" maxlength="7"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||
value="@{winEditarParamConexion$composer.paramConexion.valorParametro}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
|
@ -4,7 +4,7 @@
|
|||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarPerfil"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<zk>
|
||||
<window id="winEditarPerfil" border="normal"
|
||||
apply="${editarPerfilController}"
|
||||
width="550px" height="500px" contentStyle="overflow:auto"
|
||||
|
@ -24,15 +24,15 @@
|
|||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<grid>
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('editarPerfilController.lbNome.value')}"/>
|
||||
<textbox id="txtDescPerfil" constraint="no empty" width="90%" maxlength="20"
|
||||
<textbox id="txtDescPerfil" constraint="no empty" width="99%" maxlength="20"
|
||||
value="@{winEditarPerfil$composer.perfil.descperfil}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
|
@ -40,9 +40,8 @@
|
|||
<row>
|
||||
<label value="${c:l('editarPerfilController.lhPermiso.label')}"/>
|
||||
<hbox>
|
||||
<combobox id="cmbFuncionSistema" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="170%"
|
||||
model="@{winEditarPerfil$composer.lsFuncionSistema}"/>
|
||||
<combobox id="cmbFuncionSistema" mold="rounded" model="@{winEditarPerfil$composer.lsFuncionSistema}" width="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
|
Loading…
Reference in New Issue