|
|
|
|
@ -194,4 +194,44 @@ public class PrestadoresDataProvider
|
|
|
|
|
}
|
|
|
|
|
return prestadores;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IDObject[] getPrestadoresConsultasActivos()
|
|
|
|
|
throws Exception
|
|
|
|
|
{
|
|
|
|
|
Select select =
|
|
|
|
|
new Select( new String[]{ "prestadores" },
|
|
|
|
|
new String[]{ "id", "nome", "nome_plain" },
|
|
|
|
|
new Field( "activo" ).isEqual( "y" ).and(
|
|
|
|
|
new Field( "faz_consultas" ).isEqual( "y" ) ),
|
|
|
|
|
new String[]{ "nome_plain" }, null );
|
|
|
|
|
Virtual2DArray array = EXECUTER.executeQuery( select );
|
|
|
|
|
IDObject prestadores[] = new IDObject[ array.columnLength() ];
|
|
|
|
|
for( int n = 0; n < prestadores.length; n++ )
|
|
|
|
|
{
|
|
|
|
|
Integer id = ( Integer ) array.get( n, 0 );
|
|
|
|
|
String nome = ( String ) array.get( n, 1 );
|
|
|
|
|
prestadores[ n ] = new MappableObject( id, nome );
|
|
|
|
|
}
|
|
|
|
|
return prestadores;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IDObject[] getPrestadoresECDsActivos()
|
|
|
|
|
throws Exception
|
|
|
|
|
{
|
|
|
|
|
Select select =
|
|
|
|
|
new Select( new String[]{ "prestadores" },
|
|
|
|
|
new String[]{ "id", "nome", "nome_plain" },
|
|
|
|
|
new Field( "activo" ).isEqual( "y" ).and(
|
|
|
|
|
new Field( "faz_ecds" ).isEqual( "y" ) ),
|
|
|
|
|
new String[]{ "nome_plain" }, null );
|
|
|
|
|
Virtual2DArray array = EXECUTER.executeQuery( select );
|
|
|
|
|
IDObject prestadores[] = new IDObject[ array.columnLength() ];
|
|
|
|
|
for( int n = 0; n < prestadores.length; n++ )
|
|
|
|
|
{
|
|
|
|
|
Integer id = ( Integer ) array.get( n, 0 );
|
|
|
|
|
String nome = ( String ) array.get( n, 1 );
|
|
|
|
|
prestadores[ n ] = new MappableObject( id, nome );
|
|
|
|
|
}
|
|
|
|
|
return prestadores;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|