|
|
|
|
@ -17,6 +17,7 @@ import com.evolute.utils.ui.*;
|
|
|
|
|
import com.evolute.utils.ui.panel.*;
|
|
|
|
|
|
|
|
|
|
import siprp.*;
|
|
|
|
|
import siprp.importer.*;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @author fpalma
|
|
|
|
|
@ -333,4 +334,58 @@ public class TrabalhadorPanel extends JPanel
|
|
|
|
|
String names[] = (String[])components.keySet().toArray( new String[0] );
|
|
|
|
|
ComponentController.setEnabled( names, enable, components );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setData( Hashtable data )
|
|
|
|
|
{
|
|
|
|
|
String nome = (String)data.get( Importer.NOME );
|
|
|
|
|
if( nome != null && nome.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
nomeText.setText( nome );
|
|
|
|
|
}
|
|
|
|
|
String sexo = (String)data.get( Importer.SEXO );
|
|
|
|
|
if( sexo != null && sexo.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
Integer sexoInt;
|
|
|
|
|
if( sexo.trim().toLowerCase().charAt(0) == 'f' )
|
|
|
|
|
{
|
|
|
|
|
sexoInt = new Integer( 2 );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
sexoInt = new Integer( 1 );
|
|
|
|
|
}
|
|
|
|
|
sexoPanel.fill( sexoInt );
|
|
|
|
|
}
|
|
|
|
|
String nacionalidade = (String)data.get( Importer.NACIONALIDADE );
|
|
|
|
|
if( nacionalidade != null && nacionalidade.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
nacionalidadeText.setText( nacionalidade );
|
|
|
|
|
}
|
|
|
|
|
String dataNascimento = (String)data.get( Importer.DATA_NASCIMENTO );
|
|
|
|
|
|
|
|
|
|
String numeroMecanografico = (String)data.get( Importer.NUMERO_MECANOGRAFICO );
|
|
|
|
|
if( numeroMecanografico != null && numeroMecanografico.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
numeroMecanograficoText.setText( numeroMecanografico );
|
|
|
|
|
}
|
|
|
|
|
String dataAdmissao = (String)data.get( Importer.DATA_ADMISSAO );
|
|
|
|
|
|
|
|
|
|
String categoria = (String)data.get( Importer.CATEGORIA );
|
|
|
|
|
if( categoria != null && categoria.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
categoriaText.setText( categoria );
|
|
|
|
|
}
|
|
|
|
|
String localTrabalho = (String)data.get( Importer.LOCAL_TRABALHO );
|
|
|
|
|
if( localTrabalho != null && localTrabalho.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
localText.setText( localTrabalho );
|
|
|
|
|
}
|
|
|
|
|
String funcao = (String)data.get( Importer.FUNCAO );
|
|
|
|
|
if( funcao != null && funcao.trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
funcaoText.setText( funcao );
|
|
|
|
|
}
|
|
|
|
|
String dataAdmissaoFuncao = (String)data.get( Importer.DATA_ADMISSAO_FUNCAO );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|