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.
4653 lines
144 KiB
4653 lines
144 KiB
/*
|
|
* ViewAnaliseAcidenteTrabalho.java
|
|
*
|
|
* Created on October 1, 2007, 10:48 AM
|
|
* Copyright lluis
|
|
*/
|
|
package analiseacidentestrabalho;
|
|
|
|
import beans.Recomendacao;
|
|
import beans.Seccao;
|
|
import beans.Causa;
|
|
import beans.Medida;
|
|
import beans.Utilizador;
|
|
import beans.Acidentado;
|
|
import beans.AnaliseAcidente;
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
|
import com.sun.rave.web.ui.component.Body;
|
|
import com.sun.rave.web.ui.component.Button;
|
|
import com.sun.rave.web.ui.component.Form;
|
|
import com.sun.rave.web.ui.component.Head;
|
|
import com.sun.rave.web.ui.component.HiddenField;
|
|
import com.sun.rave.web.ui.component.Html;
|
|
import com.sun.rave.web.ui.component.ImageComponent;
|
|
import com.sun.rave.web.ui.component.Link;
|
|
import com.sun.rave.web.ui.component.Page;
|
|
import com.sun.rave.web.ui.component.PanelGroup;
|
|
import com.sun.rave.web.ui.component.StaticText;
|
|
import db.providers.AnalisesDataProvider;
|
|
import db.providers.UtilizadoresDataProvider;
|
|
import global.Global;
|
|
import java.io.File;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Calendar;
|
|
import java.util.ListIterator;
|
|
import javax.faces.FacesException;
|
|
import javax.faces.component.html.HtmlPanelGrid;
|
|
import javax.servlet.ServletContext;
|
|
import utils.Utils;
|
|
|
|
/**
|
|
* <p>Page bean that corresponds to a similarly named JSP page. This
|
|
* class contains component definitions (and initialization code) for
|
|
* all components that you have defined on this page, as well as
|
|
* lifecycle methods and event handlers where you may add behavior
|
|
* to respond to incoming events.</p>
|
|
*/
|
|
public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean
|
|
{
|
|
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
|
|
private int __placeholder;
|
|
|
|
/**
|
|
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
|
|
* This method is automatically generated, so any user-specified code inserted
|
|
* here is subject to being replaced.</p>
|
|
*/
|
|
private void _init() throws Exception {
|
|
}
|
|
|
|
private Page page1 = new Page();
|
|
|
|
public Page getPage1() {
|
|
return page1;
|
|
}
|
|
|
|
public void setPage1(Page p) {
|
|
this.page1 = p;
|
|
}
|
|
|
|
private Html html1 = new Html();
|
|
|
|
public Html getHtml1() {
|
|
return html1;
|
|
}
|
|
|
|
public void setHtml1(Html h) {
|
|
this.html1 = h;
|
|
}
|
|
|
|
private Head head1 = new Head();
|
|
|
|
public Head getHead1() {
|
|
return head1;
|
|
}
|
|
|
|
public void setHead1(Head h) {
|
|
this.head1 = h;
|
|
}
|
|
|
|
private Link link1 = new Link();
|
|
|
|
public Link getLink1() {
|
|
return link1;
|
|
}
|
|
|
|
public void setLink1(Link l) {
|
|
this.link1 = l;
|
|
}
|
|
|
|
private Body body1 = new Body();
|
|
|
|
public Body getBody1() {
|
|
return body1;
|
|
}
|
|
|
|
public void setBody1(Body b) {
|
|
this.body1 = b;
|
|
}
|
|
|
|
private Form form1 = new Form();
|
|
|
|
public Form getForm1() {
|
|
return form1;
|
|
}
|
|
|
|
public void setForm1(Form f) {
|
|
this.form1 = f;
|
|
}
|
|
|
|
private HtmlPanelGrid gridBase1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridBase1() {
|
|
return gridBase1;
|
|
}
|
|
|
|
public void setGridBase1(HtmlPanelGrid hpg) {
|
|
this.gridBase1 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridLayout1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridLayout1() {
|
|
return gridLayout1;
|
|
}
|
|
|
|
public void setGridLayout1(HtmlPanelGrid hpg) {
|
|
this.gridLayout1 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridMsg1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridMsg1() {
|
|
return gridMsg1;
|
|
}
|
|
|
|
public void setGridMsg1(HtmlPanelGrid hpg) {
|
|
this.gridMsg1 = hpg;
|
|
}
|
|
|
|
private StaticText txtMsg1 = new StaticText();
|
|
|
|
public StaticText getTxtMsg1() {
|
|
return txtMsg1;
|
|
}
|
|
|
|
public void setTxtMsg1(StaticText st) {
|
|
this.txtMsg1 = st;
|
|
}
|
|
|
|
private StaticText txtComentarioConclusaoTitle = new StaticText();
|
|
|
|
public StaticText getTxtComentarioConclusaoTitle() {
|
|
return txtComentarioConclusaoTitle;
|
|
}
|
|
|
|
public void setTxtComentarioConclusaoTitle(StaticText txtComentarioConclusaoTitle) {
|
|
this.txtComentarioConclusaoTitle = txtComentarioConclusaoTitle;
|
|
}
|
|
|
|
private StaticText txtComentarioConclusao = new StaticText();
|
|
|
|
public StaticText getTxtComentarioConclusao() {
|
|
return txtComentarioConclusao;
|
|
}
|
|
|
|
public void setTxtComentarioConclusao(StaticText txtComentarioConclusao) {
|
|
this.txtComentarioConclusao = txtComentarioConclusao;
|
|
}
|
|
|
|
|
|
|
|
private HtmlPanelGrid gridCabecalho1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridCabecalho1() {
|
|
return gridCabecalho1;
|
|
}
|
|
|
|
public void setGridCabecalho1(HtmlPanelGrid hpg) {
|
|
this.gridCabecalho1 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel2() {
|
|
return gridPanel2;
|
|
}
|
|
|
|
public void setGridPanel2(HtmlPanelGrid hpg) {
|
|
this.gridPanel2 = hpg;
|
|
}
|
|
|
|
private StaticText lblEmpresa1 = new StaticText();
|
|
|
|
public StaticText getLblEmpresa1() {
|
|
return lblEmpresa1;
|
|
}
|
|
|
|
public void setLblEmpresa1(StaticText st) {
|
|
this.lblEmpresa1 = st;
|
|
}
|
|
|
|
private StaticText txtEmpresa = new StaticText();
|
|
|
|
public StaticText getTxtEmpresa() {
|
|
return txtEmpresa;
|
|
}
|
|
|
|
public void setTxtEmpresa(StaticText st) {
|
|
this.txtEmpresa = st;
|
|
}
|
|
|
|
private StaticText staticText4 = new StaticText();
|
|
|
|
public StaticText getStaticText4() {
|
|
return staticText4;
|
|
}
|
|
|
|
public void setStaticText4(StaticText st) {
|
|
this.staticText4 = st;
|
|
}
|
|
|
|
private StaticText txtEstabelecimento = new StaticText();
|
|
|
|
public StaticText getTxtEstabelecimento() {
|
|
return txtEstabelecimento;
|
|
}
|
|
|
|
public void setTxtEstabelecimento(StaticText st) {
|
|
this.txtEstabelecimento = st;
|
|
}
|
|
|
|
private StaticText lblTrabalhador1 = new StaticText();
|
|
|
|
public StaticText getLblTrabalhador1() {
|
|
return lblTrabalhador1;
|
|
}
|
|
|
|
public void setLblTrabalhador1(StaticText st) {
|
|
this.lblTrabalhador1 = st;
|
|
}
|
|
|
|
private StaticText txtTrabalhador = new StaticText();
|
|
|
|
public StaticText getTxtTrabalhador() {
|
|
return txtTrabalhador;
|
|
}
|
|
|
|
public void setTxtTrabalhador(StaticText st) {
|
|
this.txtTrabalhador = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridDadosAcidenteSegView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridDadosAcidenteSegView() {
|
|
return gridDadosAcidenteSegView;
|
|
}
|
|
|
|
public void setGridDadosAcidenteSegView(HtmlPanelGrid hpg) {
|
|
this.gridDadosAcidenteSegView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel8() {
|
|
return gridPanel8;
|
|
}
|
|
|
|
public void setGridPanel8(HtmlPanelGrid hpg) {
|
|
this.gridPanel8 = hpg;
|
|
}
|
|
|
|
private StaticText staticText13 = new StaticText();
|
|
|
|
public StaticText getStaticText13() {
|
|
return staticText13;
|
|
}
|
|
|
|
public void setStaticText13(StaticText st) {
|
|
this.staticText13 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel9() {
|
|
return gridPanel9;
|
|
}
|
|
|
|
public void setGridPanel9(HtmlPanelGrid hpg) {
|
|
this.gridPanel9 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridTurnoSeccaoLocal = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridTurnoSeccaoLocal() {
|
|
return gridTurnoSeccaoLocal;
|
|
}
|
|
|
|
public void setGridTurnoSeccaoLocal(HtmlPanelGrid hpg) {
|
|
this.gridTurnoSeccaoLocal = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridTarefa = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridTarefa() {
|
|
return gridTarefa;
|
|
}
|
|
|
|
public void setGridTarefa(HtmlPanelGrid hpg) {
|
|
this.gridTarefa = hpg;
|
|
}
|
|
|
|
private StaticText lblTarefa = new StaticText();
|
|
|
|
public StaticText getLblTarefa() {
|
|
return lblTarefa;
|
|
}
|
|
|
|
public void setLblTarefa(StaticText st) {
|
|
this.lblTarefa = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridSubstancias = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridSubstancias() {
|
|
return gridSubstancias;
|
|
}
|
|
|
|
public void setGridSubstancias(HtmlPanelGrid hpg) {
|
|
this.gridSubstancias = hpg;
|
|
}
|
|
|
|
private StaticText lblSubstancias = new StaticText();
|
|
|
|
public StaticText getLblSubstancias() {
|
|
return lblSubstancias;
|
|
}
|
|
|
|
public void setLblSubstancias(StaticText st) {
|
|
this.lblSubstancias = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridCondicoes = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridCondicoes() {
|
|
return gridCondicoes;
|
|
}
|
|
|
|
public void setGridCondicoes(HtmlPanelGrid hpg) {
|
|
this.gridCondicoes = hpg;
|
|
}
|
|
|
|
private StaticText lblCondicoes = new StaticText();
|
|
|
|
public StaticText getLblCondicoes() {
|
|
return lblCondicoes;
|
|
}
|
|
|
|
public void setLblCondicoes(StaticText st) {
|
|
this.lblCondicoes = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridTestemunhas = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridTestemunhas() {
|
|
return gridTestemunhas;
|
|
}
|
|
|
|
public void setGridTestemunhas(HtmlPanelGrid hpg) {
|
|
this.gridTestemunhas = hpg;
|
|
}
|
|
|
|
private StaticText lblTestemunhas = new StaticText();
|
|
|
|
public StaticText getLblTestemunhas() {
|
|
return lblTestemunhas;
|
|
}
|
|
|
|
public void setLblTestemunhas(StaticText st) {
|
|
this.lblTestemunhas = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridCausas = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridCausas() {
|
|
return gridCausas;
|
|
}
|
|
|
|
public void setGridCausas(HtmlPanelGrid hpg) {
|
|
this.gridCausas = hpg;
|
|
}
|
|
|
|
private StaticText lblCausas = new StaticText();
|
|
|
|
public StaticText getLblCausas() {
|
|
return lblCausas;
|
|
}
|
|
|
|
public void setLblCausas(StaticText st) {
|
|
this.lblCausas = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridDescricao = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridDescricao() {
|
|
return gridDescricao;
|
|
}
|
|
|
|
public void setGridDescricao(HtmlPanelGrid hpg) {
|
|
this.gridDescricao = hpg;
|
|
}
|
|
|
|
private StaticText lblDescricao = new StaticText();
|
|
|
|
public StaticText getLblDescricao() {
|
|
return lblDescricao;
|
|
}
|
|
|
|
public void setLblDescricao(StaticText st) {
|
|
this.lblDescricao = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridFotografias = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridFotografias() {
|
|
return gridFotografias;
|
|
}
|
|
|
|
public void setGridFotografias(HtmlPanelGrid hpg) {
|
|
this.gridFotografias = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel19 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel19() {
|
|
return gridPanel19;
|
|
}
|
|
|
|
public void setGridPanel19(HtmlPanelGrid hpg) {
|
|
this.gridPanel19 = hpg;
|
|
}
|
|
|
|
private StaticText lblFotografias = new StaticText();
|
|
|
|
public StaticText getLblFotografias() {
|
|
return lblFotografias;
|
|
}
|
|
|
|
public void setLblFotografias(StaticText st) {
|
|
this.lblFotografias = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridImages = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridImages() {
|
|
return gridImages;
|
|
}
|
|
|
|
public void setGridImages(HtmlPanelGrid hpg) {
|
|
this.gridImages = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridConclusoes = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridConclusoes() {
|
|
return gridConclusoes;
|
|
}
|
|
|
|
public void setGridConclusoes(HtmlPanelGrid hpg) {
|
|
this.gridConclusoes = hpg;
|
|
}
|
|
|
|
private StaticText lblConclusoes = new StaticText();
|
|
|
|
public StaticText getLblConclusoes() {
|
|
return lblConclusoes;
|
|
}
|
|
|
|
public void setLblConclusoes(StaticText st) {
|
|
this.lblConclusoes = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAccoes = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAccoes() {
|
|
return gridAccoes;
|
|
}
|
|
|
|
public void setGridAccoes(HtmlPanelGrid hpg) {
|
|
this.gridAccoes = hpg;
|
|
}
|
|
|
|
private StaticText lblAccoes = new StaticText();
|
|
|
|
public StaticText getLblAccoes() {
|
|
return lblAccoes;
|
|
}
|
|
|
|
public void setLblAccoes(StaticText st) {
|
|
this.lblAccoes = st;
|
|
}
|
|
|
|
private StaticText txtAccoes = new StaticText();
|
|
|
|
public StaticText getTxtAccoes() {
|
|
return txtAccoes;
|
|
}
|
|
|
|
public void setTxtAccoes(StaticText st) {
|
|
this.txtAccoes = st;
|
|
}
|
|
|
|
private StaticText txtConclusoes = new StaticText();
|
|
|
|
public StaticText getTxtConclusoes() {
|
|
return txtConclusoes;
|
|
}
|
|
|
|
public void setTxtConclusoes(StaticText st) {
|
|
this.txtConclusoes = st;
|
|
}
|
|
|
|
private StaticText txtDescricao = new StaticText();
|
|
|
|
public StaticText getTxtDescricao() {
|
|
return txtDescricao;
|
|
}
|
|
|
|
public void setTxtDescricao(StaticText st) {
|
|
this.txtDescricao = st;
|
|
}
|
|
|
|
private StaticText txtCausas = new StaticText();
|
|
|
|
public StaticText getTxtCausas() {
|
|
return txtCausas;
|
|
}
|
|
|
|
public void setTxtCausas(StaticText st) {
|
|
this.txtCausas = st;
|
|
}
|
|
|
|
private StaticText txtTestemunhas = new StaticText();
|
|
|
|
public StaticText getTxtTestemunhas() {
|
|
return txtTestemunhas;
|
|
}
|
|
|
|
public void setTxtTestemunhas(StaticText st) {
|
|
this.txtTestemunhas = st;
|
|
}
|
|
|
|
private StaticText txtCondicoes = new StaticText();
|
|
|
|
public StaticText getTxtCondicoes() {
|
|
return txtCondicoes;
|
|
}
|
|
|
|
public void setTxtCondicoes(StaticText st) {
|
|
this.txtCondicoes = st;
|
|
}
|
|
|
|
private StaticText txtSubstancias = new StaticText();
|
|
|
|
public StaticText getTxtSubstancias() {
|
|
return txtSubstancias;
|
|
}
|
|
|
|
public void setTxtSubstancias(StaticText st) {
|
|
this.txtSubstancias = st;
|
|
}
|
|
|
|
private StaticText txtTarefa = new StaticText();
|
|
|
|
public StaticText getTxtTarefa() {
|
|
return txtTarefa;
|
|
}
|
|
|
|
public void setTxtTarefa(StaticText st) {
|
|
this.txtTarefa = st;
|
|
}
|
|
|
|
// </editor-fold>
|
|
//private String IMAGE_URL = "/resources/images";
|
|
|
|
private final static int IMAGE_WIDTH = 48;
|
|
private final static int IMAGE_HEIGHT = 48;
|
|
|
|
|
|
private HtmlPanelGrid gridDadosAcidenteRhView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridDadosAcidenteRhView() {
|
|
return gridDadosAcidenteRhView;
|
|
}
|
|
|
|
public void setGridDadosAcidenteRhView(HtmlPanelGrid hpg) {
|
|
this.gridDadosAcidenteRhView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel3() {
|
|
return gridPanel3;
|
|
}
|
|
|
|
public void setGridPanel3(HtmlPanelGrid hpg) {
|
|
this.gridPanel3 = hpg;
|
|
}
|
|
|
|
private StaticText staticText5 = new StaticText();
|
|
|
|
public StaticText getStaticText5() {
|
|
return staticText5;
|
|
}
|
|
|
|
public void setStaticText5(StaticText st) {
|
|
this.staticText5 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel4() {
|
|
return gridPanel4;
|
|
}
|
|
|
|
public void setGridPanel4(HtmlPanelGrid hpg) {
|
|
this.gridPanel4 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridSHST = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridSHST() {
|
|
return gridSHST;
|
|
}
|
|
|
|
public void setGridSHST(HtmlPanelGrid hpg) {
|
|
this.gridSHST = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridColaborador = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridColaborador() {
|
|
return gridColaborador;
|
|
}
|
|
|
|
public void setGridColaborador(HtmlPanelGrid hpg) {
|
|
this.gridColaborador = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridColaboradores = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridColaboradores() {
|
|
return gridColaboradores;
|
|
}
|
|
|
|
public void setGridColaboradores(HtmlPanelGrid hpg) {
|
|
this.gridColaboradores = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridRecomendacoesViewHS = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridRecomendacoesViewHS() {
|
|
return gridRecomendacoesViewHS;
|
|
}
|
|
|
|
public void setGridRecomendacoesViewHS(HtmlPanelGrid hpg) {
|
|
this.gridRecomendacoesViewHS = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel23 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel23() {
|
|
return gridPanel23;
|
|
}
|
|
|
|
public void setGridPanel23(HtmlPanelGrid hpg) {
|
|
this.gridPanel23 = hpg;
|
|
}
|
|
|
|
private StaticText staticText29 = new StaticText();
|
|
|
|
public StaticText getStaticText29() {
|
|
return staticText29;
|
|
}
|
|
|
|
public void setStaticText29(StaticText st) {
|
|
this.staticText29 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridRecomendacoesView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridRecomendacoesView() {
|
|
return gridRecomendacoesView;
|
|
}
|
|
|
|
public void setGridRecomendacoesView(HtmlPanelGrid hpg) {
|
|
this.gridRecomendacoesView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridMedidasViewRH = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridMedidasViewRH() {
|
|
return gridMedidasViewRH;
|
|
}
|
|
|
|
public void setGridMedidasViewRH(HtmlPanelGrid hpg) {
|
|
this.gridMedidasViewRH = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel24 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel24() {
|
|
return gridPanel24;
|
|
}
|
|
|
|
public void setGridPanel24(HtmlPanelGrid hpg) {
|
|
this.gridPanel24 = hpg;
|
|
}
|
|
|
|
private StaticText staticText30 = new StaticText();
|
|
|
|
public StaticText getStaticText30() {
|
|
return staticText30;
|
|
}
|
|
|
|
public void setStaticText30(StaticText st) {
|
|
this.staticText30 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridMedidasView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridMedidasView() {
|
|
return gridMedidasView;
|
|
}
|
|
|
|
public void setGridMedidasView(HtmlPanelGrid hpg) {
|
|
this.gridMedidasView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridMedicoView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridMedicoView() {
|
|
return gridMedicoView;
|
|
}
|
|
|
|
public void setGridMedicoView(HtmlPanelGrid hpg) {
|
|
this.gridMedicoView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel25 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel25() {
|
|
return gridPanel25;
|
|
}
|
|
|
|
public void setGridPanel25(HtmlPanelGrid hpg) {
|
|
this.gridPanel25 = hpg;
|
|
}
|
|
|
|
private StaticText staticText31 = new StaticText();
|
|
|
|
public StaticText getStaticText31() {
|
|
return staticText31;
|
|
}
|
|
|
|
public void setStaticText31(StaticText st) {
|
|
this.staticText31 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridLesao = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridLesao() {
|
|
return gridLesao;
|
|
}
|
|
|
|
public void setGridLesao(HtmlPanelGrid hpg) {
|
|
this.gridLesao = hpg;
|
|
}
|
|
|
|
private StaticText lblAreasCorporais = new StaticText();
|
|
|
|
public StaticText getLblAreasCorporais() {
|
|
return lblAreasCorporais;
|
|
}
|
|
|
|
public void setLblAreasCorporais(StaticText st) {
|
|
this.lblAreasCorporais = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel26 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel26() {
|
|
return gridPanel26;
|
|
}
|
|
|
|
public void setGridPanel26(HtmlPanelGrid hpg) {
|
|
this.gridPanel26 = hpg;
|
|
}
|
|
|
|
private StaticText staticText33 = new StaticText();
|
|
|
|
public StaticText getStaticText33() {
|
|
return staticText33;
|
|
}
|
|
|
|
public void setStaticText33(StaticText st) {
|
|
this.staticText33 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridIncapacidade = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridIncapacidade() {
|
|
return gridIncapacidade;
|
|
}
|
|
|
|
public void setGridIncapacidade(HtmlPanelGrid hpg) {
|
|
this.gridIncapacidade = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel27 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel27() {
|
|
return gridPanel27;
|
|
}
|
|
|
|
public void setGridPanel27(HtmlPanelGrid hpg) {
|
|
this.gridPanel27 = hpg;
|
|
}
|
|
|
|
private StaticText staticText34 = new StaticText();
|
|
|
|
public StaticText getStaticText34() {
|
|
return staticText34;
|
|
}
|
|
|
|
public void setStaticText34(StaticText st) {
|
|
this.staticText34 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridRestricoes = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridRestricoes() {
|
|
return gridRestricoes;
|
|
}
|
|
|
|
public void setGridRestricoes(HtmlPanelGrid hpg) {
|
|
this.gridRestricoes = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel28 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel28() {
|
|
return gridPanel28;
|
|
}
|
|
|
|
public void setGridPanel28(HtmlPanelGrid hpg) {
|
|
this.gridPanel28 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridImagesRestricoes = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridImagesRestricoes() {
|
|
return gridImagesRestricoes;
|
|
}
|
|
|
|
public void setGridImagesRestricoes(HtmlPanelGrid hpg) {
|
|
this.gridImagesRestricoes = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridOutrasRestricoes = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridOutrasRestricoes() {
|
|
return gridOutrasRestricoes;
|
|
}
|
|
|
|
public void setGridOutrasRestricoes(HtmlPanelGrid hpg) {
|
|
this.gridOutrasRestricoes = hpg;
|
|
}
|
|
|
|
private StaticText staticText35 = new StaticText();
|
|
|
|
public StaticText getStaticText35() {
|
|
return staticText35;
|
|
}
|
|
|
|
public void setStaticText35(StaticText st) {
|
|
this.staticText35 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel29 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel29() {
|
|
return gridPanel29;
|
|
}
|
|
|
|
public void setGridPanel29(HtmlPanelGrid hpg) {
|
|
this.gridPanel29 = hpg;
|
|
}
|
|
|
|
private StaticText staticText36 = new StaticText();
|
|
|
|
public StaticText getStaticText36() {
|
|
return staticText36;
|
|
}
|
|
|
|
public void setStaticText36(StaticText st) {
|
|
this.staticText36 = st;
|
|
}
|
|
|
|
private StaticText stObservacoes = new StaticText();
|
|
|
|
public StaticText getStObservacoes() {
|
|
return stObservacoes;
|
|
}
|
|
|
|
public void setStObservacoes(StaticText st) {
|
|
this.stObservacoes = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAcidentadoView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAcidentadoView() {
|
|
return gridAcidentadoView;
|
|
}
|
|
|
|
public void setGridAcidentadoView(HtmlPanelGrid hpg) {
|
|
this.gridAcidentadoView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel30 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel30() {
|
|
return gridPanel30;
|
|
}
|
|
|
|
public void setGridPanel30(HtmlPanelGrid hpg) {
|
|
this.gridPanel30 = hpg;
|
|
}
|
|
|
|
private StaticText staticText37 = new StaticText();
|
|
|
|
public StaticText getStaticText37() {
|
|
return staticText37;
|
|
}
|
|
|
|
public void setStaticText37(StaticText st) {
|
|
this.staticText37 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel31 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel31() {
|
|
return gridPanel31;
|
|
}
|
|
|
|
public void setGridPanel31(HtmlPanelGrid hpg) {
|
|
this.gridPanel31 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridDataHora = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridDataHora() {
|
|
return gridDataHora;
|
|
}
|
|
|
|
public void setGridDataHora(HtmlPanelGrid hpg) {
|
|
this.gridDataHora = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel6 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel6() {
|
|
return groupPanel6;
|
|
}
|
|
|
|
public void setGroupPanel6(PanelGroup pg) {
|
|
this.groupPanel6 = pg;
|
|
}
|
|
|
|
private StaticText lblDataAcidente = new StaticText();
|
|
|
|
public StaticText getLblDataAcidente() {
|
|
return lblDataAcidente;
|
|
}
|
|
|
|
public void setLblDataAcidente(StaticText st) {
|
|
this.lblDataAcidente = st;
|
|
}
|
|
|
|
private StaticText stDataAcidente1 = new StaticText();
|
|
|
|
public StaticText getStDataAcidente1() {
|
|
return stDataAcidente1;
|
|
}
|
|
|
|
public void setStDataAcidente1(StaticText st) {
|
|
this.stDataAcidente1 = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel7 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel7() {
|
|
return groupPanel7;
|
|
}
|
|
|
|
public void setGroupPanel7(PanelGroup pg) {
|
|
this.groupPanel7 = pg;
|
|
}
|
|
|
|
private StaticText lblHoraAcidente = new StaticText();
|
|
|
|
public StaticText getLblHoraAcidente() {
|
|
return lblHoraAcidente;
|
|
}
|
|
|
|
public void setLblHoraAcidente(StaticText st) {
|
|
this.lblHoraAcidente = st;
|
|
}
|
|
|
|
private StaticText stHoraAcidente1 = new StaticText();
|
|
|
|
public StaticText getStHoraAcidente1() {
|
|
return stHoraAcidente1;
|
|
}
|
|
|
|
public void setStHoraAcidente1(StaticText st) {
|
|
this.stHoraAcidente1 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridVerificacaoView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridVerificacaoView() {
|
|
return gridVerificacaoView;
|
|
}
|
|
|
|
public void setGridVerificacaoView(HtmlPanelGrid hpg) {
|
|
this.gridVerificacaoView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel34 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel34() {
|
|
return gridPanel34;
|
|
}
|
|
|
|
public void setGridPanel34(HtmlPanelGrid hpg) {
|
|
this.gridPanel34 = hpg;
|
|
}
|
|
|
|
private StaticText staticText15 = new StaticText();
|
|
|
|
public StaticText getStaticText15() {
|
|
return staticText15;
|
|
}
|
|
|
|
public void setStaticText15(StaticText st) {
|
|
this.staticText15 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel35 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel35() {
|
|
return gridPanel35;
|
|
}
|
|
|
|
public void setGridPanel35(HtmlPanelGrid hpg) {
|
|
this.gridPanel35 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAssinaturasView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAssinaturasView() {
|
|
return gridAssinaturasView;
|
|
}
|
|
|
|
public void setGridAssinaturasView(HtmlPanelGrid hpg) {
|
|
this.gridAssinaturasView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridImpressaoView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridImpressaoView() {
|
|
return gridImpressaoView;
|
|
}
|
|
|
|
public void setGridImpressaoView(HtmlPanelGrid hpg) {
|
|
this.gridImpressaoView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel10() {
|
|
return gridPanel10;
|
|
}
|
|
|
|
public void setGridPanel10(HtmlPanelGrid hpg) {
|
|
this.gridPanel10 = hpg;
|
|
}
|
|
|
|
private StaticText staticText3 = new StaticText();
|
|
|
|
public StaticText getStaticText3() {
|
|
return staticText3;
|
|
}
|
|
|
|
public void setStaticText3(StaticText st) {
|
|
this.staticText3 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel11 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel11() {
|
|
return gridPanel11;
|
|
}
|
|
|
|
public void setGridPanel11(HtmlPanelGrid hpg) {
|
|
this.gridPanel11 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAssSupView = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAssSupView() {
|
|
return gridAssSupView;
|
|
}
|
|
|
|
public void setGridAssSupView(HtmlPanelGrid hpg) {
|
|
this.gridAssSupView = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel12 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel12() {
|
|
return gridPanel12;
|
|
}
|
|
|
|
public void setGridPanel12(HtmlPanelGrid hpg) {
|
|
this.gridPanel12 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel5 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel5() {
|
|
return groupPanel5;
|
|
}
|
|
|
|
public void setGroupPanel5(PanelGroup pg) {
|
|
this.groupPanel5 = pg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel13 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel13() {
|
|
return gridPanel13;
|
|
}
|
|
|
|
public void setGridPanel13(HtmlPanelGrid hpg) {
|
|
this.gridPanel13 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel8 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel8() {
|
|
return groupPanel8;
|
|
}
|
|
|
|
public void setGroupPanel8(PanelGroup pg) {
|
|
this.groupPanel8 = pg;
|
|
}
|
|
|
|
private StaticText staticText14 = new StaticText();
|
|
|
|
public StaticText getStaticText14() {
|
|
return staticText14;
|
|
}
|
|
|
|
public void setStaticText14(StaticText st) {
|
|
this.staticText14 = st;
|
|
}
|
|
|
|
private StaticText stAveriguador = new StaticText();
|
|
|
|
public StaticText getStAveriguador() {
|
|
return stAveriguador;
|
|
}
|
|
|
|
public void setStAveriguador(StaticText st) {
|
|
this.stAveriguador = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel14 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel14() {
|
|
return gridPanel14;
|
|
}
|
|
|
|
public void setGridPanel14(HtmlPanelGrid hpg) {
|
|
this.gridPanel14 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel9 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel9() {
|
|
return groupPanel9;
|
|
}
|
|
|
|
public void setGroupPanel9(PanelGroup pg) {
|
|
this.groupPanel9 = pg;
|
|
}
|
|
|
|
private StaticText staticText16 = new StaticText();
|
|
|
|
public StaticText getStaticText16() {
|
|
return staticText16;
|
|
}
|
|
|
|
public void setStaticText16(StaticText st) {
|
|
this.staticText16 = st;
|
|
}
|
|
|
|
private ImageComponent image3 = new ImageComponent();
|
|
|
|
public ImageComponent getImage3() {
|
|
return image3;
|
|
}
|
|
|
|
public void setImage3(ImageComponent ic) {
|
|
this.image3 = ic;
|
|
}
|
|
|
|
private StaticText staticText17 = new StaticText();
|
|
|
|
public StaticText getStaticText17() {
|
|
return staticText17;
|
|
}
|
|
|
|
public void setStaticText17(StaticText st) {
|
|
this.staticText17 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAveriguacaoPosterior = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAveriguacaoPosterior() {
|
|
return gridAveriguacaoPosterior;
|
|
}
|
|
|
|
public void setGridAveriguacaoPosterior(HtmlPanelGrid hpg) {
|
|
this.gridAveriguacaoPosterior = hpg;
|
|
}
|
|
|
|
private StaticText lblAveriguacaoPosterior1 = new StaticText();
|
|
|
|
public StaticText getLblAveriguacaoPosterior1() {
|
|
return lblAveriguacaoPosterior1;
|
|
}
|
|
|
|
public void setLblAveriguacaoPosterior1(StaticText st) {
|
|
this.lblAveriguacaoPosterior1 = st;
|
|
}
|
|
|
|
private StaticText txtAveriguacaoPosterior = new StaticText();
|
|
|
|
public StaticText getTxtAveriguacaoPosterior() {
|
|
return txtAveriguacaoPosterior;
|
|
}
|
|
|
|
public void setTxtAveriguacaoPosterior(StaticText st) {
|
|
this.txtAveriguacaoPosterior = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel15 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel15() {
|
|
return gridPanel15;
|
|
}
|
|
|
|
public void setGridPanel15(HtmlPanelGrid hpg) {
|
|
this.gridPanel15 = hpg;
|
|
}
|
|
|
|
private StaticText staticText18 = new StaticText();
|
|
|
|
public StaticText getStaticText18() {
|
|
return staticText18;
|
|
}
|
|
|
|
public void setStaticText18(StaticText st) {
|
|
this.staticText18 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel16 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel16() {
|
|
return gridPanel16;
|
|
}
|
|
|
|
public void setGridPanel16(HtmlPanelGrid hpg) {
|
|
this.gridPanel16 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel10 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel10() {
|
|
return groupPanel10;
|
|
}
|
|
|
|
public void setGroupPanel10(PanelGroup pg) {
|
|
this.groupPanel10 = pg;
|
|
}
|
|
|
|
private StaticText staticText19 = new StaticText();
|
|
|
|
public StaticText getStaticText19() {
|
|
return staticText19;
|
|
}
|
|
|
|
public void setStaticText19(StaticText st) {
|
|
this.staticText19 = st;
|
|
}
|
|
|
|
private StaticText stNomeSuperior = new StaticText();
|
|
|
|
public StaticText getStNomeSuperior() {
|
|
return stNomeSuperior;
|
|
}
|
|
|
|
public void setStNomeSuperior(StaticText st) {
|
|
this.stNomeSuperior = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel11 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel11() {
|
|
return groupPanel11;
|
|
}
|
|
|
|
public void setGroupPanel11(PanelGroup pg) {
|
|
this.groupPanel11 = pg;
|
|
}
|
|
|
|
private StaticText staticText20 = new StaticText();
|
|
|
|
public StaticText getStaticText20() {
|
|
return staticText20;
|
|
}
|
|
|
|
public void setStaticText20(StaticText st) {
|
|
this.staticText20 = st;
|
|
}
|
|
|
|
private StaticText stEmailSuperior = new StaticText();
|
|
|
|
public StaticText getStEmailSuperior() {
|
|
return stEmailSuperior;
|
|
}
|
|
|
|
public void setStEmailSuperior(StaticText st) {
|
|
this.stEmailSuperior = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridSiprp = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridSiprp() {
|
|
return gridSiprp;
|
|
}
|
|
|
|
public void setGridSiprp(HtmlPanelGrid hpg) {
|
|
this.gridSiprp = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel17 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel17() {
|
|
return gridPanel17;
|
|
}
|
|
|
|
public void setGridPanel17(HtmlPanelGrid hpg) {
|
|
this.gridPanel17 = hpg;
|
|
}
|
|
|
|
private StaticText staticText24 = new StaticText();
|
|
|
|
public StaticText getStaticText24() {
|
|
return staticText24;
|
|
}
|
|
|
|
public void setStaticText24(StaticText st) {
|
|
this.staticText24 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel18 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel18() {
|
|
return gridPanel18;
|
|
}
|
|
|
|
public void setGridPanel18(HtmlPanelGrid hpg) {
|
|
this.gridPanel18 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel20 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel20() {
|
|
return gridPanel20;
|
|
}
|
|
|
|
public void setGridPanel20(HtmlPanelGrid hpg) {
|
|
this.gridPanel20 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel12 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel12() {
|
|
return groupPanel12;
|
|
}
|
|
|
|
public void setGroupPanel12(PanelGroup pg) {
|
|
this.groupPanel12 = pg;
|
|
}
|
|
|
|
private StaticText staticText25 = new StaticText();
|
|
|
|
public StaticText getStaticText25() {
|
|
return staticText25;
|
|
}
|
|
|
|
public void setStaticText25(StaticText st) {
|
|
this.staticText25 = st;
|
|
}
|
|
|
|
private StaticText staticText26 = new StaticText();
|
|
|
|
public StaticText getStaticText26() {
|
|
return staticText26;
|
|
}
|
|
|
|
public void setStaticText26(StaticText st) {
|
|
this.staticText26 = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel13 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel13() {
|
|
return groupPanel13;
|
|
}
|
|
|
|
public void setGroupPanel13(PanelGroup pg) {
|
|
this.groupPanel13 = pg;
|
|
}
|
|
|
|
private StaticText staticText27 = new StaticText();
|
|
|
|
public StaticText getStaticText27() {
|
|
return staticText27;
|
|
}
|
|
|
|
public void setStaticText27(StaticText st) {
|
|
this.staticText27 = st;
|
|
}
|
|
|
|
private StaticText txtTecnicoSuperior = new StaticText();
|
|
|
|
public StaticText getTxtTecnicoSuperior() {
|
|
return txtTecnicoSuperior;
|
|
}
|
|
|
|
public void setTxtTecnicoSuperior(StaticText st) {
|
|
this.txtTecnicoSuperior = st;
|
|
}
|
|
|
|
private StaticText staticText28 = new StaticText();
|
|
|
|
public StaticText getStaticText28() {
|
|
return staticText28;
|
|
}
|
|
|
|
public void setStaticText28(StaticText st) {
|
|
this.staticText28 = st;
|
|
}
|
|
|
|
private StaticText staticText47 = new StaticText();
|
|
|
|
public StaticText getStaticText47() {
|
|
return staticText47;
|
|
}
|
|
|
|
public void setStaticText47(StaticText st) {
|
|
this.staticText47 = st;
|
|
}
|
|
|
|
private StaticText txtCap1 = new StaticText();
|
|
|
|
public StaticText getTxtCap1() {
|
|
return txtCap1;
|
|
}
|
|
|
|
public void setTxtCap1(StaticText st) {
|
|
this.txtCap1 = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel14 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel14() {
|
|
return groupPanel14;
|
|
}
|
|
|
|
public void setGroupPanel14(PanelGroup pg) {
|
|
this.groupPanel14 = pg;
|
|
}
|
|
|
|
private StaticText staticText48 = new StaticText();
|
|
|
|
public StaticText getStaticText48() {
|
|
return staticText48;
|
|
}
|
|
|
|
public void setStaticText48(StaticText st) {
|
|
this.staticText48 = st;
|
|
}
|
|
|
|
private StaticText txtMedicoTrabalho = new StaticText();
|
|
|
|
public StaticText getTxtMedicoTrabalho() {
|
|
return txtMedicoTrabalho;
|
|
}
|
|
|
|
public void setTxtMedicoTrabalho(StaticText st) {
|
|
this.txtMedicoTrabalho = st;
|
|
}
|
|
|
|
private StaticText staticText49 = new StaticText();
|
|
|
|
public StaticText getStaticText49() {
|
|
return staticText49;
|
|
}
|
|
|
|
public void setStaticText49(StaticText st) {
|
|
this.staticText49 = st;
|
|
}
|
|
|
|
private StaticText staticText50 = new StaticText();
|
|
|
|
public StaticText getStaticText50() {
|
|
return staticText50;
|
|
}
|
|
|
|
public void setStaticText50(StaticText st) {
|
|
this.staticText50 = st;
|
|
}
|
|
|
|
private StaticText txtCedula1 = new StaticText();
|
|
|
|
public StaticText getTxtCedula1() {
|
|
return txtCedula1;
|
|
}
|
|
|
|
public void setTxtCedula1(StaticText st) {
|
|
this.txtCedula1 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel5() {
|
|
return gridPanel5;
|
|
}
|
|
|
|
public void setGridPanel5(HtmlPanelGrid hpg) {
|
|
this.gridPanel5 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel3 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel3() {
|
|
return groupPanel3;
|
|
}
|
|
|
|
public void setGroupPanel3(PanelGroup pg) {
|
|
this.groupPanel3 = pg;
|
|
}
|
|
|
|
private StaticText staticText6 = new StaticText();
|
|
|
|
public StaticText getStaticText6() {
|
|
return staticText6;
|
|
}
|
|
|
|
public void setStaticText6(StaticText st) {
|
|
this.staticText6 = st;
|
|
}
|
|
|
|
private StaticText stNomeAcidentado = new StaticText();
|
|
|
|
public StaticText getStNomeAcidentado() {
|
|
return stNomeAcidentado;
|
|
}
|
|
|
|
public void setStNomeAcidentado(StaticText st) {
|
|
this.stNomeAcidentado = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel4 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel4() {
|
|
return groupPanel4;
|
|
}
|
|
|
|
public void setGroupPanel4(PanelGroup pg) {
|
|
this.groupPanel4 = pg;
|
|
}
|
|
|
|
private StaticText staticText7 = new StaticText();
|
|
|
|
public StaticText getStaticText7() {
|
|
return staticText7;
|
|
}
|
|
|
|
public void setStaticText7(StaticText st) {
|
|
this.staticText7 = st;
|
|
}
|
|
|
|
private StaticText stEstabelecimentoOrigem = new StaticText();
|
|
|
|
public StaticText getStEstabelecimentoOrigem() {
|
|
return stEstabelecimentoOrigem;
|
|
}
|
|
|
|
public void setStEstabelecimentoOrigem(StaticText st) {
|
|
this.stEstabelecimentoOrigem = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel15 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel15() {
|
|
return groupPanel15;
|
|
}
|
|
|
|
public void setGroupPanel15(PanelGroup pg) {
|
|
this.groupPanel15 = pg;
|
|
}
|
|
|
|
private StaticText staticText8 = new StaticText();
|
|
|
|
public StaticText getStaticText8() {
|
|
return staticText8;
|
|
}
|
|
|
|
public void setStaticText8(StaticText st) {
|
|
this.staticText8 = st;
|
|
}
|
|
|
|
private StaticText stDataNascimento = new StaticText();
|
|
|
|
public StaticText getStDataNascimento() {
|
|
return stDataNascimento;
|
|
}
|
|
|
|
public void setStDataNascimento(StaticText st) {
|
|
this.stDataNascimento = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel16 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel16() {
|
|
return groupPanel16;
|
|
}
|
|
|
|
public void setGroupPanel16(PanelGroup pg) {
|
|
this.groupPanel16 = pg;
|
|
}
|
|
|
|
private StaticText staticText9 = new StaticText();
|
|
|
|
public StaticText getStaticText9() {
|
|
return staticText9;
|
|
}
|
|
|
|
public void setStaticText9(StaticText st) {
|
|
this.staticText9 = st;
|
|
}
|
|
|
|
private StaticText stBI = new StaticText();
|
|
|
|
public StaticText getStBI() {
|
|
return stBI;
|
|
}
|
|
|
|
public void setStBI(StaticText st) {
|
|
this.stBI = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel17 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel17() {
|
|
return groupPanel17;
|
|
}
|
|
|
|
public void setGroupPanel17(PanelGroup pg) {
|
|
this.groupPanel17 = pg;
|
|
}
|
|
|
|
private StaticText staticText10 = new StaticText();
|
|
|
|
public StaticText getStaticText10() {
|
|
return staticText10;
|
|
}
|
|
|
|
public void setStaticText10(StaticText st) {
|
|
this.staticText10 = st;
|
|
}
|
|
|
|
private StaticText stMorada = new StaticText();
|
|
|
|
public StaticText getStMorada() {
|
|
return stMorada;
|
|
}
|
|
|
|
public void setStMorada(StaticText st) {
|
|
this.stMorada = st;
|
|
}
|
|
|
|
private StaticText staticText11 = new StaticText();
|
|
|
|
public StaticText getStaticText11() {
|
|
return staticText11;
|
|
}
|
|
|
|
public void setStaticText11(StaticText st) {
|
|
this.staticText11 = st;
|
|
}
|
|
|
|
private StaticText stCodPostal = new StaticText();
|
|
|
|
public StaticText getStCodPostal() {
|
|
return stCodPostal;
|
|
}
|
|
|
|
public void setStCodPostal(StaticText st) {
|
|
this.stCodPostal = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel18 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel18() {
|
|
return groupPanel18;
|
|
}
|
|
|
|
public void setGroupPanel18(PanelGroup pg) {
|
|
this.groupPanel18 = pg;
|
|
}
|
|
|
|
private StaticText staticText12 = new StaticText();
|
|
|
|
public StaticText getStaticText12() {
|
|
return staticText12;
|
|
}
|
|
|
|
public void setStaticText12(StaticText st) {
|
|
this.staticText12 = st;
|
|
}
|
|
|
|
private StaticText stContactoTelefonico = new StaticText();
|
|
|
|
public StaticText getStContactoTelefonico() {
|
|
return stContactoTelefonico;
|
|
}
|
|
|
|
public void setStContactoTelefonico(StaticText st) {
|
|
this.stContactoTelefonico = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel19 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel19() {
|
|
return groupPanel19;
|
|
}
|
|
|
|
public void setGroupPanel19(PanelGroup pg) {
|
|
this.groupPanel19 = pg;
|
|
}
|
|
|
|
private StaticText staticText51 = new StaticText();
|
|
|
|
public StaticText getStaticText51() {
|
|
return staticText51;
|
|
}
|
|
|
|
public void setStaticText51(StaticText st) {
|
|
this.staticText51 = st;
|
|
}
|
|
|
|
private StaticText stDataAdmissao = new StaticText();
|
|
|
|
public StaticText getStDataAdmissao() {
|
|
return stDataAdmissao;
|
|
}
|
|
|
|
public void setStDataAdmissao(StaticText st) {
|
|
this.stDataAdmissao = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel20 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel20() {
|
|
return groupPanel20;
|
|
}
|
|
|
|
public void setGroupPanel20(PanelGroup pg) {
|
|
this.groupPanel20 = pg;
|
|
}
|
|
|
|
private StaticText staticText52 = new StaticText();
|
|
|
|
public StaticText getStaticText52() {
|
|
return staticText52;
|
|
}
|
|
|
|
public void setStaticText52(StaticText st) {
|
|
this.staticText52 = st;
|
|
}
|
|
|
|
private StaticText stFuncao = new StaticText();
|
|
|
|
public StaticText getStFuncao() {
|
|
return stFuncao;
|
|
}
|
|
|
|
public void setStFuncao(StaticText st) {
|
|
this.stFuncao = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel21 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel21() {
|
|
return groupPanel21;
|
|
}
|
|
|
|
public void setGroupPanel21(PanelGroup pg) {
|
|
this.groupPanel21 = pg;
|
|
}
|
|
|
|
private StaticText staticText53 = new StaticText();
|
|
|
|
public StaticText getStaticText53() {
|
|
return staticText53;
|
|
}
|
|
|
|
public void setStaticText53(StaticText st) {
|
|
this.staticText53 = st;
|
|
}
|
|
|
|
private StaticText stTurno = new StaticText();
|
|
|
|
public StaticText getStTurno() {
|
|
return stTurno;
|
|
}
|
|
|
|
public void setStTurno(StaticText st) {
|
|
this.stTurno = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel22 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel22() {
|
|
return groupPanel22;
|
|
}
|
|
|
|
public void setGroupPanel22(PanelGroup pg) {
|
|
this.groupPanel22 = pg;
|
|
}
|
|
|
|
private StaticText lblHorasTurno = new StaticText();
|
|
|
|
public StaticText getLblHorasTurno() {
|
|
return lblHorasTurno;
|
|
}
|
|
|
|
public void setLblHorasTurno(StaticText st) {
|
|
this.lblHorasTurno = st;
|
|
}
|
|
|
|
private StaticText txtHorasTurno = new StaticText();
|
|
|
|
public StaticText getTxtHorasTurno() {
|
|
return txtHorasTurno;
|
|
}
|
|
|
|
public void setTxtHorasTurno(StaticText st) {
|
|
this.txtHorasTurno = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel23 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel23() {
|
|
return groupPanel23;
|
|
}
|
|
|
|
public void setGroupPanel23(PanelGroup pg) {
|
|
this.groupPanel23 = pg;
|
|
}
|
|
|
|
private StaticText lblSeccao = new StaticText();
|
|
|
|
public StaticText getLblSeccao() {
|
|
return lblSeccao;
|
|
}
|
|
|
|
public void setLblSeccao(StaticText st) {
|
|
this.lblSeccao = st;
|
|
}
|
|
|
|
private StaticText txtSeccao = new StaticText();
|
|
|
|
public StaticText getTxtSeccao() {
|
|
return txtSeccao;
|
|
}
|
|
|
|
public void setTxtSeccao(StaticText st) {
|
|
this.txtSeccao = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel24 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel24() {
|
|
return groupPanel24;
|
|
}
|
|
|
|
public void setGroupPanel24(PanelGroup pg) {
|
|
this.groupPanel24 = pg;
|
|
}
|
|
|
|
private StaticText lblLocal = new StaticText();
|
|
|
|
public StaticText getLblLocal() {
|
|
return lblLocal;
|
|
}
|
|
|
|
public void setLblLocal(StaticText st) {
|
|
this.lblLocal = st;
|
|
}
|
|
|
|
private StaticText txtLocal = new StaticText();
|
|
|
|
public StaticText getTxtLocal() {
|
|
return txtLocal;
|
|
}
|
|
|
|
public void setTxtLocal(StaticText st) {
|
|
this.txtLocal = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridHeader1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridHeader1() {
|
|
return gridHeader1;
|
|
}
|
|
|
|
public void setGridHeader1(HtmlPanelGrid hpg) {
|
|
this.gridHeader1 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel6() {
|
|
return gridPanel6;
|
|
}
|
|
|
|
public void setGridPanel6(HtmlPanelGrid hpg) {
|
|
this.gridPanel6 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel26 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel26() {
|
|
return groupPanel26;
|
|
}
|
|
|
|
public void setGroupPanel26(PanelGroup pg) {
|
|
this.groupPanel26 = pg;
|
|
}
|
|
|
|
private ImageComponent image4 = new ImageComponent();
|
|
|
|
public ImageComponent getImage4() {
|
|
return image4;
|
|
}
|
|
|
|
public void setImage4(ImageComponent ic) {
|
|
this.image4 = ic;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel7() {
|
|
return gridPanel7;
|
|
}
|
|
|
|
public void setGridPanel7(HtmlPanelGrid hpg) {
|
|
this.gridPanel7 = hpg;
|
|
}
|
|
|
|
private StaticText staticText41 = new StaticText();
|
|
|
|
public StaticText getStaticText41() {
|
|
return staticText41;
|
|
}
|
|
|
|
public void setStaticText41(StaticText st) {
|
|
this.staticText41 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel21 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel21() {
|
|
return gridPanel21;
|
|
}
|
|
|
|
public void setGridPanel21(HtmlPanelGrid hpg) {
|
|
this.gridPanel21 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel27 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel27() {
|
|
return groupPanel27;
|
|
}
|
|
|
|
public void setGroupPanel27(PanelGroup pg) {
|
|
this.groupPanel27 = pg;
|
|
}
|
|
|
|
private StaticText staticText42 = new StaticText();
|
|
|
|
public StaticText getStaticText42() {
|
|
return staticText42;
|
|
}
|
|
|
|
public void setStaticText42(StaticText st) {
|
|
this.staticText42 = st;
|
|
}
|
|
|
|
private StaticText stHeaderNr = new StaticText();
|
|
|
|
public StaticText getStHeaderNr() {
|
|
return stHeaderNr;
|
|
}
|
|
|
|
public void setStHeaderNr(StaticText st) {
|
|
this.stHeaderNr = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel28 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel28() {
|
|
return groupPanel28;
|
|
}
|
|
|
|
public void setGroupPanel28(PanelGroup pg) {
|
|
this.groupPanel28 = pg;
|
|
}
|
|
|
|
private StaticText staticText43 = new StaticText();
|
|
|
|
public StaticText getStaticText43() {
|
|
return staticText43;
|
|
}
|
|
|
|
public void setStaticText43(StaticText st) {
|
|
this.staticText43 = st;
|
|
}
|
|
|
|
private StaticText stHeaderDate = new StaticText();
|
|
|
|
public StaticText getStHeaderDate() {
|
|
return stHeaderDate;
|
|
}
|
|
|
|
public void setStHeaderDate(StaticText st) {
|
|
this.stHeaderDate = st;
|
|
}
|
|
|
|
private ImageComponent image5 = new ImageComponent();
|
|
|
|
public ImageComponent getImage5() {
|
|
return image5;
|
|
}
|
|
|
|
public void setImage5(ImageComponent ic) {
|
|
this.image5 = ic;
|
|
}
|
|
|
|
private HiddenField hidConfDelete = new HiddenField();
|
|
|
|
public HiddenField getHidConfDelete() {
|
|
return hidConfDelete;
|
|
}
|
|
|
|
public void setHidConfDelete(HiddenField hf) {
|
|
this.hidConfDelete = hf;
|
|
}
|
|
|
|
private PanelGroup groupPanel1 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel1() {
|
|
return groupPanel1;
|
|
}
|
|
|
|
public void setGroupPanel1(PanelGroup pg) {
|
|
this.groupPanel1 = pg;
|
|
}
|
|
|
|
private Button butVoltar = new Button();
|
|
|
|
public Button getButVoltar() {
|
|
return butVoltar;
|
|
}
|
|
|
|
public void setButVoltar(Button b) {
|
|
this.butVoltar = b;
|
|
}
|
|
|
|
private Button butEliminar = new Button();
|
|
|
|
public Button getButEliminar() {
|
|
return butEliminar;
|
|
}
|
|
|
|
public void setButEliminar(Button b) {
|
|
this.butEliminar = b;
|
|
}
|
|
private StaticText lblUser = new StaticText();
|
|
|
|
public StaticText getLblUser() {
|
|
return lblUser;
|
|
}
|
|
|
|
public void setLblUser(StaticText st) {
|
|
this.lblUser = st;
|
|
}
|
|
/**
|
|
* <p>Construct a new Page bean instance.</p>
|
|
*/
|
|
public ViewAnaliseAcidenteTrabalho() {
|
|
}
|
|
|
|
/**
|
|
* <p>Callback method that is called whenever a page is navigated to,
|
|
* either directly via a URL, or indirectly via page navigation.
|
|
* Customize this method to acquire resources that will be needed
|
|
* for event handlers and lifecycle methods, whether or not this
|
|
* page is performing post back processing.</p>
|
|
*
|
|
* <p>Note that, if the current request is a postback, the property
|
|
* values of the components do <strong>not</strong> represent any
|
|
* values submitted with this request. Instead, they represent the
|
|
* property values that were saved for this view when it was rendered.</p>
|
|
*/
|
|
@Override
|
|
public void init()
|
|
{
|
|
// Perform initializations inherited from our superclasssuperclass
|
|
super.init();
|
|
// Perform application initialization that must complete
|
|
// *before* managed components are initialized
|
|
|
|
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
|
|
// Initialize automatically managed components
|
|
// *Note* - this logic should NOT be modified
|
|
try {
|
|
_init();
|
|
} catch (Exception e) {
|
|
log("ViewAnaliseAcidenteTrabalho Initialization Failure", e);
|
|
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
|
}
|
|
|
|
// </editor-fold>
|
|
// Perform application initialization that must complete
|
|
// *after* managed components are initialized
|
|
|
|
if (!getSessionBean1().isLoggedIn())
|
|
{
|
|
try
|
|
{
|
|
getExternalContext().redirect("Login.jsp");
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
// . . . handle exception . . .
|
|
System.out.println("LOGGED IN = " + e.getMessage());
|
|
}
|
|
}
|
|
else
|
|
{
|
|
lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
|
|
initializePage();
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
* <p>Callback method that is called after the component tree has been
|
|
* restored, but before any event processing takes place. This method
|
|
* will <strong>only</strong> be called on a postback request that
|
|
* is processing a form submit. Customize this method to allocate
|
|
* resources that will be required in your event handlers.</p>
|
|
*/
|
|
@Override
|
|
public void preprocess()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* <p>Callback method that is called just before rendering takes place.
|
|
* This method will <strong>only</strong> be called for the page that
|
|
* will actually be rendered (and not, for example, on a page that
|
|
* handled a postback and then navigated to a different page). Customize
|
|
* this method to allocate resources that will be required for rendering
|
|
* this page.</p>
|
|
*/
|
|
@Override
|
|
public void prerender()
|
|
{
|
|
getSessionBean1().setFromAnaliseDeletion(false);
|
|
String confirmacao_analise = (String)getExternalContext().getRequestParameterMap().get("confirmacao_analise");
|
|
if(confirmacao_analise != null)
|
|
{
|
|
if(confirmacao_analise.matches("yes"))
|
|
{
|
|
hidConfDelete.setValue("");
|
|
try
|
|
{
|
|
deleteAnalise();
|
|
//booMsgQuizDeleted = true;
|
|
getSessionBean1().setFromAnaliseDeletion(true);
|
|
getSessionBean1().setMsg("Análise eliminada !");
|
|
Utilizador u = getSessionBean1().getCurrentUser();
|
|
if(u.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
|
|
{
|
|
|
|
try
|
|
{
|
|
getExternalContext().redirect("FormDirSiprp.jsp");
|
|
}
|
|
catch(Exception ex1)
|
|
{
|
|
ErrorLogger.logException( ex1 );
|
|
}
|
|
}
|
|
else if(u.getTipo().intValue() == Global.TIPO_UTILIZADOR_HS)
|
|
{
|
|
|
|
try
|
|
{
|
|
getExternalContext().redirect("FormHS.jsp");
|
|
}
|
|
catch(Exception ex1)
|
|
{
|
|
ErrorLogger.logException( ex1 );
|
|
}
|
|
}
|
|
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
getSessionBean1().setMsg("Erro na eliminação da análise");
|
|
ErrorLogger.logException( ex );
|
|
// try
|
|
// {
|
|
// getExternalContext().redirect("EditarQuestionario.jsp");
|
|
// }
|
|
// catch(Exception ex1)
|
|
// {
|
|
// ErrorLogger.logException( ex1 );
|
|
// }
|
|
}
|
|
}
|
|
else if(confirmacao_analise.matches("no"))
|
|
{
|
|
hidConfDelete.setValue("");
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* <p>Callback method that is called after rendering is completed for
|
|
* this request, if <code>init()</code> was called (regardless of whether
|
|
* or not this was the page that was actually rendered). Customize this
|
|
* method to release resources acquired in the <code>init()</code>,
|
|
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
|
|
* acquired during execution of an event handler).</p>
|
|
*/
|
|
@Override
|
|
public void destroy()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* <p>Return a reference to the scoped data bean.</p>
|
|
*/
|
|
protected SessionBean1 getSessionBean1()
|
|
{
|
|
return (SessionBean1)getBean("SessionBean1");
|
|
}
|
|
|
|
/**
|
|
* <p>Return a reference to the scoped data bean.</p>
|
|
*/
|
|
protected RequestBean1 getRequestBean1()
|
|
{
|
|
return (RequestBean1)getBean("RequestBean1");
|
|
}
|
|
|
|
/**
|
|
* <p>Return a reference to the scoped data bean.</p>
|
|
*/
|
|
protected ApplicationBean1 getApplicationBean1()
|
|
{
|
|
return (ApplicationBean1)getBean("ApplicationBean1");
|
|
}
|
|
|
|
public String lnkLogout_action()
|
|
{
|
|
Utils.doLogout( getExternalContext(), true );
|
|
return null;
|
|
}
|
|
|
|
public String lnkNome_action()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public String lnkDataNascimento_action()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
private void initializePage()
|
|
{
|
|
Utilizador u = getSessionBean1().getCurrentUser();
|
|
AnaliseAcidente a = getSessionBean1().getCurrentAnalise();
|
|
|
|
if(! (u.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP || u.getTipo().intValue() == Global.TIPO_UTILIZADOR_HS))
|
|
{
|
|
butEliminar.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
if(a.getEstado().intValue() == Global.ESTADO_CONCLUIDO)
|
|
{
|
|
butEliminar.setRendered(false);
|
|
}
|
|
}
|
|
|
|
if ( a != null )
|
|
{
|
|
if ( a.getConcluido_por_desactivacao() )
|
|
{
|
|
txtComentarioConclusaoTitle.setRendered( true );
|
|
txtComentarioConclusaoTitle.setText( "Processo desactivado." );
|
|
|
|
if ( a.getComentario_desactivacao() != null && ! "".equals( a.getComentario_desactivacao().trim() ) )
|
|
{
|
|
txtComentarioConclusao.setRendered( true );
|
|
txtComentarioConclusao.setText( "" + a.getComentario_desactivacao() );
|
|
}
|
|
else
|
|
{
|
|
txtComentarioConclusao.setRendered( false );
|
|
txtComentarioConclusao.setText( "" );
|
|
}
|
|
}
|
|
else
|
|
{
|
|
txtComentarioConclusao.setRendered( false );
|
|
txtComentarioConclusao.setText( "" );
|
|
txtComentarioConclusao.setRendered( false );
|
|
txtComentarioConclusao.setText( "" );
|
|
}
|
|
}
|
|
|
|
fillPage();
|
|
//fillImages();
|
|
}
|
|
|
|
private void fillPage()
|
|
{
|
|
AnaliseAcidente a = getSessionBean1().getCurrentAnalise();
|
|
fillHeader(a);
|
|
fillSIPRP(a);
|
|
|
|
Acidentado ac = null;
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
ac = adp.getAcidentado(a.getAcidentado_id());
|
|
//txtTrabalhador.setText(ac.getNome());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
|
|
|
|
int estado = a.getEstado().intValue();
|
|
switch(estado)
|
|
{
|
|
case Global.ESTADO_SEG:
|
|
gridDadosAcidenteRhView.setRendered(false);
|
|
gridRecomendacoesViewHS.setRendered(false);
|
|
gridMedidasViewRH.setRendered(false);
|
|
gridMedicoView.setRendered(false);
|
|
gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
break;
|
|
case Global.ESTADO_RH1:
|
|
gridDadosAcidenteRhView.setRendered(false);
|
|
gridRecomendacoesViewHS.setRendered(false);
|
|
gridMedidasViewRH.setRendered(false);
|
|
gridMedicoView.setRendered(false);
|
|
gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
break;
|
|
case Global.ESTADO_HS:
|
|
gridRecomendacoesViewHS.setRendered(false);
|
|
gridMedidasViewRH.setRendered(false);
|
|
gridMedicoView.setRendered(false);
|
|
gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
break;
|
|
case Global.ESTADO_RH2: //medidas
|
|
gridMedidasViewRH.setRendered(false);
|
|
gridMedicoView.setRendered(false);
|
|
gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
fillRecomendacoesHs(a);
|
|
|
|
break;
|
|
// case Global.ESTADO_MEDICINA:
|
|
// gridMedicoView.setRendered(false);
|
|
// gridVerificacaoView.setRendered(false);
|
|
// gridImpressaoView.setRendered(false);
|
|
//
|
|
// fillAcidentado(ac);
|
|
// fillDadosAcidenteSeg(a);
|
|
// fillDadosAcidenteRh(a);
|
|
// fillRecomendacoesHs(a);
|
|
// fillMedidasRh(a);
|
|
// break;
|
|
case Global.ESTADO_CONSOLIDACAO:
|
|
gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
fillRecomendacoesHs(a);
|
|
fillMedidasRh(a);
|
|
fillMedico(a);
|
|
break;
|
|
case Global.ESTADO_ASSINATURA_SEG:
|
|
//gridMedidasViewRH.setRendered(false);
|
|
//gridMedicoView.setRendered(false);
|
|
//gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
fillRecomendacoesHs(a);
|
|
fillMedidasRh(a);
|
|
fillMedico(a);
|
|
fillVerificacao(a);
|
|
break;
|
|
|
|
case Global.ESTADO_ASSINATURA_RH:
|
|
//gridMedidasViewRH.setRendered(false);
|
|
//gridMedicoView.setRendered(false);
|
|
//gridVerificacaoView.setRendered(false);
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
fillRecomendacoesHs(a);
|
|
fillMedidasRh(a);
|
|
fillMedico(a);
|
|
fillVerificacao(a);
|
|
break;
|
|
|
|
|
|
// case Global.ESTADO_IMPRESSAO:
|
|
// gridImpressaoView.setRendered(false);
|
|
//
|
|
// fillAcidentado(ac);
|
|
// fillDadosAcidenteSeg(a);
|
|
// fillDadosAcidenteRh(a);
|
|
// fillRecomendacoesHs(a);
|
|
// fillMedidasRh(a);
|
|
// fillMedico(a);
|
|
// fillVerificacao(a);
|
|
// break;
|
|
|
|
case Global.ESTADO_FECHAR:
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
fillRecomendacoesHs(a);
|
|
fillMedidasRh(a);
|
|
fillMedico(a);
|
|
fillVerificacao(a);
|
|
//fillImpressao(a);
|
|
break;
|
|
case Global.ESTADO_CONCLUIDO:
|
|
gridImpressaoView.setRendered(false);
|
|
|
|
fillAcidentado(ac);
|
|
fillDadosAcidenteSeg(a);
|
|
fillDadosAcidenteRh(a);
|
|
fillRecomendacoesHs(a);
|
|
fillMedidasRh(a);
|
|
fillMedico(a);
|
|
fillVerificacao(a);
|
|
|
|
break;
|
|
}
|
|
}
|
|
|
|
private void fillHeader(AnaliseAcidente a)
|
|
{
|
|
stHeaderNr.setText(a.getAnalise_nr());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_acidente().getTime());
|
|
stHeaderDate.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch ( Exception ex )
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
private void fillSIPRP(AnaliseAcidente a)
|
|
{
|
|
try
|
|
{
|
|
UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
|
|
|
|
Utilizador u = udp.getUtilizador(a.getTecnico_saude_id());
|
|
txtTecnicoSuperior.setText(Utils.unicodeToHTML(u.getNome()));
|
|
txtCap1.setText(u.getCap());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
try
|
|
{
|
|
UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
|
|
|
|
Utilizador u = udp.getUtilizador(a.getMedico_id());
|
|
txtMedicoTrabalho.setText(Utils.unicodeToHTML(u.getNome()));
|
|
txtCedula1.setText(u.getNumero_cedula());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
private void fillAcidentado(Acidentado a)
|
|
{
|
|
stNomeAcidentado.setText(a.getNome());
|
|
//stDataNascimento.setText(a.getData_nascimento());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_nascimento().getTime());
|
|
stDataNascimento.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch ( Exception ex )
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
stBI.setText(a.getBilhete_identidade());
|
|
stMorada.setText(a.getMorada());
|
|
String cod_postal1 = "";
|
|
String cod_postal2 = "";
|
|
try
|
|
{
|
|
cod_postal1 = a.getCod_postal().substring(0, 4);
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
|
|
}
|
|
try
|
|
{
|
|
cod_postal2 = a.getCod_postal().substring(5, 8);
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
//String cod_postal1 = a.getCod_postal().substring(0, 4);
|
|
//String cod_postal2 = a.getCod_postal().substring(5, 8);
|
|
String cod_postal = cod_postal1 + "-" + cod_postal2 + " " + a.getLocalidade();
|
|
stCodPostal.setText(cod_postal);
|
|
stContactoTelefonico.setText(a.getContacto_telefonico());
|
|
//stDataAdmissao1.setText(a.getData_admissao());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_admissao().getTime());
|
|
stDataAdmissao.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
stFuncao.setText(a.getFuncao());
|
|
String turno_str = "";
|
|
if(a.getTurno().matches("m"))
|
|
{
|
|
turno_str = "manhã";
|
|
}
|
|
else if(a.getTurno().matches("t"))
|
|
{
|
|
turno_str += "tarde ";
|
|
}
|
|
if(a.getTurno().matches("n"))
|
|
{
|
|
turno_str += "noite";
|
|
}
|
|
stTurno.setText(turno_str);
|
|
stNomeSuperior.setText(a.getNome_superior_hierarquico());
|
|
stEmailSuperior.setText(a.getEmail_superior_hierarquico());
|
|
stEstabelecimentoOrigem.setText(a.getEstabelecimento_origem());
|
|
}
|
|
|
|
private void fillDadosAcidenteSeg(AnaliseAcidente a)
|
|
{
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
|
|
String nome_empresa = adp.getEmpresaNome(a.getEmpresa_id());
|
|
txtEmpresa.setText(utils.Utils.unicodeToHTML(nome_empresa));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
|
|
txtEstabelecimento.setText(adp.getEstabelecimentoNome(a.getEstabelecimento_id()));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
|
|
// try
|
|
// {
|
|
// //Trabalhador t = adp.getTrabalhador(a.getTrabalhador_id());
|
|
// Acidentado ac = adp.getAcidentado(a.getAcidentado_id());
|
|
// //txtDataNascimento.setText(ac.getData_nascimento());
|
|
// try
|
|
// {
|
|
// java.util.Date ddate = new java.util.Date(ac.getData_nascimento().getTime());
|
|
// txtDataNascimento.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
// }
|
|
// catch(Exception ex){};
|
|
// getSessionBean1().setAcidentado(ac);
|
|
// }
|
|
// catch(Exception ex)
|
|
// {
|
|
// ErrorLogger.logException( ex );
|
|
// }
|
|
|
|
txtTrabalhador.setText(a.getNome_acidentado());
|
|
// txtNomeAcidentado.setText(a.getNome_acidentado());
|
|
|
|
stAveriguador.setText(a.getAveriguador());
|
|
|
|
if(a.getData_acidente() == null)
|
|
{
|
|
lblDataAcidente.setRendered(false);
|
|
stDataAcidente1.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_acidente().getTime());
|
|
stDataAcidente1.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
if(a.getHora_acidente() == null)
|
|
{
|
|
lblHoraAcidente.setRendered(false);
|
|
stHoraAcidente1.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
Calendar cal = Calendar.getInstance();
|
|
|
|
// set the calendar to have your time
|
|
cal.setTimeInMillis(a.getHora_acidente().getTime());
|
|
|
|
int hour = cal.get(Calendar.HOUR_OF_DAY);
|
|
int minutes = cal.get(Calendar.MINUTE);
|
|
try
|
|
{
|
|
stHoraAcidente1.setText(utils.Utils.timeToHHMM(hour + ":" + minutes));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
boolean booTurnoSeccaoLocal = false;
|
|
if(a.getHoras_turno() == null)
|
|
{
|
|
lblHorasTurno.setRendered(false);
|
|
txtHorasTurno.setRendered(false);
|
|
}
|
|
else if(a.getHoras_turno().intValue() == 0)
|
|
{
|
|
lblHorasTurno.setRendered(false);
|
|
txtHorasTurno.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtHorasTurno.setText(a.getHoras_turno().toString());
|
|
booTurnoSeccaoLocal = true;
|
|
}
|
|
|
|
// if(a.getSeccao() == null)
|
|
// {
|
|
// lblSeccao.setRendered(false);
|
|
// txtSeccao.setRendered(false);
|
|
// }
|
|
// else if(a.getSeccao().trim().length() == 0)
|
|
// {
|
|
// lblSeccao.setRendered(false);
|
|
// txtSeccao.setRendered(false);
|
|
// }
|
|
// else
|
|
// {
|
|
// txtSeccao.setText(a.getSeccao());
|
|
// booTurnoSeccaoLocal = true;
|
|
// }
|
|
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
Seccao s = adp.getSeccao(a.getSeccao_id());
|
|
txtSeccao.setText(s.getDescricao());
|
|
booTurnoSeccaoLocal = true;
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
lblSeccao.setRendered(false);
|
|
txtSeccao.setRendered(false);
|
|
}
|
|
|
|
|
|
if(a.getLocal_trabalho() == null)
|
|
{
|
|
lblLocal.setRendered(false);
|
|
txtLocal.setRendered(false);
|
|
}
|
|
else if(a.getLocal_trabalho().trim().length() == 0)
|
|
{
|
|
lblLocal.setRendered(false);
|
|
txtLocal.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtLocal.setText(a.getLocal_trabalho());
|
|
booTurnoSeccaoLocal = true;
|
|
}
|
|
|
|
if(!booTurnoSeccaoLocal)
|
|
{
|
|
gridTurnoSeccaoLocal.setRendered(false);
|
|
}
|
|
|
|
if(a.getTarefa() == null)
|
|
{
|
|
gridTarefa.setRendered(false);
|
|
lblTarefa.setRendered(false);
|
|
txtTarefa.setRendered(false);
|
|
}
|
|
else if(a.getTarefa().trim().length() == 0)
|
|
{
|
|
gridTarefa.setRendered(false);
|
|
lblTarefa.setRendered(false);
|
|
txtTarefa.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtTarefa.setText(a.getTarefa());
|
|
}
|
|
|
|
if(a.getSubstancias() == null)
|
|
{
|
|
gridSubstancias.setRendered(false);
|
|
lblSubstancias.setRendered(false);
|
|
txtSubstancias.setRendered(false);
|
|
}
|
|
else if(a.getSubstancias().trim().length() == 0)
|
|
{
|
|
gridSubstancias.setRendered(false);
|
|
lblSubstancias.setRendered(false);
|
|
txtSubstancias.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtSubstancias.setText(a.getSubstancias());
|
|
}
|
|
|
|
// if(a.getSuperior_hierarquico() == null)
|
|
// {
|
|
// gridSuperior.setRendered(false);
|
|
// lblSuperior.setRendered(false);
|
|
// txtSuperior.setRendered(false);
|
|
// }
|
|
// else if(a.getSuperior_hierarquico().trim().length() == 0)
|
|
// {
|
|
// gridSuperior.setRendered(false);
|
|
// lblSuperior.setRendered(false);
|
|
// txtSuperior.setRendered(false);
|
|
// }
|
|
// else
|
|
// {
|
|
// txtSuperior.setText(a.getSuperior_hierarquico());
|
|
// }
|
|
|
|
if(a.getCondicoes() == null)
|
|
{
|
|
gridCondicoes.setRendered(false);
|
|
lblCondicoes.setRendered(false);
|
|
txtCondicoes.setRendered(false);
|
|
}
|
|
else if(a.getCondicoes().trim().length() == 0)
|
|
{
|
|
gridCondicoes.setRendered(false);
|
|
lblCondicoes.setRendered(false);
|
|
txtCondicoes.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtCondicoes.setText(a.getCondicoes());
|
|
}
|
|
|
|
|
|
if(a.getTestemunhas() == null)
|
|
{
|
|
gridTestemunhas.setRendered(false);
|
|
lblTestemunhas.setRendered(false);
|
|
txtTestemunhas.setRendered(false);
|
|
}
|
|
else if(a.getTestemunhas().trim().length() == 0)
|
|
{
|
|
gridTestemunhas.setRendered(false);
|
|
lblTestemunhas.setRendered(false);
|
|
txtTestemunhas.setRendered(false);
|
|
|
|
}
|
|
else
|
|
{
|
|
txtTestemunhas.setText(a.getTestemunhas());
|
|
}
|
|
|
|
// txtCausas.setText(a.getCausas());
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
Causa c = adp.getCausa(a.getCausas());
|
|
txtCausas.setText(c.getCausa());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
gridCausas.setRendered(false);
|
|
}
|
|
|
|
if(a.getDescricao() == null)
|
|
{
|
|
gridDescricao.setRendered(false);
|
|
lblDescricao.setRendered(false);
|
|
txtDescricao.setRendered(false);
|
|
}
|
|
else if(a.getTestemunhas().trim().length() == 0)
|
|
{
|
|
gridDescricao.setRendered(false);
|
|
lblDescricao.setRendered(false);
|
|
txtDescricao.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtDescricao.setText(a.getDescricao());
|
|
}
|
|
|
|
if(a.getConclusoes() == null)
|
|
{
|
|
gridConclusoes.setRendered(false);
|
|
lblConclusoes.setRendered(false);
|
|
txtConclusoes.setRendered(false);
|
|
}
|
|
else if(a.getConclusoes().trim().length() == 0)
|
|
{
|
|
gridConclusoes.setRendered(false);
|
|
lblConclusoes.setRendered(false);
|
|
txtConclusoes.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtConclusoes.setText(a.getConclusoes());
|
|
}
|
|
|
|
if(a.getAccoes() == null)
|
|
{
|
|
gridAccoes.setRendered(false);
|
|
lblAccoes.setRendered(false);
|
|
txtAccoes.setRendered(false);
|
|
}
|
|
else if(a.getAccoes().trim().length() == 0)
|
|
{
|
|
gridAccoes.setRendered(false);
|
|
lblAccoes.setRendered(false);
|
|
txtAccoes.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
txtAccoes.setText(a.getAccoes());
|
|
}
|
|
|
|
if(a.getAveriguacao_posterior().matches("n"))
|
|
{
|
|
gridAveriguacaoPosterior.setRendered(false);
|
|
}
|
|
else
|
|
{
|
|
if(a.getAveriguacao_obs().trim().length() > 0)
|
|
{
|
|
txtAveriguacaoPosterior.setText("Averiguação posterior: " + a.getAveriguacao_obs());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//fill images
|
|
String folderName = a.getAnalise_nr().substring(0,2) + a.getAnalise_nr().substring(3);
|
|
System.out.println("FOLDER NAME : " + folderName);
|
|
ServletContext theApplicationsServletContext =
|
|
(ServletContext) this.getExternalContext().getContext();
|
|
// String imageFileFolder = theApplicationsServletContext.getRealPath(Global.IMAGE_FOLDER + "/" + folderName);
|
|
|
|
|
|
File apacheAnaliseFolder = new File(theApplicationsServletContext.getRealPath( Global.RESOURCES_IMAGE_FOLDER ) + "/analises/" + folderName);
|
|
if(apacheAnaliseFolder.exists())
|
|
{
|
|
Global global = new Global();
|
|
global.deleteFolderFiles(apacheAnaliseFolder);
|
|
}
|
|
else
|
|
{
|
|
apacheAnaliseFolder.mkdir();
|
|
}
|
|
|
|
|
|
String imageFileFolder = Global.IMAGE_FOLDER + "/" + folderName;
|
|
try
|
|
{
|
|
File f = new File(imageFileFolder);
|
|
|
|
if(f.exists())
|
|
{
|
|
File images[] = f.listFiles();
|
|
Arrays.sort(images);
|
|
for(int i=0;i<images.length;i++)
|
|
{
|
|
if(images[i].isFile())
|
|
{
|
|
String imageName = images[i].getName();
|
|
ImageComponent newImg = new ImageComponent();
|
|
|
|
File apacheImage = new File( theApplicationsServletContext.getRealPath( Global.RESOURCES_IMAGE_FOLDER ) + "/analises/" + folderName + "/" + imageName);
|
|
Global global = new Global();
|
|
global.copyImage(images[i], apacheImage);
|
|
|
|
newImg.setUrl(Global.RESOURCES_IMAGE_FOLDER + "/analises/" + folderName + "/" + imageName);
|
|
System.out.println("IMAGE URL : " + newImg.getUrl());
|
|
//newImg.setUrl(Global.IMAGE_FOLDER + "/" + folderName + "/" + imageName);
|
|
newImg.setRendered(true);
|
|
gridImages.getChildren().add(newImg);
|
|
}
|
|
}
|
|
System.out.println("IMAGES : " + gridImages.getChildren().size());
|
|
}
|
|
else
|
|
{
|
|
gridFotografias.setRendered(false);
|
|
lblFotografias.setRendered(false);
|
|
gridImages.setRendered(false);
|
|
}
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
System.out.println("IMAGES ERROR : " + ex.getMessage());
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
|
|
}
|
|
|
|
private void fillDadosAcidenteRh(AnaliseAcidente a)
|
|
{
|
|
StaticText st = new StaticText();
|
|
st.setId("stSHST");
|
|
st.setEscape(false);
|
|
|
|
StaticText st1 = new StaticText();
|
|
st1.setId("stColaborador");
|
|
st1.setEscape(false);
|
|
|
|
StaticText st2 = new StaticText();
|
|
st2.setId("stColaboradores");
|
|
st2.setEscape(false);
|
|
|
|
if(a.getFormacao_shst().matches("y"))
|
|
{
|
|
st.setText("O colaborador teve formação em SHST.");
|
|
gridSHST.getChildren().add(st);
|
|
}
|
|
else if(a.getFormacao_shst().matches("n"))
|
|
{
|
|
st.setText("O colaborador não teve formação em SHST.");
|
|
gridSHST.getChildren().add(st);
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
grd.setId("grdMotivo");
|
|
grd.setColumns(2);
|
|
grd.setColumnClasses("gridColLeft5, gridColLeft95");
|
|
StaticText s = new StaticText();
|
|
s.setId("stMotivo");
|
|
s.setEscape(false);
|
|
s.setText("Motivo: ");
|
|
grd.getChildren().add(s);
|
|
s = new StaticText();
|
|
s.setId("stMotivo1");
|
|
s.setEscape(false);
|
|
s.setText(a.getFormacao_shst_nao_porque());
|
|
grd.getChildren().add(s);
|
|
gridSHST.getChildren().add(grd);
|
|
}
|
|
else //t
|
|
{
|
|
gridSHST.setRendered(false);
|
|
}
|
|
|
|
|
|
if(a.getOutros_acidentes_com_colaborador().matches("y"))
|
|
{
|
|
st1.setText("Verificaram-se outras ocorrências/incidências no mesmo posto de trabalho com o colaborador acidentado.");
|
|
gridColaborador.getChildren().add(st1);
|
|
boolean booShow = false;
|
|
boolean booShow1 = false;
|
|
boolean booShow2 = false;
|
|
if(a.getNr_acidentes_com_colaborador() != null)
|
|
{
|
|
booShow = true;
|
|
booShow1 = true;
|
|
}
|
|
if(a.getNr_relatorio_acidente_colaborador1() != null || a.getNr_relatorio_acidente_colaborador2() != null || a.getNr_relatorio_acidente_colaborador3() != null || a.getNr_relatorio_acidente_colaborador4() != null)
|
|
{
|
|
booShow = true;
|
|
booShow2 = true;
|
|
}
|
|
|
|
if(booShow)
|
|
{
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
grd.setId("grdColaboradorS");
|
|
grd.setColumns(2);
|
|
grd.setColumnClasses("gridColLeft15, gridColLeft85");
|
|
if(booShow1)
|
|
{
|
|
PanelGroup pg = new PanelGroup();
|
|
StaticText s = new StaticText();
|
|
s.setId("s100");
|
|
s.setEscape(false);
|
|
s.setText("Total: ");
|
|
pg.getChildren().add(s);
|
|
s = new StaticText();
|
|
s.setId("s101");
|
|
s.setEscape(false);
|
|
s.setText(a.getNr_acidentes_com_colaborador().toString());
|
|
pg.getChildren().add(s);
|
|
grd.getChildren().add(pg);
|
|
}
|
|
if(booShow2)
|
|
{
|
|
PanelGroup pg = new PanelGroup();
|
|
StaticText s = new StaticText();
|
|
s.setId("s102");
|
|
s.setEscape(false);
|
|
s.setText(" Relatórios de acidente nº: ");
|
|
pg.getChildren().add(s);
|
|
if(a.getNr_relatorio_acidente_colaborador1() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_colaborador1().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s103");
|
|
s.setEscape(false);
|
|
s.setText(a.getNr_relatorio_acidente_colaborador1());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
if(a.getNr_relatorio_acidente_colaborador2() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_colaborador2().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s104");
|
|
s.setEscape(false);
|
|
s.setText(" " + a.getNr_relatorio_acidente_colaborador2());
|
|
pg.getChildren().add(s);
|
|
}
|
|
|
|
}
|
|
if(a.getNr_relatorio_acidente_colaborador3() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_colaborador3().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s105");
|
|
s.setEscape(false);
|
|
s.setText(" " + a.getNr_relatorio_acidente_colaborador3());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
if(a.getNr_relatorio_acidente_colaborador4() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_colaborador4().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s106");
|
|
s.setEscape(false);
|
|
s.setText(" " + a.getNr_relatorio_acidente_colaborador4());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
grd.getChildren().add(pg);
|
|
}
|
|
gridColaborador.getChildren().add(grd);
|
|
}
|
|
|
|
}
|
|
else if( a.getOutros_acidentes_com_colaborador().matches("n") )
|
|
{
|
|
st1.setText("Não se verificaram outras ocorrências/incidências no mesmo posto de trabalho com o colaborador acidentado.");
|
|
gridColaborador.getChildren().add(st1);
|
|
}
|
|
else //t
|
|
{
|
|
gridColaborador.setRendered(false);
|
|
}
|
|
|
|
if(a.getAcidentes_outros_colaboradores().matches("y"))
|
|
{
|
|
st2.setText("Verificaram-se ocorrências/incidentes semelhantes com outros colaboradores.");
|
|
gridColaboradores.getChildren().add(st2);
|
|
boolean booShow = false;
|
|
boolean booShow1 = false;
|
|
boolean booShow2 = false;
|
|
if(a.getNr_acidentes_outros_colaboradores() != null)
|
|
{
|
|
booShow = true;
|
|
booShow1 = true;
|
|
}
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores1() != null || a.getNr_relatorio_acidente_outros_colaboradores2() != null || a.getNr_relatorio_acidente_outros_colaboradores3() != null || a.getNr_relatorio_acidente_outros_colaboradores4() != null)
|
|
{
|
|
booShow = true;
|
|
booShow2 = true;
|
|
}
|
|
|
|
if(booShow)
|
|
{
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
grd.setId("grdColaboradoresS");
|
|
grd.setColumns(2);
|
|
grd.setColumnClasses("gridColLeft15, gridColLeft85");
|
|
if(booShow1)
|
|
{
|
|
PanelGroup pg = new PanelGroup();
|
|
StaticText s = new StaticText();
|
|
s.setId("s200");
|
|
s.setEscape(false);
|
|
s.setText("Total: ");
|
|
pg.getChildren().add(s);
|
|
s = new StaticText();
|
|
s.setId("s201");
|
|
s.setEscape(false);
|
|
s.setText(a.getNr_acidentes_outros_colaboradores());
|
|
pg.getChildren().add(s);
|
|
grd.getChildren().add(pg);
|
|
}
|
|
if(booShow2)
|
|
{
|
|
PanelGroup pg = new PanelGroup();
|
|
StaticText s = new StaticText();
|
|
s.setId("s202");
|
|
s.setEscape(false);
|
|
s.setText(" Relatórios de acidente nº: ");
|
|
pg.getChildren().add(s);
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores1() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores1().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s203");
|
|
s.setEscape(false);
|
|
s.setText(a.getNr_relatorio_acidente_outros_colaboradores1());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores2() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores2().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s204");
|
|
s.setEscape(false);
|
|
s.setText(" " + a.getNr_relatorio_acidente_outros_colaboradores2());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores3() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores3().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s205");
|
|
s.setEscape(false);
|
|
s.setText(" " + a.getNr_relatorio_acidente_outros_colaboradores3());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores4() != null)
|
|
{
|
|
if(a.getNr_relatorio_acidente_outros_colaboradores4().intValue() > 0)
|
|
{
|
|
s = new StaticText();
|
|
s.setId("s206");
|
|
s.setEscape(false);
|
|
s.setText(" " + a.getNr_relatorio_acidente_outros_colaboradores4());
|
|
pg.getChildren().add(s);
|
|
}
|
|
}
|
|
grd.getChildren().add(pg);
|
|
}
|
|
gridColaboradores.getChildren().add(grd);
|
|
}
|
|
}
|
|
else if( a.getAcidentes_outros_colaboradores().matches("n") )
|
|
{
|
|
st2.setText("Não se verificaram ocorrências/incidentes com outros colaboradores.");
|
|
gridColaboradores.getChildren().add(st2);
|
|
}
|
|
else //t
|
|
{
|
|
gridColaboradores.setRendered(false);
|
|
}
|
|
}
|
|
|
|
private void fillRecomendacoesHs(AnaliseAcidente a)
|
|
{
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
ArrayList list = adp.getRecomendacoesByAnalise(a.getId());
|
|
ListIterator iter = list.listIterator();
|
|
int seq = 1;
|
|
while(iter.hasNext())
|
|
{
|
|
Recomendacao r = (Recomendacao) iter.next();
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
grd.setId("grdRecomendacaoView" + seq);
|
|
grd.setColumns(2);
|
|
grd.setColumnClasses("gridColLeft5, gridColLeft95");
|
|
grd.setStyle("width: 100%");
|
|
|
|
StaticText st = new StaticText();
|
|
st.setId("stNrRecomendacaoView" + seq);
|
|
st.setText(seq + " .");
|
|
st.setStyle("width: 24px");
|
|
grd.getChildren().add(st);
|
|
|
|
st = new StaticText();
|
|
st.setId("stRecomendacaoView" + seq);
|
|
st.setText(r.getRecomendacao());
|
|
//st.setStyle("width: 24px");
|
|
grd.getChildren().add(st);
|
|
|
|
gridRecomendacoesView.getChildren().add(grd);
|
|
seq++;
|
|
}
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
private void fillMedidasRh( AnaliseAcidente a )
|
|
{
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
|
|
ArrayList list = adp.getMedidasByAnalise( a.getId() );
|
|
ListIterator iter = list.listIterator();
|
|
int seq = 1;
|
|
while ( iter.hasNext() )
|
|
{
|
|
Medida m = ( Medida ) iter.next();
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
grd.setId( "grdMedidaView" + seq );
|
|
grd.setColumns( 2 );
|
|
grd.setColumnClasses( "gridColLeft5, gridColLeft95" );
|
|
grd.setStyle( "width: 100%" );
|
|
|
|
StaticText st = new StaticText();
|
|
st.setId( "stNrMedidaView" + seq );
|
|
st.setText( seq + " ." );
|
|
st.setStyle( "width: 24px" );
|
|
grd.getChildren().add( st );
|
|
|
|
st = new StaticText();
|
|
st.setId( "stMedidaView" + seq );
|
|
st.setText( m.getMedida() );
|
|
//st.setStyle("width: 24px");
|
|
grd.getChildren().add( st );
|
|
|
|
gridMedidasView.getChildren().add( grd );
|
|
seq++;
|
|
}
|
|
}
|
|
catch ( Exception ex )
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
private void fillMedico( AnaliseAcidente a )
|
|
{
|
|
PanelGroup pg = null;
|
|
StaticText st = null;
|
|
HtmlPanelGrid grd = null;
|
|
ImageComponent img = null;
|
|
//LESAO :
|
|
|
|
// if ( a.getLesao_cabeca().matches( "y" ) )
|
|
if ( "y".equals( a.getLesao_cabeca() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId( "stLesaoCabeca" );
|
|
st.setEscape( false );
|
|
st.setText( "Cabeça" );
|
|
gridLesao.getChildren().add( st );
|
|
}
|
|
|
|
// if(a.getLesao_pescoco().matches("y"))
|
|
if ( "y".equals( a.getLesao_pescoco() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId( "stLesaoPescoco" );
|
|
st.setEscape( false );
|
|
st.setText( "Pescoço" );
|
|
gridLesao.getChildren().add( st );
|
|
}
|
|
|
|
// if ( a.getLesao_tronco().matches( "y" ) )
|
|
if ( "y".equals( a.getLesao_tronco() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId( "stLesaoTronco" );
|
|
st.setEscape( false );
|
|
st.setText( "Tronco" );
|
|
gridLesao.getChildren().add( st );
|
|
}
|
|
|
|
grd = new HtmlPanelGrid();
|
|
grd.setId("gridLesaoMembros");
|
|
grd.setColumns(2);
|
|
grd.setColumnClasses("gridColLeft");
|
|
// if(a.getLesao_membro_sup_dir().matches("y"))
|
|
if ( "y".equals( a.getLesao_membro_sup_dir() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoMembroSupDir");
|
|
st.setEscape(false);
|
|
st.setText("Membro Superior Direito");
|
|
grd.getChildren().add(st);
|
|
if(a.getEspecif1() != null)
|
|
{
|
|
if(a.getEspecif1().trim().length() > 0)
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stEspecif1");
|
|
st.setEscape(false);
|
|
st.setText(a.getEspecif1());
|
|
grd.getChildren().add(st);
|
|
}
|
|
}
|
|
}
|
|
|
|
// if(a.getLesao_membro_sup_esq().matches("y"))
|
|
if ( "y".equals( a.getLesao_membro_sup_esq() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoMembroSupEsq");
|
|
st.setEscape(false);
|
|
st.setText("Membro Superior Esquerdo");
|
|
grd.getChildren().add(st);
|
|
if(a.getEspecif2() != null)
|
|
{
|
|
if(a.getEspecif2().trim().length() > 0)
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stEspecif2");
|
|
st.setEscape(false);
|
|
st.setText(a.getEspecif2());
|
|
grd.getChildren().add(st);
|
|
}
|
|
}
|
|
}
|
|
|
|
// if ( a.getLesao_membro_inf_dir().matches( "y" ) )
|
|
if ( "y".equals( a.getLesao_membro_inf_dir() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId( "stLesaoMembroInfDir" );
|
|
st.setEscape( false );
|
|
st.setText( "Membro Inferior Direito" );
|
|
grd.getChildren().add( st );
|
|
if ( a.getEspecif3() != null && a.getEspecif3().trim().length() > 0 )
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stEspecif3");
|
|
st.setEscape(false);
|
|
st.setText(a.getEspecif3());
|
|
grd.getChildren().add(st);
|
|
}
|
|
}
|
|
|
|
// if ( a.getLesao_membro_inf_esq().matches( "y" ) )
|
|
if ( "y".equals( a.getLesao_membro_inf_esq() ) )
|
|
{
|
|
st = new StaticText();
|
|
st.setId( "stLesaoMembroInfEsq" );
|
|
st.setEscape( false );
|
|
st.setText( "Membro Inferior Esquerdo" );
|
|
grd.getChildren().add( st );
|
|
if ( a.getEspecif4() != null )
|
|
{
|
|
if ( a.getEspecif4().trim().length() > 0 )
|
|
{
|
|
st = new StaticText();
|
|
st.setId( "stEspecif4" );
|
|
st.setEscape( false );
|
|
st.setText( a.getEspecif4() );
|
|
grd.getChildren().add( st );
|
|
}
|
|
}
|
|
}
|
|
if ( grd.getChildren().size() > 0 )
|
|
{
|
|
gridLesao.getChildren().add( grd );
|
|
}
|
|
|
|
if ( a.getTipo_lesao() != null && a.getTipo_lesao().trim().length() > 0 )
|
|
{
|
|
pg = new PanelGroup();
|
|
pg.setId( "pgTipoLesao" );
|
|
st = new StaticText();
|
|
st.setId( "stTipoLesaoLbl" );
|
|
st.setEscape( false );
|
|
st.setText( "Tipo de lesão: " );
|
|
pg.getChildren().add( st );
|
|
st = new StaticText();
|
|
st.setId( "stTipoLesao" );
|
|
st.setEscape( false );
|
|
st.setText( a.getTipo_lesao() );
|
|
pg.getChildren().add( st );
|
|
gridLesao.getChildren().add( pg );
|
|
}
|
|
|
|
System.out.println( "GRID LESAO : " + gridLesao.getChildren().size() );
|
|
if ( gridLesao.getChildren().size() == 0 )
|
|
{
|
|
lblAreasCorporais.setRendered( false );
|
|
}
|
|
|
|
//INCAPACIDADE :
|
|
pg = new PanelGroup();
|
|
pg.setId("pgTipoIncapacidade");
|
|
st = new StaticText();
|
|
st.setId("stTipoIncapacidadeLbl1");
|
|
st.setEscape(false);
|
|
st.setStyle("font-weight: bold");
|
|
st.setText("Tipo de incapacidade: ");
|
|
|
|
// if ( a.getTipo_incapacidade().matches( "t" ) )
|
|
if ( "t".equals( a.getTipo_incapacidade() ) )
|
|
{
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stTipoIncapacidade");
|
|
st.setEscape(false);
|
|
st.setText("Temporária ");
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stTipoIncapacidadeLbl2");
|
|
st.setStyle("font-weight: bold");
|
|
st.setEscape(false);
|
|
st.setText(" Coeficiente de incapacidade: ");
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stCoefIncapacidade");
|
|
st.setEscape(false);
|
|
st.setText( a.getCoef_incapacidade() == null ? "" : a.getCoef_incapacidade().toString() + "%" );
|
|
pg.getChildren().add(st);
|
|
}
|
|
// else if(a.getTipo_incapacidade().matches("p"))
|
|
else if ( "p".equals( a.getTipo_incapacidade() ) )
|
|
{
|
|
pg.getChildren().add( st );
|
|
st = new StaticText();
|
|
st.setId("stTipoIncapacidade");
|
|
st.setEscape( false );
|
|
st.setText("Permanente ");
|
|
pg.getChildren().add( st );
|
|
st = new StaticText();
|
|
st.setId("stTipoIncapacidadeLbl2");
|
|
st.setStyle("font-weight: bold");
|
|
st.setEscape( false );
|
|
st.setText(" Coeficiente de incapacidade: ");
|
|
pg.getChildren().add( st );
|
|
st = new StaticText();
|
|
st.setId("stCoefIncapacidade");
|
|
st.setEscape( false );
|
|
st.setText( a.getCoef_incapacidade() == null ? "" : a.getCoef_incapacidade().toString() + "%" );
|
|
pg.getChildren().add( st );
|
|
}
|
|
|
|
if ( pg.getChildren().size() > 0 )
|
|
{
|
|
gridIncapacidade.getChildren().add( pg );
|
|
}
|
|
|
|
pg = new PanelGroup();
|
|
pg.setId("pgAvaliacaoIncapacidade");
|
|
if ( a.getData_aval_incapacidade() != null )
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stDataAvalIncapacidadeLbl1");
|
|
st.setStyle("font-weight: bold");
|
|
st.setEscape(false);
|
|
st.setText("Avaliação de incapacidade realizada em ");
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stDataAvalIncapacidade");
|
|
st.setEscape(false);
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_aval_incapacidade().getTime());
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch ( Exception ex )
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
pg.getChildren().add( st );
|
|
}
|
|
|
|
|
|
if ( a.getData_rev_incapacidade() != null )
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stDataRevIncapacidadeLbl1");
|
|
st.setStyle("font-weight: bold");
|
|
st.setEscape(false);
|
|
st.setText("Revisão de incapacidade em ");
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stDataRevIncapacidade");
|
|
st.setEscape(false);
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_rev_incapacidade().getTime());
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch ( Exception ex )
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
pg.getChildren().add( st );
|
|
}
|
|
|
|
if(pg.getChildren().size() > 0)
|
|
{
|
|
gridIncapacidade.getChildren().add(pg);
|
|
}
|
|
|
|
if(a.getPeriodo_incapacidade_a() != null || a.getPeriodo_incapacidade_de() != null)
|
|
{
|
|
pg = new PanelGroup();
|
|
pg.setId("pgPeriodoIncapacidade");
|
|
st = new StaticText();
|
|
st.setId("stPeriodoIncapacidadeLbl1");
|
|
st.setStyle("font-weight: bold");
|
|
st.setEscape(false);
|
|
st.setText("Período de incapacidade temporária de ");
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stPeriodoIncapacidadeDe");
|
|
st.setEscape(false);
|
|
//st.setText(a.getPeriodo_incapacidade_de());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getPeriodo_incapacidade_de().getTime());
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stPeriodoIncapacidadeLbl2");
|
|
st.setStyle("font-weight: bold");
|
|
st.setEscape(false);
|
|
st.setText(" a ");
|
|
pg.getChildren().add(st);
|
|
st = new StaticText();
|
|
st.setId("stPeriodoIncapacidadeA");
|
|
st.setEscape(false);
|
|
//st.setText(a.getPeriodo_incapacidade_a());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getPeriodo_incapacidade_a().getTime());
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
pg.getChildren().add(st);
|
|
gridIncapacidade.getChildren().add(pg);
|
|
}
|
|
|
|
|
|
|
|
// //RESTRICOES
|
|
//
|
|
// if(a.getImg_flexao().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgFlexao");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// pg = new PanelGroup();
|
|
// pg.setId("pgImgFlexao");
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1000");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/fle1.gif");
|
|
// pg.getChildren().add(img);
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1001");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/fle2.gif");
|
|
// pg.getChildren().add(img);
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1002");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/fle3.gif");
|
|
// pg.getChildren().add(img);
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1003");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/fle4.gif");
|
|
// pg.getChildren().add(img);
|
|
// grd.getChildren().add(pg);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl1");
|
|
// st.setEscape(false);
|
|
// st.setText("Flexão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_rot1().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgRot1");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1005");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/rot1.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl2");
|
|
// st.setEscape(false);
|
|
// st.setText("Flexão Lateral");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_rot2().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgRot2");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1006");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/rot2.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl3");
|
|
// st.setEscape(false);
|
|
// st.setText("Rotação");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ext1().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgExt1");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1007");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ext1.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl4");
|
|
// st.setEscape(false);
|
|
// st.setText("Extensão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ext2().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgExt2");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// pg = new PanelGroup();
|
|
// pg.setId("pgImgExt2");
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1008");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ext2.gif");
|
|
// pg.getChildren().add(img);
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1009");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ext3.gif");
|
|
// pg.getChildren().add(img);
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes1010");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ext4.gif");
|
|
// pg.getChildren().add(img);
|
|
// grd.getChildren().add(pg);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl5");
|
|
// st.setEscape(false);
|
|
// st.setText("Flexão/Extensão Lateral + Rotação");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_cab1().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgCab1");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10011");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ca1.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl6");
|
|
// st.setEscape(false);
|
|
// st.setText("Flexão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_cab2().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgCab2");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10012");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ca2.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl7");
|
|
// st.setEscape(false);
|
|
// st.setText("Extensão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_cab3().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgCab3");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10013");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ca3.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl8");
|
|
// st.setEscape(false);
|
|
// st.setText("Flexão Lateral");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_cab4().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgCab4");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10014");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ca4.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl9");
|
|
// st.setEscape(false);
|
|
// st.setText("Rotação");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma1().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa1");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10015");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma1.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl10");
|
|
// st.setEscape(false);
|
|
// st.setText("Poronação");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma2().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa2");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10016");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma2.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl11");
|
|
// st.setEscape(false);
|
|
// st.setText("Supinação");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma3().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa3");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10017");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma3.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl12");
|
|
// st.setEscape(false);
|
|
// st.setText("Flexão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma4().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa4");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10018");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma4.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl13");
|
|
// st.setEscape(false);
|
|
// st.setText("Extensão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma5().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa5");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10019");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma5.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl14");
|
|
// st.setEscape(false);
|
|
// st.setText("Desvio Ulnar");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma6().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa6");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10020");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma6.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl15");
|
|
// st.setEscape(false);
|
|
// st.setText("Desvio Radial");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma7().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa7");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10021");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma7.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl16");
|
|
// st.setEscape(false);
|
|
// st.setText("Pinça Digital");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma8().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa8");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10022");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma8.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl17");
|
|
// st.setEscape(false);
|
|
// st.setText("Segurar objectos entre os dedos");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma9().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa9");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10023");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma9.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl18");
|
|
// st.setEscape(false);
|
|
// st.setText("Dedos em extensão");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getImg_ma10().matches("y"))
|
|
// {
|
|
// grd = new HtmlPanelGrid();
|
|
// grd.setId("grdImgMa10");
|
|
// grd.setColumns(1);
|
|
// grd.setColumnClasses("gridColCenter");
|
|
// grd.setStyleClass("centerBlock");
|
|
//
|
|
// img = new ImageComponent();
|
|
// img.setId("imgRestricoes10024");
|
|
// img.setWidth(IMAGE_WIDTH);
|
|
// img.setHeight(IMAGE_HEIGHT);
|
|
// img.setUrl("/resources/images/medico/ma10.gif");
|
|
// grd.getChildren().add(img);
|
|
// st = new StaticText();
|
|
// st.setId("stImgRestricaoLbl19");
|
|
// st.setEscape(false);
|
|
// st.setText("Pega palmar");
|
|
// grd.getChildren().add(st);
|
|
// gridImagesRestricoes.getChildren().add(grd);
|
|
// }
|
|
//
|
|
// if(a.getRestricao_carga() != null)
|
|
// {
|
|
// if(a.getRestricao_carga().intValue() > 0)
|
|
// {
|
|
// pg = new PanelGroup();
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoCargaLbl");
|
|
// st.setEscape(false);
|
|
// st.setText("Movimentação e manipulação de cargas com mais de ");
|
|
// pg.getChildren().add(st);
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoCargaKgs");
|
|
// st.setEscape(false);
|
|
// st.setText(a.getRestricao_carga().toString());
|
|
// pg.getChildren().add(st);
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoCargaLbl1");
|
|
// st.setEscape(false);
|
|
// st.setText("Kg");
|
|
// pg.getChildren().add(st);
|
|
// gridOutrasRestricoes.getChildren().add(pg);
|
|
// }
|
|
//
|
|
// if(a.getRestricao_motricidade().matches("y"))
|
|
// {
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoMotricidadeLbl");
|
|
// st.setEscape(false);
|
|
// st.setText("Operações que requeiram motricidade fina.");
|
|
// gridOutrasRestricoes.getChildren().add(st);
|
|
// }
|
|
//
|
|
// if(a.getRestricao_conducao().matches("y"))
|
|
// {
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoConducaoLbl");
|
|
// st.setEscape(false);
|
|
// st.setText("Condução/interacção com veículos ou outros equipamentos.");
|
|
// gridOutrasRestricoes.getChildren().add(st);
|
|
// }
|
|
//
|
|
// if(a.getRestricao_vibracoes().matches("y"))
|
|
// {
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoVibracoesLbl");
|
|
// st.setEscape(false);
|
|
// st.setText("Utilizaçõo de equipamentos/ferramentas que impliquem exposição a vibrações ou impactos.");
|
|
// gridOutrasRestricoes.getChildren().add(st);
|
|
// }
|
|
//
|
|
// if(a.getRestricao_outras().trim().length() > 0)
|
|
// {
|
|
// st = new StaticText();
|
|
// st.setId("stRestricaoOutras");
|
|
// st.setEscape(false);
|
|
// st.setText(a.getRestricao_outras());
|
|
// gridOutrasRestricoes.getChildren().add(st);
|
|
// }
|
|
//
|
|
// if(a.getMed_observ().trim().length() > 0)
|
|
// {
|
|
// stObservacoes.setText(a.getMed_observ());
|
|
// }
|
|
// }
|
|
|
|
}
|
|
|
|
private void fillVerificacao(AnaliseAcidente a)
|
|
{
|
|
// StaticText st = new StaticText();
|
|
// st.setId("stVerificacao1");
|
|
// st.setEscape(false);
|
|
// String txtVer = "Verificado por " + a.getNome_resp_seg() + " a ";
|
|
// //txtVer += a.getData_assinatura_seg();
|
|
//
|
|
// try
|
|
// {
|
|
// java.util.Date ddate = new java.util.Date(a.getData_assinatura_seg().getTime());
|
|
// txtVer += utils.Utils.dateToYYYYMMDD(ddate);
|
|
// }
|
|
// catch(Exception ex){};
|
|
// st.setText(txtVer);
|
|
// gridAssinaturasView.getChildren().add(st);
|
|
//
|
|
// st = new StaticText();
|
|
// st.setId("stVerificacao2");
|
|
// st.setEscape(false);
|
|
// txtVer = "Verificado por " + a.getNome_resp_rh() + " a ";
|
|
// //txtVer += a.getData_assinatura_rh();
|
|
// try
|
|
// {
|
|
// java.util.Date ddate = new java.util.Date(a.getData_assinatura_rh().getTime());
|
|
// txtVer += utils.Utils.dateToYYYYMMDD(ddate);
|
|
// }
|
|
// catch(Exception ex){};
|
|
// st.setText(txtVer);
|
|
// gridAssinaturasView.getChildren().add(st);
|
|
|
|
StaticText st = null;
|
|
String txtVer = null;
|
|
if(a.getAveriguador() != null)
|
|
{
|
|
if(a.getAveriguador().trim().length() > 0)
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stVerificacao1");
|
|
st.setEscape(false);
|
|
txtVer = "Averiguado por " + a.getAveriguador() + " (Departamento de Segurança) a ";
|
|
//txtVer += a.getData_assinatura_seg();
|
|
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_inicio_processo().getTime());
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
st.setText(txtVer);
|
|
gridAssinaturasView.getChildren().add(st);
|
|
}
|
|
}
|
|
|
|
if(a.getAss_consolidacao().matches("y"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stVerificacao2");
|
|
st.setEscape(false);
|
|
txtVer = "Verificado por " + a.getNome_resp_consolidacao() + " (Técnico de SHST) a ";
|
|
//txtVer += a.getData_assinatura_rh();
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_consolidacao().getTime());
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
st.setText(txtVer);
|
|
gridAssinaturasView.getChildren().add(st);
|
|
}
|
|
|
|
if(a.getAss_resp_seg().matches("y"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stVerificacao3");
|
|
st.setEscape(false);
|
|
txtVer = "Verificado por " + a.getNome_resp_seg() + " (Responsável de Segurança) a ";
|
|
//txtVer += a.getData_assinatura_rh();
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_seg().getTime());
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
st.setText(txtVer);
|
|
gridAssinaturasView.getChildren().add(st);
|
|
}
|
|
|
|
if(a.getAss_resp_rh().matches("y"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stVerificacao4");
|
|
st.setEscape(false);
|
|
txtVer = "Verificado por " + a.getNome_resp_rh() + " (Responsável de RH) a ";
|
|
//txtVer += a.getData_assinatura_rh();
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_rh().getTime());
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
st.setText(txtVer);
|
|
gridAssinaturasView.getChildren().add(st);
|
|
}
|
|
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
Acidentado ac = adp.getAcidentado(a.getAcidentado_id());
|
|
if(ac.getNome_superior_hierarquico() != null)
|
|
{
|
|
if(ac.getNome_superior_hierarquico().trim().length() > 0)
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stVerificacao5");
|
|
st.setEscape(false);
|
|
txtVer = "Com conhecimento de " + ac.getNome_superior_hierarquico() + " (Responsável hierárquico)";
|
|
|
|
if(ac.getEmail_superior_hierarquico() != null)
|
|
{
|
|
if(ac.getEmail_superior_hierarquico().trim().length() > 0)
|
|
{
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(ac.getData_email_superior_hierarquico().getTime());
|
|
txtVer += " a " + utils.Utils.dateToYYYYMMDD(ddate);
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
}
|
|
txtVer += ".";
|
|
st.setText(txtVer);
|
|
gridAssinaturasView.getChildren().add(st);
|
|
}
|
|
}
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
|
|
HtmlPanelGrid grid = new HtmlPanelGrid();
|
|
grid.setId("rodape1");
|
|
grid.setColumns(1);
|
|
grid.setStyle("width: 100%");
|
|
grid.setColumnClasses("gridColCenter");
|
|
st = new StaticText();
|
|
st.setId("stRodape1");
|
|
st.setEscape(false);
|
|
st.setText("- processamento informático - acesso autenticado -");
|
|
grid.getChildren().add(st);
|
|
gridAssinaturasView.getChildren().add(grid);
|
|
}
|
|
|
|
private void fillImpressao(AnaliseAcidente a)
|
|
{
|
|
StaticText st = new StaticText();
|
|
st.setId("stImpressaoView1");
|
|
st.setEscape(false);
|
|
String stData = "";
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_superior().getTime());
|
|
stData += utils.Utils.dateToYYYYMMDD(ddate);
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
// ErrorLogger.logException( ex );
|
|
}
|
|
|
|
String txt = "Assinado na Ficha de Análise de Acidente em papel por " + a.getNome_superior() + ", superior hierárquico / superior de ";
|
|
txt += getSessionBean1().getAcidentado().getNome() + ", a " + stData;
|
|
gridAssSupView.getChildren().add(st);
|
|
}
|
|
|
|
private void fillImages()
|
|
{
|
|
ServletContext theApplicationsServletContext =
|
|
(ServletContext) this.getExternalContext().getContext();
|
|
try
|
|
{
|
|
// String imageFileFolder = theApplicationsServletContext.getRealPath(Global.IMAGE_FOLDER + "/" + getSessionBean1().getCurrentAnalise().getId());
|
|
String imageFileFolder = Global.IMAGE_FOLDER + "/" + getSessionBean1().getCurrentAnalise().getId();
|
|
File f = new File(imageFileFolder);
|
|
if( f.exists() )
|
|
{
|
|
File files[] = f.listFiles();
|
|
|
|
for(int i=0;i<files.length;i++)
|
|
{
|
|
if(files[i].isFile())
|
|
{
|
|
String imageName = files[i].getName();
|
|
ImageComponent newImg = new ImageComponent();
|
|
newImg.setUrl(Global.IMAGE_FOLDER + "/" + getSessionBean1().getCurrentAnalise().getId() + "/" + imageName);
|
|
newImg.setRendered(true);
|
|
gridImages.getChildren().add(newImg);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
}
|
|
|
|
public String butVoltar_action()
|
|
{
|
|
String navFrom = getSessionBean1().getNavFrom();
|
|
if(navFrom.matches("FormSeguranca"))
|
|
{
|
|
return "form_seguranca";
|
|
}
|
|
else if(navFrom.matches("FormRH"))
|
|
{
|
|
System.out.println("FROM RH ");
|
|
return "form_rh";
|
|
}
|
|
else if(navFrom.matches("FormHS"))
|
|
{
|
|
return "form_hs";
|
|
}
|
|
else if(navFrom.matches("FormMedico"))
|
|
{
|
|
return "form_medico";
|
|
}
|
|
else if(navFrom.matches("FormDirSiprp"))
|
|
{
|
|
return "form_dir_siprp";
|
|
}
|
|
else if(navFrom.matches("FormDirGerRh"))
|
|
{
|
|
return "form_dir_ger_rh";
|
|
}
|
|
else if(navFrom.matches("FormGestor"))
|
|
{
|
|
return "form_gestor";
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public String lnkAnalisesAcidente_action()
|
|
{
|
|
Integer tipo = getSessionBean1().getCurrentUser().getTipo();
|
|
|
|
switch(tipo.intValue())
|
|
{
|
|
case Global.TIPO_UTILIZADOR_SEGURANCA:
|
|
return "form_seguranca";
|
|
//break;
|
|
case Global.TIPO_UTILIZADOR_RH:
|
|
return "form_rh";
|
|
//break;
|
|
case Global.TIPO_UTILIZADOR_HS:
|
|
return "form_hs";
|
|
//break;
|
|
case Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP:
|
|
return "form_dir_siprp";
|
|
//break;
|
|
case Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH:
|
|
return "form_dir_ger_rh";
|
|
//break;
|
|
case Global.TIPO_UTILIZADOR_GESTOR:
|
|
return "form_gestor";
|
|
//break;
|
|
}
|
|
// String navFrom = getSessionBean1().getNavFrom();
|
|
// System.out.println("NAV FROM : " + navFrom);
|
|
// if(navFrom.matches("FormSeguranca"))
|
|
// {
|
|
// return "form_seguranca";
|
|
// }
|
|
// else if(navFrom.matches("FormRh"))
|
|
// {
|
|
// return "form_rh";
|
|
// }
|
|
// else if(navFrom.matches("FormHS"))
|
|
// {
|
|
// System.out.println("FROM HS ");
|
|
// return "form_hs";
|
|
// }
|
|
// else if(navFrom.matches("FormMedico"))
|
|
// {
|
|
// return "form_medico";
|
|
// }
|
|
// else if(navFrom.matches("FormDirSiprp"))
|
|
// {
|
|
// return "form_dir_siprp";
|
|
// }
|
|
// else if(navFrom.matches("FormDirGerRh"))
|
|
// {
|
|
// return "form_dir_ger_rh";
|
|
// }
|
|
// else if(navFrom.matches("FormGestor"))
|
|
// {
|
|
// return "form_gestor";
|
|
// }
|
|
|
|
return null;
|
|
}
|
|
|
|
public String lnkNewUser_action()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public String lnkEditUser_action()
|
|
{
|
|
getSessionBean1().setNavFrom("ViewAnaliseAcidenteTrabalho");
|
|
getSessionBean1().setModoEdicaoUtilizador("edit");
|
|
return "user";
|
|
}
|
|
|
|
public String lnkAjuda_action()
|
|
{
|
|
// ServletContext theApplicationsServletContext =
|
|
// (ServletContext) this.getExternalContext().getContext();
|
|
// String pdfFolderPath = theApplicationsServletContext.getRealPath(Global.PDF_FOLDER_URL);
|
|
// String pdfFilePath = pdfFolderPath + "/Ajuda.pdf";
|
|
//
|
|
// Global global = new Global();
|
|
// try
|
|
// {
|
|
// global.showPdf(pdfFilePath);
|
|
// }
|
|
// catch(Exception ex)
|
|
// {
|
|
// ErrorLogger.logException( ex );
|
|
// }
|
|
return null;
|
|
}
|
|
|
|
public String butEliminar_action()
|
|
{
|
|
hidConfDelete.setValue("apagar");
|
|
return null;
|
|
}
|
|
|
|
private void deleteAnalise()
|
|
{
|
|
System.out.println("DELETE ANALISE");
|
|
AnaliseAcidente a = getSessionBean1().getCurrentAnalise();
|
|
|
|
try
|
|
{
|
|
AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
|
|
adp.deleteAnaliseAcidente(a.getId());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ErrorLogger.logException( ex );
|
|
}
|
|
|
|
// try
|
|
// {
|
|
// adp.deleteRecomendacoesByAnalise(a.getId());
|
|
// }
|
|
// catch(Exception ex)
|
|
// {
|
|
// ErrorLogger.logException( ex );
|
|
// }
|
|
//
|
|
// try
|
|
// {
|
|
// adp.deleteMedidasByAnalise(a.getId());
|
|
// }
|
|
// catch(Exception ex)
|
|
// {
|
|
// ErrorLogger.logException( ex );
|
|
// }
|
|
//
|
|
// try
|
|
// {
|
|
// adp.deleteAnaliseAcidente(a.getId());
|
|
// }
|
|
// catch(Exception ex)
|
|
// {
|
|
// ErrorLogger.logException( ex );
|
|
// }
|
|
//
|
|
// try
|
|
// {
|
|
// adp.deleteAcidentado(a.getAcidentado_id());
|
|
// }
|
|
// catch(Exception ex)
|
|
// {
|
|
// ErrorLogger.logException( ex );
|
|
// }
|
|
//
|
|
//
|
|
// //delete images folder
|
|
// String folderName = a.getAnalise_nr().substring(0,2) + a.getAnalise_nr().substring(3);
|
|
//
|
|
// ServletContext theApplicationsServletContext =
|
|
// (ServletContext) this.getExternalContext().getContext();
|
|
//// String imageFileFolder = theApplicationsServletContext.getRealPath(Global.IMAGE_FOLDER + "/" + folderName);
|
|
// String imageFileFolder = Global.IMAGE_FOLDER + "/" + folderName;
|
|
// File f = new File(imageFileFolder);
|
|
// if( f.exists() )
|
|
// {
|
|
// Global global = new Global();
|
|
// global.deleteFolderFiles(f);
|
|
// f.delete();
|
|
// }
|
|
}
|
|
|
|
public String lnkPlanosActuacao_action()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|