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.
44 lines
1.2 KiB
44 lines
1.2 KiB
package siprp.higiene.relatorio.print;
|
|
|
|
import org.jdom.Element;
|
|
|
|
public class TecnicoHSToPrint
|
|
implements PrintableInterface
|
|
{
|
|
protected Integer id;
|
|
protected String nome;
|
|
protected String cap;
|
|
protected String formacao;
|
|
protected Integer assinatura;
|
|
|
|
public TecnicoHSToPrint( Integer id, String nome, String cap,
|
|
String formacao, Integer assinatura )
|
|
{
|
|
super();
|
|
this.id = id;
|
|
this.nome = nome;
|
|
this.cap = cap;
|
|
this.formacao = formacao;
|
|
this.assinatura = assinatura;
|
|
}
|
|
|
|
@Override
|
|
public Element toJdomElement() throws Exception
|
|
{
|
|
Element tecnicoHSElement = new Element( "tecnico-hs" );
|
|
Element nomeElement = new Element( "nome" );
|
|
nomeElement.setText( nome );
|
|
tecnicoHSElement.addContent( nomeElement );
|
|
Element capElement = new Element( "cap" );
|
|
capElement.setText( cap );
|
|
tecnicoHSElement.addContent( capElement );
|
|
Element formacaoElement = new Element( "formacao" );
|
|
formacaoElement.setText( formacao );
|
|
tecnicoHSElement.addContent( formacaoElement );
|
|
Element assinaturaElement = new Element( "assinatura" );
|
|
assinaturaElement.setText( "" + assinatura );
|
|
tecnicoHSElement.addContent( assinaturaElement );
|
|
return tecnicoHSElement;
|
|
}
|
|
}
|