git-svn-id: https://svn.coded.pt/svn/SIPRP@968 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Tiago Simão 17 years ago
parent 47db167218
commit a080bd19c5

@ -91,15 +91,18 @@ public class Main implements com.evolute.utils.ui.window.Connector
public static void main( String args[] ) public static void main( String args[] )
throws Exception throws Exception
{ {
UIManager.put( "TextField.inactiveForeground", UIManager.get( "TextField.foreground" ) ); UIManager.put( "TextField.inactiveForeground", ColorUIResource.BLACK );
UIManager.put( "TextField.foreground", ColorUIResource.RED.darker() ); UIManager.put( "TextField.foreground", ColorUIResource.RED.darker() );
UIManager.put( "TextArea.inactiveForeground", UIManager.get( "TextArea.foreground" ) ); UIManager.put( "TextArea.inactiveForeground", ColorUIResource.BLACK );
UIManager.put( "TextArea.foreground", ColorUIResource.RED.darker() ); UIManager.put( "TextArea.foreground", ColorUIResource.RED.darker() );
UIManager.put( "ComboBox.disabledForeground", UIManager.get( "ComboBox.foreground" ) ); UIManager.put( "ComboBox.disabledForeground", ColorUIResource.BLACK );
UIManager.put( "ComboBox.foreground", ColorUIResource.RED.darker() ); UIManager.put( "ComboBox.foreground", ColorUIResource.RED.darker() );
UIManager.put( "FormattedTextField.inactiveForeground", ColorUIResource.BLACK );
UIManager.put( "FormattedTextField.foreground", ColorUIResource.RED.darker() );
// Singleton.setInstance( SingletonConstants.COMPANY_NAME, "Centro Cl\u00ednico Avenida" ); // Singleton.setInstance( SingletonConstants.COMPANY_NAME, "Centro Cl\u00ednico Avenida" );
// Singleton.setInstance( SingletonConstants.COMPANY_LOGO, "logo_evo.jpg" ); // Singleton.setInstance( SingletonConstants.COMPANY_LOGO, "logo_evo.jpg" );
// Singleton.setInstance( SingletonConstants.WEB_AWARE, Boolean.FALSE ); // Singleton.setInstance( SingletonConstants.WEB_AWARE, Boolean.FALSE );

@ -38,7 +38,6 @@ import javax.swing.event.CaretEvent;
import javax.swing.event.CaretListener; import javax.swing.event.CaretListener;
import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener; import javax.swing.event.ChangeListener;
import javax.swing.text.AbstractDocument.LeafElement;
import leaf.data.Validator; import leaf.data.Validator;
import leaf.ui.LeafButton; import leaf.ui.LeafButton;
@ -296,6 +295,9 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
{ {
if( relatorio != null ) if( relatorio != null )
{ {
try
{
setCursor( new Cursor( Cursor.WAIT_CURSOR ) );
int ret = ask == false ? JOptionPane.YES_OPTION : JOptionPane.showConfirmDialog( this, "Todas as altera" + ccedil + otilde + "es ao plano de actua" + ccedil + atilde + "o ser" + atilde + "o perdidas\nTem a certeza?","Carregar dados do estabelecimento",JOptionPane.YES_NO_OPTION); int ret = ask == false ? JOptionPane.YES_OPTION : JOptionPane.showConfirmDialog( this, "Todas as altera" + ccedil + otilde + "es ao plano de actua" + ccedil + atilde + "o ser" + atilde + "o perdidas\nTem a certeza?","Carregar dados do estabelecimento",JOptionPane.YES_NO_OPTION);
if( JOptionPane.YES_OPTION == ret ) if( JOptionPane.YES_OPTION == ret )
{ {
@ -303,6 +305,11 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
setRelatorio( relatorio, false ); setRelatorio( relatorio, false );
} }
} }
finally
{
setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );
}
}
} }
private boolean isValidEmail() private boolean isValidEmail()
@ -558,6 +565,7 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
buttonSubmit.setEnabled( enabled ); buttonSubmit.setEnabled( enabled );
buttonPdfPlano.setEnabled( relatorio != null ); buttonPdfPlano.setEnabled( relatorio != null );
buttonRevertPlano.setEnabled( enabled ); buttonRevertPlano.setEnabled( enabled );
panelFuncionarios.setEnabled( enabled );
} }
public void setRelatorio( HsRelatorio relatorio,boolean create ) public void setRelatorio( HsRelatorio relatorio,boolean create )

Loading…
Cancel
Save