fixed data ocorrencia verification

git-svn-id: https://svn.coded.pt/svn/SIPRP@1746 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Frederico Palma 14 years ago
parent f6b373a94e
commit ef21d47095

@ -536,7 +536,8 @@ public class PlanosDataProvider extends GenericDataProvider
Expression result = new Field( "fase" ).isEqual( new Integer( 6 ) ); Expression result = new Field( "fase" ).isEqual( new Integer( 6 ) );
int userType = u.getTipo().intValue(); int userType = u.getTipo().intValue();
if ( userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS if ( userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS
&& userType != Global.DIRECTOR_NACIONAL_SEGURANCA && userType != Global.DIRECTOR_GERAL_RH ) && userType != Global.DIRECTOR_NACIONAL_SEGURANCA && userType != Global.DIRECTOR_GERAL_RH
&& userType != Global.GESTOR )
{ {
result = result.and( new Field( "estabelecimento_id" ).isEqual( u.getEstabelecimento_id() ) ); result = result.and( new Field( "estabelecimento_id" ).isEqual( u.getEstabelecimento_id() ) );
} }

Loading…
Cancel
Save