Resumo 0004878: Tela de Busca de Usuario - Adicionar novos filtros
Descrição Adicionar os filtros de Empresa e Agência nos cadastro de usuário Anotações (0006479) marcoscosso (desenvolvedor) 2014-02-07 11:29 Ao atualizar a tela de busca, no campo PONTO DE VENDA (AGENCIA) está aparecendo a informação do ponto de venda anterior e o atual (conforme imagem). git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@33516 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
48e35ec1e0
commit
d1aea507d4
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Perfil;
|
||||
|
@ -55,11 +56,15 @@ public class RenderUsuario implements ListitemRenderer {
|
|||
List<UsuarioEmpresa> usuarioEmpresaList = usuario.getUsuarioEmpresaList();
|
||||
StringBuilder empresasBuilder = new StringBuilder();
|
||||
|
||||
if(!usuarioEmpresaList.isEmpty()){
|
||||
for(UsuarioEmpresa usuarioEmpresa : usuarioEmpresaList){
|
||||
empresasBuilder.append(usuarioEmpresa.getEmpresa().getNombempresa());
|
||||
empresasBuilder.append(" \\ ");
|
||||
}
|
||||
if(!usuarioEmpresaList.isEmpty()){
|
||||
|
||||
Iterator<UsuarioEmpresa> usuarioEmpresaIt = usuarioEmpresaList.iterator();
|
||||
empresasBuilder.append(usuarioEmpresaIt.next().getEmpresa().getNombempresa());
|
||||
|
||||
while(usuarioEmpresaIt.hasNext())
|
||||
empresasBuilder.append(" \\ ")
|
||||
.append(usuarioEmpresaIt.next().getEmpresa().getNombempresa());
|
||||
|
||||
}
|
||||
|
||||
lc = new Listcell(empresasBuilder.toString());
|
||||
|
@ -68,10 +73,14 @@ public class RenderUsuario implements ListitemRenderer {
|
|||
List<UsuarioUbicacion> usuarioUbicacionList = usuario.getUsuarioUbicacionList();
|
||||
StringBuilder ubicacionsBuilder = new StringBuilder();
|
||||
if(!usuarioUbicacionList.isEmpty()){
|
||||
for(UsuarioUbicacion usuarioUbicacion : usuarioUbicacionList){
|
||||
ubicacionsBuilder.append(usuarioUbicacion.getPuntoVenta().getNombpuntoventa());
|
||||
empresasBuilder.append(" \\ ");
|
||||
}
|
||||
|
||||
Iterator<UsuarioUbicacion> usuarioUbicacionIt = usuarioUbicacionList.iterator();
|
||||
ubicacionsBuilder.append(usuarioUbicacionIt.next().getPuntoVenta().getNombpuntoventa());
|
||||
|
||||
while(usuarioUbicacionIt.hasNext())
|
||||
ubicacionsBuilder.append(" \\ ")
|
||||
.append(usuarioUbicacionIt.next().getPuntoVenta().getNombpuntoventa());
|
||||
|
||||
}
|
||||
|
||||
lc = new Listcell(ubicacionsBuilder.toString());
|
||||
|
|
Loading…
Reference in New Issue