alteração no cadastro do usuário no combobox localidade e ponto de venda
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24294 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5584fe4301
commit
74eed8801c
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
|
||||
|
@ -169,17 +168,17 @@ public class BusquedaUsuarioController extends MyGenericForwardComposer {
|
|||
pagingUsuario.getPageSize());
|
||||
|
||||
String nombUsuario = txtNombUsuario.getText();
|
||||
if (nombUsuario != null) {
|
||||
if (!nombUsuario.equals("")) {
|
||||
sistemaBusqueda.addFilterLike("nombusuario", "%" + nombUsuario.trim().concat("%"));
|
||||
}
|
||||
|
||||
String nombPaterno = txtNombPaterno.getText();
|
||||
if (nombPaterno != null) {
|
||||
if (!nombPaterno.equals("")) {
|
||||
sistemaBusqueda.addFilterLike("nombpaterno", "%" + nombPaterno.trim().concat("%"));
|
||||
}
|
||||
|
||||
String nombMaterno = txtNombMaterno.getText();
|
||||
if (nombMaterno != null) {
|
||||
if (!nombMaterno.equals("")) {
|
||||
sistemaBusqueda.addFilterLike("nombmaterno", "%" + nombMaterno.trim().concat("%"));
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.zkoss.zk.ui.util.Clients;
|
|||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.ListModelList;
|
||||
import org.zkoss.zul.Tab;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
|
@ -39,6 +40,7 @@ import com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion;
|
|||
import com.rjconsultores.ventaboletos.service.EmpleadoService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.PerfilService;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioEmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioPerfilService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
|
@ -72,8 +74,11 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
private EmpleadoService empleadoService;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private PuntoVentaService puntoVentaService;
|
||||
private List<Perfil> lsPerfil;
|
||||
private List<Empresa> lsEmpresa;
|
||||
private List<PuntoVenta> lsPuntoVenta = null;
|
||||
private Perfil perfilSeleccionada;
|
||||
private List<UsuarioUbicacion> lsUsuarioUbicacion;
|
||||
private List<UsuarioEmpresa> lsUsuarioEmpresa;
|
||||
|
@ -707,7 +712,16 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onClick$btnAdicionarUbicacion(Event ev) {
|
||||
public void onSelect$cmbParada(){
|
||||
|
||||
Comboitem cbiParada = cmbParada.getSelectedItem();
|
||||
if(cbiParada!= null){
|
||||
lsPuntoVenta = puntoVentaService.buscaPuntoVentaParada((Parada) cmbParada.getSelectedItem().getValue());
|
||||
cmbPuntoVenta.setModel(new ListModelList(lsPuntoVenta));
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnAdicionarUbicacion() {
|
||||
Comboitem cbiParada = cmbParada.getSelectedItem();
|
||||
Comboitem cbiPuntoVenta = cmbPuntoVenta.getSelectedItem();
|
||||
|
||||
|
|
|
@ -6,7 +6,11 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.CategoriaClase;
|
||||
import com.rjconsultores.ventaboletos.entidad.CategoriaCtrl;
|
||||
import com.rjconsultores.ventaboletos.entidad.CategoriaDescuento;
|
||||
import com.rjconsultores.ventaboletos.entidad.CategoriaMarca;
|
||||
import com.rjconsultores.ventaboletos.service.CategoriaCtrlService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -16,9 +20,11 @@ import org.zkoss.zul.ListitemRenderer;
|
|||
* @author rodrigo
|
||||
*/
|
||||
public class RenderCategoriaDescuento implements ListitemRenderer {
|
||||
|
||||
@Autowired
|
||||
private CategoriaCtrlService categoriaCtrlService;
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
CategoriaCtrl cc = (CategoriaCtrl) o;
|
||||
String descricao = "";
|
||||
|
||||
Listcell lc = new Listcell(cc.getCategoriactrlId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
@ -39,6 +45,17 @@ public class RenderCategoriaDescuento implements ListitemRenderer {
|
|||
}
|
||||
lc = new Listcell(sb2.toString());
|
||||
lc.setParent(lstm);
|
||||
if(!cc.getCategoriaDescuentoList().isEmpty()){
|
||||
|
||||
|
||||
for(CategoriaDescuento catDesc : cc.getCategoriaDescuentoList()){
|
||||
|
||||
descricao = descricao + catDesc.getCategoria() != null ? catDesc.getCategoria().getDesccategoria() : "0"+ ", ";
|
||||
}
|
||||
descricao = descricao.substring(0,descricao.length()-1);
|
||||
lc = new Listcell(descricao);
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
lstm.setAttribute("data", cc);
|
||||
}
|
||||
|
|
|
@ -890,6 +890,7 @@ busquedaConfiguracionCategoriaController.btnRefresh.tooltiptext = Atualizar
|
|||
busquedaConfiguracionCategoriaController.btnNovo.tooltiptext = Incluir
|
||||
busquedaConfiguracionCategoriaController.btnCerrar.tooltiptext = Fechar
|
||||
busquedaConfiguracionCategoriaController.btnPesquisa.label = Pesquisa
|
||||
busquedaConfiguracionCategoriaController.lhTipoPassagem.label = Tipo de Passagem
|
||||
|
||||
|
||||
# Pantalla Editar Configuração Categoría
|
||||
|
@ -1988,6 +1989,7 @@ busquedaUsuarioController.CveUsuario.label = Login
|
|||
busquedaUsuarioController.CveEmpleado.label = Código de Empregado
|
||||
editarUsuarioController.lhEmpresa.label = Empresa
|
||||
editarUsuarioController.chkCorteTurnoAutomatico.label = Corte Automático
|
||||
editarUsuarioController.MSG.usuarioempresa = É necessário informar pelo menos um empresa
|
||||
|
||||
|
||||
#cREADO POR mANUEL
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<window id="winBusquedaConfiguracionCategoria"
|
||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||
apply="${busquedaConfiguracionCategoriaController}"
|
||||
height="400px" width="650px" border="normal" contentStyle="overflow:auto">
|
||||
height="500px" width="980px" border="normal" contentStyle="overflow:auto">
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfiguracionCategoriaController.btnRefresh.tooltiptext')}" />
|
||||
|
@ -48,11 +48,13 @@
|
|||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaConfiguracionCategoriaController.lhDesc.label')}" sort="auto(empresa.nombempresa)"/>
|
||||
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
<listheader image="/gui/img/create_doc.gif" width="35%"
|
||||
label="${c:l('busquedaConfiguracionCategoriaController.lhMarca.label')}"/>
|
||||
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaConfiguracionCategoriaController.lhClase.label')}"/>
|
||||
<listheader image="/gui/img/create_doc.gif" width="35%"
|
||||
label="${c:l('busquedaConfiguracionCategoriaController.lhTipoPassagem.label')}"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
|
|
|
@ -60,12 +60,12 @@
|
|||
<row>
|
||||
<label value="${c:l('busquedaUsuarioController.nombpaterno.label')}"/>
|
||||
<textbox id="txtNombPaterno" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="30"
|
||||
value="@{winEditarUsuario$composer.usuario.nombpaterno}" constraint="no empty"/>
|
||||
value="@{winEditarUsuario$composer.usuario.nombpaterno}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('busquedaUsuarioController.nombmaterno.label')}"/>
|
||||
<textbox id="txtNombMaterno" width="80%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="30"
|
||||
value="@{winEditarUsuario$composer.usuario.nombmaterno}" constraint="no empty"/>
|
||||
value="@{winEditarUsuario$composer.usuario.nombmaterno}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarUsuarioController.senha.label')}"/>
|
||||
|
@ -126,8 +126,8 @@
|
|||
<label value="${c:l('editarUsuarioController.lhPuntoVenta.label')}"/>
|
||||
<hbox>
|
||||
<combobox id="cmbPuntoVenta"
|
||||
mold="rounded" buttonVisible="true" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
|
Loading…
Reference in New Issue