no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@338 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent f55846ac94
commit da89daa84e

@ -0,0 +1,137 @@
/*
* ProcessoPanel.java
*
* Created on March 21, 2007, 9:11 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo;
import info.clearthought.layout.TableLayout;
import info.clearthought.layout.TableLayoutConstraints;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
/**
*
* @author fpalma
*/
public class ProcessoPanel extends JPanel
implements ActionListener
{
private JTextField estadoText;
private JTextField inicioText;
private JTextField fimText;
private JButton novoECDButton;
private JButton novaConsultaButton;
private JButton emitirFAButton;
private JButton fecharButton;
public static void main( String args[] )
{
JFrame frm = new JFrame();
frm.getContentPane().setLayout( new GridLayout( 1, 1 ) );
frm.getContentPane().add( new ProcessoPanel() );
frm.pack();
frm.addWindowListener( new java.awt.event.WindowAdapter(){
public void windowClosing( java.awt.event.WindowEvent e )
{
System.exit( 0 );
}
} );
frm.setVisible( true );
}
/** Creates a new instance of ProcessoPanel */
public ProcessoPanel()
{
setupComponents();
}
private void setupComponents()
{
JLabel estadoLabel = new JLabel( "Estado" );
estadoText = new JTextField();
estadoText.setPreferredSize( new Dimension( 120, 20 ) );
estadoText.setEditable( false );
JLabel inicioLabel = new JLabel( "In\u00edcio" );
inicioText = new JTextField();
inicioText.setPreferredSize( new Dimension( 120, 20 ) );
inicioText.setEditable( false );
JLabel fimLabel = new JLabel( "Fim" );
fimText = new JTextField();
fimText.setPreferredSize( new Dimension( 120, 20 ) );
fimText.setEditable( false );
novoECDButton = new JButton( "Marcar ECDs" );
novoECDButton.addActionListener( this );
novaConsultaButton = new JButton( "Marcar Consulta" );
novaConsultaButton.addActionListener( this );
emitirFAButton = new JButton( "Emitir Ficha de Aptid\u00e3o" );
emitirFAButton.addActionListener( this );
fecharButton = new JButton( "Fechar Processo" );
fecharButton.addActionListener( this );
double cols[] =
new double[]{ TableLayout.MINIMUM, TableLayout.PREFERRED, TableLayout.FILL,
TableLayout.PREFERRED, };
double rows[] =
new double[]{ TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED,
TableLayout.PREFERRED, TableLayout.FILL };
TableLayout tableLayout = new TableLayout( cols, rows );
setLayout( tableLayout );
add( estadoLabel, new TableLayoutConstraints( 0, 0 ) );
add( estadoText, new TableLayoutConstraints( 1, 0 ) );
add( novoECDButton, new TableLayoutConstraints( 3, 0 ) );
add( inicioLabel, new TableLayoutConstraints( 0, 1 ) );
add( inicioText, new TableLayoutConstraints( 1, 1 ) );
add( novaConsultaButton, new TableLayoutConstraints( 3, 1 ) );
add( fimLabel, new TableLayoutConstraints( 0, 2 ) );
add( fimText, new TableLayoutConstraints( 1, 2 ) );
add( emitirFAButton, new TableLayoutConstraints( 3, 2 ) );
add( fecharButton, new TableLayoutConstraints( 3, 3 ) );
}
public void actionPerformed(ActionEvent e)
{
Object source = e.getSource();
if( source.equals( novoECDButton ) )
{
novoECD();
}
else if( source.equals( novaConsultaButton ) )
{
novaConsulta();
}
else if( source.equals( emitirFAButton ) )
{
emitirFA();
}
else if( source.equals( fecharButton ) )
{
fecharProcesso();
}
}
protected void novoECD()
{
}
protected void novaConsulta()
{
}
protected void emitirFA()
{
}
protected void fecharProcesso()
{
}
}

@ -0,0 +1,59 @@
/*
* ProcessoWindow.java
*
* Created on March 21, 2007, 9:06 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package siprp.medicina.processo;
import com.evolute.utils.tracker.TrackableWindow;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
/**
*
* @author fpalma
*/
public class ProcessoWindow extends JFrame
implements TrackableWindow
{
/** Creates a new instance of ProcessoWindow */
public ProcessoWindow()
{
setupComponents();
}
private void setupComponents()
{
}
public void refresh()
{
}
public void open()
{
setVisible( true );
}
public void close()
{
SwingUtilities.invokeLater( new Runnable() {
public void run()
{
setVisible( false );
dispose();
}
} );
}
public boolean closeIfPossible()
{
close();
return true;
}
}
Loading…
Cancel
Save