forked from Coded/SIPRP
				
			git-svn-id: https://svn.coded.pt/svn/SIPRP@839 bb69d46d-e84e-40c8-a05a-06db0d633741
	
		
	
				
					
				
			
							parent
							
								
									59d096c421
								
							
						
					
					
						commit
						29834e56d4
					
				| @ -0,0 +1,59 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import java.util.Vector; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public class AreaToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected String designacao; | ||||||
|  | 	protected Vector<RiscoToPrint> riscos; | ||||||
|  | 	 | ||||||
|  | 	public AreaToPrint( String designacao, Vector<RiscoToPrint> riscos ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.designacao = designacao; | ||||||
|  | 		this.riscos = riscos; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getDesignacao() | ||||||
|  | 	{ | ||||||
|  | 		return designacao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDesignacao( String designacao ) | ||||||
|  | 	{ | ||||||
|  | 		this.designacao = designacao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Vector<RiscoToPrint> getRiscos() | ||||||
|  | 	{ | ||||||
|  | 		return riscos; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setRiscos( Vector<RiscoToPrint> riscos ) | ||||||
|  | 	{ | ||||||
|  | 		this.riscos = riscos; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public void addRisco( RiscoToPrint risco ) | ||||||
|  | 	{ | ||||||
|  | 		riscos.add( risco ); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element areaElement = new Element( "area" ); | ||||||
|  | 		Element designacaoElement = new Element( "designacao" ); | ||||||
|  | 		designacaoElement.setText( designacao ); | ||||||
|  | 		areaElement.addContent( designacaoElement ); | ||||||
|  | 		for( RiscoToPrint risco : riscos ) | ||||||
|  | 		{ | ||||||
|  | 			areaElement.addContent( risco.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		return areaElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -1,19 +0,0 @@ | |||||||
| package siprp.planoactuacao.print; |  | ||||||
| 
 |  | ||||||
| import java.util.Date; |  | ||||||
| import java.util.Vector; |  | ||||||
| 
 |  | ||||||
| public class DadosImpressao |  | ||||||
| { |  | ||||||
| 	protected Integer idPlano; |  | ||||||
| 	protected Integer idEmpresa; |  | ||||||
| 	protected String designacaoEmpresa; |  | ||||||
| 	protected String logotipoEmpresa; |  | ||||||
| 	protected Integer idEstabelecimento; |  | ||||||
| 	protected String designacaoEstabelecimento; |  | ||||||
| 	protected Date data; |  | ||||||
| 	protected Date dataHS; |  | ||||||
| 	protected Vector<String> legislacaoAplicavel; |  | ||||||
| 	protected Vector<String> areas; |  | ||||||
| 	protected Vector<Vector<String>> riscos; |  | ||||||
| } |  | ||||||
| @ -0,0 +1,66 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import java.util.Calendar; | ||||||
|  | import java.util.Date; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | import com.evolute.utils.date.DateUtils; | ||||||
|  | 
 | ||||||
|  | public class DataToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected String tag; | ||||||
|  | 	protected Date data; | ||||||
|  | 	 | ||||||
|  | 	public DataToPrint( String tag, Date data ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.tag = tag; | ||||||
|  | 		this.data = data; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element dataElement = new Element( tag ); | ||||||
|  | 		Calendar cal = Calendar.getInstance(); | ||||||
|  | 		cal.setTime( data ); | ||||||
|  | 		int ano = cal.get( Calendar.YEAR ); | ||||||
|  | 		int mes = cal.get( Calendar.MONTH ); | ||||||
|  | 		int dia = cal.get( Calendar.DAY_OF_MONTH ); | ||||||
|  | 		Element anoElement = new Element( "ano" ); | ||||||
|  | 		anoElement.setText( "" + ano ); | ||||||
|  | 		dataElement.addContent( anoElement ); | ||||||
|  | 		Element mesElement = new Element( "mes" ); | ||||||
|  | 		mesElement.setText( "" + ( mes + 1 ) ); | ||||||
|  | 		dataElement.addContent( mesElement ); | ||||||
|  | 		Element mesExtensoElement = new Element( "mes-extenso" ); | ||||||
|  | 		mesExtensoElement.setText( DateUtils.MONTHS_FULL_PT[ mes ] ); | ||||||
|  | 		dataElement.addContent( mesExtensoElement ); | ||||||
|  | 		Element diaElement = new Element( "dia" ); | ||||||
|  | 		diaElement.setText( "" + dia ); | ||||||
|  | 		dataElement.addContent( diaElement ); | ||||||
|  | 		return dataElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getTag() | ||||||
|  | 	{ | ||||||
|  | 		return tag; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setTag( String tag ) | ||||||
|  | 	{ | ||||||
|  | 		this.tag = tag; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Date getData() | ||||||
|  | 	{ | ||||||
|  | 		return data; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setData( Date data ) | ||||||
|  | 	{ | ||||||
|  | 		this.data = data; | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,67 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public class EmpresaToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected String designacaoSocial; | ||||||
|  | 	protected String logotipo; | ||||||
|  | 	protected String estabelecimento; | ||||||
|  | 	 | ||||||
|  | 	public EmpresaToPrint( String designacaoSocial, String logotipo, | ||||||
|  | 			String estabelecimento ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.designacaoSocial = designacaoSocial; | ||||||
|  | 		this.logotipo = logotipo; | ||||||
|  | 		this.estabelecimento = estabelecimento; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getDesignacaoSocial() | ||||||
|  | 	{ | ||||||
|  | 		return designacaoSocial; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDesignacaoSocial( String designacaoSocial ) | ||||||
|  | 	{ | ||||||
|  | 		this.designacaoSocial = designacaoSocial; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getLogotipo() | ||||||
|  | 	{ | ||||||
|  | 		return logotipo; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setLogotipo( String logotipo ) | ||||||
|  | 	{ | ||||||
|  | 		this.logotipo = logotipo; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getEstabelecimento() | ||||||
|  | 	{ | ||||||
|  | 		return estabelecimento; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setEstabelecimento( String estabelecimento ) | ||||||
|  | 	{ | ||||||
|  | 		this.estabelecimento = estabelecimento; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element empresaElement = new Element( "empresa" ); | ||||||
|  | 		Element designacaoSocialElement = new Element( "designacao-social" ); | ||||||
|  | 		designacaoSocialElement.setText( designacaoSocial ); | ||||||
|  | 		empresaElement.addContent( designacaoSocialElement ); | ||||||
|  | 		Element logotipoElement = new Element( "logotipo" ); | ||||||
|  | 		logotipoElement.setText( logotipo ); | ||||||
|  | 		empresaElement.addContent( logotipoElement ); | ||||||
|  | 		Element estabelecimentoElement = new Element( "estabelecimento" ); | ||||||
|  | 		estabelecimentoElement.setText( estabelecimento ); | ||||||
|  | 		empresaElement.addContent( estabelecimentoElement ); | ||||||
|  | 		return empresaElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,46 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import java.util.Vector; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public class LegislacaoAplicavelToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected Vector<String> diplomas; | ||||||
|  | 	 | ||||||
|  | 	public LegislacaoAplicavelToPrint( Vector<String> diplomas ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.diplomas = diplomas; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public Vector<String> getDiplomas() | ||||||
|  | 	{ | ||||||
|  | 		return diplomas; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDiplomas( Vector<String> diplomas ) | ||||||
|  | 	{ | ||||||
|  | 		this.diplomas = diplomas; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	protected void addDiploma( String diploma ) | ||||||
|  | 	{ | ||||||
|  | 		diplomas.add( diploma ); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element legislacaoAplicavelElement = new Element( "legislacao-aplicavel" ); | ||||||
|  | 		for( String diploma : diplomas ) | ||||||
|  | 		{ | ||||||
|  | 			Element diplomaElement = new Element( "diploma" ); | ||||||
|  | 			diplomaElement.setText( diploma ); | ||||||
|  | 			legislacaoAplicavelElement.addContent( diploma ); | ||||||
|  | 		} | ||||||
|  | 		return legislacaoAplicavelElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,58 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import java.util.Vector; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public class MedidaToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected String descricao; | ||||||
|  | 	protected Vector<PostoToPrint> postos; | ||||||
|  | 	 | ||||||
|  | 	public MedidaToPrint( String descricao, Vector<PostoToPrint> postos ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.descricao = descricao; | ||||||
|  | 		this.postos = postos; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element medidaElement = new Element( "medida" ); | ||||||
|  | 		Element descricaoElement = new Element( "descricao" ); | ||||||
|  | 		descricaoElement.setText( descricao ); | ||||||
|  | 		medidaElement.addContent( descricaoElement ); | ||||||
|  | 		for( PostoToPrint posto : postos ) | ||||||
|  | 		{ | ||||||
|  | 			medidaElement.addContent( posto.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		return medidaElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getDescricao() | ||||||
|  | 	{ | ||||||
|  | 		return descricao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDescricao( String descricao ) | ||||||
|  | 	{ | ||||||
|  | 		this.descricao = descricao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Vector<PostoToPrint> getPostos() | ||||||
|  | 	{ | ||||||
|  | 		return postos; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setPostos( Vector<PostoToPrint> postos ) | ||||||
|  | 	{ | ||||||
|  | 		this.postos = postos; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public void addPosto( PostoToPrint posto ) | ||||||
|  | 	{ | ||||||
|  | 		postos.add( posto ); | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,104 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import java.util.Vector; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public class PlanoActuacaoToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected EmpresaToPrint empresa; | ||||||
|  | 	protected DataToPrint data; | ||||||
|  | 	protected DataToPrint dataHs; | ||||||
|  | 	protected LegislacaoAplicavelToPrint legislacaoAplicavel; | ||||||
|  | 	protected Vector<AreaToPrint> areas; | ||||||
|  | 
 | ||||||
|  | 	public PlanoActuacaoToPrint( EmpresaToPrint empresa, DataToPrint data, | ||||||
|  | 			DataToPrint dataHs, LegislacaoAplicavelToPrint legislacaoAplicavel, | ||||||
|  | 			Vector<AreaToPrint> areas ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.empresa = empresa; | ||||||
|  | 		this.data = data; | ||||||
|  | 		this.dataHs = dataHs; | ||||||
|  | 		this.legislacaoAplicavel = legislacaoAplicavel; | ||||||
|  | 		this.areas = areas; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public EmpresaToPrint getEmpresa() | ||||||
|  | 	{ | ||||||
|  | 		return empresa; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setEmpresa( EmpresaToPrint empresa ) | ||||||
|  | 	{ | ||||||
|  | 		this.empresa = empresa; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public DataToPrint getData() | ||||||
|  | 	{ | ||||||
|  | 		return data; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setData( DataToPrint data ) | ||||||
|  | 	{ | ||||||
|  | 		this.data = data; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public DataToPrint getDataHs() | ||||||
|  | 	{ | ||||||
|  | 		return dataHs; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDataHs( DataToPrint dataHs ) | ||||||
|  | 	{ | ||||||
|  | 		this.dataHs = dataHs; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public LegislacaoAplicavelToPrint getLegislacaoAplicavel() | ||||||
|  | 	{ | ||||||
|  | 		return legislacaoAplicavel; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setLegislacaoAplicavel( | ||||||
|  | 			LegislacaoAplicavelToPrint legislacaoAplicavel ) | ||||||
|  | 	{ | ||||||
|  | 		this.legislacaoAplicavel = legislacaoAplicavel; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Vector<AreaToPrint> getAreas() | ||||||
|  | 	{ | ||||||
|  | 		return areas; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setAreas( Vector<AreaToPrint> areas ) | ||||||
|  | 	{ | ||||||
|  | 		this.areas = areas; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public void addArea( AreaToPrint area ) | ||||||
|  | 	{ | ||||||
|  | 		areas.add( area ); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element planoElement = new Element( "plano" ); | ||||||
|  | 		planoElement.addContent( empresa.toJdomElement() ); | ||||||
|  | 		planoElement.addContent( data.toJdomElement() ); | ||||||
|  | 		planoElement.addContent( dataHs.toJdomElement() ); | ||||||
|  | 		planoElement.addContent( legislacaoAplicavel.toJdomElement() ); | ||||||
|  | 		if( areas.size() > 0 ) | ||||||
|  | 		{ | ||||||
|  | 			Element conclusoesElement = new Element( "conclusoes" ); | ||||||
|  | 			for( AreaToPrint area : areas ) | ||||||
|  | 			{ | ||||||
|  | 				conclusoesElement.addContent( area.toJdomElement() ); | ||||||
|  | 			} | ||||||
|  | 			planoElement.addContent( conclusoesElement ); | ||||||
|  | 		} | ||||||
|  | 		return planoElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,36 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | public class PostoToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected String designacao; | ||||||
|  | 	 | ||||||
|  | 	public PostoToPrint( String designacao ) | ||||||
|  | 	{ | ||||||
|  | 		this.designacao = designacao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() | ||||||
|  | 		throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element postoElement = new Element( "posto" ); | ||||||
|  | 		Element designacaoElement = new Element( "designacao" ); | ||||||
|  | 		designacaoElement.setText( designacao ); | ||||||
|  | 		postoElement.addContent( designacaoElement ); | ||||||
|  | 		return postoElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getDesignacao() | ||||||
|  | 	{ | ||||||
|  | 		return designacao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDesignacao( String designacao ) | ||||||
|  | 	{ | ||||||
|  | 		this.designacao = designacao; | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,8 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public interface PrintableInterface | ||||||
|  | { | ||||||
|  | 	public Element toJdomElement() throws Exception; | ||||||
|  | } | ||||||
| @ -0,0 +1,202 @@ | |||||||
|  | package siprp.planoactuacao.print; | ||||||
|  | 
 | ||||||
|  | import java.util.Vector; | ||||||
|  | 
 | ||||||
|  | import org.jdom.Element; | ||||||
|  | 
 | ||||||
|  | public class RiscoToPrint | ||||||
|  | 	implements PrintableInterface | ||||||
|  | { | ||||||
|  | 	protected String descricao; | ||||||
|  | 	protected Integer valor; | ||||||
|  | 	protected Vector<MedidaToPrint> medidas; | ||||||
|  | 	protected String responsavel; | ||||||
|  | 	protected String recursos; | ||||||
|  | 	protected DataToPrint dataPrevistaInicio; | ||||||
|  | 	protected DataToPrint dataPrevistaConclusao; | ||||||
|  | 	protected DataToPrint dataPropostaDns; | ||||||
|  | 	protected DataToPrint dataConclusao; | ||||||
|  | 	protected String parecerDl; | ||||||
|  | 	protected String parecerDns; | ||||||
|  | 	 | ||||||
|  | 	public RiscoToPrint( String descricao, Integer valor, | ||||||
|  | 			Vector<MedidaToPrint> medidas, String responsavel, String recursos, | ||||||
|  | 			DataToPrint dataPrevistaInicio, DataToPrint dataPrevistaConclusao, | ||||||
|  | 			DataToPrint dataPropostaDns, DataToPrint dataConclusao, | ||||||
|  | 			String parecerDl, String parecerDns ) | ||||||
|  | 	{ | ||||||
|  | 		super(); | ||||||
|  | 		this.descricao = descricao; | ||||||
|  | 		this.valor = valor; | ||||||
|  | 		this.medidas = medidas; | ||||||
|  | 		this.responsavel = responsavel; | ||||||
|  | 		this.recursos = recursos; | ||||||
|  | 		this.dataPrevistaInicio = dataPrevistaInicio; | ||||||
|  | 		this.dataPrevistaConclusao = dataPrevistaConclusao; | ||||||
|  | 		this.dataPropostaDns = dataPropostaDns; | ||||||
|  | 		this.dataConclusao = dataConclusao; | ||||||
|  | 		this.parecerDl = parecerDl; | ||||||
|  | 		this.parecerDns = parecerDns; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public Element toJdomElement() throws Exception | ||||||
|  | 	{ | ||||||
|  | 		Element riscoElement = new Element( "risco" ); | ||||||
|  | 		Element descricaoElement = new Element( "descricao" ); | ||||||
|  | 		descricaoElement.setText( descricao ); | ||||||
|  | 		riscoElement.addContent( descricaoElement ); | ||||||
|  | 		Element valorElement = new Element( "valor" ); | ||||||
|  | 		valorElement.setText( valor != null ? valor.toString() : " " ); | ||||||
|  | 		riscoElement.addContent( valorElement ); | ||||||
|  | 		for( MedidaToPrint medida : medidas ) | ||||||
|  | 		{ | ||||||
|  | 			riscoElement.addContent( medida.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		Element responsavelElement = new Element( "responsavel" ); | ||||||
|  | 		responsavelElement.setText( responsavel ); | ||||||
|  | 		riscoElement.addContent( responsavelElement ); | ||||||
|  | 		Element recursosElement = new Element( "recursos" ); | ||||||
|  | 		recursosElement.setText( recursos ); | ||||||
|  | 		riscoElement.addContent( recursosElement ); | ||||||
|  | 		if( dataPrevistaInicio != null ) | ||||||
|  | 		{ | ||||||
|  | 			riscoElement.addContent( dataPrevistaInicio.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		if( dataPrevistaConclusao != null ) | ||||||
|  | 		{ | ||||||
|  | 			riscoElement.addContent( dataPrevistaConclusao.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		if( dataPropostaDns != null ) | ||||||
|  | 		{ | ||||||
|  | 			riscoElement.addContent( dataPropostaDns.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		if( dataConclusao != null ) | ||||||
|  | 		{ | ||||||
|  | 			riscoElement.addContent( dataConclusao.toJdomElement() ); | ||||||
|  | 		} | ||||||
|  | 		Element parecerDlElement = new Element( "parecer-dl" ); | ||||||
|  | 		parecerDlElement.setText( parecerDl ); | ||||||
|  | 		riscoElement.addContent( parecerDlElement ); | ||||||
|  | 		Element parecerDnsElement = new Element( "parecer-dns" ); | ||||||
|  | 		parecerDnsElement.setText( parecerDns ); | ||||||
|  | 		riscoElement.addContent( parecerDnsElement ); | ||||||
|  | 		return riscoElement; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getDescricao() | ||||||
|  | 	{ | ||||||
|  | 		return descricao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDescricao( String descricao ) | ||||||
|  | 	{ | ||||||
|  | 		this.descricao = descricao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Integer getValor() | ||||||
|  | 	{ | ||||||
|  | 		return valor; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setValor( Integer valor ) | ||||||
|  | 	{ | ||||||
|  | 		this.valor = valor; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Vector<MedidaToPrint> getMedidas() | ||||||
|  | 	{ | ||||||
|  | 		return medidas; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setMedidas( Vector<MedidaToPrint> medidas ) | ||||||
|  | 	{ | ||||||
|  | 		this.medidas = medidas; | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
|  | 	public void addMedida( MedidaToPrint medida ) | ||||||
|  | 	{ | ||||||
|  | 		medidas.add( medida ); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getResponsavel() | ||||||
|  | 	{ | ||||||
|  | 		return responsavel; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setResponsavel( String responsavel ) | ||||||
|  | 	{ | ||||||
|  | 		this.responsavel = responsavel; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getRecursos() | ||||||
|  | 	{ | ||||||
|  | 		return recursos; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setRecursos( String recursos ) | ||||||
|  | 	{ | ||||||
|  | 		this.recursos = recursos; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public DataToPrint getDataPrevistaInicio() | ||||||
|  | 	{ | ||||||
|  | 		return dataPrevistaInicio; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDataPrevistaInicio( DataToPrint dataPrevistaInicio ) | ||||||
|  | 	{ | ||||||
|  | 		this.dataPrevistaInicio = dataPrevistaInicio; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public DataToPrint getDataPrevistaConclusao() | ||||||
|  | 	{ | ||||||
|  | 		return dataPrevistaConclusao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDataPrevistaConclusao( DataToPrint dataPrevistaConclusao ) | ||||||
|  | 	{ | ||||||
|  | 		this.dataPrevistaConclusao = dataPrevistaConclusao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public DataToPrint getDataPropostaDns() | ||||||
|  | 	{ | ||||||
|  | 		return dataPropostaDns; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDataPropostaDns( DataToPrint dataPropostaDns ) | ||||||
|  | 	{ | ||||||
|  | 		this.dataPropostaDns = dataPropostaDns; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public DataToPrint getDataConclusao() | ||||||
|  | 	{ | ||||||
|  | 		return dataConclusao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDataConclusao( DataToPrint dataConclusao ) | ||||||
|  | 	{ | ||||||
|  | 		this.dataConclusao = dataConclusao; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getParecerDl() | ||||||
|  | 	{ | ||||||
|  | 		return parecerDl; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setParecerDl( String parecerDl ) | ||||||
|  | 	{ | ||||||
|  | 		this.parecerDl = parecerDl; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getParecerDns() | ||||||
|  | 	{ | ||||||
|  | 		return parecerDns; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setParecerDns( String parecerDns ) | ||||||
|  | 	{ | ||||||
|  | 		this.parecerDns = parecerDns; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | } | ||||||
											
												
													File diff suppressed because it is too large
													Load Diff
												
											
										
									
								
											
												
													File diff suppressed because it is too large
													Load Diff
												
											
										
									
								
					Loading…
					
					
				
		Reference in new issue