no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@7 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 22 years ago
parent 6dc5a128fb
commit 4d34160a72

@ -72,7 +72,7 @@ public class EmpresaPanel extends JPanel
GridBagLayout gridbag = new GridBagLayout(); GridBagLayout gridbag = new GridBagLayout();
setLayout( gridbag ); setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints(); GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 ); constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL; constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.gridwidth = 1; constraints.gridwidth = 1;
constraints.weightx = 0; constraints.weightx = 0;

@ -101,7 +101,7 @@ public class ExamePanel extends JPanel
GridBagLayout gridbag = new GridBagLayout(); GridBagLayout gridbag = new GridBagLayout();
tipoPanel.setLayout( gridbag ); tipoPanel.setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints(); GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 ); constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL; constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weighty = 0; constraints.weighty = 0;
constraints.gridheight = 1; constraints.gridheight = 1;

@ -9,11 +9,12 @@ package siprp.ficha;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import com.evolute.utils.ui.window.*;
/** /**
* *
* @author fpalma * @author fpalma
*/ */
public class FichaWindow extends JFrame public class FichaWindow extends TabbedWindow
{ {
private UpperPanel upperPanel; private UpperPanel upperPanel;
private EmpresaPanel empresaPanel; private EmpresaPanel empresaPanel;
@ -22,34 +23,44 @@ public class FichaWindow extends JFrame
private ExamePanel examePanel; private ExamePanel examePanel;
private RecomendacoesPanel recomendacoesPanel; private RecomendacoesPanel recomendacoesPanel;
private static int permissions[][] =
new int[][]{ { NEW_INDEX, CANCEL_INDEX, SAVE_INDEX, DELETE_INDEX, SELECT_BYNAME_INDEX } };
/** Creates a new instance of FichaWindow */ /** Creates a new instance of FichaWindow */
public FichaWindow() public FichaWindow()
throws Exception
{ {
super( new UpperPanel(), new String[]{ "Empresa/Trabalhador", "Exame" },
createPermissions( permissions ) );
upperPanel = (UpperPanel) getUpperPanel();
setupComponents(); setupComponents();
} }
private void setupComponents() private void setupComponents()
{ {
setSize( 700, 550 ); setSize( 700, 570 );
setResizable( false ); setResizable( false );
setTitle( "Ficha de Aptid\u00e3o" ); setTitle( "Ficha de Aptid\u00e3o" );
upperPanel = new UpperPanel(); // upperPanel = new UpperPanel();
JTabbedPane tabbed = new JTabbedPane(); // JTabbedPane tabbed = new JTabbedPane();
getContentPane().setLayout( new BorderLayout() ); // getContentPane().setLayout( new BorderLayout() );
getContentPane().add( upperPanel, BorderLayout.NORTH ); // getContentPane().add( upperPanel, BorderLayout.NORTH );
getContentPane().add( tabbed, BorderLayout.CENTER ); // getContentPane().add( tabbed, BorderLayout.CENTER );
//
JPanel empresaTrabalhadorPanel = new JPanel(); // JPanel empresaTrabalhadorPanel = new JPanel();
JPanel exameRecomendacoesPanel = new JPanel(); // JPanel exameRecomendacoesPanel = new JPanel();
//
tabbed.add( "Empresa/Trabalhador", empresaTrabalhadorPanel ); // tabbed.add( "Empresa/Trabalhador", empresaTrabalhadorPanel );
tabbed.add( "Exame", exameRecomendacoesPanel ); // tabbed.add( "Exame", exameRecomendacoesPanel );
JPanel empresaTrabalhadorPanel = getTab( 0 );
JPanel exameRecomendacoesPanel = getTab( 1 );
GridBagLayout gridbag = new GridBagLayout(); GridBagLayout gridbag = new GridBagLayout();
empresaTrabalhadorPanel.setLayout( gridbag ); empresaTrabalhadorPanel.setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints(); GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 ); constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.BOTH; constraints.fill = GridBagConstraints.BOTH;
constraints.weightx = 1; constraints.weightx = 1;
constraints.gridwidth = GridBagConstraints.REMAINDER; constraints.gridwidth = GridBagConstraints.REMAINDER;
@ -74,7 +85,7 @@ public class FichaWindow extends JFrame
gridbag = new GridBagLayout(); gridbag = new GridBagLayout();
exameRecomendacoesPanel.setLayout( gridbag ); exameRecomendacoesPanel.setLayout( gridbag );
constraints = new GridBagConstraints(); constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 ); constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.BOTH; constraints.fill = GridBagConstraints.BOTH;
constraints.weightx = 1; constraints.weightx = 1;
constraints.gridwidth = GridBagConstraints.REMAINDER; constraints.gridwidth = GridBagConstraints.REMAINDER;

@ -37,7 +37,7 @@ public class ObservacoesPanel extends JPanel
observacoesText.setWrapStyleWord( true ); observacoesText.setWrapStyleWord( true );
scp.setViewportView( observacoesText ); scp.setViewportView( observacoesText );
setLayout( new GridLayout( 1, 1 ) ); setLayout( new GridLayout( 1, 1, 0, 0 ) );
add( scp ); add( scp );
} }
} }

@ -42,7 +42,7 @@ public class RecomendacoesPanel extends JPanel
JLabel proximoExameLabel = new JLabel( "Pr\u00f3ximo Exame" ); JLabel proximoExameLabel = new JLabel( "Pr\u00f3ximo Exame" );
proximoExamePanel = new JCalendarPanel( null ); proximoExamePanel = new JCalendarPanel( null );
setLayout( new GridLayout( 1, 2 ) ); setLayout( new GridLayout( 1, 2, 0, 0 ) );
add( scp ); add( scp );
add( rightPanel ); add( rightPanel );

@ -70,7 +70,7 @@ public class TrabalhadorPanel extends JPanel
GridBagLayout gridbag = new GridBagLayout(); GridBagLayout gridbag = new GridBagLayout();
setLayout( gridbag ); setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints(); GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 ); constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL; constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weighty = 0; constraints.weighty = 0;
constraints.gridheight = 1; constraints.gridheight = 1;

@ -42,7 +42,7 @@ public class UpperPanel extends JPanel
GridBagLayout gridbag = new GridBagLayout(); GridBagLayout gridbag = new GridBagLayout();
setLayout( gridbag ); setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints(); GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 ); constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL; constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.gridheight = 1; constraints.gridheight = 1;
constraints.weighty = 0; constraints.weighty = 0;

Loading…
Cancel
Save