|
|
|
|
@ -446,7 +446,7 @@ public class PlanosDataProvider extends GenericDataProvider{
|
|
|
|
|
sql += "WHERE fase > 1 AND fase < 6";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if(userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS)
|
|
|
|
|
if(userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS && userType != Global.DIRECTOR_NACIONAL_SEGURANCA)
|
|
|
|
|
{
|
|
|
|
|
sql += " and estabelecimento_id = " + u.getEstabelecimento_id();
|
|
|
|
|
}
|
|
|
|
|
@ -461,7 +461,7 @@ public class PlanosDataProvider extends GenericDataProvider{
|
|
|
|
|
int userType = u.getTipo().intValue();
|
|
|
|
|
Statement st = createStatement();
|
|
|
|
|
String sql = "select * from planos_actuacao where fase = 6";
|
|
|
|
|
if(userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS)
|
|
|
|
|
if(userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS && userType != Global.DIRECTOR_NACIONAL_SEGURANCA)
|
|
|
|
|
{
|
|
|
|
|
sql += " and estabelecimento_id = " + u.getEstabelecimento_id();
|
|
|
|
|
}
|
|
|
|
|
|