List listaTipoFuncaoAcompanhamentoTpfa = new ArrayList();
try {
Iterator gruposAcessoSatbIt = gruposAcessoSatb.iterator();
while(gruposAcessoSatbIt.hasNext()){
TipoAcompTipofuncacompSisatributoTaTpfaSatb tipoAcompTipofuncacompSisatributoTaTpfaSatb = new TipoAcompTipofuncacompSisatributoTaTpfaSatb();
SisAtributoSatb grupoPermissaoAcessoSatb = (SisAtributoSatb) gruposAcessoSatbIt.next();
tipoAcompTipofuncacompSisatributoTaTpfaSatb.setSisAtributoSatb(grupoPermissaoAcessoSatb);
tipoAcompTipofuncacompSisatributoTaTpfaSatb.setTipoAcompanhamentoTa(tipoAcompanhamentoTa);
tipoAcompTipofuncacompSisatributoTaTpfaSatb.setIndLeituraParecer("S");
List listaTipoAcompTipofuncacompSisatributoTaTpfaSatb = super.pesquisar(tipoAcompTipofuncacompSisatributoTaTpfaSatb, new String[]{"", ""});
Iterator listaTipoAcompTipofuncacompSisatributoTaTpfaSatbIt = listaTipoAcompTipofuncacompSisatributoTaTpfaSatb.iterator();
while(listaTipoAcompTipofuncacompSisatributoTaTpfaSatbIt.hasNext()){
tipoAcompTipofuncacompSisatributoTaTpfaSatb = (TipoAcompTipofuncacompSisatributoTaTpfaSatb) listaTipoAcompTipofuncacompSisatributoTaTpfaSatbIt.next();
//Apenas entram na lista as fun��es que emitem posi��o
if (!listaTipoFuncaoAcompanhamentoTpfa.contains(tipoAcompTipofuncacompSisatributoTaTpfaSatb.getTipoFuncAcompTpfa()) &&
tipoAcompTipofuncacompSisatributoTaTpfaSatb.getTipoFuncAcompTpfa() != null &&
tipoAcompTipofuncacompSisatributoTaTpfaSatb.getTipoFuncAcompTpfa().getIndEmitePosicaoTpfa().equals("S")){
listaTipoFuncaoAcompanhamentoTpfa.add(tipoAcompTipofuncacompSisatributoTaTpfaSatb.getTipoFuncAcompTpfa());
}
}
}
} catch (ECARException e) {
this.logger.error(e);