|
|
|
|
@ -42,18 +42,17 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory;
|
|
|
|
|
import javax.swing.JComponent;
|
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
|
import javax.swing.JLabel;
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
|
|
|
|
|
import leaf.LeafCalendarDialog;
|
|
|
|
|
import leaf.LeafInputField;
|
|
|
|
|
import leaf.LeafOptionDialog;
|
|
|
|
|
import leaf.LeafTextDialog;
|
|
|
|
|
import leaf.LeafWindow;
|
|
|
|
|
import leaf.OrderedMap;
|
|
|
|
|
import leaf.LeafLogic.LeafUIActionBinding;
|
|
|
|
|
import leaf.LeafWindow.ActionActivation;
|
|
|
|
|
import leaf.data.OrderedMap;
|
|
|
|
|
import leaf.ui.LeafCalendarDialog;
|
|
|
|
|
import leaf.ui.LeafInputField;
|
|
|
|
|
import leaf.ui.LeafOptionDialog;
|
|
|
|
|
import leaf.ui.LeafTextDialog;
|
|
|
|
|
import leaf.ui.LeafWindow;
|
|
|
|
|
import leaf.ui.LeafLogic.LeafUIActionBinding;
|
|
|
|
|
import leaf.ui.LeafWindow.ActionActivation;
|
|
|
|
|
import siprp.CompanyDataLoader;
|
|
|
|
|
import siprp.SingletonConstants;
|
|
|
|
|
import siprp.database.cayenne.objects.Contactos;
|
|
|
|
|
@ -549,7 +548,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_CONSULTA_MARCACAO)
|
|
|
|
|
public void setForNewConsultaMarcacao( TrabalhadoresConsultasDatas marcacao )
|
|
|
|
|
{
|
|
|
|
|
LeafCalendarDialog calendar = new LeafCalendarDialog( getParentFrame(), this, false, true );
|
|
|
|
|
LeafCalendarDialog calendar = new LeafCalendarDialog( parentWindow, this, false, true );
|
|
|
|
|
Date date = calendar.getDate();
|
|
|
|
|
if( date == null )
|
|
|
|
|
{
|
|
|
|
|
@ -649,7 +648,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
to = estabelecimentoEmail;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
MailDialog mailDialog = new MailDialog( getParentFrame(), to, bcc, subject, body );
|
|
|
|
|
MailDialog mailDialog = new MailDialog( parentWindow, to, bcc, subject, body );
|
|
|
|
|
result = new String[2];
|
|
|
|
|
result[0] = mailDialog.getSubject();
|
|
|
|
|
result[1] = mailDialog.getMessage();
|
|
|
|
|
@ -669,7 +668,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_CONSULTA_MARCACAO_OBSERVACOES)
|
|
|
|
|
public void setForNewConsultaMarcacaoObservacoes( TrabalhadoresConsultasDatasObservacoes observacoes )
|
|
|
|
|
{
|
|
|
|
|
LeafTextDialog textDialog = new LeafTextDialog( getParentFrame(), this, "", true );
|
|
|
|
|
LeafTextDialog textDialog = new LeafTextDialog( parentWindow, this, "", true );
|
|
|
|
|
String text = textDialog.getText();
|
|
|
|
|
observacoes.setObservacao( text );
|
|
|
|
|
inputConsultaMarcacaoObsMensagem.setEditable( true );
|
|
|
|
|
@ -678,7 +677,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_EXAME_MARCACAO)
|
|
|
|
|
public void setForNewExameMarcacao( TrabalhadoresEcdsDatas marcacao )
|
|
|
|
|
{
|
|
|
|
|
LeafCalendarDialog calendar = new LeafCalendarDialog( getParentFrame(), this, false, true );
|
|
|
|
|
LeafCalendarDialog calendar = new LeafCalendarDialog( parentWindow, this, false, true );
|
|
|
|
|
Date date = calendar.getDate();
|
|
|
|
|
if( date == null )
|
|
|
|
|
{
|
|
|
|
|
@ -742,7 +741,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_EXAME_MARCACAO_OBSERVACOES)
|
|
|
|
|
public void setForNewExameMarcacaoObservacoes( TrabalhadoresEcdsDatasObservacoes observacoes )
|
|
|
|
|
{
|
|
|
|
|
LeafTextDialog textDialog = new LeafTextDialog( getParentFrame(), this, "", true );
|
|
|
|
|
LeafTextDialog textDialog = new LeafTextDialog( parentWindow, this, "", true );
|
|
|
|
|
String text = textDialog.getText();
|
|
|
|
|
observacoes.setObservacao( text );
|
|
|
|
|
inputExameMarcacaoObsMensagem.setEditable( true );
|
|
|
|
|
@ -881,13 +880,4 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
{
|
|
|
|
|
setupSimpleDataPanel( panelExameMarcacaoObservacao, "Observa" + ccedil + otilde + "es", inputExameMarcacaoObsMensagem );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private JFrame getParentFrame()
|
|
|
|
|
{
|
|
|
|
|
if( getRootPane() != null && getRootPane().getParent() instanceof JFrame )
|
|
|
|
|
{
|
|
|
|
|
return (JFrame) getRootPane().getParent();
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|