|
|
|
|
@ -47,6 +47,7 @@ import siprp.database.cayenne.objects.TrabalhadoresEcdsDatasObservacoes;
|
|
|
|
|
import siprp.database.cayenne.objects.TrabalhadoresProcesso;
|
|
|
|
|
import siprp.logic.SIPRPLogic.LeafUIActionBinding;
|
|
|
|
|
import siprp.ui.SIPRPWindow;
|
|
|
|
|
import siprp.ui.SIPRPWindow.ActionActivation;
|
|
|
|
|
|
|
|
|
|
public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
{
|
|
|
|
|
@ -95,11 +96,11 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
private final JLabel labelTrabalhadorNacionalidade = new JLabel( "Nacionalidade" );
|
|
|
|
|
private final JLabel labelTrabalhadorObservacoes = new JLabel( "Observa" + ccedil + otilde + "es" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<String> inputTrabalhadorNome = new LeafInputField<String>();
|
|
|
|
|
private final LeafInputField<HashMap<String,String>> inputTrabalhadorSexo = new LeafInputField<HashMap<String,String>>();
|
|
|
|
|
private final LeafInputField<Date> inputTrabalhadorDataNascimento = new LeafInputField<Date>();
|
|
|
|
|
private final LeafInputField<String> inputTrabalhadorNacionalidade = new LeafInputField<String>();
|
|
|
|
|
private final LeafInputField<String> inputTrabalhadorObservacoes = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<String> inputTrabalhadorNome = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<HashMap<String,String>> inputTrabalhadorSexo = new LeafInputField<HashMap<String,String>>();
|
|
|
|
|
public final LeafInputField<Date> inputTrabalhadorDataNascimento = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<String> inputTrabalhadorNacionalidade = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<String> inputTrabalhadorObservacoes = new LeafInputField<String>();
|
|
|
|
|
|
|
|
|
|
// processo
|
|
|
|
|
|
|
|
|
|
@ -108,62 +109,63 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
private final JLabel labelProcessoDataFim = new JLabel( "Fim" );
|
|
|
|
|
private final JLabel labelProcessoMotivo = new JLabel( "Motivo" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<HashMap<String,String>> inputProcessoEstado = new LeafInputField<HashMap<String,String>>();
|
|
|
|
|
private final LeafInputField<Date> inputProcessoDataInicio = new LeafInputField<Date>();
|
|
|
|
|
private final LeafInputField<Date> inputProcessoDataFim = new LeafInputField<Date>();
|
|
|
|
|
private final LeafInputField<HashMap<Integer,String>> inputProcessoMotivo = new LeafInputField<HashMap<Integer,String>>();
|
|
|
|
|
public final LeafInputField<HashMap<String,String>> inputProcessoEstado = new LeafInputField<HashMap<String,String>>();
|
|
|
|
|
public final LeafInputField<Date> inputProcessoDataInicio = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<Date> inputProcessoDataFim = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<HashMap<Integer,String>> inputProcessoMotivo = new LeafInputField<HashMap<Integer,String>>();
|
|
|
|
|
|
|
|
|
|
// consulta
|
|
|
|
|
private final JLabel labelConsultaEstado = new JLabel( "Estado" );
|
|
|
|
|
private final JLabel labelConsultaData = new JLabel( "Data" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<HashMap<Integer, String>> inputConsultaEstado = new LeafInputField<HashMap<Integer, String>>();
|
|
|
|
|
private final LeafInputField<Date> inputConsultaData = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<HashMap<Integer, String>> inputConsultaEstado = new LeafInputField<HashMap<Integer, String>>();
|
|
|
|
|
public final LeafInputField<Date> inputConsultaData = new LeafInputField<Date>();
|
|
|
|
|
|
|
|
|
|
// marcacao consulta
|
|
|
|
|
private final JLabel labelConsultaMarcacaoEstado = new JLabel( "Estado" );
|
|
|
|
|
private final JLabel labelConsultaMarcacaoData = new JLabel( "Data" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<HashMap<Integer, String>> inputConsultaMarcacaoEstado = new LeafInputField<HashMap<Integer, String>>();
|
|
|
|
|
private final LeafInputField<Date> inputConsultaMarcacaoData = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<HashMap<Integer, String>> inputConsultaMarcacaoEstado = new LeafInputField<HashMap<Integer, String>>();
|
|
|
|
|
public final LeafInputField<Date> inputConsultaMarcacaoData = new LeafInputField<Date>();
|
|
|
|
|
|
|
|
|
|
// email marcacao consulta
|
|
|
|
|
private final JLabel labelConsultaMarcacaoEmailData = new JLabel( "Data" );
|
|
|
|
|
private final JLabel labelConsultaMarcacaoEmailSubject = new JLabel( "Assunto" );
|
|
|
|
|
private final JLabel labelConsultaMarcacaoEmailBody = new JLabel( "Mensagem" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<Date> inputConsultaMarcacaoEmailData = new LeafInputField<Date>();
|
|
|
|
|
private final LeafInputField<String> inputConsultaMarcacaoEmailSubject = new LeafInputField<String>();
|
|
|
|
|
private final LeafInputField<String> inputConsultaMarcacaoEmailBody = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<Date> inputConsultaMarcacaoEmailData = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<String> inputConsultaMarcacaoEmailSubject = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<String> inputConsultaMarcacaoEmailBody = new LeafInputField<String>();
|
|
|
|
|
|
|
|
|
|
// observacao marcacao consulta
|
|
|
|
|
private final LeafInputField<String> inputConsultaMarcacaoObsMensagem = new LeafInputField<String>();
|
|
|
|
|
@ActionActivation(onSelect="", onChange=SAVE_CONSULTA_MARCACAO_OBSERVACOES)
|
|
|
|
|
public final LeafInputField<String> inputConsultaMarcacaoObsMensagem = new LeafInputField<String>();
|
|
|
|
|
|
|
|
|
|
// exame
|
|
|
|
|
private final JLabel labelExameEstado = new JLabel( "Estado" );
|
|
|
|
|
private final JLabel labelExameData = new JLabel( "Data" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<String> inputExameEstado = new LeafInputField<String>();
|
|
|
|
|
private final LeafInputField<Date> inputExameData = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<String> inputExameEstado = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<Date> inputExameData = new LeafInputField<Date>();
|
|
|
|
|
|
|
|
|
|
// marcacao exame
|
|
|
|
|
private final JLabel labelExameMarcacaoEstado = new JLabel( "Estado" );
|
|
|
|
|
private final JLabel labelExameMarcacaoData = new JLabel( "Data" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<String> inputExameMarcacaoEstado = new LeafInputField<String>();
|
|
|
|
|
private final LeafInputField<Date> inputExameMarcacaoData = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<String> inputExameMarcacaoEstado = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<Date> inputExameMarcacaoData = new LeafInputField<Date>();
|
|
|
|
|
|
|
|
|
|
// email marcacao exame
|
|
|
|
|
private final JLabel labelExameMarcacaoEmailData = new JLabel( "Data" );
|
|
|
|
|
private final JLabel labelExameMarcacaoEmailSubject = new JLabel( "Assunto" );
|
|
|
|
|
private final JLabel labelExameMarcacaoEmailBody = new JLabel( "Mensagem" );
|
|
|
|
|
|
|
|
|
|
private final LeafInputField<Date> inputExameMarcacaoEmailData = new LeafInputField<Date>();
|
|
|
|
|
private final LeafInputField<String> inputExameMarcacaoEmailSubject = new LeafInputField<String>();
|
|
|
|
|
private final LeafInputField<String> inputExameMarcacaoEmailBody = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<Date> inputExameMarcacaoEmailData = new LeafInputField<Date>();
|
|
|
|
|
public final LeafInputField<String> inputExameMarcacaoEmailSubject = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<String> inputExameMarcacaoEmailBody = new LeafInputField<String>();
|
|
|
|
|
|
|
|
|
|
// observacao marcacao exame
|
|
|
|
|
private final LeafInputField<String> inputExameMarcacaoObsMensagem = new LeafInputField<String>();
|
|
|
|
|
public final LeafInputField<String> inputExameMarcacaoObsMensagem = new LeafInputField<String>();
|
|
|
|
|
|
|
|
|
|
public ProcessoDadosPanel(SIPRPWindow parentWindow)
|
|
|
|
|
{
|
|
|
|
|
@ -378,13 +380,12 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_CONSULTA)
|
|
|
|
|
public void setForNewConsulta( TrabalhadoresConsultas consulta )
|
|
|
|
|
{
|
|
|
|
|
inputConsultaData.setEditable( true );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_CONSULTA_MARCACAO)
|
|
|
|
|
public void setForNewConsultaMarcacao( TrabalhadoresConsultasDatas marcacao )
|
|
|
|
|
{
|
|
|
|
|
LeafCalendarDialog calendar = new LeafCalendarDialog( getParentFrame(), this, false );
|
|
|
|
|
LeafCalendarDialog calendar = new LeafCalendarDialog( getParentFrame(), this, false, false);
|
|
|
|
|
Date date = calendar.getDate();
|
|
|
|
|
marcacao.setData( date );
|
|
|
|
|
}
|
|
|
|
|
@ -392,14 +393,14 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_CONSULTA_MARCACAO_EMAIL)
|
|
|
|
|
public void setForNewConsultaMarcacaoEmail( TrabalhadoresConsultasDatasEmails email )
|
|
|
|
|
{
|
|
|
|
|
inputConsultaMarcacaoEmailBody.setEditable( true );
|
|
|
|
|
inputConsultaMarcacaoEmailData.setEditable( true );
|
|
|
|
|
inputConsultaMarcacaoEmailSubject.setEditable( true );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@LeafUIActionBinding(action = CREATE_CONSULTA_MARCACAO_OBSERVACOES)
|
|
|
|
|
public void setForNewConsultaMarcacaoObservacoes( TrabalhadoresConsultasDatasObservacoes observacoes )
|
|
|
|
|
{
|
|
|
|
|
LeafTextDialog textDialog = new LeafTextDialog( getParentFrame(), this, "");
|
|
|
|
|
String text = textDialog.getText();
|
|
|
|
|
observacoes.setObservacao( text );
|
|
|
|
|
inputConsultaMarcacaoObsMensagem.setEditable( true );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -468,11 +469,11 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
|
|
|
|
|
private void setupTrabalhadorPanel()
|
|
|
|
|
{
|
|
|
|
|
inputTrabalhadorNacionalidade.setEditable( false );
|
|
|
|
|
inputTrabalhadorDataNascimento.setEditable( false );
|
|
|
|
|
inputTrabalhadorNome.setEditable( false );
|
|
|
|
|
inputTrabalhadorSexo.setEditable( false );
|
|
|
|
|
inputTrabalhadorObservacoes.setEditable( false );
|
|
|
|
|
// inputTrabalhadorNacionalidade.setEditable( false );
|
|
|
|
|
// inputTrabalhadorDataNascimento.setEditable( false );
|
|
|
|
|
// inputTrabalhadorNome.setEditable( false );
|
|
|
|
|
// inputTrabalhadorSexo.setEditable( false );
|
|
|
|
|
// inputTrabalhadorObservacoes.setEditable( false );
|
|
|
|
|
setupSimpleDataPanel( panelTrabalhador, "Trabalhador", labelTrabalhadorNome, inputTrabalhadorNome, labelTrabalhadorSexo, inputTrabalhadorSexo, labelTrabalhadorNacionalidade, inputTrabalhadorNacionalidade, labelTrabalhadorDataNascimento, inputTrabalhadorDataNascimento, labelTrabalhadorObservacoes, inputTrabalhadorObservacoes );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -484,8 +485,8 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
private void setupConsultaPanel()
|
|
|
|
|
{
|
|
|
|
|
setupSimpleDataPanel( panelConsulta, "Consulta", labelConsultaEstado, inputConsultaEstado, labelConsultaData, inputConsultaData, new JPanel() );
|
|
|
|
|
inputConsultaEstado.setEditable( true );
|
|
|
|
|
inputConsultaData.setEditable( true );
|
|
|
|
|
// inputConsultaEstado.setEditable( true );
|
|
|
|
|
// inputConsultaData.setEditable( true );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setupConsultaMarcacaoPanel()
|
|
|
|
|
@ -500,7 +501,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
|
|
|
|
|
private void setupConsultaMarcacaoObservacoesPanel()
|
|
|
|
|
{
|
|
|
|
|
inputConsultaMarcacaoObsMensagem.setEditable( false );
|
|
|
|
|
// inputConsultaMarcacaoObsMensagem.setEditable( false );
|
|
|
|
|
setupSimpleDataPanel( panelConsultaMarcacaoObservacao, "Observa" + ccedil + otilde + "es", inputConsultaMarcacaoObsMensagem );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -521,7 +522,7 @@ public class ProcessoDadosPanel extends JPanel
|
|
|
|
|
|
|
|
|
|
private void setupExameMarcacaoObservacoesPanel()
|
|
|
|
|
{
|
|
|
|
|
inputExameMarcacaoObsMensagem.setEditable( false );
|
|
|
|
|
// inputExameMarcacaoObsMensagem.setEditable( false );
|
|
|
|
|
setupSimpleDataPanel( panelExameMarcacaoObservacao, "Observa" + ccedil + otilde + "es", inputExameMarcacaoObsMensagem );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|