fixes bug#0010358

obs: adicionada funcionalidade de seleção de varias funções para adicionar no perfil. 

dev: Frederico 
qua: Renato

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@80159 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2018-03-22 21:13:03 +00:00
parent 10298f24aa
commit ef6553f339
1 changed files with 7 additions and 0 deletions

View File

@ -127,9 +127,16 @@ public class PerfilFuncion implements Serializable {
return false;
}
PerfilFuncion other = (PerfilFuncion) object;
if((this.funcionSistema != null && other.funcionSistema != null) && this.perfilfuncionId == null && other.perfilfuncionId == null && this.funcionSistema.equals(other.funcionSistema)){
return true;
}
if ((this.perfilfuncionId == null && other.perfilfuncionId != null) || (this.perfilfuncionId != null && !this.perfilfuncionId.equals(other.perfilfuncionId))) {
return false;
}
if((this.perfilfuncionId == other.perfilfuncionId) && (this.getFuncionSistema().getFuncionsistemaId() != other.getFuncionSistema().getFuncionsistemaId())) {
return false;
}
return true;
}