fixes bug#0010872
obs: alterada a forma de remoção da função sistema do combo de função dev: Veloso qua: Junia git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@80654 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
06ad57c4ac
commit
2586a3cad4
|
@ -447,6 +447,7 @@ public class EditarPerfilController extends MyGenericForwardComposer {
|
||||||
for (PerfilFuncion perfilFuncion : perfil.getPerfilFuncionList()) {
|
for (PerfilFuncion perfilFuncion : perfil.getPerfilFuncionList()) {
|
||||||
if(pf.getFuncionSistema().equals(perfilFuncion.getFuncionSistema())) {
|
if(pf.getFuncionSistema().equals(perfilFuncion.getFuncionSistema())) {
|
||||||
it.remove();
|
it.remove();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,6 +457,7 @@ public class EditarPerfilController extends MyGenericForwardComposer {
|
||||||
for (Object perfilFuncion : permissoListSelList.getListData()) {
|
for (Object perfilFuncion : permissoListSelList.getListData()) {
|
||||||
if(pf.getFuncionSistema().equals(((PerfilFuncion)perfilFuncion).getFuncionSistema())) {
|
if(pf.getFuncionSistema().equals(((PerfilFuncion)perfilFuncion).getFuncionSistema())) {
|
||||||
it.remove();
|
it.remove();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -465,53 +467,10 @@ public class EditarPerfilController extends MyGenericForwardComposer {
|
||||||
PerfilFuncion pf = (PerfilFuncion) it.next();
|
PerfilFuncion pf = (PerfilFuncion) it.next();
|
||||||
if(!pf.getFuncionSistema().getNombfuncion().contains(palavraPesquisaRuta.toUpperCase())) {
|
if(!pf.getFuncionSistema().getNombfuncion().contains(palavraPesquisaRuta.toUpperCase())) {
|
||||||
it.remove();
|
it.remove();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// List<PerfilFuncion> lsPermisoSelecionados = new ArrayList<PerfilFuncion>();
|
|
||||||
// lsFuncionSistemaSemAdicionadas.removeAll(lsAllFuncionPerfil);
|
|
||||||
// boolean x = lsFuncionSistemaSemAdicionadas.removeAll(permissoListSelList.getListData());
|
|
||||||
// List<PerfilFuncion> listaAuxTodas = new ArrayList<PerfilFuncion>();
|
|
||||||
// listaAuxTodas.addAll(perfil.getPerfilFuncionList());
|
|
||||||
// listaAuxTodas.addAll(permissoListSelList.getListData());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// for (PerfilFuncion perfilFuncion : listaAuxTodas) {
|
|
||||||
// for (FuncionSistema fs : lsFuncionSistemaSemAdicionadas) {
|
|
||||||
// if(fs.getNombfuncion().contains(palavraPesquisaRuta.toUpperCase())) {
|
|
||||||
// //if(!perfilFuncion.getFuncionSistema().getNombfuncion().equals(fs.getNombfuncion())) {
|
|
||||||
// if(!lsPermisoSelecionados.contains(perfilFuncion) && !permissoListSelList.getListData().contains(perfilFuncion)) {
|
|
||||||
// PerfilFuncion novo = new PerfilFuncion();
|
|
||||||
// novo.setFuncionSistema(fs);
|
|
||||||
// lsPermisoSelecionados.add(novo);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// //}
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// for (PerfilFuncion pf : perfil.getPerfilFuncionList()) {
|
|
||||||
// if(pf.getFuncionSistema().getNombfuncion().contains(palavraPesquisaRuta.toUpperCase())) {
|
|
||||||
// if(!lsPermiso.contains(pf)) {
|
|
||||||
// lsPermisoSelecionados.add(pf);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
permissaoSelecionadaList.setData(todasPermissoesfuncao);
|
permissaoSelecionadaList.setData(todasPermissoesfuncao);
|
||||||
|
|
||||||
if (permissaoSelecionadaList.getData().length == 0) {
|
if (permissaoSelecionadaList.getData().length == 0) {
|
||||||
|
|
Loading…
Reference in New Issue