forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.0 KiB
62 lines
1.0 KiB
/*
|
|
* TrabalhadoresData.java
|
|
*
|
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
|
*
|
|
* Edit at will
|
|
*/
|
|
package siprp.data.outer;
|
|
|
|
import java.sql.Timestamp;
|
|
import java.util.HashMap;
|
|
|
|
import com.evolute.entity.evo.EvoDataException;
|
|
|
|
|
|
public final class TrabalhadoresData extends siprp.data.inner.Trabalhadores
|
|
{
|
|
|
|
public TrabalhadoresData()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public String getDataNascimentoString()
|
|
{
|
|
return getData_nascimento() == null ? "" : DATE_FORMAT.format( getData_nascimento() );
|
|
}
|
|
|
|
@Override
|
|
public void save() throws EvoDataException
|
|
{
|
|
if( getInactivo() == null )
|
|
{
|
|
setInactivo( "n" );
|
|
}
|
|
setActualizacao( new Timestamp(System.currentTimeMillis() ) );
|
|
super.save();
|
|
}
|
|
|
|
@Override
|
|
public void delete() throws EvoDataException
|
|
{
|
|
setInactivo( "y" );
|
|
save();
|
|
}
|
|
|
|
public HashMap<String, String> getSexos()
|
|
{
|
|
HashMap<String, String> result = new HashMap<String, String>();
|
|
result.put("f", "Feminino");
|
|
result.put( "m", "Masculino" );
|
|
return result;
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
return getNome();
|
|
}
|
|
|
|
}
|