forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1188 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
6b9cc7c8ea
commit
9be18ff2ed
@ -0,0 +1,43 @@
|
|||||||
|
package siprp.planoactuacao.print;
|
||||||
|
|
||||||
|
import org.jdom.Element;
|
||||||
|
|
||||||
|
public class TecnicoHSToPrint
|
||||||
|
implements PrintableInterface
|
||||||
|
{
|
||||||
|
protected Integer id;
|
||||||
|
protected String nome;
|
||||||
|
protected String cap;
|
||||||
|
protected String formacao;
|
||||||
|
protected String assinatura;
|
||||||
|
|
||||||
|
public TecnicoHSToPrint( Integer id, String nome, String cap,
|
||||||
|
String formacao, String 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue