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.
2985 lines
92 KiB
2985 lines
92 KiB
/*
|
|
* ViewAnaliseAcidenteTrabalho.java
|
|
*
|
|
* Created on October 1, 2007, 10:48 AM
|
|
* Copyright lluis
|
|
*/
|
|
package analiseacidentestrabalho;
|
|
|
|
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.Html;
|
|
import com.sun.rave.web.ui.component.Hyperlink;
|
|
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.AnalisesDataProvider;
|
|
import db.UtilizadoresDataProvider;
|
|
import java.io.File;
|
|
import java.util.ArrayList;
|
|
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 gridPanel1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel1() {
|
|
return gridPanel1;
|
|
}
|
|
|
|
public void setGridPanel1(HtmlPanelGrid hpg) {
|
|
this.gridPanel1 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel1 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel1() {
|
|
return groupPanel1;
|
|
}
|
|
|
|
public void setGroupPanel1(PanelGroup pg) {
|
|
this.groupPanel1 = pg;
|
|
}
|
|
|
|
private ImageComponent image1 = new ImageComponent();
|
|
|
|
public ImageComponent getImage1() {
|
|
return image1;
|
|
}
|
|
|
|
public void setImage1(ImageComponent ic) {
|
|
this.image1 = ic;
|
|
}
|
|
|
|
private ImageComponent image2 = new ImageComponent();
|
|
|
|
public ImageComponent getImage2() {
|
|
return image2;
|
|
}
|
|
|
|
public void setImage2(ImageComponent ic) {
|
|
this.image2 = ic;
|
|
}
|
|
|
|
private PanelGroup groupPanel2 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel2() {
|
|
return groupPanel2;
|
|
}
|
|
|
|
public void setGroupPanel2(PanelGroup pg) {
|
|
this.groupPanel2 = pg;
|
|
}
|
|
|
|
private StaticText lblUser = new StaticText();
|
|
|
|
public StaticText getLblUser() {
|
|
return lblUser;
|
|
}
|
|
|
|
public void setLblUser(StaticText st) {
|
|
this.lblUser = st;
|
|
}
|
|
|
|
private StaticText staticText1 = new StaticText();
|
|
|
|
public StaticText getStaticText1() {
|
|
return staticText1;
|
|
}
|
|
|
|
public void setStaticText1(StaticText st) {
|
|
this.staticText1 = st;
|
|
}
|
|
|
|
private Hyperlink lnkEditUser = new Hyperlink();
|
|
|
|
public Hyperlink getLnkEditUser() {
|
|
return lnkEditUser;
|
|
}
|
|
|
|
public void setLnkEditUser(Hyperlink h) {
|
|
this.lnkEditUser = h;
|
|
}
|
|
|
|
private StaticText staticText2 = new StaticText();
|
|
|
|
public StaticText getStaticText2() {
|
|
return staticText2;
|
|
}
|
|
|
|
public void setStaticText2(StaticText st) {
|
|
this.staticText2 = st;
|
|
}
|
|
|
|
private Hyperlink lnkLogout1 = new Hyperlink();
|
|
|
|
public Hyperlink getLnkLogout1() {
|
|
return lnkLogout1;
|
|
}
|
|
|
|
public void setLnkLogout1(Hyperlink h) {
|
|
this.lnkLogout1 = h;
|
|
}
|
|
|
|
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 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 gridSiprp1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridSiprp1() {
|
|
return gridSiprp1;
|
|
}
|
|
|
|
public void setGridSiprp1(HtmlPanelGrid hpg) {
|
|
this.gridSiprp1 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel5() {
|
|
return gridPanel5;
|
|
}
|
|
|
|
public void setGridPanel5(HtmlPanelGrid hpg) {
|
|
this.gridPanel5 = hpg;
|
|
}
|
|
|
|
private StaticText staticText6 = new StaticText();
|
|
|
|
public StaticText getStaticText6() {
|
|
return staticText6;
|
|
}
|
|
|
|
public void setStaticText6(StaticText st) {
|
|
this.staticText6 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel6() {
|
|
return gridPanel6;
|
|
}
|
|
|
|
public void setGridPanel6(HtmlPanelGrid hpg) {
|
|
this.gridPanel6 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel7() {
|
|
return gridPanel7;
|
|
}
|
|
|
|
public void setGridPanel7(HtmlPanelGrid hpg) {
|
|
this.gridPanel7 = hpg;
|
|
}
|
|
|
|
private StaticText staticText7 = new StaticText();
|
|
|
|
public StaticText getStaticText7() {
|
|
return staticText7;
|
|
}
|
|
|
|
public void setStaticText7(StaticText st) {
|
|
this.staticText7 = st;
|
|
}
|
|
|
|
private StaticText staticText8 = new StaticText();
|
|
|
|
public StaticText getStaticText8() {
|
|
return staticText8;
|
|
}
|
|
|
|
public void setStaticText8(StaticText st) {
|
|
this.staticText8 = st;
|
|
}
|
|
|
|
private StaticText staticText9 = new StaticText();
|
|
|
|
public StaticText getStaticText9() {
|
|
return staticText9;
|
|
}
|
|
|
|
public void setStaticText9(StaticText st) {
|
|
this.staticText9 = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel3 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel3() {
|
|
return groupPanel3;
|
|
}
|
|
|
|
public void setGroupPanel3(PanelGroup pg) {
|
|
this.groupPanel3 = pg;
|
|
}
|
|
|
|
private StaticText staticText10 = new StaticText();
|
|
|
|
public StaticText getStaticText10() {
|
|
return staticText10;
|
|
}
|
|
|
|
public void setStaticText10(StaticText st) {
|
|
this.staticText10 = st;
|
|
}
|
|
|
|
private StaticText txtCap1 = new StaticText();
|
|
|
|
public StaticText getTxtCap1() {
|
|
return txtCap1;
|
|
}
|
|
|
|
public void setTxtCap1(StaticText st) {
|
|
this.txtCap1 = st;
|
|
}
|
|
|
|
private StaticText staticText11 = new StaticText();
|
|
|
|
public StaticText getStaticText11() {
|
|
return staticText11;
|
|
}
|
|
|
|
public void setStaticText11(StaticText st) {
|
|
this.staticText11 = st;
|
|
}
|
|
|
|
private PanelGroup groupPanel4 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel4() {
|
|
return groupPanel4;
|
|
}
|
|
|
|
public void setGroupPanel4(PanelGroup pg) {
|
|
this.groupPanel4 = pg;
|
|
}
|
|
|
|
private StaticText staticText12 = new StaticText();
|
|
|
|
public StaticText getStaticText12() {
|
|
return staticText12;
|
|
}
|
|
|
|
public void setStaticText12(StaticText st) {
|
|
this.staticText12 = st;
|
|
}
|
|
|
|
private StaticText txtCedula1 = new StaticText();
|
|
|
|
public StaticText getTxtCedula1() {
|
|
return txtCedula1;
|
|
}
|
|
|
|
public void setTxtCedula1(StaticText st) {
|
|
this.txtCedula1 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAcidentado1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAcidentado1() {
|
|
return gridAcidentado1;
|
|
}
|
|
|
|
public void setGridAcidentado1(HtmlPanelGrid hpg) {
|
|
this.gridAcidentado1 = 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 gridPanel10 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel10() {
|
|
return gridPanel10;
|
|
}
|
|
|
|
public void setGridPanel10(HtmlPanelGrid hpg) {
|
|
this.gridPanel10 = hpg;
|
|
}
|
|
|
|
private StaticText staticText16 = new StaticText();
|
|
|
|
public StaticText getStaticText16() {
|
|
return staticText16;
|
|
}
|
|
|
|
public void setStaticText16(StaticText st) {
|
|
this.staticText16 = st;
|
|
}
|
|
|
|
private StaticText staticText17 = new StaticText();
|
|
|
|
public StaticText getStaticText17() {
|
|
return staticText17;
|
|
}
|
|
|
|
public void setStaticText17(StaticText st) {
|
|
this.staticText17 = st;
|
|
}
|
|
|
|
private StaticText staticText18 = new StaticText();
|
|
|
|
public StaticText getStaticText18() {
|
|
return staticText18;
|
|
}
|
|
|
|
public void setStaticText18(StaticText st) {
|
|
this.staticText18 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel11 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel11() {
|
|
return gridPanel11;
|
|
}
|
|
|
|
public void setGridPanel11(HtmlPanelGrid hpg) {
|
|
this.gridPanel11 = hpg;
|
|
}
|
|
|
|
private StaticText staticText19 = new StaticText();
|
|
|
|
public StaticText getStaticText19() {
|
|
return staticText19;
|
|
}
|
|
|
|
public void setStaticText19(StaticText st) {
|
|
this.staticText19 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel12 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel12() {
|
|
return gridPanel12;
|
|
}
|
|
|
|
public void setGridPanel12(HtmlPanelGrid hpg) {
|
|
this.gridPanel12 = hpg;
|
|
}
|
|
|
|
private StaticText staticText20 = new StaticText();
|
|
|
|
public StaticText getStaticText20() {
|
|
return staticText20;
|
|
}
|
|
|
|
public void setStaticText20(StaticText st) {
|
|
this.staticText20 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel13 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel13() {
|
|
return gridPanel13;
|
|
}
|
|
|
|
public void setGridPanel13(HtmlPanelGrid hpg) {
|
|
this.gridPanel13 = hpg;
|
|
}
|
|
|
|
private StaticText staticText21 = new StaticText();
|
|
|
|
public StaticText getStaticText21() {
|
|
return staticText21;
|
|
}
|
|
|
|
public void setStaticText21(StaticText st) {
|
|
this.staticText21 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel14 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel14() {
|
|
return gridPanel14;
|
|
}
|
|
|
|
public void setGridPanel14(HtmlPanelGrid hpg) {
|
|
this.gridPanel14 = hpg;
|
|
}
|
|
|
|
private StaticText staticText22 = new StaticText();
|
|
|
|
public StaticText getStaticText22() {
|
|
return staticText22;
|
|
}
|
|
|
|
public void setStaticText22(StaticText st) {
|
|
this.staticText22 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel15 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel15() {
|
|
return gridPanel15;
|
|
}
|
|
|
|
public void setGridPanel15(HtmlPanelGrid hpg) {
|
|
this.gridPanel15 = hpg;
|
|
}
|
|
|
|
private StaticText staticText23 = new StaticText();
|
|
|
|
public StaticText getStaticText23() {
|
|
return staticText23;
|
|
}
|
|
|
|
public void setStaticText23(StaticText st) {
|
|
this.staticText23 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel16 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel16() {
|
|
return gridPanel16;
|
|
}
|
|
|
|
public void setGridPanel16(HtmlPanelGrid hpg) {
|
|
this.gridPanel16 = hpg;
|
|
}
|
|
|
|
private StaticText staticText24 = new StaticText();
|
|
|
|
public StaticText getStaticText24() {
|
|
return staticText24;
|
|
}
|
|
|
|
public void setStaticText24(StaticText st) {
|
|
this.staticText24 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel17 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel17() {
|
|
return gridPanel17;
|
|
}
|
|
|
|
public void setGridPanel17(HtmlPanelGrid hpg) {
|
|
this.gridPanel17 = hpg;
|
|
}
|
|
|
|
private StaticText staticText25 = new StaticText();
|
|
|
|
public StaticText getStaticText25() {
|
|
return staticText25;
|
|
}
|
|
|
|
public void setStaticText25(StaticText st) {
|
|
this.staticText25 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel18 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel18() {
|
|
return gridPanel18;
|
|
}
|
|
|
|
public void setGridPanel18(HtmlPanelGrid hpg) {
|
|
this.gridPanel18 = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel19 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel19() {
|
|
return gridPanel19;
|
|
}
|
|
|
|
public void setGridPanel19(HtmlPanelGrid hpg) {
|
|
this.gridPanel19 = hpg;
|
|
}
|
|
|
|
private StaticText staticText26 = new StaticText();
|
|
|
|
public StaticText getStaticText26() {
|
|
return staticText26;
|
|
}
|
|
|
|
public void setStaticText26(StaticText st) {
|
|
this.staticText26 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridImages = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridImages() {
|
|
return gridImages;
|
|
}
|
|
|
|
public void setGridImages(HtmlPanelGrid hpg) {
|
|
this.gridImages = hpg;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel20 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel20() {
|
|
return gridPanel20;
|
|
}
|
|
|
|
public void setGridPanel20(HtmlPanelGrid hpg) {
|
|
this.gridPanel20 = hpg;
|
|
}
|
|
|
|
private StaticText staticText27 = new StaticText();
|
|
|
|
public StaticText getStaticText27() {
|
|
return staticText27;
|
|
}
|
|
|
|
public void setStaticText27(StaticText st) {
|
|
this.staticText27 = st;
|
|
}
|
|
|
|
private HtmlPanelGrid gridPanel21 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel21() {
|
|
return gridPanel21;
|
|
}
|
|
|
|
public void setGridPanel21(HtmlPanelGrid hpg) {
|
|
this.gridPanel21 = hpg;
|
|
}
|
|
|
|
private StaticText staticText28 = new StaticText();
|
|
|
|
public StaticText getStaticText28() {
|
|
return staticText28;
|
|
}
|
|
|
|
public void setStaticText28(StaticText st) {
|
|
this.staticText28 = 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 txtSuperior = new StaticText();
|
|
|
|
public StaticText getTxtSuperior() {
|
|
return txtSuperior;
|
|
}
|
|
|
|
public void setTxtSuperior(StaticText st) {
|
|
this.txtSuperior = 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;
|
|
}
|
|
|
|
private StaticText txtHorasTurno = new StaticText();
|
|
|
|
public StaticText getTxtHorasTurno() {
|
|
return txtHorasTurno;
|
|
}
|
|
|
|
public void setTxtHorasTurno(StaticText st) {
|
|
this.txtHorasTurno = st;
|
|
}
|
|
|
|
private StaticText txtSeccao = new StaticText();
|
|
|
|
public StaticText getTxtSeccao() {
|
|
return txtSeccao;
|
|
}
|
|
|
|
public void setTxtSeccao(StaticText st) {
|
|
this.txtSeccao = st;
|
|
}
|
|
|
|
private StaticText txtLocal = new StaticText();
|
|
|
|
public StaticText getTxtLocal() {
|
|
return txtLocal;
|
|
}
|
|
|
|
public void setTxtLocal(StaticText st) {
|
|
this.txtLocal = st;
|
|
}
|
|
|
|
private StaticText txtTecnicoSuperior = new StaticText();
|
|
|
|
public StaticText getTxtTecnicoSuperior() {
|
|
return txtTecnicoSuperior;
|
|
}
|
|
|
|
public void setTxtTecnicoSuperior(StaticText st) {
|
|
this.txtTecnicoSuperior = st;
|
|
}
|
|
|
|
private StaticText txtMedicoTrabalho = new StaticText();
|
|
|
|
public StaticText getTxtMedicoTrabalho() {
|
|
return txtMedicoTrabalho;
|
|
}
|
|
|
|
public void setTxtMedicoTrabalho(StaticText st) {
|
|
this.txtMedicoTrabalho = 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 gridDadosAcidenteRhView1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridDadosAcidenteRhView1() {
|
|
return gridDadosAcidenteRhView1;
|
|
}
|
|
|
|
public void setGridDadosAcidenteRhView1(HtmlPanelGrid hpg) {
|
|
this.gridDadosAcidenteRhView1 = 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 gridRecomendacoesViewHS1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridRecomendacoesViewHS1() {
|
|
return gridRecomendacoesViewHS1;
|
|
}
|
|
|
|
public void setGridRecomendacoesViewHS1(HtmlPanelGrid hpg) {
|
|
this.gridRecomendacoesViewHS1 = 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 gridMedidasViewRH1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridMedidasViewRH1() {
|
|
return gridMedidasViewRH1;
|
|
}
|
|
|
|
public void setGridMedidasViewRH1(HtmlPanelGrid hpg) {
|
|
this.gridMedidasViewRH1 = 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 gridMedicoView1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridMedicoView1() {
|
|
return gridMedicoView1;
|
|
}
|
|
|
|
public void setGridMedicoView1(HtmlPanelGrid hpg) {
|
|
this.gridMedicoView1 = 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 staticText32 = new StaticText();
|
|
|
|
public StaticText getStaticText32() {
|
|
return staticText32;
|
|
}
|
|
|
|
public void setStaticText32(StaticText st) {
|
|
this.staticText32 = 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 gridPanel22 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel22() {
|
|
return gridPanel22;
|
|
}
|
|
|
|
public void setGridPanel22(HtmlPanelGrid hpg) {
|
|
this.gridPanel22 = hpg;
|
|
}
|
|
|
|
private PanelGroup groupPanel5 = new PanelGroup();
|
|
|
|
public PanelGroup getGroupPanel5() {
|
|
return groupPanel5;
|
|
}
|
|
|
|
public void setGroupPanel5(PanelGroup pg) {
|
|
this.groupPanel5 = pg;
|
|
}
|
|
|
|
private Button butVoltar = new Button();
|
|
|
|
public Button getButVoltar() {
|
|
return butVoltar;
|
|
}
|
|
|
|
public void setButVoltar(Button b) {
|
|
this.butVoltar = b;
|
|
}
|
|
|
|
private HtmlPanelGrid gridAcidentadoView1 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridAcidentadoView1() {
|
|
return gridAcidentadoView1;
|
|
}
|
|
|
|
public void setGridAcidentadoView1(HtmlPanelGrid hpg) {
|
|
this.gridAcidentadoView1 = 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 gridPanel32 = new HtmlPanelGrid();
|
|
|
|
public HtmlPanelGrid getGridPanel32() {
|
|
return gridPanel32;
|
|
}
|
|
|
|
public void setGridPanel32(HtmlPanelGrid hpg) {
|
|
this.gridPanel32 = hpg;
|
|
}
|
|
|
|
private StaticText staticText38 = new StaticText();
|
|
|
|
public StaticText getStaticText38() {
|
|
return staticText38;
|
|
}
|
|
|
|
public void setStaticText38(StaticText st) {
|
|
this.staticText38 = st;
|
|
}
|
|
|
|
private StaticText stNomeAcidentado = new StaticText();
|
|
|
|
public StaticText getStNomeAcidentado() {
|
|
return stNomeAcidentado;
|
|
}
|
|
|
|
public void setStNomeAcidentado(StaticText st) {
|
|
this.stNomeAcidentado = st;
|
|
}
|
|
|
|
private StaticText staticText39 = new StaticText();
|
|
|
|
public StaticText getStaticText39() {
|
|
return staticText39;
|
|
}
|
|
|
|
public void setStaticText39(StaticText st) {
|
|
this.staticText39 = st;
|
|
}
|
|
|
|
private StaticText stDataNascimento = new StaticText();
|
|
|
|
public StaticText getStDataNascimento() {
|
|
return stDataNascimento;
|
|
}
|
|
|
|
public void setStDataNascimento(StaticText st) {
|
|
this.stDataNascimento = st;
|
|
}
|
|
|
|
private StaticText staticText40 = new StaticText();
|
|
|
|
public StaticText getStaticText40() {
|
|
return staticText40;
|
|
}
|
|
|
|
public void setStaticText40(StaticText st) {
|
|
this.staticText40 = st;
|
|
}
|
|
|
|
private StaticText stBI = new StaticText();
|
|
|
|
public StaticText getStBI() {
|
|
return stBI;
|
|
}
|
|
|
|
public void setStBI(StaticText st) {
|
|
this.stBI = st;
|
|
}
|
|
|
|
private StaticText staticText41 = new StaticText();
|
|
|
|
public StaticText getStaticText41() {
|
|
return staticText41;
|
|
}
|
|
|
|
public void setStaticText41(StaticText st) {
|
|
this.staticText41 = st;
|
|
}
|
|
|
|
private StaticText stMorada = new StaticText();
|
|
|
|
public StaticText getStMorada() {
|
|
return stMorada;
|
|
}
|
|
|
|
public void setStMorada(StaticText st) {
|
|
this.stMorada = st;
|
|
}
|
|
|
|
private StaticText staticText42 = new StaticText();
|
|
|
|
public StaticText getStaticText42() {
|
|
return staticText42;
|
|
}
|
|
|
|
public void setStaticText42(StaticText st) {
|
|
this.staticText42 = st;
|
|
}
|
|
|
|
private StaticText stCodPostal = new StaticText();
|
|
|
|
public StaticText getStCodPostal() {
|
|
return stCodPostal;
|
|
}
|
|
|
|
public void setStCodPostal(StaticText st) {
|
|
this.stCodPostal = st;
|
|
}
|
|
|
|
private StaticText staticText43 = new StaticText();
|
|
|
|
public StaticText getStaticText43() {
|
|
return staticText43;
|
|
}
|
|
|
|
public void setStaticText43(StaticText st) {
|
|
this.staticText43 = st;
|
|
}
|
|
|
|
private StaticText stContactoTelefonico = new StaticText();
|
|
|
|
public StaticText getStContactoTelefonico() {
|
|
return stContactoTelefonico;
|
|
}
|
|
|
|
public void setStContactoTelefonico(StaticText st) {
|
|
this.stContactoTelefonico = st;
|
|
}
|
|
|
|
private StaticText staticText44 = new StaticText();
|
|
|
|
public StaticText getStaticText44() {
|
|
return staticText44;
|
|
}
|
|
|
|
public void setStaticText44(StaticText st) {
|
|
this.staticText44 = st;
|
|
}
|
|
|
|
private StaticText stDataAdmissao = new StaticText();
|
|
|
|
public StaticText getStDataAdmissao() {
|
|
return stDataAdmissao;
|
|
}
|
|
|
|
public void setStDataAdmissao(StaticText st) {
|
|
this.stDataAdmissao = st;
|
|
}
|
|
|
|
private StaticText staticText45 = new StaticText();
|
|
|
|
public StaticText getStaticText45() {
|
|
return staticText45;
|
|
}
|
|
|
|
public void setStaticText45(StaticText st) {
|
|
this.staticText45 = st;
|
|
}
|
|
|
|
private StaticText stFuncao = new StaticText();
|
|
|
|
public StaticText getStFuncao() {
|
|
return stFuncao;
|
|
}
|
|
|
|
public void setStFuncao(StaticText st) {
|
|
this.stFuncao = st;
|
|
}
|
|
|
|
private StaticText staticText46 = new StaticText();
|
|
|
|
public StaticText getStaticText46() {
|
|
return staticText46;
|
|
}
|
|
|
|
public void setStaticText46(StaticText st) {
|
|
this.staticText46 = st;
|
|
}
|
|
|
|
private StaticText stTurno = new StaticText();
|
|
|
|
public StaticText getStTurno() {
|
|
return stTurno;
|
|
}
|
|
|
|
public void setStTurno(StaticText st) {
|
|
this.stTurno = 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>
|
|
*/
|
|
public void init() {
|
|
// Perform initializations inherited from our superclass
|
|
super.init();
|
|
// Perform application initialization that must complete
|
|
// *before* managed components are initialized
|
|
// TODO - add your own initialiation code here
|
|
|
|
// <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
|
|
// TODO - add your own initialization code here
|
|
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>
|
|
*/
|
|
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>
|
|
*/
|
|
public void prerender() {
|
|
}
|
|
|
|
/**
|
|
* <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>
|
|
*/
|
|
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() {
|
|
// TODO: Replace with your code
|
|
|
|
javax.servlet.http.HttpSession session =
|
|
(javax.servlet.http.HttpSession) getExternalContext().getSession(true);
|
|
session.invalidate();
|
|
return "login";
|
|
}
|
|
|
|
public String lnkNome_action() {
|
|
// TODO: Replace with your code
|
|
|
|
return null;
|
|
}
|
|
|
|
public String lnkDataNascimento_action() {
|
|
// TODO: Replace with your code
|
|
|
|
return null;
|
|
}
|
|
|
|
private void initializePage()
|
|
{
|
|
fillPage();
|
|
fillImages();
|
|
}
|
|
|
|
private void fillPage()
|
|
{
|
|
AnaliseAcidente a = getSessionBean1().getCurrentAnalise();
|
|
|
|
fillSIPRP(a);
|
|
|
|
AnalisesDataProvider adp = new AnalisesDataProvider();
|
|
Acidentado ac = null;
|
|
try
|
|
{
|
|
ac = adp.getAcidentado(a.getAcidentado_id());
|
|
//txtTrabalhador.setText(ac.getNome());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
|
|
fillAcidentado(ac);
|
|
|
|
fillDadosAcidenteSeg(a);
|
|
|
|
fillDadosAcidenteRh(a);
|
|
|
|
fillRecomendacoesHs(a);
|
|
|
|
fillMedidasRh(a);
|
|
|
|
fillMedico(a);
|
|
}
|
|
|
|
private void fillSIPRP(AnaliseAcidente a)
|
|
{
|
|
UtilizadoresDataProvider udp = new UtilizadoresDataProvider();
|
|
try
|
|
{
|
|
Utilizador u = udp.getUtilizador(a.getTecnico_saude_id());
|
|
txtTecnicoSuperior.setText(Utils.unicodeToHTML(u.getNome()));
|
|
txtCap1.setText(u.getCap());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
try
|
|
{
|
|
Utilizador u = udp.getUtilizador(a.getMedico_id());
|
|
txtMedicoTrabalho.setText(Utils.unicodeToHTML(u.getNome()));
|
|
txtCedula1.setText(u.getNumero_cedula());
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
}
|
|
|
|
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){};
|
|
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){};
|
|
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);
|
|
}
|
|
|
|
private void fillDadosAcidenteSeg(AnaliseAcidente a)
|
|
{
|
|
AnalisesDataProvider adp = new AnalisesDataProvider();
|
|
try
|
|
{
|
|
String nome_empresa = adp.getEmpresaNome(a.getEmpresa_id());
|
|
txtEmpresa.setText(utils.Utils.unicodeToHTML(nome_empresa));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
try
|
|
{
|
|
txtEstabelecimento.setText(adp.getEstabelecimentoNome(a.getEstabelecimento_id()));
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
|
|
// 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)
|
|
// {
|
|
// ex.printStackTrace();
|
|
// }
|
|
|
|
txtTrabalhador.setText(a.getNome_acidentado());
|
|
// txtNomeAcidentado.setText(a.getNome_acidentado());
|
|
txtHorasTurno.setText(a.getHoras_turno().toString());
|
|
txtSeccao.setText(a.getSeccao());
|
|
txtLocal.setText(a.getLocal_trabalho());
|
|
txtTarefa.setText(a.getTarefa());
|
|
txtSubstancias.setText(a.getSubstancias());
|
|
txtSuperior.setText(a.getSuperior_hierarquico());
|
|
txtCondicoes.setText(a.getCondicoes());
|
|
txtTestemunhas.setText(a.getTestemunhas());
|
|
txtCausas.setText(a.getCausas());
|
|
txtDescricao.setText(a.getDescricao());
|
|
txtConclusoes.setText(a.getConclusoes());
|
|
txtAccoes.setText(a.getAccoes());
|
|
}
|
|
|
|
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
|
|
{
|
|
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);
|
|
}
|
|
|
|
|
|
if(a.getOutros_acidentes_com_colaborador().matches("y"))
|
|
{
|
|
st1.setText("Verificaram-se outras ocurrências/inicidê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
|
|
{
|
|
st1.setText("Não se verificaram outras ocorrências/incidências no mesmo posto de trabalho com o colaborador acidentado.");
|
|
gridColaborador.getChildren().add(st1);
|
|
}
|
|
|
|
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
|
|
{
|
|
st2.setText("Não se verificaram ocurrências/inicidentes com outros colaboradores.");
|
|
gridColaboradores.getChildren().add(st1);
|
|
}
|
|
}
|
|
|
|
private void fillRecomendacoesHs(AnaliseAcidente a)
|
|
{
|
|
AnalisesDataProvider adp = new AnalisesDataProvider();
|
|
try
|
|
{
|
|
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)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
}
|
|
|
|
private void fillMedidasRh(AnaliseAcidente a)
|
|
{
|
|
AnalisesDataProvider adp = new AnalisesDataProvider();
|
|
try
|
|
{
|
|
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)
|
|
{
|
|
ex.printStackTrace();
|
|
}
|
|
}
|
|
|
|
private void fillMedico(AnaliseAcidente a)
|
|
{
|
|
|
|
PanelGroup pg = null;
|
|
StaticText st = null;
|
|
HtmlPanelGrid grd = null;
|
|
ImageComponent img = null;
|
|
//LESAO :
|
|
|
|
if(a.getLesao_cabeca().matches("y"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoCabeca");
|
|
st.setEscape(false);
|
|
st.setText("Cabeça");
|
|
gridLesao.getChildren().add(st);
|
|
}
|
|
|
|
if(a.getLesao_pescoco().matches("y"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoPescoco");
|
|
st.setEscape(false);
|
|
st.setText("Pescoço");
|
|
gridLesao.getChildren().add(st);
|
|
}
|
|
|
|
if(a.getLesao_tronco().matches("y"))
|
|
{
|
|
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"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoMembroSupDir");
|
|
st.setEscape(false);
|
|
st.setText("Membro Superior Direito");
|
|
grd.getChildren().add(st);
|
|
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"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoMembroSupEsq");
|
|
st.setEscape(false);
|
|
st.setText("Membro Superior Esquerdo");
|
|
grd.getChildren().add(st);
|
|
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"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoMembroInfDir");
|
|
st.setEscape(false);
|
|
st.setText("Membro Inferior Direito");
|
|
grd.getChildren().add(st);
|
|
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"))
|
|
{
|
|
st = new StaticText();
|
|
st.setId("stLesaoMembroInfEsq");
|
|
st.setEscape(false);
|
|
st.setText("Membro Inferior Esquerdo");
|
|
grd.getChildren().add(st);
|
|
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().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);
|
|
}
|
|
|
|
//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"))
|
|
{
|
|
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().toString() + "%");
|
|
pg.getChildren().add(st);
|
|
}
|
|
else if(a.getTipo_incapacidade().matches("p"))
|
|
{
|
|
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().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);
|
|
//st.setText(a.getData_aval_incapacidade());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_aval_incapacidade().getTime());
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch(Exception 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);
|
|
//st.setText(a.getData_rev_incapacidade());
|
|
try
|
|
{
|
|
java.util.Date ddate = new java.util.Date(a.getData_rev_incapacidade().getTime());
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
}
|
|
catch(Exception 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){};
|
|
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){};
|
|
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 fillImages()
|
|
{
|
|
ServletContext theApplicationsServletContext =
|
|
(ServletContext) this.getExternalContext().getContext();
|
|
try
|
|
{
|
|
String imageFileFolder = theApplicationsServletContext.getRealPath(IMAGE_URL + "/" + 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("/resources/images/" + getSessionBean1().getCurrentAnalise().getId() + "/" + imageName);
|
|
newImg.setRendered(true);
|
|
gridImages.getChildren().add(newImg);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
public String butVoltar_action() {
|
|
// TODO: Replace with your code
|
|
|
|
|
|
String navFrom = getSessionBean1().getNavFrom();
|
|
if(navFrom.matches("FormSeguranca"))
|
|
{
|
|
return "form_seguranca";
|
|
}
|
|
else if(navFrom.matches("FormRH"))
|
|
{
|
|
return "form_rh";
|
|
}
|
|
else if(navFrom.matches("FormHS"))
|
|
{
|
|
return "form_hs";
|
|
}
|
|
else if(navFrom.matches("FormMedico"))
|
|
{
|
|
return "form_medico";
|
|
}
|
|
return null;
|
|
|
|
}
|
|
|
|
public String lnkEditUser_action() {
|
|
// TODO: Replace with your code
|
|
|
|
getSessionBean1().setNavFrom("ViewAnaliseAcidenteTrabalho");
|
|
getSessionBean1().setModoEdicaoUtilizador("edit");
|
|
return "user";
|
|
|
|
}
|
|
}
|
|
|