|
|
|
@ -17,12 +17,14 @@ import db.entidades.Medida;
|
|
|
|
import db.entidades.PlanoActuacao;
|
|
|
|
import db.entidades.PlanoActuacao;
|
|
|
|
import db.entidades.PostoTrabalho;
|
|
|
|
import db.entidades.PostoTrabalho;
|
|
|
|
import db.entidades.Risco;
|
|
|
|
import db.entidades.Risco;
|
|
|
|
import db.entidades.Valor;
|
|
|
|
|
|
|
|
import db.providers.UtilizadoresLogic;
|
|
|
|
import db.providers.UtilizadoresLogic;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
|
|
|
import java.util.Comparator;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import javax.faces.FacesException;
|
|
|
|
import javax.faces.FacesException;
|
|
|
|
import javax.faces.component.html.HtmlPanelGrid;
|
|
|
|
import javax.faces.component.html.HtmlPanelGrid;
|
|
|
|
|
|
|
|
import javax.sound.midi.SysexMessage;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <p>Page bean that corresponds to a similarly named JSP page. This
|
|
|
|
* <p>Page bean that corresponds to a similarly named JSP page. This
|
|
|
|
@ -197,14 +199,12 @@ public class ViewPlano extends AbstractPageBean
|
|
|
|
{
|
|
|
|
{
|
|
|
|
System.out.println( "\nViewPlano . showPlano( " + p.getId() + " ) : \n" );
|
|
|
|
System.out.println( "\nViewPlano . showPlano( " + p.getId() + " ) : \n" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gridPlano = new HtmlPanelGrid();
|
|
|
|
gridPlano = new HtmlPanelGrid();
|
|
|
|
gridPlano.setId("gridPlano");
|
|
|
|
gridPlano.setId( "gridPlano" );
|
|
|
|
gridPlano.setWidth("100%");
|
|
|
|
gridPlano.setWidth( "100%" );
|
|
|
|
gridPlano.setColumns(1);
|
|
|
|
gridPlano.setColumns( 1 );
|
|
|
|
gridPlano.setStyle("background-color: #f6f4e8; border: solid 1px #000000");
|
|
|
|
gridPlano.setStyle( "background-color: #f6f4e8; border: solid 1px #000000" );
|
|
|
|
gridPlano.setColumnClasses("gridColCenter");
|
|
|
|
gridPlano.setColumnClasses( "gridColCenter" );
|
|
|
|
//plano
|
|
|
|
|
|
|
|
//lblTop.setText("Plano de actuação da auditoria " + p.getData_visita_str());
|
|
|
|
//lblTop.setText("Plano de actuação da auditoria " + p.getData_visita_str());
|
|
|
|
|
|
|
|
|
|
|
|
if ( p.getConcluidoPorDesactivacao() )
|
|
|
|
if ( p.getConcluidoPorDesactivacao() )
|
|
|
|
@ -214,97 +214,101 @@ public class ViewPlano extends AbstractPageBean
|
|
|
|
st.setStyle( "color: #FF0000; font-weight: bold; font-size: 13px;" );
|
|
|
|
st.setStyle( "color: #FF0000; font-weight: bold; font-size: 13px;" );
|
|
|
|
gridPlano.getChildren().add( st );
|
|
|
|
gridPlano.getChildren().add( st );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gridLayout.getChildren().add(gridPlano);
|
|
|
|
gridLayout.getChildren().add( gridPlano );
|
|
|
|
showAreas(p.getAreas());
|
|
|
|
showAreas( p.getAreas() );
|
|
|
|
showValidacoes(gridPlano, p);
|
|
|
|
showValidacoes( gridPlano, p );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void showAreas(List<Area> areas)
|
|
|
|
private void showAreas( List< Area > areas )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
int i = 0;
|
|
|
|
for(Area area : areas)
|
|
|
|
for( Area area : areas )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
gridArea = new HtmlPanelGrid();
|
|
|
|
gridArea = new HtmlPanelGrid();
|
|
|
|
gridArea.setColumns(1);
|
|
|
|
gridArea.setColumns( 1 );
|
|
|
|
gridArea.setColumnClasses("gridColCenter");
|
|
|
|
gridArea.setColumnClasses( "gridColCenter" );
|
|
|
|
gridArea.setWidth("100%");
|
|
|
|
gridArea.setWidth( "100%" );
|
|
|
|
|
|
|
|
|
|
|
|
gridPlano.getChildren().add(gridArea);
|
|
|
|
gridPlano.getChildren().add( gridArea );
|
|
|
|
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setText("Área: ");
|
|
|
|
st.setText( "Área: " );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setId("fakeLink" + i);
|
|
|
|
st.setId( "fakeLink" + i );
|
|
|
|
st.setStyleClass("fakeLink");
|
|
|
|
st.setStyleClass( "fakeLink" );
|
|
|
|
st.setOnMouseOver("this.style.textDecoration = 'underline'");
|
|
|
|
st.setOnMouseOver( "this.style.textDecoration = 'underline'" );
|
|
|
|
st.setOnMouseOut("this.style.textDecoration = 'none'");
|
|
|
|
st.setOnMouseOut( "this.style.textDecoration = 'none'" );
|
|
|
|
st.setOnClick("expand(this)");
|
|
|
|
st.setOnClick( "expand(this)" );
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setText(area.getDescricao());
|
|
|
|
st.setText( area.getDescricao() );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
|
|
|
|
|
|
|
gridArea.getChildren().add(pg);
|
|
|
|
gridArea.getChildren().add( pg );
|
|
|
|
|
|
|
|
|
|
|
|
gridAreaContainer = new HtmlPanelGrid();
|
|
|
|
gridAreaContainer = new HtmlPanelGrid();
|
|
|
|
gridAreaContainer.setId("area_container" + i);
|
|
|
|
gridAreaContainer.setId( "area_container" + i );
|
|
|
|
////gridAreaContainer.setStyle("border: solid 1px #000000; width: 100%;");
|
|
|
|
////gridAreaContainer.setStyle("border: solid 1px #000000; width: 100%;");
|
|
|
|
gridAreaContainer.setStyleClass("hidden");
|
|
|
|
gridAreaContainer.setStyleClass( "hidden" );
|
|
|
|
//gridAreaContainer.setStyleClass("visible");
|
|
|
|
//gridAreaContainer.setStyleClass("visible");
|
|
|
|
gridAreaContainer.setColumns(1);
|
|
|
|
gridAreaContainer.setColumns( 1 );
|
|
|
|
gridAreaContainer.setColumnClasses("gridColLeft");
|
|
|
|
gridAreaContainer.setColumnClasses( "gridColLeft" );
|
|
|
|
gridAreaContainer.setWidth("100%");
|
|
|
|
gridAreaContainer.setWidth( "100%" );
|
|
|
|
|
|
|
|
|
|
|
|
// st = new StaticText();
|
|
|
|
gridArea.getChildren().add( gridAreaContainer );
|
|
|
|
// st.setEscape(false);
|
|
|
|
showRiscos( area.getRiscos() );
|
|
|
|
// st.setText("AAAAAAAAA");
|
|
|
|
|
|
|
|
// gridAreaContainer.getChildren().add(st);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gridArea.getChildren().add(gridAreaContainer);
|
|
|
|
|
|
|
|
showRiscos(area.getRiscos());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void showRiscos(List<Risco> riscos)
|
|
|
|
private void showRiscos( List< Risco > riscos )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int rCount = 0;
|
|
|
|
int rCount = 0;
|
|
|
|
for(Risco risco : riscos)
|
|
|
|
Collections.sort( riscos, new Comparator< Risco >()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
public int compare( Risco o1, Risco o2 )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// false first, true after
|
|
|
|
|
|
|
|
return o1.getIsPatrimonial().compareTo( o2.getIsPatrimonial() );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ( Risco risco : riscos )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
grd.setColumns(1);
|
|
|
|
grd.setColumns( 1 );
|
|
|
|
grd.setColumnClasses("gridColLeft");
|
|
|
|
grd.setColumnClasses( "gridColLeft" );
|
|
|
|
//grd.setStyle("border: solid 1px #0000FF; display: inline; width: 100%");
|
|
|
|
//grd.setStyle("border: solid 1px #0000FF; display: inline; width: 100%");
|
|
|
|
grd.setStyle("display: block; width: 100%");
|
|
|
|
grd.setStyle( "display: block; width: 100%" );
|
|
|
|
grd.setWidth("100%");
|
|
|
|
grd.setWidth( "100%" );
|
|
|
|
//grd.setStyleClass("centerBlock");
|
|
|
|
//grd.setStyleClass("centerBlock");
|
|
|
|
//gridArea.getChildren().add(grd);
|
|
|
|
//gridArea.getChildren().add(grd);
|
|
|
|
gridAreaContainer.getChildren().add(grd);
|
|
|
|
gridAreaContainer.getChildren().add( grd );
|
|
|
|
|
|
|
|
|
|
|
|
gridRisco = new HtmlPanelGrid();
|
|
|
|
gridRisco = new HtmlPanelGrid();
|
|
|
|
//gridRisco.setStyleClass("centerBlock");
|
|
|
|
//gridRisco.setStyleClass("centerBlock");
|
|
|
|
gridRisco.setStyle("display: block; width: 98%");
|
|
|
|
gridRisco.setStyle( "display: block; width: 98%" );
|
|
|
|
gridRisco.setWidth("98%");
|
|
|
|
gridRisco.setWidth( "98%" );
|
|
|
|
gridRisco.setColumns(1);
|
|
|
|
gridRisco.setColumns( 1 );
|
|
|
|
gridRisco.setColumnClasses("gridColLeft");
|
|
|
|
gridRisco.setColumnClasses( "gridColLeft" );
|
|
|
|
grd.getChildren().add(gridRisco);
|
|
|
|
grd.getChildren().add( gridRisco );
|
|
|
|
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setText("Risco: ");
|
|
|
|
st.setText( "Risco: " );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setText(risco.getDescricao());
|
|
|
|
st.setText( risco.getDescricao() );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridRisco.getChildren().add(pg);
|
|
|
|
gridRisco.getChildren().add( pg );
|
|
|
|
//showValores(risco.getValores());
|
|
|
|
//showValores(risco.getValores());
|
|
|
|
showValor(risco);
|
|
|
|
showValor( risco );
|
|
|
|
//showMedidas(risco.getMedidas());
|
|
|
|
//showMedidas(risco.getMedidas());
|
|
|
|
|
|
|
|
|
|
|
|
if ( rCount < riscos.size() - 1 )
|
|
|
|
if ( rCount < riscos.size() - 1 )
|
|
|
|
@ -316,403 +320,400 @@ public class ViewPlano extends AbstractPageBean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void showValor(Risco r)
|
|
|
|
private void showValor( Risco r )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
grd.setColumns(1);
|
|
|
|
grd.setColumns( 1 );
|
|
|
|
grd.setWidth("100%");
|
|
|
|
grd.setWidth( "100%" );
|
|
|
|
grd.setStyleClass("centerBlock");
|
|
|
|
grd.setStyleClass( "centerBlock" );
|
|
|
|
grd.setStyle("display: block");
|
|
|
|
grd.setStyle( "display: block" );
|
|
|
|
//gridRisco.getChildren().add(grd);
|
|
|
|
//gridRisco.getChildren().add(grd);
|
|
|
|
|
|
|
|
|
|
|
|
gridValor = new HtmlPanelGrid();
|
|
|
|
gridValor = new HtmlPanelGrid();
|
|
|
|
gridRisco.getChildren().add(gridValor);
|
|
|
|
gridRisco.getChildren().add( gridValor );
|
|
|
|
//gridValor.setStyleClass("centerBlock");
|
|
|
|
//gridValor.setStyleClass("centerBlock");
|
|
|
|
gridValor.setStyle("display: block");
|
|
|
|
gridValor.setStyle( "display: block" );
|
|
|
|
gridValor.setWidth("100%");
|
|
|
|
gridValor.setWidth( "100%" );
|
|
|
|
gridValor.setColumns(1);
|
|
|
|
gridValor.setColumns( 1 );
|
|
|
|
gridValor.setColumnClasses("gridColLeft");
|
|
|
|
gridValor.setColumnClasses( "gridColLeft" );
|
|
|
|
//grd.getChildren().add(gridValor);
|
|
|
|
//grd.getChildren().add(gridValor);
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setText("Valor: ");
|
|
|
|
st.setText( "Valor: " );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
if(r.getValor() == null)
|
|
|
|
if ( r.getValor() == null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
st.setText("IND");
|
|
|
|
st.setText( "IND" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
st.setText(r.getValor().toString());
|
|
|
|
st.setText( r.getValor().toString() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridValor.getChildren().add(pg);
|
|
|
|
gridValor.getChildren().add( pg );
|
|
|
|
|
|
|
|
|
|
|
|
showMedidas(r.getMedidas());
|
|
|
|
showMedidas( r.getMedidas() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
grd = new HtmlPanelGrid();
|
|
|
|
|
|
|
|
grd.setColumns( 1 );
|
|
|
|
|
|
|
|
grd.setWidth( "100%" );
|
|
|
|
|
|
|
|
//grd.setStyleClass("centerBlock");
|
|
|
|
|
|
|
|
gridValor.getChildren().add( grd );
|
|
|
|
|
|
|
|
HtmlPanelGrid gridParecer = new HtmlPanelGrid();
|
|
|
|
|
|
|
|
gridParecer.setStyleClass( "centerBlock" );
|
|
|
|
|
|
|
|
gridParecer.setStyle( "display: block" );
|
|
|
|
|
|
|
|
gridParecer.setWidth( "98%" );
|
|
|
|
|
|
|
|
gridParecer.setColumns( 1 );
|
|
|
|
|
|
|
|
gridParecer.setColumnClasses( "gridColLeft" );
|
|
|
|
|
|
|
|
grd.getChildren().add( gridParecer );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( r.getResponsavel_execucao() != null )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if ( r.getResponsavel_execucao().trim().length() > 0 )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
|
|
|
|
st.setText( "Responsável de execução: " );
|
|
|
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
|
|
|
st.setText( r.getResponsavel_execucao().toString() );
|
|
|
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( r.getPor() != null )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if ( r.getPor().trim().length() > 0 )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
|
|
|
st.setText( " " );
|
|
|
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
|
|
|
|
st.setText( "POR: " );
|
|
|
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
|
|
|
st.setText( r.getPor().toString() );
|
|
|
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
grd = new HtmlPanelGrid();
|
|
|
|
if ( r.getRecursos_necessarios() != null )
|
|
|
|
grd.setColumns(1);
|
|
|
|
{
|
|
|
|
grd.setWidth("100%");
|
|
|
|
if ( r.getRecursos_necessarios().trim().length() > 0 )
|
|
|
|
//grd.setStyleClass("centerBlock");
|
|
|
|
{
|
|
|
|
gridValor.getChildren().add(grd);
|
|
|
|
pg = new PanelGroup();
|
|
|
|
HtmlPanelGrid gridParecer = new HtmlPanelGrid();
|
|
|
|
st = new StaticText();
|
|
|
|
gridParecer.setStyleClass("centerBlock");
|
|
|
|
st.setEscape( false );
|
|
|
|
gridParecer.setStyle("display: block");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
gridParecer.setWidth("98%");
|
|
|
|
st.setText( "Recursos necessários: " );
|
|
|
|
gridParecer.setColumns(1);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridParecer.setColumnClasses("gridColLeft");
|
|
|
|
st = new StaticText();
|
|
|
|
grd.getChildren().add(gridParecer);
|
|
|
|
st.setEscape( false );
|
|
|
|
|
|
|
|
st.setText( r.getRecursos_necessarios().toString() );
|
|
|
|
if(r.getResponsavel_execucao() != null)
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
{
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
if(r.getResponsavel_execucao().trim().length() > 0)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
}
|
|
|
|
pg = new PanelGroup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setStyleClass("label");
|
|
|
|
|
|
|
|
st.setText("Responsável de execução: ");
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setText(r.getResponsavel_execucao().toString());
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getPor() != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(r.getPor().trim().length() > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setText(" ");
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setStyleClass("label");
|
|
|
|
|
|
|
|
st.setText("POR: ");
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setText(r.getPor().toString());
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getRecursos_necessarios() != null)
|
|
|
|
if ( r.getData_inicio() != null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(r.getRecursos_necessarios().trim().length() > 0)
|
|
|
|
pg = new PanelGroup();
|
|
|
|
{
|
|
|
|
st = new StaticText();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st.setEscape( false );
|
|
|
|
st = new StaticText();
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setText( "Data início: " );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st.setText("Recursos necessários: ");
|
|
|
|
st = new StaticText();
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
st.setEscape( false );
|
|
|
|
st = new StaticText();
|
|
|
|
String data_str = "";
|
|
|
|
st.setEscape(false);
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat( "dd/MM/yyyy" );
|
|
|
|
st.setText(r.getRecursos_necessarios().toString());
|
|
|
|
data_str = formatter.format( r.getData_inicio() );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
st.setText( data_str );
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
}
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getData_inicio() != null)
|
|
|
|
if ( r.getData_fim() != null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setText("Data início: ");
|
|
|
|
st.setText( "Data fim: " );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
String data_str = "";
|
|
|
|
String data_str = "";
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat( "dd/MM/yyyy" );
|
|
|
|
data_str = formatter.format(r.getData_inicio());
|
|
|
|
data_str = formatter.format( r.getData_fim() );
|
|
|
|
st.setText(data_str);
|
|
|
|
st.setText( data_str );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getData_fim() != null)
|
|
|
|
if ( r.getParecer_dl() != null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pg = new PanelGroup();
|
|
|
|
if ( r.getParecer_dl().trim().length() > 0 )
|
|
|
|
st = new StaticText();
|
|
|
|
{
|
|
|
|
st.setEscape(false);
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st = new StaticText();
|
|
|
|
st.setText("Data fim: ");
|
|
|
|
st.setEscape( false );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st = new StaticText();
|
|
|
|
st.setText( "Parecer DL: " );
|
|
|
|
st.setEscape(false);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
String data_str = "";
|
|
|
|
st = new StaticText();
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
|
|
|
st.setEscape( false );
|
|
|
|
data_str = formatter.format(r.getData_fim());
|
|
|
|
st.setText( r.getParecer_dl().toString() );
|
|
|
|
st.setText(data_str);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getParecer_dl() != null)
|
|
|
|
if ( r.getParecer_dns() != null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(r.getParecer_dl().trim().length() > 0)
|
|
|
|
if ( r.getParecer_dns().trim().length() > 0 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setText("Parecer DL: ");
|
|
|
|
st.setText( "Parecer DNS: " );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setText(r.getParecer_dl().toString());
|
|
|
|
st.setText( r.getParecer_dns().toString() );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getParecer_dns() != null)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
}
|
|
|
|
if(r.getParecer_dns().trim().length() > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setStyleClass("label");
|
|
|
|
|
|
|
|
st.setText("Parecer DNS: ");
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
|
|
|
st.setText(r.getParecer_dns().toString());
|
|
|
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(r.getVerificacao_siprp() != null)
|
|
|
|
if ( r.getVerificacao_siprp() != null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(r.getVerificacao_siprp().trim().length() > 0)
|
|
|
|
if ( r.getVerificacao_siprp().trim().length() > 0 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass( "label" );
|
|
|
|
st.setText("Verificação SIPRP: ");
|
|
|
|
st.setText( "Verificação SIPRP: " );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setText(r.getVerificacao_siprp().toString());
|
|
|
|
st.setText( r.getVerificacao_siprp().toString() );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
gridParecer.getChildren().add( pg );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void showValores(List<Valor> valores)
|
|
|
|
// private void showValores( List< Valor > valores )
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
for(Valor valor : valores)
|
|
|
|
// for ( Valor valor : valores )
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
// HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
grd.setColumns(1);
|
|
|
|
// grd.setColumns( 1 );
|
|
|
|
grd.setWidth("100%");
|
|
|
|
// grd.setWidth( "100%" );
|
|
|
|
//grd.setStyleClass("centerBlock");
|
|
|
|
// //grd.setStyleClass("centerBlock");
|
|
|
|
//gridRisco.getChildren().add(grd);
|
|
|
|
// //gridRisco.getChildren().add(grd);
|
|
|
|
|
|
|
|
//
|
|
|
|
gridValor = new HtmlPanelGrid();
|
|
|
|
// gridValor = new HtmlPanelGrid();
|
|
|
|
gridRisco.getChildren().add(gridValor);
|
|
|
|
// gridRisco.getChildren().add( gridValor );
|
|
|
|
////gridValor.setStyleClass("centerBlock");
|
|
|
|
// ////gridValor.setStyleClass("centerBlock");
|
|
|
|
gridValor.setWidth("100%");
|
|
|
|
// gridValor.setWidth( "100%" );
|
|
|
|
gridValor.setColumns(1);
|
|
|
|
// gridValor.setColumns( 1 );
|
|
|
|
gridValor.setColumnClasses("gridColLeft");
|
|
|
|
// gridValor.setColumnClasses( "gridColLeft" );
|
|
|
|
//grd.getChildren().add(gridValor);
|
|
|
|
// //grd.getChildren().add(gridValor);
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Valor: ");
|
|
|
|
// st.setText("Valor: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
if(valor.getValor() == null)
|
|
|
|
// if(valor.getValor() == null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
st.setText(" - ");
|
|
|
|
// st.setText(" - ");
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
else
|
|
|
|
// else
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
st.setText(valor.getValor().toString());
|
|
|
|
// st.setText(valor.getValor().toString());
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridValor.getChildren().add(pg);
|
|
|
|
// gridValor.getChildren().add(pg);
|
|
|
|
|
|
|
|
//
|
|
|
|
showMedidas(valor.getMedidas());
|
|
|
|
// showMedidas(valor.getMedidas());
|
|
|
|
|
|
|
|
//
|
|
|
|
grd = new HtmlPanelGrid();
|
|
|
|
// grd = new HtmlPanelGrid();
|
|
|
|
grd.setColumns(1);
|
|
|
|
// grd.setColumns(1);
|
|
|
|
grd.setWidth("100%");
|
|
|
|
// grd.setWidth("100%");
|
|
|
|
////grd.setStyleClass("centerBlock");
|
|
|
|
// ////grd.setStyleClass("centerBlock");
|
|
|
|
gridValor.getChildren().add(grd);
|
|
|
|
// gridValor.getChildren().add(grd);
|
|
|
|
HtmlPanelGrid gridParecer = new HtmlPanelGrid();
|
|
|
|
// HtmlPanelGrid gridParecer = new HtmlPanelGrid();
|
|
|
|
gridParecer.setStyleClass("centerBlock");
|
|
|
|
// gridParecer.setStyleClass("centerBlock");
|
|
|
|
gridParecer.setWidth("98%");
|
|
|
|
// gridParecer.setWidth("98%");
|
|
|
|
gridParecer.setColumns(1);
|
|
|
|
// gridParecer.setColumns(1);
|
|
|
|
gridParecer.setColumnClasses("gridColLeft");
|
|
|
|
// gridParecer.setColumnClasses("gridColLeft");
|
|
|
|
grd.getChildren().add(gridParecer);
|
|
|
|
// grd.getChildren().add(gridParecer);
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getResponsavel_execucao() != null)
|
|
|
|
// if(valor.getResponsavel_execucao() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
if(valor.getResponsavel_execucao().trim().length() > 0)
|
|
|
|
// if(valor.getResponsavel_execucao().trim().length() > 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Responsável de execução: ");
|
|
|
|
// st.setText("Responsável de execução: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setText(valor.getResponsavel_execucao().toString());
|
|
|
|
// st.setText(valor.getResponsavel_execucao().toString());
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getRecursos_necessarios() != null)
|
|
|
|
// if(valor.getRecursos_necessarios() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
if(valor.getRecursos_necessarios().trim().length() > 0)
|
|
|
|
// if(valor.getRecursos_necessarios().trim().length() > 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Recursos necessários: ");
|
|
|
|
// st.setText("Recursos necessários: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setText(valor.getRecursos_necessarios().toString());
|
|
|
|
// st.setText(valor.getRecursos_necessarios().toString());
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getData_inicio() != null)
|
|
|
|
// if(valor.getData_inicio() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Data início: ");
|
|
|
|
// st.setText("Data início: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
String data_str = "";
|
|
|
|
// String data_str = "";
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
|
|
|
// SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
|
|
|
data_str = formatter.format(valor.getData_inicio());
|
|
|
|
// data_str = formatter.format(valor.getData_inicio());
|
|
|
|
st.setText(data_str);
|
|
|
|
// st.setText(data_str);
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getData_fim() != null)
|
|
|
|
// if(valor.getData_fim() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Data fim: ");
|
|
|
|
// st.setText("Data fim: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
String data_str = "";
|
|
|
|
// String data_str = "";
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
|
|
|
// SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
|
|
|
data_str = formatter.format(valor.getData_fim());
|
|
|
|
// data_str = formatter.format(valor.getData_fim());
|
|
|
|
st.setText(data_str);
|
|
|
|
// st.setText(data_str);
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getParecer_dl() != null)
|
|
|
|
// if(valor.getParecer_dl() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
if(valor.getParecer_dl().trim().length() > 0)
|
|
|
|
// if(valor.getParecer_dl().trim().length() > 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Parecer DL: ");
|
|
|
|
// st.setText("Parecer DL: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setText(valor.getParecer_dl().toString());
|
|
|
|
// st.setText(valor.getParecer_dl().toString());
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getParecer_dns() != null)
|
|
|
|
// if(valor.getParecer_dns() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
if(valor.getParecer_dns().trim().length() > 0)
|
|
|
|
// if(valor.getParecer_dns().trim().length() > 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Parecer DNS: ");
|
|
|
|
// st.setText("Parecer DNS: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setText(valor.getParecer_dns().toString());
|
|
|
|
// st.setText(valor.getParecer_dns().toString());
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
if(valor.getVerificacao_siprp() != null)
|
|
|
|
// if(valor.getVerificacao_siprp() != null)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
if(valor.getVerificacao_siprp().trim().length() > 0)
|
|
|
|
// if(valor.getVerificacao_siprp().trim().length() > 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
pg = new PanelGroup();
|
|
|
|
// pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
// st.setStyleClass("label");
|
|
|
|
st.setText("Verificação SIPRP: ");
|
|
|
|
// st.setText("Verificação SIPRP: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
|
|
// st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
// st.setEscape(false);
|
|
|
|
st.setText(valor.getVerificacao_siprp().toString());
|
|
|
|
// st.setText(valor.getVerificacao_siprp().toString());
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
// pg.getChildren().add(st);
|
|
|
|
gridParecer.getChildren().add(pg);
|
|
|
|
// gridParecer.getChildren().add(pg);
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// //
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
private void showMedidas(List<Medida> medidas)
|
|
|
|
private void showMedidas( List< Medida > medidas )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for(Medida medida : medidas)
|
|
|
|
for( Medida medida : medidas )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
grd.setColumns(1);
|
|
|
|
grd.setColumns( 1 );
|
|
|
|
grd.setWidth("100%");
|
|
|
|
grd.setWidth("100%");
|
|
|
|
////grd.setStyleClass("centerBlock");
|
|
|
|
////grd.setStyleClass("centerBlock");
|
|
|
|
grd.setStyle("display: block");
|
|
|
|
grd.setStyle("display: block");
|
|
|
|
gridValor.getChildren().add(grd);
|
|
|
|
gridValor.getChildren().add( grd );
|
|
|
|
|
|
|
|
|
|
|
|
gridMedida = new HtmlPanelGrid();
|
|
|
|
gridMedida = new HtmlPanelGrid();
|
|
|
|
////gridMedida.setStyleClass("centerBlock");
|
|
|
|
////gridMedida.setStyleClass("centerBlock");
|
|
|
|
@ -720,20 +721,21 @@ public class ViewPlano extends AbstractPageBean
|
|
|
|
gridMedida.setWidth("98%");
|
|
|
|
gridMedida.setWidth("98%");
|
|
|
|
gridMedida.setColumns(1);
|
|
|
|
gridMedida.setColumns(1);
|
|
|
|
gridMedida.setColumnClasses("gridColLeft");
|
|
|
|
gridMedida.setColumnClasses("gridColLeft");
|
|
|
|
grd.getChildren().add(gridMedida);
|
|
|
|
grd.getChildren().add( gridMedida );
|
|
|
|
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
pg = new PanelGroup();
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setStyleClass("label");
|
|
|
|
st.setText("Medida: ");
|
|
|
|
st.setText("Medida: ");
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
|
|
st = new StaticText();
|
|
|
|
st.setEscape(false);
|
|
|
|
st.setEscape( false );
|
|
|
|
st.setText(medida.getDescricao());
|
|
|
|
st.setText( medida.getDescricao() );
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
gridMedida.getChildren().add(pg);
|
|
|
|
gridMedida.getChildren().add( pg );
|
|
|
|
|
|
|
|
|
|
|
|
showPostos(medida.getPostos());
|
|
|
|
showPostos( medida.getPostos() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|