forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@976 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
5592f813b9
commit
14dd99e131
@ -0,0 +1,27 @@
|
|||||||
|
package siprp.higiene.relatorio.print;
|
||||||
|
|
||||||
|
import org.jdom.Element;
|
||||||
|
|
||||||
|
public class EquipamentoToPrint
|
||||||
|
implements PrintableInterface
|
||||||
|
{
|
||||||
|
protected String tipo;
|
||||||
|
protected String marca;
|
||||||
|
protected String modelo;
|
||||||
|
|
||||||
|
public EquipamentoToPrint( String tipo, String marca, String modelo )
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
this.tipo = tipo;
|
||||||
|
this.marca = marca;
|
||||||
|
this.modelo = modelo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Element toJdomElement() throws Exception
|
||||||
|
{
|
||||||
|
Element equipamentoElement = new Element( "equipamento" );
|
||||||
|
equipamentoElement.setText( tipo + "( " + marca + " " + modelo + " )" );
|
||||||
|
return equipamentoElement;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
package siprp.higiene.relatorio.print;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import org.jdom.Element;
|
||||||
|
|
||||||
|
public class EquipamentosToPrint
|
||||||
|
implements PrintableInterface
|
||||||
|
{
|
||||||
|
protected EquipamentoToPrint equipamentos[];
|
||||||
|
|
||||||
|
public EquipamentosToPrint( EquipamentoToPrint[] equipamentos )
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
this.equipamentos = equipamentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Element toJdomElement()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
|
Element equipamentosElement = new Element( "equipamentos" );
|
||||||
|
equipamentosElement.addContent( Arrays.asList( equipamentos ) );
|
||||||
|
return equipamentosElement;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue