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-87c2c4800839master
parent
10298f24aa
commit
ef6553f339
|
@ -127,9 +127,16 @@ public class PerfilFuncion implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
PerfilFuncion other = (PerfilFuncion) object;
|
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))) {
|
if ((this.perfilfuncionId == null && other.perfilfuncionId != null) || (this.perfilfuncionId != null && !this.perfilfuncionId.equals(other.perfilfuncionId))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if((this.perfilfuncionId == other.perfilfuncionId) && (this.getFuncionSistema().getFuncionsistemaId() != other.getFuncionSistema().getFuncionsistemaId())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue