|
|
|
|
@ -57,6 +57,8 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
private ContactoPanel contacto2Panel;
|
|
|
|
|
private JCalendarPanel envioPropostaPanel;
|
|
|
|
|
private JCalendarPanel aceitacaoPropostaPanel;
|
|
|
|
|
private JCalendarPanel inicioContratoPanel;
|
|
|
|
|
private JTextField duracaoContratoText;
|
|
|
|
|
private JCalendarPanel cancelamentoPanel;
|
|
|
|
|
private JCalendarPanel envioContratoPanel;
|
|
|
|
|
private JCalendarPanel recepcaoContratoPanel;
|
|
|
|
|
@ -174,6 +176,11 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
envioPropostaPanel = new JCalendarPanel( null );
|
|
|
|
|
JLabel aceitacaoPropostaLabel = new JLabel( "Aceita\u00e7\u00e3o" );
|
|
|
|
|
aceitacaoPropostaPanel = new JCalendarPanel( null );
|
|
|
|
|
JLabel inicioContratoLabel = new JLabel( "In\u00edcio" );
|
|
|
|
|
inicioContratoPanel = new JCalendarPanel( null );
|
|
|
|
|
JLabel duracaoContratoLabel = new JLabel( "Dura\u00e7\u00e3o (meses)" );
|
|
|
|
|
duracaoContratoText = new JTextField();
|
|
|
|
|
duracaoContratoText.setDocument( new IntegerDocument( 5, false ) );
|
|
|
|
|
JLabel cancelamentoLabel = new JLabel( "Cancelamento" );
|
|
|
|
|
cancelamentoPanel = new JCalendarPanel( null );
|
|
|
|
|
JLabel envioContratoLabel = new JLabel( "Envio Contrato" );
|
|
|
|
|
@ -322,14 +329,14 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
formalidadesPanel.add( envioPropostaPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
gridbag.setConstraints( cancelamentoLabel, constraints );
|
|
|
|
|
formalidadesPanel.add( cancelamentoLabel );
|
|
|
|
|
gridbag.setConstraints( inicioContratoLabel, constraints );
|
|
|
|
|
formalidadesPanel.add( inicioContratoLabel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.2;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
// JPanel perfisPanel = new JPanel();
|
|
|
|
|
gridbag.setConstraints( cancelamentoPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( cancelamentoPanel );
|
|
|
|
|
gridbag.setConstraints( inicioContratoPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( inicioContratoPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.4;
|
|
|
|
|
constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
|
@ -346,10 +353,15 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
gridbag.setConstraints( aceitacaoPropostaPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( aceitacaoPropostaPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
gridbag.setConstraints( duracaoContratoLabel, constraints );
|
|
|
|
|
formalidadesPanel.add( duracaoContratoLabel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.2;
|
|
|
|
|
constraints.gridwidth = 2;
|
|
|
|
|
gridbag.setConstraints( servicosCombo, constraints );
|
|
|
|
|
formalidadesPanel.add( servicosCombo );
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
// JPanel perfisPanel = new JPanel();
|
|
|
|
|
gridbag.setConstraints( duracaoContratoText, constraints );
|
|
|
|
|
formalidadesPanel.add( duracaoContratoText );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
@ -376,14 +388,14 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
formalidadesPanel.add( envioContratoPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
gridbag.setConstraints( relatorioAnualLabel, constraints );
|
|
|
|
|
formalidadesPanel.add( relatorioAnualLabel );
|
|
|
|
|
gridbag.setConstraints( cancelamentoLabel, constraints );
|
|
|
|
|
formalidadesPanel.add( cancelamentoLabel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.2;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
gridbag.setConstraints( relatorioAnualPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( relatorioAnualPanel );
|
|
|
|
|
// JPanel perfisPanel = new JPanel();
|
|
|
|
|
gridbag.setConstraints( cancelamentoPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( cancelamentoPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
@ -412,9 +424,8 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.2;
|
|
|
|
|
constraints.gridwidth = 2;
|
|
|
|
|
pad = new JPanel();
|
|
|
|
|
gridbag.setConstraints( pad, constraints );
|
|
|
|
|
formalidadesPanel.add( pad );
|
|
|
|
|
gridbag.setConstraints( servicosCombo, constraints );
|
|
|
|
|
formalidadesPanel.add( servicosCombo );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
@ -426,7 +437,6 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
gridbag.setConstraints( modalidadePagamentoText, constraints );
|
|
|
|
|
formalidadesPanel.add( modalidadePagamentoText );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
gridbag.setConstraints( envioIdictLabel, constraints );
|
|
|
|
|
@ -436,7 +446,17 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
gridbag.setConstraints( envioIdictPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( envioIdictPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.7;
|
|
|
|
|
constraints.weightx = 0;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
gridbag.setConstraints( relatorioAnualLabel, constraints );
|
|
|
|
|
formalidadesPanel.add( relatorioAnualLabel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.2;
|
|
|
|
|
constraints.gridwidth = 1;
|
|
|
|
|
gridbag.setConstraints( relatorioAnualPanel, constraints );
|
|
|
|
|
formalidadesPanel.add( relatorioAnualPanel );
|
|
|
|
|
|
|
|
|
|
constraints.weightx = 0.4;
|
|
|
|
|
constraints.gridwidth = GridBagConstraints.REMAINDER;
|
|
|
|
|
pad = new JPanel();
|
|
|
|
|
gridbag.setConstraints( pad, constraints );
|
|
|
|
|
@ -708,6 +728,8 @@ public class EmpresaPanel extends JPanel
|
|
|
|
|
components.putComponent( EmpresaData.CONCELHO, concelhoText );
|
|
|
|
|
components.putComponent( EmpresaData.DATA_PROPOSTA, envioPropostaPanel );
|
|
|
|
|
components.putComponent( EmpresaData.DATA_ACEITACAO, aceitacaoPropostaPanel );
|
|
|
|
|
components.putComponent( EmpresaData.INICIO_CONTRATO, inicioContratoPanel );
|
|
|
|
|
components.putComponent( EmpresaData.DURACAO, duracaoContratoText );
|
|
|
|
|
components.putComponent( EmpresaData.DATA_CANCELAMENTO, cancelamentoPanel );
|
|
|
|
|
components.putDummy( EmpresaData.PERFIL_1 );
|
|
|
|
|
components.putDummy( EmpresaData.PERFIL_2);
|
|
|
|
|
|