|
|
|
|
@ -17,6 +17,7 @@ import siprp.*;
|
|
|
|
|
import siprp.ficha.*;
|
|
|
|
|
import siprp.clientes.*;
|
|
|
|
|
import siprp.estatistica.*;
|
|
|
|
|
import siprp.medicina.*;
|
|
|
|
|
import siprp.pesquisas.*;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
@ -26,11 +27,13 @@ public class SIPRPTracker extends WindowTracker
|
|
|
|
|
{
|
|
|
|
|
public static final String FICHA_APTIDAO = "Ficha de Aptid\u00e3o";
|
|
|
|
|
public static final String GESTAO_CLIENTES = "Gest\u00e3o de Clientes";
|
|
|
|
|
public static final String MEDICINA = "Medicina";
|
|
|
|
|
public static final String RELATORIO_ANUAL = "Relat\u00f3rio Anual";
|
|
|
|
|
public static final String LISTAGENS = "Listagens";
|
|
|
|
|
|
|
|
|
|
private final AvisosPanel avisos;
|
|
|
|
|
private ClientesWindow clientesWindow;
|
|
|
|
|
private MedicinaWindow medicinaWindow;
|
|
|
|
|
|
|
|
|
|
/** Creates a new instance of SIPRPTracker */
|
|
|
|
|
public SIPRPTracker( AvisosPanel avisosP )
|
|
|
|
|
@ -51,16 +54,19 @@ public class SIPRPTracker extends WindowTracker
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
clientesWindow = new ClientesWindow( avisos );
|
|
|
|
|
medicinaWindow = new MedicinaWindow();
|
|
|
|
|
}
|
|
|
|
|
catch( Exception ex )
|
|
|
|
|
{
|
|
|
|
|
clientesWindow = null;
|
|
|
|
|
medicinaWindow = null;
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
clientesWindow = null;
|
|
|
|
|
medicinaWindow = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( hasFicha )
|
|
|
|
|
@ -89,6 +95,19 @@ public class SIPRPTracker extends WindowTracker
|
|
|
|
|
return clientesWindow;
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
rootNode.add( new DefaultMutableTreeNode( MEDICINA ) );
|
|
|
|
|
creators.put( MEDICINA, new WindowCreator() {
|
|
|
|
|
public TrackableWindow create()
|
|
|
|
|
throws Exception
|
|
|
|
|
{
|
|
|
|
|
if( medicinaWindow == null )
|
|
|
|
|
{
|
|
|
|
|
medicinaWindow = new MedicinaWindow();
|
|
|
|
|
}
|
|
|
|
|
return medicinaWindow;
|
|
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( hasRelatorio )
|
|
|
|
|
|