Por favor, aceda a www.siprp.pt, separador colaboradores em 'Acesso à Gestão de Análises de Acidentes de Trabalho' e prossiga com a gestão do processo " + a.getAnalise_nr() + ".
";
+
+ System.out.println( "Sending mail to next user." );
+
+ String responsavel_loja = "n";
+ switch ( estado.intValue() )
+ {
+ case Global.ESTADO_RH1:
+ tipo = new Integer( Global.TIPO_UTILIZADOR_RH );
+ break;
+ case Global.ESTADO_HS:
+ tipo = new Integer( Global.TIPO_UTILIZADOR_HS );
+ break;
+ case Global.ESTADO_RH2:
+ tipo = new Integer( Global.TIPO_UTILIZADOR_RH );
+ break;
+ case Global.ESTADO_CONSOLIDACAO:
+ tipo = new Integer( Global.TIPO_UTILIZADOR_HS );
+ break;
+ case Global.ESTADO_ASSINATURA_SEG:
+ tipo =new Integer( Global.TIPO_UTILIZADOR_SEGURANCA );
+ responsavel_loja = "y";
+ break;
+ case Global.ESTADO_ASSINATURA_RH:
+ tipo = new Integer( Global.TIPO_UTILIZADOR_RH );
+ responsavel_loja = "y";
+ break;
+ case Global.ESTADO_FECHAR:
+ tipo = new Integer( Global.TIPO_UTILIZADOR_HS );
+ break;
+ }
+
+// if(estado.intValue() == Global.ESTADO_FECHAR)
+// {
+// tipo = new Integer(Global.TIPO_UTILIZADOR_HS); // hs
+// }
+// else
+// {
+// tipo = estado;
+// }
+
+// UtilizadoresDataProvider udp = new UtilizadoresDataProvider();
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+
+ ArrayList list = udp.getUtilizadoresListByTipo( tipo, responsavel_loja, a.getEstabelecimento_id() );
+ ListIterator iter = list.listIterator();
+ while ( iter.hasNext() )
+ {
+ Utilizador u = ( Utilizador ) iter.next();
+ System.out.println( "USER MAIL NEXT FASE : " + u.getLogin() + " ; " + u.getEmail() );
+ try
+ {
+ //sendEmail(u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
+ sendEmailWithPdf( a, u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email );
+ }
+ catch ( Exception ex1 )
+ {
+ errorMessage += "Erro a enviar email para " + u.getEmail();
+ boolean isValid = EmailValidator.getInstance().isValid( u.getEmail() );
+ if ( ! isValid )
+ {
+ errorMessage += " : email inválido.";
+ }
+ errorMessage += "Na sequência do acidente de trabalho do colaborador ";
+ texto_email += ac.getNome();
+ texto_email += " no dia " + data_acidente;
+ texto_email += ", vimos pelo presente remeter cópia da análise do acidente " + a.getAnalise_nr() + " que se encontra em processo de averiguação pelo departamento de Segurança, Recursos Humanos e pela SIPRP para seu conhecimento. Caso tenha qualquer informação importante sobre o processo ou pretenda esclarecimentos adicionais contacte, por favor, a secção de Recursos Humanos.
";
+ texto_email += "Cumprimentos.
";
+ try
+ {
+ sendEmailWithPdf( a, ac.getEmail_superior_hierarquico(), Global.ENDERECO_ENVIO, assunto, texto_email );
+ //sendEmail(ac.getEmail_superior_hierarquico(), Global.ENDERECO_ENVIO, assunto, texto_email);
+ }
+ catch ( Exception ex )
+ {
+ errorMessage += "Error a enviar email para " + ac.getEmail_superior_hierarquico();
+ boolean isValid = EmailValidator.getInstance().isValid( ac.getEmail_superior_hierarquico() );
+ if ( ! isValid )
+ {
+ errorMessage += " : email inválido.";
+ }
+ errorMessage += "Exmo. (a) Senhor(a), " + u.getNome() + "
";
+ texto_email += "Informamos que o processo de análise de acidente de trabalho nº " + a.getAnalise_nr() + " se encontra finalizado, ";
+ texto_email += "pelo que solicitamos a sua impressão e arquivamento em pasta própria, juntamente com a participação de sinistro à seguradora.
";
+ texto_email += "Caso pretenda qualquer esclarecimento, contacte-nos, por favor, através de acidentes.auchan@siprp.pt ou pelo telefone 213 504 540.
";
+ texto_email += "Os melhores cumprimentos.
";
+ texto_email += "Exmo. (a) Senhor(a),
";
+ texto_email += "Confirmamos que o processo de Análise de Acidente de Trabalho nº " + a.getAnalise_nr() + " se encontra encerrado após o preenchimento e validação de todos os intervenientes.
";
+ texto_email += "Sugerimos que imprima o ficheiro que enviamos em anexo e o junte à Participação de Sinistro à Seguradora para dar conhecimento ao Médico do Trabalho do seu estabelecimento. Após o seu conhecimento, aconselhamos que entregue uma cópia da Ficha de Análise de Acidente de Trabalho à equipa de Saúde Ocupacional, para que esta a arquive no processo clínico do trabalhador antes de juntar toda a documentação no processo individual do colaborador nos Recursos Humanos.
";
+ texto_email += "Agradecemos a sua colaboração e ficamos ao dispor para qualquer esclarecimento através dos telefones 213 504 544 (Catarina Leonardo) ou 213 504 542 (Sónia Campos).
";
+ texto_email += " 0)
+ {
+ booNrOk = true;
+ }
+ else
+ {
+ nr_mecano = null;
+ }
+ }
+
+ if(txtNomeTrabalhador.getText() != null)
+ {
+ nome = (String) txtNomeTrabalhador.getText();
+ if(nome.trim().length() > 0)
+ {
+ booNomeOk = true;
+ }
+ else
+ {
+ nome = null;
+ }
+ }
+
+ if(! booNrOk && !booNomeOk)
+ {
+ getSessionBean1().setMsg("Tem de preencher Numero Mecanográfico ou Nome");
+ return null;
+ }
+
+// AnalisesDataProvider adp = new AnalisesDataProvider();
+
+ Trabalhador t = null;
+ if(nome != null)
+ {
+ nome = utils.Utils.textToUnicode( nome.toUpperCase());
+ }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList list = adp.searchTrabalhador(getSessionBean1().getCurrentUser().getEmpresa_id(), getSessionBean1().getCurrentUser().getEstabelecimento_id(), nr_mecano, nome );
+ if(list.size() == 1)
+ {
+ t = (Trabalhador) list.get(0);
+ txtTrabalhador.setText(t.getNome());
+ txtNomeAcidentado.setText(t.getNome());
+ txtDataNascimento.setText(t.getData_nascimento());
+ Acidentado a = new Acidentado();
+ a.setTrabalhador_id(t.getId());
+ a.setData_nascimento(t.getData_nascimento());
+ a.setNome(t.getNome());
+ a.setFuncao(utils.Utils.unicodeToHTML(t.getFuncao()));
+ a.setData_admissao(t.getData_admissao());
+ a.setNumero_mecanografico(t.getNumero_mecanografico());
+ getSessionBean1().setAcidentado(a);
+ gridSiprp.setRendered(true);
+ gridDadosAcidenteSeg.setRendered(true);
+ gridTrabalhadores.setRendered(false);
+ }
+ else
+ {
+ tblTrabalhadores.setRendered(true);
+ getSessionBean1().getTrabalhadoresListDataProvider().setList(list);
+ }
+ if(getSessionBean1().getCurrentAnalise() != null) // new analise)
+ {
+ gridTrabalhadores.setRendered(false);
+ }
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Trabalhador inexistente ! ");
+ tblTrabalhadores.setRendered(false);
+ txtTrabalhador.setText("");
+ gridSiprp.setRendered(false);
+ gridDadosAcidenteSeg.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+ public String lnkPOR_action() {
+ // TODO: Replace with your code
+ getSessionBean1().setIeBug(true);
+ Trabalhador t = getTrabalhadorRowData();
+ Acidentado ac = setAcidentado(t);
+ gridSiprp.setRendered(true);
+ gridAcidentadoView.setRendered(true);
+ gridDadosAcidenteSeg.setRendered(true);
+ gridTrabalhadores.setRendered(false);
+ fillAcidentadoView(ac);
+ return null;
+ }
+
+ public String lnkNomeTrabalhador_action() {
+ // TODO: Replace with your code
+ getSessionBean1().setIeBug(true);
+ Trabalhador t = getTrabalhadorRowData();
+ Acidentado ac = setAcidentado(t);
+ gridSiprp.setRendered(true);
+ gridAcidentadoView.setRendered(true);
+ gridDadosAcidenteSeg.setRendered(true);
+ gridTrabalhadores.setRendered(false);
+ fillAcidentadoView(ac);
+ return null;
+ }
+
+ public String lnkEstabelecimentoTrabalhador_action() {
+ // TODO: Replace with your code
+ getSessionBean1().setIeBug(true);
+ Trabalhador t = getTrabalhadorRowData();
+ Acidentado ac = setAcidentado(t);
+ gridSiprp.setRendered(true);
+ gridAcidentadoView.setRendered(true);
+ gridDadosAcidenteSeg.setRendered(true);
+ gridTrabalhadores.setRendered(false);
+ fillAcidentadoView(ac);
+ return null;
+ }
+
+ private Trabalhador getTrabalhadorRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ TrabalhadoresListDataProvider provider = (TrabalhadoresListDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ Trabalhador t = (Trabalhador)list.get(k);
+ return t;
+ }
+
+ private Acidentado setAcidentado(Trabalhador t)
+ {
+ txtTrabalhador.setText(t.getNome());
+ txtNomeAcidentado.setText(t.getNome());
+ txtDataNascimento.setText(t.getData_nascimento());
+ Acidentado a = new Acidentado();
+ a.setTrabalhador_id(t.getId());
+ a.setData_nascimento(t.getData_nascimento());
+ a.setNome(t.getNome());
+ a.setMorada("");
+ a.setFuncao(utils.Utils.unicodeToHTML(t.getFuncao()));
+ a.setData_admissao(t.getData_admissao());
+ a.setNumero_mecanografico(t.getNumero_mecanografico());
+ a.setEstabelecimento_origem(t.getEstabelecimento());
+ getSessionBean1().setAcidentado(a);
+ return a;
+ }
+
+ public String butCorrecao_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ getSessionBean1().setIeBug(true);
+ getSessionBean1().setCorrecao(null);
+ return "correcao";
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ private boolean isRecomendacoesEmpty()
+ {
+ boolean res = true;
+
+ for(int i=0; i < gridRecomendacoes.getChildren().size(); i++)
+ {
+ HtmlPanelGrid g = (HtmlPanelGrid) gridRecomendacoes.getChildren().get(i);
+ TextArea t = (TextArea) g.getChildren().get(1);
+ if(t.getText() != null)
+ {
+ String txt = (String) t.getText();
+ if(txt.trim().length() > 0)
+ {
+ res = false;
+ break;
+ }
+ }
+ }
+
+ return res;
+ }
+
+ private boolean isMedidasEmpty()
+ {
+ boolean res = true;
+
+ for(int i=0; i < gridMedidas.getChildren().size(); i++)
+ {
+ HtmlPanelGrid g = (HtmlPanelGrid) gridMedidas.getChildren().get(i);
+ TextArea t = (TextArea) g.getChildren().get(1);
+ if(t.getText() != null)
+ {
+ String txt = (String) t.getText();
+ if(txt.trim().length() > 0)
+ {
+ res = false;
+ break;
+ }
+ }
+ }
+
+ return res;
+ }
+
+ public void drpDepartamento_processValueChange(ValueChangeEvent event)
+ {
+ // TODO: Replace with your code
+
+ Integer departamento_id = (Integer) drpDepartamento.getSelected();
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ if(departamento_id.intValue()== 0)
+ {
+ getSessionBean1().setSeccaoOptions(adp.getSeccoesList(null));
+ }
+ else
+ {
+ getSessionBean1().setSeccaoOptions(adp.getSeccoesList(departamento_id));
+ }
+
+ drpSeccao.setSelected(new Integer(0));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ hidAnchor.setValue("dados");
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 );
+// }
+ getSessionBean1().setIeBug(true);
+ return null;
+ }
+
+ private boolean checkRecomendacoesLen()
+ {
+// AnalisesDataProvider adp = new AnalisesDataProvider();
+ HashMap meta = new HashMap();
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ meta = adp.getMetaData("recomendacoes");
+ ArrayList list = new ArrayList();
+ ListIterator iter = gridRecomendacoes.getChildren().listIterator();
+ while(iter.hasNext())
+ {
+ HtmlPanelGrid grd = (HtmlPanelGrid)iter.next();
+ TextArea ta = (TextArea) grd.getChildren().get(1);
+ if(ta.getText() != null )
+ {
+ String txt = (String) ta.getText();
+ if(txt.length() > 0)
+ {
+ int len = ( (Integer) meta.get("recomendacao") ).intValue();
+ if(txt.length() > len)
+ {
+ getSessionBean1().setMsg("Os Campos Recomendações não podem exceder " + len + " caracteres!");
+ return false;
+ }
+ }
+ }
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ return false;
+ }
+ return true;
+ }
+
+ private boolean checkMedidasLen()
+ {
+ HashMap meta = new HashMap();
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ meta = adp.getMetaData("medidas");
+ ArrayList list = new ArrayList();
+ ListIterator iter = gridMedidas.getChildren().listIterator();
+ while(iter.hasNext())
+ {
+ HtmlPanelGrid grd = (HtmlPanelGrid)iter.next();
+ TextArea ta = (TextArea) grd.getChildren().get(1);
+ if(ta.getText() != null )
+ {
+ String txt = (String) ta.getText();
+ if(txt.length() > 0)
+ {
+ int len = ( (Integer) meta.get("medida") ).intValue();
+ if(txt.length() > len)
+ {
+ getSessionBean1().setMsg("Os Campos Medidas não podem exceder " + len + " caracteres!");
+ return false;
+ }
+ }
+ }
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ return false;
+ }
+
+ return true;
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ApplicationBean1.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ApplicationBean1.java
new file mode 100644
index 00000000..36df6ef2
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ApplicationBean1.java
@@ -0,0 +1,100 @@
+/*
+ * ApplicationBean1.java
+ *
+ * Created on September 18, 2007, 3:14 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import com.sun.rave.web.ui.appbase.AbstractApplicationBean;
+import javax.faces.FacesException;
+
+/**
+ * Application scope data bean for your application. Create properties
+ * here to represent cached data that should be made available to all users
+ * and pages in the application.
+ *
+ * An instance of this class will be created for you automatically,
+ * the first time your application evaluates a value binding expression
+ * or method binding expression that references a managed bean using
+ * this class.
+ */
+public class ApplicationBean1 extends AbstractApplicationBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init() throws Exception {
+ }
+ //
+
+ /**
+ * Construct a new application data bean instance.
+ */
+ public ApplicationBean1() {
+ }
+
+ /**
+ * This method is called when this bean is initially added to
+ * application scope. Typically, this occurs as a result of evaluating
+ * a value binding or method binding expression, which utilizes the
+ * managed bean facility to instantiate this bean and store it into
+ * application scope.
+ *
+ * You may customize this method to initialize and cache application wide
+ * data values (such as the lists of valid options for dropdown list
+ * components), or to allocate resources that are required for the
+ * lifetime of the application.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("ApplicationBean1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * This method is called when this bean is removed from
+ * application scope. Typically, this occurs as a result of
+ * the application being shut down by its owning container.
+ *
+ * You may customize this method to clean up resources allocated
+ * during the execution of the init() method, or
+ * at any later time during the lifetime of the application.
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return an appropriate character encoding based on the
+ * Locale defined for the current JavaServer Faces
+ * view. If no more suitable encoding can be found, return
+ * "UTF-8" as a general purpose default.
+ *
+ * The default implementation uses the implementation from
+ * our superclass, AbstractApplicationBean.
+ */
+ public String getLocaleCharacterEncoding() {
+ return super.getLocaleCharacterEncoding();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Bundle.properties b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Bundle.properties
new file mode 100644
index 00000000..13e936fe
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Bundle.properties
@@ -0,0 +1 @@
+# Sample ResourceBundle properties file
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ConfirmarDesactivar.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ConfirmarDesactivar.java
new file mode 100644
index 00000000..bffd73e9
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ConfirmarDesactivar.java
@@ -0,0 +1,304 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package analiseacidentestrabalho;
+
+import beans.AnaliseAcidente;
+import beans.Utilizador;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.rave.web.ui.appbase.AbstractPageBean;
+import com.sun.rave.web.ui.component.Hyperlink;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.TextArea;
+import db.providers.AnalisesDataProvider;
+import global.Global;
+import java.util.Date;
+import javax.faces.FacesException;
+import javax.faces.context.FacesContext;
+import utils.Utils;
+
+/**
+ * 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.
+ *
+ * @version ConfirmarDesactivar.java
+ * @version Created on Oct 11, 2010, 3:38:04 PM
+ * @author dneves
+ */
+
+public class ConfirmarDesactivar extends AbstractPageBean
+{
+
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+ public Hyperlink getLnkPlanosActuacao()
+ {
+ return lnkPlanosActuacao;
+ }
+ public void setLnkPlanosActuacao( Hyperlink h )
+ {
+ this.lnkPlanosActuacao = h;
+ }
+
+ private StaticText lblUser = new StaticText();
+ public StaticText getLblUser()
+ {
+ return lblUser;
+ }
+ public void setLblUser( StaticText st )
+ {
+ this.lblUser = st;
+ }
+
+ private StaticText txtMsg = new StaticText();
+ public StaticText getTxtMsg()
+ {
+ return txtMsg;
+ }
+ public void setTxtMsg( StaticText st )
+ {
+ this.txtMsg = st;
+ }
+
+ private StaticText textAnalise = new StaticText();
+ public StaticText getTextAnalise()
+ {
+ return textAnalise;
+ }
+ public void setTextAnalise( StaticText textAnalise )
+ {
+ this.textAnalise = textAnalise;
+ }
+
+ private TextArea textComentario = new TextArea();
+ public TextArea getTextComentario()
+ {
+ return textComentario;
+ }
+ public void setTextComentario( TextArea textComentario )
+ {
+ this.textComentario = textComentario;
+ }
+
+
+ private void _init() throws Exception
+ {
+
+ }
+
+
+ public ConfirmarDesactivar()
+ {
+
+ }
+
+
+ @Override
+ public void init()
+ {
+ super.init();
+
+ try
+ {
+ _init();
+ }
+ catch ( Exception e )
+ {
+ log( "ConfirmarDesactivar Initialization Failure", e );
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ if ( ! canAccess() )
+ {
+ try
+ {
+ getExternalContext().redirect( "Login.jsp" );
+ }
+ catch( Exception e )
+ {
+ ErrorLogger.logException( e );
+ }
+ }
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ @Override
+ public void preprocess()
+ {
+ txtMsg.setText( getSessionBean1().getMsg() );
+ getSessionBean1().setMsg( "" );
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ @Override
+ public void prerender()
+ {
+ System.out.println( "=== CONFIRMAR_DESACTIVACAO ===" );
+
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ AnaliseAcidente analise = getSessionBean1().getCurrentAnalise();
+ if ( analise != null )
+ {
+ textAnalise.setText( "Análise nº " + analise.getAnalise_nr() );
+ }
+ else
+ {
+ textAnalise.setText( "Análise inválida." );
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ @Override
+ public void destroy()
+ {
+
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ *
+ * @return reference to the scoped data bean
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1) getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ *
+ * @return reference to the scoped data bean
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1) getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ *
+ * @return reference to the scoped data bean
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1) getBean("ApplicationBean1");
+ }
+
+ private boolean canAccess()
+ {
+ boolean canAccess = false;
+
+ if ( getSessionBean1().isLoggedIn() )
+ {
+ Utilizador u = getSessionBean1().getCurrentUser();
+ if ( u != null && u.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP )
+ {
+ canAccess = true;
+ }
+ }
+
+ return canAccess;
+ }
+
+ public String lnkPlanosActuacao_action()
+ {
+ Utilizador u = getSessionBean1().getCurrentUser();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+
+ public String lnkNewUser_action()
+ {
+ getSessionBean1().setNavFrom( "EstatisticasProcesso" );
+ return "gestao_utilizadores";
+ }
+
+ public String lnkEditUser_action()
+ {
+ getSessionBean1().setNavFrom( "EstatisticasProcesso" );
+ getSessionBean1().setModoEdicaoUtilizador( "edit" );
+ return "user";
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+
+ return null;
+ }
+
+ public String buttonCancelar_action()
+ {
+ getSessionBean1().setCurrentAnalise( null );
+ return "formDirSiprp";
+ }
+
+ public String buttonConfirmar_action()
+ {
+ Utilizador currentUser = getSessionBean1().getCurrentUser();
+ AnaliseAcidente analise = getSessionBean1().getCurrentAnalise();
+ if ( userCanDesactivarAnalise( currentUser ) && analise != null )
+ {
+ try
+ {
+ String comentario = null;
+ if ( textComentario.getText() != null )
+ {
+ comentario = ( ( String ) textComentario.getText() ).trim();
+ comentario = "".equals( comentario ) ? null : comentario;
+ comentario = comentario != null ? comentario.replaceAll( "\n", "
" ) : null;
+ }
+
+ analise.setEstado( Global.ESTADO_CONCLUIDO );
+ analise.setConcluido_por_desactivacao( Boolean.TRUE );
+ analise.setData_desactivacao( new Date() );
+ analise.setComentario_desactivacao( comentario );
+
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ adp.updateAnalise( analise );
+ }
+ catch ( Exception e )
+ {
+ ErrorLogger.logException( e );
+ getSessionBean1().setMsg( "Erro a desactivar análise.\n" + e.getMessage() );
+ }
+ }
+
+ return "formDirSiprp";
+ }
+
+ private boolean userCanDesactivarAnalise( Utilizador user )
+ {
+ boolean canDesactivar = false;
+ if ( user != null )
+ {
+ int userType = user.getTipo() == null ? -1 : user.getTipo().intValue();
+ canDesactivar = userType == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP;
+ }
+ return canDesactivar;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Dummy.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Dummy.java
new file mode 100644
index 00000000..199b84af
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Dummy.java
@@ -0,0 +1,424 @@
+/*
+ * Dummy.java
+ *
+ *
+ * Created on September 19, 2007, 10:56 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.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.Link;
+import com.sun.rave.web.ui.component.Page;
+import com.sun.rave.web.ui.model.SingleSelectOptionsList;
+import javax.faces.FacesException;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class Dummy extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HiddenField hiddenField1 = new HiddenField();
+
+ public HiddenField getHiddenField1() {
+ return hiddenField1;
+ }
+
+ public void setHiddenField1(HiddenField hf) {
+ this.hiddenField1 = hf;
+ }
+
+ private HiddenField hidConfEnviar = new HiddenField();
+
+ public HiddenField getHidConfEnviar() {
+ return hidConfEnviar;
+ }
+
+ public void setHidConfEnviar(HiddenField hf) {
+ this.hidConfEnviar = hf;
+ }
+
+ private HiddenField hidConfDelete = new HiddenField();
+
+ public HiddenField getHidConfDelete() {
+ return hidConfDelete;
+ }
+
+ public void setHidConfDelete(HiddenField hf) {
+ this.hidConfDelete = hf;
+ }
+ private SingleSelectOptionsList dropDown1DefaultOptions = new SingleSelectOptionsList();
+
+ public SingleSelectOptionsList getDropDown1DefaultOptions() {
+ return dropDown1DefaultOptions;
+ }
+
+ public void setDropDown1DefaultOptions(SingleSelectOptionsList ssol) {
+ this.dropDown1DefaultOptions = ssol;
+ }
+ private SingleSelectOptionsList dropDown2DefaultOptions = new SingleSelectOptionsList();
+
+ public SingleSelectOptionsList getDropDown2DefaultOptions() {
+ return dropDown2DefaultOptions;
+ }
+
+ public void setDropDown2DefaultOptions(SingleSelectOptionsList ssol) {
+ this.dropDown2DefaultOptions = ssol;
+ }
+
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public Dummy() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("Dummy Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ //txtIn.setText("OLA");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+
+
+ public String butCancelar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String butGravar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String butEnviar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String butImagem_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String lnkMoreMed1_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNome_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkDataNascimento_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), false );
+ return null;
+ }
+
+ public String butProcurarTrab_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String lnkPOR_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeTrabalhador_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkEstabelecimentoTrabalhador_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public void drpTipo_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpNome_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String hyperlink1_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public void lnk_actionListener(ActionEvent e)
+ {
+ System.out.println("LINK");
+ }
+
+
+
+// public String lnkAjuda_action() {
+// // TODO: Replace with your code
+// 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)
+// {
+// ex.printStackTrace();
+// }
+// return null;
+// }
+
+ public String butVoltar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String butEliminar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkGerirUtilizadores_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkAnalises_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkPlanos_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EditUser.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EditUser.java
new file mode 100644
index 00000000..fee0ed5c
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EditUser.java
@@ -0,0 +1,24 @@
+/*
+ * EditUser.java
+ *
+ * Created on December 5, 2007, 2:02 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+
+/**
+ *
+ * @author lluis
+ */
+public class EditUser extends Utilizador{
+
+ /** Creates a new instance of EditUser */
+ public EditUser() {
+ }
+
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EnviarCorrecao.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EnviarCorrecao.java
new file mode 100644
index 00000000..7939af00
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EnviarCorrecao.java
@@ -0,0 +1,753 @@
+/*
+ * EnviarCorrecao.java
+ *
+ * Created on November 28, 2007, 5:27 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Correcao;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextArea;
+import db.providers.AnalisesDataProvider;
+import db.providers.EstadosCorrecaoDataProvider;
+import global.Global;
+import java.util.ArrayList;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.event.ValueChangeEvent;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class EnviarCorrecao extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+
+ private HtmlPanelGrid gridMain1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridMain1() {
+ return gridMain1;
+ }
+
+ public void setGridMain1(HtmlPanelGrid hpg) {
+ this.gridMain1 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private TextArea txtObservacoes = new TextArea();
+
+ public TextArea getTxtObservacoes() {
+ return txtObservacoes;
+ }
+
+ public void setTxtObservacoes(TextArea ta) {
+ this.txtObservacoes = ta;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private Button butCancelar = new Button();
+
+ public Button getButCancelar() {
+ return butCancelar;
+ }
+
+ public void setButCancelar(Button b) {
+ this.butCancelar = b;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkEstadoCorr = new Hyperlink();
+
+ public Hyperlink getLnkEstadoCorr() {
+ return lnkEstadoCorr;
+ }
+
+ public void setLnkEstadoCorr(Hyperlink h) {
+ this.lnkEstadoCorr = h;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private Button butConfirmar = new Button();
+
+ public Button getButConfirmar() {
+ return butConfirmar;
+ }
+
+ public void setButConfirmar(Button b) {
+ this.butConfirmar = b;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public EnviarCorrecao() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("EnviarCorrecao Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin());
+ fillTabelaEstados();
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkPor_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkFase_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String lnkDataConcluida_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNrConcluida_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkPorConcluida_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeConcluida_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkEstabConcluida_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ private void fillTabelaEstados()
+ {
+ ArrayList list = new ArrayList();
+ Correcao c = null;
+ int estado = getSessionBean1().getCurrentAnalise().getEstado().intValue();
+
+ switch(estado)
+ {
+ case Global.ESTADO_HS:
+ c = new Correcao();
+ c.setCorrecao("y");
+ c.setAnalise_id(getSessionBean1().getCurrentAnalise().getId());
+ c.setEstado_actual(getSessionBean1().getCurrentAnalise().getEstado());
+ c.setEstado_corr(new Integer(Global.ESTADO_SEG));
+ c.setDescricao("FASE 1 - SEG - ABERTURA");
+ list.add(c);
+ c = new Correcao();
+ c.setCorrecao("y");
+ c.setAnalise_id(getSessionBean1().getCurrentAnalise().getId());
+ c.setEstado_actual(getSessionBean1().getCurrentAnalise().getEstado());
+ c.setEstado_corr(new Integer(Global.ESTADO_RH1));
+ c.setDescricao("FASE 2 - RH - ACOMPANHAMENTO");
+ list.add(c);
+ getSessionBean1().getEstadosCorrecaoDataProvider().setList(list);
+ break;
+ case Global.ESTADO_CONSOLIDACAO:
+ c = new Correcao();
+ c.setCorrecao("y");
+ c.setAnalise_id(getSessionBean1().getCurrentAnalise().getId());
+ c.setEstado_actual(getSessionBean1().getCurrentAnalise().getEstado());
+ c.setEstado_corr(new Integer(Global.ESTADO_RH2));
+ c.setDescricao("FASE 4 - RH - MEDIDAS + LESÃO");
+ list.add(c);
+// c = new Correcao();
+// c.setCorrecao("y");
+// c.setAnalise_id(getSessionBean1().getCurrentAnalise().getId());
+// c.setEstado_actual(getSessionBean1().getCurrentAnalise().getEstado());
+// c.setEstado_corr(new Integer(Global.ESTADO_MEDICINA));
+// c.setDescricao("Medicina");
+// list.add(c);
+ getSessionBean1().getEstadosCorrecaoDataProvider().setList(list);
+ break;
+ }
+ }
+
+ public String lnkEstadoCorr_action() {
+ // TODO: Replace with your code
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ EstadosCorrecaoDataProvider provider = (EstadosCorrecaoDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ Correcao c = (Correcao)list.get(k);
+
+ getSessionBean1().setCorrecao(c);
+
+// c.setObservacoes("");
+// if(txtObservacoes.getText() != null)
+// {
+// String obs = (String) txtObservacoes.getText();
+// c.setObservacoes(obs);
+// }
+// AnalisesDataProvider adp = new AnalisesDataProvider();
+// try
+// {
+// adp.changeEstado(c);
+//
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+// return "form_hs";
+ return null;
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String butCancelar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ //return "form_hs";
+ return "analise_acidente";
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 butConfirmar_action()
+ {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ Correcao c = getSessionBean1().getCorrecao();
+ if(c != null)
+ {
+ c.setObservacoes("");
+ if(txtObservacoes.getText() != null)
+ {
+ String obs = (String) txtObservacoes.getText();
+ c.setObservacoes(obs);
+ }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ adp.changeEstado( c );
+ }
+ catch ( Exception ex )
+ {
+ ErrorLogger.logException( ex );
+ }
+ return "form_hs";
+ }
+ else
+ {
+ getSessionBean1().setMsg("Tem de indicar para onde enviar a correcção");
+ return null;
+ }
+
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Erro.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Erro.java
new file mode 100644
index 00000000..66aa2dc1
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Erro.java
@@ -0,0 +1,239 @@
+/*
+ * Error.java
+ *
+ * Created on September 19, 2007, 5:21 PM
+ * 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.Form;
+import com.sun.rave.web.ui.component.Head;
+import com.sun.rave.web.ui.component.Html;
+import com.sun.rave.web.ui.component.Link;
+import com.sun.rave.web.ui.component.Page;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.TextField;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+
+/**
+ * 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.
+ */
+public class Erro extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 gridPanel1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel1() {
+ return gridPanel1;
+ }
+
+ public void setGridPanel1(HtmlPanelGrid hpg) {
+ this.gridPanel1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText txtCab = new StaticText();
+
+ public StaticText getTxtCab() {
+ return txtCab;
+ }
+
+ public void setTxtCab(StaticText st) {
+ this.txtCab = st;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public Erro() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("Error Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ txtMsg.setText( getSessionBean1().getMsg() );
+ getSessionBean1().setMsg("");
+ System.out.println("ERROR PAGE");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EstatisticasProcesso.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EstatisticasProcesso.java
new file mode 100644
index 00000000..7bd62a16
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/EstatisticasProcesso.java
@@ -0,0 +1,903 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package analiseacidentestrabalho;
+
+import beans.EstatisticaProcessoBean;
+import beans.Utilizador;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.rave.web.ui.appbase.AbstractPageBean;
+import com.sun.rave.web.ui.component.Button;
+import com.sun.rave.web.ui.component.DropDown;
+import com.sun.rave.web.ui.component.Hyperlink;
+import com.sun.rave.web.ui.component.RadioButton;
+import com.sun.rave.web.ui.component.RadioButtonGroup;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.EstatisticasConstants;
+import db.data.siprp.outer.SeccoesData;
+import db.providers.EstatisticasDataProvider;
+import global.Global;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import javax.faces.FacesException;
+import javax.faces.context.FacesContext;
+import javax.servlet.http.HttpServletResponse;
+import org.apache.poi.hssf.usermodel.HSSFCell;
+import org.apache.poi.hssf.usermodel.HSSFCellStyle;
+import org.apache.poi.hssf.usermodel.HSSFFont;
+import org.apache.poi.hssf.usermodel.HSSFRow;
+import org.apache.poi.hssf.usermodel.HSSFSheet;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import utils.Utils;
+
+/**
+ *
+ * @author dneves
+ */
+public class EstatisticasProcesso extends AbstractPageBean
+{
+
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+ public Hyperlink getLnkPlanosActuacao()
+ {
+ return lnkPlanosActuacao;
+ }
+ public void setLnkPlanosActuacao( Hyperlink h )
+ {
+ this.lnkPlanosActuacao = h;
+ }
+
+ private Hyperlink lnkAnaliseAcidentes = new Hyperlink();
+ public Hyperlink getLnkAnaliseAcidentes()
+ {
+ return lnkAnaliseAcidentes;
+ }
+ public void setLnkAnaliseAcidentes( Hyperlink lnkAnaliseAcidentes )
+ {
+ this.lnkAnaliseAcidentes = lnkAnaliseAcidentes;
+ }
+
+
+ private StaticText lblUser = new StaticText();
+ public StaticText getLblUser()
+ {
+ return lblUser;
+ }
+ public void setLblUser( StaticText st )
+ {
+ this.lblUser = st;
+ }
+
+ private StaticText txtMsg = new StaticText();
+ public StaticText getTxtMsg()
+ {
+ return txtMsg;
+ }
+ public void setTxtMsg( StaticText st )
+ {
+ this.txtMsg = st;
+ }
+
+ private TextField textPOR = new TextField();
+ public TextField getTextPOR()
+ {
+ return textPOR;
+ }
+ public void setTextPOR( TextField tf )
+ {
+ this.textPOR = tf;
+ }
+
+ private TextField textNome = new TextField();
+ public TextField getTextNome()
+ {
+ return textNome;
+ }
+ public void setTextNome( TextField tf )
+ {
+ this.textNome = tf;
+ }
+
+ private TextField textAnoOcorrencia = new TextField();
+ public TextField getTextAnoOcorrencia()
+ {
+ return textAnoOcorrencia;
+ }
+ public void setTextAnoOcorrencia( TextField tf )
+ {
+ this.textAnoOcorrencia = tf;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calDataOcorrencia = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalDataOcorrencia()
+ {
+ return this.calDataOcorrencia;
+ }
+ public void setCalDataOcorrencia( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calDataOcorrencia = c;
+ }
+
+ private TextField textHoraOcorrencia = new TextField();
+ public TextField getTextHoraOcorrencia()
+ {
+ return textHoraOcorrencia;
+ }
+ public void setTextHoraOcorrencia( TextField tf )
+ {
+ this.textHoraOcorrencia = tf;
+ }
+
+ private TextField textHorasTrabalhadas = new TextField();
+ public TextField getTextHorasTrabalhadas()
+ {
+ return textHorasTrabalhadas;
+ }
+ public void setTextHorasTrabalhadas( TextField tf )
+ {
+ this.textHorasTrabalhadas = tf;
+ }
+
+ private Table tableEstatisticas = new Table();
+ public Table getTableEstatisticas()
+ {
+ return tableEstatisticas;
+ }
+ public void setTableEstatisticas( Table t )
+ {
+ this.tableEstatisticas = t;
+ }
+
+ private DropDown dropCausas = new DropDown();
+
+ public DropDown getDropCausas() {
+ return dropCausas;
+ }
+
+ public void setDropCausas(DropDown dropCausas) {
+ this.dropCausas = dropCausas;
+ }
+
+// private TextField textDepartamento = new TextField();
+// public TextField getTextDepartamento() {
+// return textDepartamento;
+// }
+// public void setTextDepartamento(TextField textDepartamento) {
+// this.textDepartamento = textDepartamento;
+// }
+
+ private DropDown dropSeccoes = new DropDown();
+
+ public DropDown getDropSeccoes() {
+ return dropSeccoes;
+ }
+
+ public void setDropSeccoes(DropDown dropSeccoes) {
+ this.dropSeccoes = dropSeccoes;
+ }
+
+ private DropDown dropTurno = new DropDown();
+
+ public DropDown getDropTurno() {
+ return dropTurno;
+ }
+
+ public void setDropTurno(DropDown dropTurno) {
+ this.dropTurno = dropTurno;
+ }
+
+ private RadioButtonGroup formacaoSHST = new RadioButtonGroup();
+ public RadioButtonGroup getFormacaoSHST()
+ {
+ return formacaoSHST;
+ }
+ public void setFormacaoSHST( RadioButtonGroup bg )
+ {
+ this.formacaoSHST = bg;
+ }
+
+ private RadioButton formacaoSHST_true = new RadioButton();
+ public RadioButton getFormacaoSHST_true() {
+ return formacaoSHST_true;
+ }
+ public void setFormacaoSHST_true(RadioButton formacaoSHST_true) {
+ this.formacaoSHST_true = formacaoSHST_true;
+ }
+
+ private RadioButton formacaoSHST_false = new RadioButton();
+ public RadioButton getFormacaoSHST_false() {
+ return formacaoSHST_false;
+ }
+ public void setFormacaoSHST_false(RadioButton formacaoSHST_false) {
+ this.formacaoSHST_false = formacaoSHST_false;
+ }
+
+ private RadioButton formacaoSHST_none = new RadioButton();
+ public RadioButton getFormacaoSHST_none()
+ {
+ return formacaoSHST_none;
+ }
+ public void setFormacaoSHST_none( RadioButton formacaoSHST_none )
+ {
+ this.formacaoSHST_none = formacaoSHST_none;
+ }
+
+
+
+ private RadioButton postoAcidentado_true = new RadioButton();
+ private RadioButton postoAcidentado_false = new RadioButton();
+ private RadioButton outrosColaboradores_true = new RadioButton();
+ private RadioButton outrosColaboradores_false = new RadioButton();
+
+ public RadioButton getOutrosColaboradores_false() {
+ return outrosColaboradores_false;
+ }
+ public void setOutrosColaboradores_false(RadioButton outrosColaboradores_false) {
+ this.outrosColaboradores_false = outrosColaboradores_false;
+ }
+
+ public RadioButton getOutrosColaboradores_true() {
+ return outrosColaboradores_true;
+ }
+ public void setOutrosColaboradores_true(RadioButton outrosColaboradores_true) {
+ this.outrosColaboradores_true = outrosColaboradores_true;
+ }
+
+ public RadioButton getPostoAcidentado_false() {
+ return postoAcidentado_false;
+ }
+ public void setPostoAcidentado_false(RadioButton postoAcidentado_false) {
+ this.postoAcidentado_false = postoAcidentado_false;
+ }
+
+ public RadioButton getPostoAcidentado_true() {
+ return postoAcidentado_true;
+ }
+ public void setPostoAcidentado_true(RadioButton postoAcidentado_true) {
+ this.postoAcidentado_true = postoAcidentado_true;
+ }
+
+ private Button buttonExport = new Button();
+
+ public Button getButtonExport() {
+ return buttonExport;
+ }
+ public void setButtonExport(Button buttonExport) {
+ this.buttonExport = buttonExport;
+ }
+
+
+ private List< EstatisticaProcessoBean > listEstatisticas = new LinkedList< EstatisticaProcessoBean >();
+ public List< EstatisticaProcessoBean > getListEstatisticas()
+ {
+ return this.listEstatisticas;
+ }
+ public void setListEstatisticas( List< EstatisticaProcessoBean > l )
+ {
+ this.listEstatisticas = l;
+ }
+
+ private boolean canAccess()
+ {
+ boolean canAccess = false;
+ canAccess = getSessionBean1().getCanAccessEstatisticas();
+ return canAccess;
+ }
+
+ @Override
+ public void init()
+ {
+ super.init();
+
+ try
+ {
+ _init();
+ }
+ catch ( Exception e )
+ {
+ log("Page1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e : new FacesException(e);
+ }
+
+ if ( ! canAccess() )
+ {
+ try
+ {
+ getExternalContext().redirect( "Login.jsp" );
+ }
+ catch( Exception e )
+ {
+ ErrorLogger.logException( e );
+ }
+ }
+
+ formacaoSHST_none.setSelected( true );
+ }
+
+ protected SessionBean1 getSessionBean1()
+ {
+ return ( SessionBean1 ) getBean( "SessionBean1" );
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ @Override
+ public void preprocess()
+ {
+ txtMsg.setText( getSessionBean1().getMsg() );
+ getSessionBean1().setMsg( "" );
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ @Override
+ public void prerender()
+ {
+ System.out.println( "=== ESTATISTICAS_PROCESSO ===" );
+
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ Option[] turnosOptions = new Option[ 4 ];
+ turnosOptions[ 0 ] = new Option( "", "" );
+ turnosOptions[ 1 ] = new Option( "m", "Manhã" );
+ turnosOptions[ 2 ] = new Option( "t", "Tarde" );
+ turnosOptions[ 3 ] = new Option( "n", "Noite" );
+ dropTurno.setItems( turnosOptions );
+
+ try
+ {
+ EstatisticasDataProvider statsProvider = EstatisticasDataProvider.getInstance();
+ Option[] causas = statsProvider.getCausasAcidente();
+ if ( causas != null )
+ {
+ dropCausas.setItems( causas );
+ }
+
+ Option[] seccoes = statsProvider.getSeccoesList();
+ if ( seccoes != null )
+ {
+ dropSeccoes.setItems( seccoes );
+ }
+ }
+ catch ( Exception e )
+ {
+ ErrorLogger.logException( e );
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ @Override
+ public void destroy()
+ {
+
+ }
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init()
+ {
+
+ }
+
+ public String lnkAnalisesAcidente_action()
+ {
+ Utilizador currentUser = getSessionBean1().getCurrentUser();
+ int userType = currentUser == null ? -1 : currentUser.getTipo() == null ? -1 : currentUser.getTipo().intValue();
+
+ switch ( userType )
+ {
+ case Global.TIPO_UTILIZADOR_SEGURANCA :
+ return "form_seguranca";
+ case Global.TIPO_UTILIZADOR_RH :
+ return "form_rh";
+ case Global.TIPO_UTILIZADOR_HS :
+ return "form_hs";
+ case Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP :
+ return "form_dir_siprp";
+ case Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH :
+ return "form_dir_ger_rh";
+ case Global.TIPO_UTILIZADOR_GESTOR :
+ return "form_gestor";
+ }
+ return null;
+ }
+
+ public String lnkPlanosActuacao_action()
+ {
+ Utilizador u = getSessionBean1().getCurrentUser();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+
+ public String lnkNewUser_action()
+ {
+ getSessionBean1().setNavFrom( "EstatisticasProcesso" );
+ return "gestao_utilizadores";
+ }
+
+ public String lnkEditUser_action()
+ {
+ getSessionBean1().setNavFrom( "EstatisticasProcesso" );
+ getSessionBean1().setModoEdicaoUtilizador( "edit" );
+ return "user";
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+
+ return null;
+ }
+
+ private Map< String, Object > getFormFieldValues()
+ {
+ String por = null;
+ if ( textPOR.getText() != null )
+ {
+ por = ( ( String ) textPOR.getText() ).trim();
+ por = "".equals( por ) ? null : por;
+ }
+ String nome = null;
+ if ( textNome.getText() != null )
+ {
+ nome = ( ( String ) textNome.getText() ).trim();
+ nome = "".equals( nome ) ? null : nome;
+ }
+ String anoOcorrencia = null;
+ if ( textAnoOcorrencia.getText() != null )
+ {
+ anoOcorrencia = ( ( String ) textAnoOcorrencia.getText() ).trim();
+ anoOcorrencia = "".equals( anoOcorrencia ) ? null : anoOcorrencia;
+ }
+ Date dataOcorrencia = null;
+ if ( calDataOcorrencia.getValue() != null )
+ {
+ dataOcorrencia = ( Date )calDataOcorrencia.getValue();
+ }
+ String horaOcorrencia = null;
+ if ( textHoraOcorrencia.getText() != null )
+ {
+ horaOcorrencia = ( ( String ) textHoraOcorrencia.getText() ).trim();
+ horaOcorrencia = "".equals( horaOcorrencia ) ? null : horaOcorrencia;
+ }
+ String horasTrabalhadas = null;
+ if ( textHorasTrabalhadas.getText() != null )
+ {
+ horasTrabalhadas = ( ( String ) textHorasTrabalhadas.getText() ).trim();
+ horasTrabalhadas = "".equals( horasTrabalhadas ) ? null : horasTrabalhadas;
+ }
+// String departamento = null;
+// if ( textDepartamento.getText() != null )
+// {
+// departamento = ( ( String ) textDepartamento.getText() ).trim();
+// departamento = "".equals( departamento ) ? null : departamento;
+// }
+ Integer seccaoID = null;
+ if ( dropSeccoes.getSelected() != null )
+ {
+// seccaoID = ( Integer ) dropSeccoes.getSelected();
+ String seccao = ( String ) dropSeccoes.getSelected();
+ if ( seccao != null )
+ {
+ try { seccaoID = Integer.parseInt( seccao ); }
+ catch ( Exception e ) { }
+ }
+ }
+ Integer causas = null;
+ if ( dropCausas.getSelected() != null )
+ {
+ String causaID = ( String ) dropCausas.getSelected();
+ if ( causaID != null )
+ {
+ try { causas = Integer.parseInt( causaID ); }
+ catch ( Exception e ) { }
+ }
+ }
+ String turno = null;
+ if ( dropTurno.getSelected() != null )
+ {
+ turno = ( String ) dropTurno.getSelected();
+ turno = turno == null || "".equals( turno.trim() ) ? null : turno;
+ }
+ Boolean shst = null;
+ if ( formacaoSHST_true.getSelected() != null || formacaoSHST_false.getSelected() != null || formacaoSHST_none.getSelected() != null )
+ {
+ Boolean trueSelected = ( Boolean ) formacaoSHST_true.getSelected();
+ Boolean falseSelected = ( Boolean ) formacaoSHST_false.getSelected();
+ Boolean noneSelected = ( Boolean ) formacaoSHST_none.getSelected();
+
+ if ( trueSelected != null && trueSelected )
+ {
+ shst = Boolean.TRUE;
+ }
+ if ( falseSelected != null && falseSelected )
+ {
+ shst = Boolean.FALSE;
+ }
+ if ( noneSelected != null && noneSelected )
+ {
+ shst = null;
+ }
+ }
+ Boolean postoAcidentado = null;
+ if ( postoAcidentado_true.getSelected() != null || postoAcidentado_false.getSelected() != null )
+ {
+ postoAcidentado = ( Boolean ) postoAcidentado_true.getSelected();
+ }
+ Boolean outrosAcidentados = null;
+ if ( outrosColaboradores_true.getSelected() != null || outrosColaboradores_false.getSelected() != null )
+ {
+ outrosAcidentados = ( Boolean ) outrosColaboradores_true.getSelected();
+ }
+
+ Map< String, Object > searchProperties = new HashMap< String, Object >();
+ searchProperties.put( EstatisticasConstants.KEY_POR, por );
+ searchProperties.put( EstatisticasConstants.KEY_NOME, nome );
+ searchProperties.put( EstatisticasConstants.KEY_ANO_OCORRENCIA, anoOcorrencia );
+ searchProperties.put( EstatisticasConstants.KEY_DATA_OCORRENCIA, dataOcorrencia );
+ searchProperties.put( EstatisticasConstants.KEY_HORA_OCORRENCIA, horaOcorrencia );
+ searchProperties.put( EstatisticasConstants.KEY_HORAS_TRABALHADAS, horasTrabalhadas );
+// searchProperties.put( EstatisticasConstants.KEY_DEPARTAMENTO, departamento );
+ searchProperties.put( EstatisticasConstants.KEY_SECCAO, seccaoID );
+ searchProperties.put( EstatisticasConstants.KEY_CAUSAS_ACIDENTE, causas );
+ searchProperties.put( EstatisticasConstants.KEY_TURNO_TRABALHO, turno );
+ searchProperties.put( EstatisticasConstants.KEY_FORMACAO_SHST, shst );
+ searchProperties.put( EstatisticasConstants.KEY_POSTO_ACIDENTADO, postoAcidentado );
+ searchProperties.put( EstatisticasConstants.KEY_OUTROS_ACIDENTADOS, outrosAcidentados );
+
+ return searchProperties;
+ }
+
+ private void getEstatisticas()
+ {
+ Map< String, Object > searchProperties = getFormFieldValues();
+
+ listEstatisticas = new LinkedList< EstatisticaProcessoBean >();
+ try
+ {
+ EstatisticasDataProvider edp = EstatisticasDataProvider.getInstance();
+ listEstatisticas = edp.getEstatisticas( searchProperties );
+ }
+ catch ( Exception e )
+ {
+ ErrorLogger.logException( e );
+ }
+ setListEstatisticas( listEstatisticas );
+ }
+
+ public String buttonEstatistica_action()
+ {
+ getEstatisticas();
+ buttonExport.setRendered( true );
+ return null;
+ }
+
+ public String buttonExport_action()
+ {
+ System.out.println( "=== EXPORT TO EXCEL ===" );
+
+ getEstatisticas();
+ System.out.println( "-> " + getListEstatisticas().size() );
+
+
+ HSSFWorkbook book = new HSSFWorkbook();
+ Map< String, HSSFCellStyle > styles = createStyles( book );
+ HSSFSheet sheet = book.createSheet( "Estatisticas" );
+
+ int row = writeFilters( sheet, 0 );
+
+ HSSFRow headerRow = getRow( sheet, row );
+ HSSFCell columnEstado = getCell( headerRow, 0 );
+ columnEstado.setCellValue( "Estado" );
+ columnEstado.setCellStyle( styles.get( EstatisticasConstants.KEY_STYLE_COLUMN_HEADER ) );
+
+ HSSFCell columnFase = getCell( headerRow, 1 );
+ columnFase.setCellValue( "Fase" );
+ columnFase.setCellStyle( styles.get( EstatisticasConstants.KEY_STYLE_COLUMN_HEADER ) );
+
+ HSSFCell columnCount = getCell( headerRow, 2 );
+ columnCount.setCellValue( "Contagem" );
+ columnCount.setCellStyle( styles.get( EstatisticasConstants.KEY_STYLE_COLUMN_HEADER ) );
+
+ row++;
+ for ( EstatisticaProcessoBean line : getListEstatisticas() )
+ {
+ HSSFRow lineRow = getRow( sheet, row );
+
+ HSSFCell columnEstadoValue = getCell( lineRow, 0 );
+ columnEstadoValue.setCellValue( line.getEstado() );
+ columnEstadoValue.setCellStyle( styles.get( EstatisticasConstants.KEY_STYLE_COLUMN_NORMAL ) );
+
+ HSSFCell columnFaseValue = getCell( lineRow, 1 );
+ columnFaseValue.setCellValue( line.getFase() );
+ columnFaseValue.setCellStyle( styles.get( EstatisticasConstants.KEY_STYLE_COLUMN_NORMAL ) );
+
+ HSSFCell columnCountValue = getCell( lineRow, 2 );
+ columnCountValue.setCellValue( line.getCount() );
+ columnCountValue.setCellStyle( styles.get( EstatisticasConstants.KEY_STYLE_COLUMN_NORMAL ) );
+
+ row++;
+ }
+
+ sheet.autoSizeColumn( 0, true );
+ sheet.autoSizeColumn( 1, true );
+ sheet.autoSizeColumn( 2, true );
+
+ try
+ {
+ saveWorkbook( book );
+ }
+ catch ( Exception ex )
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().setMsg( "Erro a gerar o ficheiro." );
+ }
+
+ return null;
+ }
+
+
+ private Map< String, HSSFCellStyle > createStyles( HSSFWorkbook book )
+ {
+ Map< String, HSSFCellStyle > styles = new HashMap< String, HSSFCellStyle >();
+
+ HSSFCellStyle style;
+
+ HSSFFont headerFont = book.createFont();
+ headerFont.setFontHeightInPoints( ( short ) 12 );
+ headerFont.setBoldweight( HSSFFont.BOLDWEIGHT_BOLD );
+
+ HSSFFont normalFont = book.createFont();
+ headerFont.setFontHeightInPoints( ( short ) 12 );
+
+ style = book.createCellStyle();
+// style.setAlignment( HSSFCellStyle.ALIGN_CENTER );
+ style.setVerticalAlignment( HSSFCellStyle.VERTICAL_CENTER );
+ style.setFont( headerFont );
+ styles.put( EstatisticasConstants.KEY_STYLE_COLUMN_HEADER, style );
+
+ style = book.createCellStyle();
+ style.setVerticalAlignment( HSSFCellStyle.VERTICAL_CENTER );
+ style.setFont( normalFont );
+ styles.put( EstatisticasConstants.KEY_STYLE_COLUMN_NORMAL, style );
+
+ return styles;
+ }
+
+ private HSSFRow getRow( HSSFSheet sheet, int rowNumber )
+ {
+ HSSFRow row = sheet.getRow( rowNumber );
+ if ( row == null )
+ {
+ row = sheet.createRow( rowNumber );
+ }
+ return row;
+ }
+
+ private HSSFCell getCell( HSSFRow row, int cellNumber )
+ {
+ HSSFCell cell = row.getCell( cellNumber );
+ if ( cell == null )
+ {
+ cell = row.createCell( cellNumber );
+ }
+ return cell;
+ }
+
+ private int writeFilters( HSSFSheet sheet, int row )
+ {
+ Map< String, Object > searchProperties = getFormFieldValues();
+ String por = ( String ) searchProperties.get( EstatisticasConstants.KEY_POR );
+ String nome = ( String ) searchProperties.get( EstatisticasConstants.KEY_NOME );
+ String anoOcorrencia = ( String ) searchProperties.get( EstatisticasConstants.KEY_ANO_OCORRENCIA );
+ Date dataOcorrencia = ( Date ) searchProperties.get( EstatisticasConstants.KEY_DATA_OCORRENCIA );
+ String horaOcorrencia = ( String ) searchProperties.get( EstatisticasConstants.KEY_HORA_OCORRENCIA );
+ String horasTrabalhadas = ( String ) searchProperties.get( EstatisticasConstants.KEY_HORAS_TRABALHADAS );
+// String departamento = ( String ) searchProperties.get( EstatisticasConstants.KEY_DEPARTAMENTO );
+ Integer seccaoID = ( Integer ) searchProperties.get( EstatisticasConstants.KEY_SECCAO );
+ String seccao = null;
+ try
+ {
+ SeccoesData seccaoData = EstatisticasDataProvider.getInstance().loadSeccaoByID( seccaoID );
+ seccao = seccaoData == null ? null : seccaoData.getDescricao();
+ }
+ catch ( Exception e )
+ {
+ ErrorLogger.logException( e );
+ }
+
+ Integer causas = ( Integer ) searchProperties.get( EstatisticasConstants.KEY_CAUSAS_ACIDENTE );
+ String turno = ( String ) searchProperties.get( EstatisticasConstants.KEY_TURNO_TRABALHO );
+ Boolean formacao_shst = ( Boolean ) searchProperties.get( EstatisticasConstants.KEY_FORMACAO_SHST );
+ Boolean postoAcidentado = ( Boolean ) searchProperties.get( EstatisticasConstants.KEY_POSTO_ACIDENTADO );
+ Boolean outrosAcidentados = ( Boolean ) searchProperties.get( EstatisticasConstants.KEY_OUTROS_ACIDENTADOS );
+
+ String keyName = null;
+ HSSFRow currentRow = null;
+ HSSFCell columnLabel = null;
+ HSSFCell columnValue = null;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( por );
+ row++;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( nome );
+ row++;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( anoOcorrencia );
+ row++;
+
+ final SimpleDateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( dataOcorrencia == null ? "" : D_F.format( dataOcorrencia ) );
+ row++;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( horaOcorrencia );
+ row++;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( horasTrabalhadas );
+ row++;
+
+// keyName = EstatisticasConstants.KEY_NAMES[ row ];
+// currentRow = getRow( sheet, row );
+// columnLabel = getCell( currentRow, 0 );
+// columnLabel.setCellValue( keyName );
+// columnValue = getCell( currentRow, 1 );
+// columnValue.setCellValue( departamento );
+// row++;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( seccao );
+ row++;
+
+
+ String causa = "";
+ if ( causas != null )
+ {
+ try
+ {
+ EstatisticasDataProvider statsProvider = EstatisticasDataProvider.getInstance();
+ causa = statsProvider.getCausaByID( causas );
+ }
+ catch ( Exception e )
+ {
+ ErrorLogger.logException( e );
+ }
+ }
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( causa );
+ row++;
+
+ String turnoDesc = "";
+ if ( turno != null )
+ {
+ if ( "m".equals( turno ) )
+ {
+ turnoDesc = "Manhã";
+ }
+ else if ( "t".equals( turno ) )
+ {
+ turnoDesc = "Tarde";
+ }
+ else if ( "n".equals( turno ) )
+ {
+ turnoDesc = "Noite";
+ }
+ }
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ columnValue.setCellValue( turnoDesc );
+ row++;
+
+ keyName = EstatisticasConstants.KEY_NAMES[ row ];
+ currentRow = getRow( sheet, row );
+ columnLabel = getCell( currentRow, 0 );
+ columnLabel.setCellValue( keyName );
+ columnValue = getCell( currentRow, 1 );
+ String fshst = "";
+ if ( formacao_shst != null )
+ {
+ fshst = formacao_shst ? "Sim" : "Não";
+ }
+ columnValue.setCellValue( fshst );
+ row++;
+ row++;
+ return row++;
+ }
+
+ private void saveWorkbook( HSSFWorkbook book )
+ throws Exception
+ {
+ byte[] bytes = book.getBytes();
+
+ System.out.println( "BOOK LEN : " + bytes.length );
+
+ FacesContext context = FacesContext.getCurrentInstance();
+ HttpServletResponse response = ( HttpServletResponse ) context.getExternalContext().getResponse();
+
+ response.setHeader( "Expires", "0" );
+ response.setHeader( "Cache-Control", "must-revalidate, post-check=0, pre-check=0" );
+ response.setHeader( "Pragma", "public" );
+ response.setContentType( "application/vnd.ms-excel" );
+ response.addHeader( "Content-disposition", "attachment;filename=\"EstatisticasProcesso.xls\"" );
+ response.setContentLength( bytes.length );
+
+ response.getOutputStream().write( bytes );
+ response.getOutputStream().flush();
+ response.getOutputStream().close();
+ context.responseComplete();
+
+ System.out.println( "SHOW workbook DONE" );
+ }
+
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FichaUtilizador.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FichaUtilizador.java
new file mode 100644
index 00000000..1d005050
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FichaUtilizador.java
@@ -0,0 +1,1590 @@
+/*
+ * FichaUtilizador.java
+ *
+ * Created on October 11, 2007, 9:49 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Permissao;
+import beans.Utilizador;
+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.Checkbox;
+import com.sun.rave.web.ui.component.DropDown;
+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.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.PasswordField;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.SingleSelectOptionsList;
+import db.providers.AnalisesDataProvider;
+import db.providers.UtilizadoresDataProvider;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+import global.Global;
+import javax.faces.context.FacesContext;
+import utils.JSFUtils;
+
+/**
+ * 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.
+ */
+public class FichaUtilizador extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridMsg1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridMsg1() {
+ return gridMsg1;
+ }
+
+ public void setGridMsg1(HtmlPanelGrid hpg) {
+ this.gridMsg1 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText stCriarEditar = new StaticText();
+
+ public StaticText getStCriarEditar() {
+ return stCriarEditar;
+ }
+
+ public void setStCriarEditar(StaticText st) {
+ this.stCriarEditar = st;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private DropDown drpTipo = new DropDown();
+
+ public DropDown getDrpTipo() {
+ return drpTipo;
+ }
+
+ public void setDrpTipo(DropDown dd) {
+ this.drpTipo = dd;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private DropDown drpNome = new DropDown();
+
+ public DropDown getDrpNome() {
+ return drpNome;
+ }
+
+ public void setDrpNome(DropDown dd) {
+ this.drpNome = dd;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private TextField txtLogin = new TextField();
+
+ public TextField getTxtLogin() {
+ return txtLogin;
+ }
+
+ public void setTxtLogin(TextField tf) {
+ this.txtLogin = tf;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private PasswordField txtPassword = new PasswordField();
+
+ public PasswordField getTxtPassword() {
+ return txtPassword;
+ }
+
+ public void setTxtPassword(PasswordField pf) {
+ this.txtPassword = pf;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private TextField txtEmail = new TextField();
+
+ public TextField getTxtEmail() {
+ return txtEmail;
+ }
+
+ public void setTxtEmail(TextField tf) {
+ this.txtEmail = tf;
+ }
+
+ private StaticText lblCap = new StaticText();
+
+ public StaticText getLblCap() {
+ return lblCap;
+ }
+
+ public void setLblCap(StaticText st) {
+ this.lblCap = st;
+ }
+
+ private TextField txtCap = new TextField();
+
+ public TextField getTxtCap() {
+ return txtCap;
+ }
+
+ public void setTxtCap(TextField tf) {
+ this.txtCap = tf;
+ }
+
+ private StaticText lblCedula = new StaticText();
+
+ public StaticText getLblCedula() {
+ return lblCedula;
+ }
+
+ public void setLblCedula(StaticText st) {
+ this.lblCedula = st;
+ }
+
+ private StaticText stCedula = new StaticText();
+
+ public StaticText getStCedula() {
+ return stCedula;
+ }
+
+ public void setStCedula(StaticText st) {
+ this.stCedula = st;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText staticText13 = new StaticText();
+
+ public StaticText getStaticText13() {
+ return staticText13;
+ }
+
+ public void setStaticText13(StaticText st) {
+ this.staticText13 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private Button butCancelar = new Button();
+
+ public Button getButCancelar() {
+ return butCancelar;
+ }
+
+ public void setButCancelar(Button b) {
+ this.butCancelar = b;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+
+ private Button butGravar = new Button();
+
+ public Button getButGravar() {
+ return butGravar;
+ }
+
+ public void setButGravar(Button b) {
+ this.butGravar = b;
+ }
+
+ private HiddenField hidConfDelUser = new HiddenField();
+
+ public HiddenField getHidConfDelUser() {
+ return hidConfDelUser;
+ }
+
+ public void setHidConfDelUser(HiddenField hf) {
+ this.hidConfDelUser = hf;
+ }
+
+ //
+ private boolean isPostData = false;
+
+ private final static int SEG = 1;
+ private final static int RH = 2;
+ private final static int HS = 3;
+ private final static int MEDICO = 5;
+ private final static int GESTOR = 6;
+ private final static int DIRECTOR_RH = 7;
+ private final static int DIRECTOR_SIPRP = 8;
+ private final static int DIRECTOR_LOJA = 9;
+ private final static int DIRECTOR_NACIONAL_SEGURANCA = 10;
+
+ private boolean isFromPlanos = false;
+
+ private StaticText staticText12 = new StaticText();
+
+ public StaticText getStaticText12() {
+ return staticText12;
+ }
+
+ public void setStaticText12(StaticText st) {
+ this.staticText12 = st;
+ }
+
+ private DropDown drpEstabelecimentos = new DropDown();
+
+ public DropDown getDrpEstabelecimentos() {
+ return drpEstabelecimentos;
+ }
+
+ public void setDrpEstabelecimentos(DropDown dd) {
+ this.drpEstabelecimentos = dd;
+ }
+
+ private SingleSelectOptionsList drpEstabelecimentosDefaultOptions = new SingleSelectOptionsList();
+
+ public SingleSelectOptionsList getDrpEstabelecimentosDefaultOptions() {
+ return drpEstabelecimentosDefaultOptions;
+ }
+
+ public void setDrpEstabelecimentosDefaultOptions(SingleSelectOptionsList ssol) {
+ this.drpEstabelecimentosDefaultOptions = ssol;
+ }
+
+ private StaticText lblResponsavelLoja = new StaticText();
+
+ public StaticText getLblResponsavelLoja() {
+ return lblResponsavelLoja;
+ }
+
+ public void setLblResponsavelLoja(StaticText st) {
+ this.lblResponsavelLoja = st;
+ }
+
+ private Checkbox chkResponsavelLoja = new Checkbox();
+
+ public Checkbox getChkResponsavelLoja() {
+ return chkResponsavelLoja;
+ }
+
+ public void setChkResponsavelLoja(Checkbox c) {
+ this.chkResponsavelLoja = c;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private PasswordField txtConfPassword = new PasswordField();
+
+ public PasswordField getTxtConfPassword() {
+ return txtConfPassword;
+ }
+
+ public void setTxtConfPassword(PasswordField pf) {
+ this.txtConfPassword = pf;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkGerirUtilizadores = new Hyperlink();
+
+ public Hyperlink getLnkGerirUtilizadores() {
+ return lnkGerirUtilizadores;
+ }
+
+ public void setLnkGerirUtilizadores(Hyperlink h) {
+ this.lnkGerirUtilizadores = h;
+ }
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FichaUtilizador() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FichaUtilizador Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e : new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ if ( ! getSessionBean1().isLoggedIn() )
+ {
+ try
+ {
+ getExternalContext().redirect("Login.jsp");
+ }
+ catch (Exception e)
+ {
+ // . . . handle exception . . .
+ }
+ }
+ else
+ {
+ FacesContext fc = getFacesContext();
+ System.out.println( "REQUEST PARAMETERS : " + JSFUtils.requestHasParameters( fc ) );
+ isFromPlanos = false;
+
+ if ( JSFUtils.requestHasParameters( fc ) )
+ {
+ isFromPlanos = true;
+ String user_id = JSFUtils.getRequestParameter(fc, "user");
+ String mode = JSFUtils.getRequestParameter(fc, "mode");
+ if (mode != null)
+ {
+ if (mode.matches("edit"))
+ {
+ System.out.println("MODE PARAMETER : " + mode);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ }
+ }
+
+ Utilizador u = null;
+ if (user_id != null )
+ {
+ try
+ {
+ Integer userId = new Integer( Integer.parseInt( user_id ) );
+ System.out.println( "USER ID FROM PLANOS : " + user_id );
+
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ //udp.checkConnection();
+ u = udp.getUtilizador( userId );
+ getSessionBean1().setCurrentUser( u );
+ }
+ catch ( Exception ex )
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+ }
+
+ if ( getSessionBean1().getCurrentUser().getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH
+ || getSessionBean1().getCurrentUser().getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP )
+ {
+ lnkGerirUtilizadores.setDisabled( false );
+ }
+ else
+ {
+ lnkGerirUtilizadores.setDisabled( true );
+ }
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if ( isFromPlanos )
+ {
+ isPostData = false;
+ }
+ else
+ {
+ if ( pageFrom.matches( "FichaUtilizador.jsp" ) )
+ {
+ isPostData = true;
+ System.out.println( "IS POSTDATA : " + isPostData );
+ }
+ }
+
+ if ( ! isPostData )
+ {
+ lblUser.setText(getSessionBean1().getCurrentUser().getLogin());
+
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ Integer permissao = udp.getPermissionCode( getSessionBean1().getCurrentUser().getId() );
+ getSessionBean1().setTiposOptions( adp.getTiposList( permissao ) );
+ drpTipo.setSelected( new Integer( 0 ) );
+ }
+ catch ( Exception ex )
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ getSessionBean1().setEstabelecimentosOptions(adp.getEstabelecimentosList(getSessionBean1().getCurrentUser().getEmpresa_id(), new Boolean(false)));
+ System.out.println("ESTABELECIMENTOS OPTIONS : " + getSessionBean1().getEstabelecimentosOptions().length);
+ drpEstabelecimentos.setSelected(new Integer(-1));
+ }
+ catch (Exception ex)
+ {
+ ErrorLogger.logException(ex);
+ }
+ }
+ else //postData
+ {
+ String del_user = (String) getExternalContext().getRequestParameterMap().get("del_user");
+ if (del_user != null)
+ {
+ if (del_user.matches("yes"))
+ {
+ hidConfDelUser.setValue("");
+ try
+ {
+ deleteUser();
+ }
+ catch ( Exception ex )
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().setMsg("Erro na eliminação do utilizador!");
+ }
+
+ //force a page reload
+ // try
+ // {
+ // getExternalContext().redirect("FichaUtilizador.jsp");
+ // System.out.println("REDIRECT");
+ // }
+ // catch(Exception ex)
+ // {
+ // ErrorLogger.logException( ex );
+ // }
+
+ }
+ else if ( del_user.matches( "no" ) )
+ {
+ hidConfDelUser.setValue("");
+ showUser();
+ }
+ }
+
+ }
+
+ }
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ stCriarEditar.setText("EDITAR");
+
+ if(getSessionBean1().getModoEdicaoUtilizador().matches("new"))
+ {
+ if(!isPostData)
+ {
+ txtNome.setStyleClass("hide");
+ stCriarEditar.setText("CRIAR");
+ lblCap.setRendered(false);
+ txtCap.setRendered(false);
+ lblCedula.setRendered(false);
+ stCedula.setRendered(false);
+ }
+
+ }
+ if(getSessionBean1().getModoEdicaoUtilizador().matches("edit"))
+ {
+ //drpNome.setRendered(true);
+
+ if(!isPostData)
+ {
+ showUser();
+ }
+ }
+
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+
+ if(getSessionBean1().isMudarPassword())
+ {
+ //txtMsg.setStyle("color: #000000; font-weight: bold");
+ if(!isPostData)
+ {
+ txtMsg.setText("Por favor confirme os seus dados e altere a password para uma apenas do seu conhecimento.");
+ }
+ //getSessionBean1().setMudarPassword(false);
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ //return navigate();
+ int tipo = getSessionBean1().getCurrentUser().getTipo().intValue();
+ if(tipo == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
+ {
+ return "form_dir_siprp";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH)
+ {
+ return "form_dir_ger_rh";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_SEGURANCA)
+ {
+ return "form_seguranca";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_RH)
+ {
+ return "form_rh";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_RH)
+ {
+ return "form_rh";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_HS)
+ {
+ return "form_hs";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_GESTOR)
+ {
+ return "form_gestor";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_DIRECTOR_LOJA)
+ {
+ return "form_gestor";
+ }
+ else if(tipo == Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA)
+ {
+ return "form_gestor";
+ }
+
+ return null;
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+
+ return null;
+ }
+
+
+ public String butCancelar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return navigate();
+ }
+
+ public String butGravar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ if(validationOk())
+ {
+ if(getSessionBean1().getModoEdicaoUtilizador().matches("new"))
+ {
+ try
+ {
+ Utilizador u = addUser();
+ addPermissao(u);
+ getSessionBean1().setMsg("Utilizador criado");
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Erro na criação do utilizador!");
+ ErrorLogger.logException( ex );
+ }
+ }
+ else //edit
+ {
+ try
+ {
+ updateUser();
+ //getSessionBean1().setMsg("Dados actualizados");
+ return navigate();
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Erro na actualização do utilizador");
+ ErrorLogger.logException( ex );
+ }
+ }
+
+ if(getSessionBean1().isMudarPassword())
+ {
+ getSessionBean1().setMudarPassword(false);
+ }
+
+ }
+
+ return null;
+ }
+
+ public void drpTipo_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ drpNome.setVisible(true);
+ Integer tipo = (Integer) drpTipo.getSelected();
+ boolean booGestor = false;
+ if(tipo.intValue() == GESTOR)
+ {
+ booGestor = true;
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ getSessionBean1().setEstabelecimentosOptions(adp.getEstabelecimentosList( getSessionBean1().getCurrentUser().getEmpresa_id(), new Boolean(booGestor) ));
+ drpEstabelecimentos.setSelected(new Integer(-1));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ if(tipo.intValue() == SEG || tipo.intValue() == RH || tipo.intValue() == GESTOR || tipo.intValue() == DIRECTOR_RH || tipo.intValue() == DIRECTOR_SIPRP)
+ {
+ drpNome.setRendered(false);
+ txtNome.setStyleClass("show");
+ lblCap.setRendered(false);
+ txtCap.setRendered(false);
+ lblCedula.setRendered(false);
+ stCedula.setRendered(false);
+ }
+ else if(tipo.intValue() == HS || tipo.intValue() == MEDICO)
+ {
+ drpNome.setRendered(true);
+ txtNome.setStyleClass("hide");
+ if(tipo.intValue() == HS)
+ {
+ lblCap.setRendered(true);
+ txtCap.setRendered(true);
+ lblCedula.setRendered(false);
+ stCedula.setRendered(false);
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ getSessionBean1().setMedicosOptions(adp.getTecnicosSaudeList());
+ drpNome.setSelected(new Integer(0));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+ else // medicos
+ {
+ lblCedula.setRendered(true);
+ stCedula.setRendered(true);
+ lblCap.setRendered(false);
+ txtCap.setRendered(false);
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ getSessionBean1().setMedicosOptions(adp.getMedicosList());
+ drpNome.setSelected(new Integer(0));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+ }
+ }
+
+ private boolean validationOk()
+ {
+ Integer tipo = (Integer) drpTipo.getSelected();
+// if(tipo.intValue() == 0)
+// {
+// getSessionBean1().setMsg("Tem de escolher um tipo!");
+// return false;
+// }
+// Integer estabelecimento = (Integer) drpEstabelecimentos.getSelected();
+// if(estabelecimento.intValue() == -1)
+// {
+// getSessionBean1().setMsg("Tem de escolher um estabelecimento!");
+// return false;
+// }
+
+// if(tipo.intValue() == SEG || tipo.intValue() == RH || tipo.intValue() == GESTOR || tipo.intValue() == DIRECTOR_RH || tipo.intValue() == DIRECTOR_SIPRP)
+// {
+// if(txtNome.getText() == null)
+// {
+// getSessionBean1().setMsg("Tem de indicar o nome!");
+// return false;
+// }
+// else
+// {
+// String nome = (String) txtNome.getText();
+// if(nome.trim().length() == 0)
+// {
+// getSessionBean1().setMsg("Tem de indicar o nome!");
+// return false;
+// }
+// }
+// }
+// else if(tipo.intValue() == HS || tipo.intValue() == MEDICO)
+// {
+// Integer nome = (Integer) drpNome.getSelected();
+// if(nome.intValue() == 0)
+// {
+// getSessionBean1().setMsg("Tem de indicar o nome!");
+// return false;
+// }
+// }
+
+// if(txtLogin.getText() == null)
+// {
+// getSessionBean1().setMsg("Tem de indicar o login!");
+// return false;
+// }
+// else
+// {
+// String login = (String) txtLogin.getText();
+// if(login.trim().length() == 0)
+// {
+// getSessionBean1().setMsg("Tem de indicar o login!");
+// return false;
+// }
+// }
+
+ if(txtPassword.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de indicar a password!");
+ return false;
+ }
+ else
+ {
+ String password = (String) txtPassword.getText();
+ if(password.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de indicar a password!");
+ return false;
+ }
+ else
+ {
+ if(txtConfPassword.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de confirmar a password!");
+ return false;
+ }
+ else
+ {
+ String conf_password = (String) txtConfPassword.getText();
+ if(conf_password.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de confirmar a password!");
+ return false;
+ }
+ else
+ {
+ if(!password.equals(conf_password))
+ {
+ getSessionBean1().setMsg("A confirmação tem de ser igual à a password!");
+ return false;
+ }
+ }
+ }
+ } //
+ }
+
+ if(getSessionBean1().isMudarPassword())
+ {
+ String password = (String) txtPassword.getText();
+ if(password.matches(getSessionBean1().getCurrentUser().getPassword()))
+ {
+ getSessionBean1().setMsg("A nova password tem de ser diferente da password actual!");
+ return false;
+ }
+
+ }
+
+// if(tipo.intValue() == HS)
+// {
+// if(txtCap.getText() == null )
+// {
+// getSessionBean1().setMsg("Tem de indicar o c.a.p.!");
+// return false;
+// }
+// else
+// {
+// String cap = (String) txtCap.getText();
+// if(cap.trim().length() == 0)
+// {
+// getSessionBean1().setMsg("Tem de indicar o c.a.p.!");
+// return false;
+// }
+// }
+// }
+
+ return true;
+ }
+
+ public void drpNome_processValueChange( ValueChangeEvent event )
+ {
+ Integer tipo = (Integer) drpTipo.getSelected();
+ if(tipo.intValue() == MEDICO)
+ {
+ Integer medico_id = (Integer) drpNome.getSelected();
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ String numero_cedula = adp.getNumeroCedula(medico_id);
+ stCedula.setText(numero_cedula);
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+ }
+
+ private Utilizador addUser() throws Exception
+ {
+ Utilizador u = fillUser();
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ Integer id = udp.createNewUtilizador( u );
+ u.setId( id );
+ return u;
+ }
+
+ private void addPermissao(Utilizador u) throws Exception
+ {
+ Permissao p = new Permissao();
+ p.setUser_id(u.getId());
+ p.setCodigo_permissao(u.getTipo());
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ udp.createPermissao(p);
+ }
+
+ private void updateUser() throws Exception
+ {
+ Utilizador u = fillUser();
+ u.setId(getSessionBean1().getCurrentUser().getId());
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ udp.updateUtilizador(u);
+ }
+
+ private void deleteUser() throws Exception
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ udp.deleteUser(getSessionBean1().getCurrentUser().getId());
+ }
+
+ private void showUser()
+ {
+ Utilizador u = getSessionBean1().getCurrentUser();
+ drpTipo.setSelected(u.getTipo());
+ if(u.getTipo().intValue() == SEG || u.getTipo().intValue() == RH || u.getTipo().intValue() == HS || u.getTipo().intValue() == MEDICO || u.getTipo().intValue() == GESTOR || u.getTipo().intValue() == DIRECTOR_RH || u.getTipo().intValue() == DIRECTOR_SIPRP)
+ {
+ drpNome.setRendered(false);
+ txtNome.setStyleClass("show");
+ lblCap.setRendered(false);
+ txtCap.setRendered(false);
+ lblCedula.setRendered(false);
+ stCedula.setRendered(false);
+ txtNome.setText(utils.Utils.unicodeToHTML(u.getNome()));
+ }
+ else if(u.getTipo().intValue() == HS)
+ {
+ //txtNome.setRendered(false);
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ getSessionBean1().setMedicosOptions(adp.getTecnicosSaudeList());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ drpNome.setSelected(u.getFuncionario_hst_id());
+ drpNome.setStyleClass("show");
+ lblCap.setRendered(true);
+ txtCap.setRendered(true);
+ lblCedula.setRendered(false);
+ stCedula.setRendered(false);
+ txtCap.setText(u.getCap());
+ }
+ else if(u.getTipo().intValue() == DIRECTOR_LOJA || u.getTipo().intValue() == DIRECTOR_NACIONAL_SEGURANCA)
+ {
+ drpNome.setRendered(false);
+ txtNome.setStyleClass("show");
+ lblCap.setRendered(false);
+ txtCap.setRendered(false);
+ lblCedula.setRendered(false);
+ stCedula.setRendered(false);
+ lblResponsavelLoja.setRendered(false);
+ chkResponsavelLoja.setRendered(false);
+ txtNome.setText(utils.Utils.unicodeToHTML(u.getNome()));
+ }
+ else if(u.getTipo().intValue() == MEDICO) //medico
+ {
+ drpNome.setRendered(true);
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ getSessionBean1().setMedicosOptions(adp.getMedicosList());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ drpNome.setSelected(u.getMedico_id());
+ txtNome.setStyleClass("hide");
+ lblCap.setRendered(false);
+ txtCap.setRendered(false);
+ lblCedula.setRendered(true);
+ stCedula.setRendered(true);
+ stCedula.setText(u.getNumero_cedula());
+
+ }
+ if(u.getEstabelecimento_id() != null)
+ {
+ drpEstabelecimentos.setSelected(u.getEstabelecimento_id());
+ }
+
+ txtLogin.setText(u.getLogin());
+ //txtPassword.setText(u.getPassword());
+ txtEmail.setText(u.getEmail());
+ }
+
+ private Utilizador fillUser()
+ {
+ //Utilizador u = new Utilizador();
+ Utilizador u = getSessionBean1().getCurrentUser();
+// u.setActivo("y");
+// u.setAdministrador("n");
+// u.setTipo((Integer) drpTipo.getSelected());
+// u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+// u.setEstabelecimento_id( (Integer) drpEstabelecimentos.getSelected() );
+// u.setLogin( (String) txtLogin.getText() );
+ String password = (String) txtPassword.getText();
+ u.setPassword( password );
+ java.util.Date today = new java.util.Date();
+ java.sql.Date sqlToday = new java.sql.Date(today.getTime());
+ u.setData_password(sqlToday);
+
+
+ u.setEmail("");
+ if(txtEmail.getText() != null)
+ {
+ u.setEmail( (String) txtEmail.getText() );
+ }
+
+ Integer tipo = (Integer) drpTipo.getSelected();
+
+// u.setNumero_cedula("");
+// u.setCap("");
+// if(tipo.intValue() == HS || tipo.intValue() == MEDICO)
+// {
+// AnalisesDataProvider adp = new AnalisesDataProvider();
+// if(tipo.intValue() == HS)
+// {
+// try
+// {
+// Integer tecnico_id = (Integer) drpNome.getSelected();
+// u.setFuncionario_hst_id(tecnico_id);
+// u.setNome( adp.getTecnicoSaudeNome(tecnico_id) );
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+// u.setCap( (String) txtCap.getText());
+// }
+// else // medico
+// {
+// try
+// {
+// Integer medico_id = (Integer) drpNome.getSelected();
+// u.setMedico_id(medico_id);
+// u.setNome( adp.getMedicoNome(medico_id) );
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+// u.setNumero_cedula( (String) stCedula.getText());
+// }
+// }
+// else
+// {
+// u.setNome( (String) txtNome.getText() );
+// }
+
+// u.setResponsavel_loja("n");
+// if(chkResponsavelLoja.getSelected() != null)
+// {
+// if(chkResponsavelLoja.getSelected().equals(new Boolean(true)))
+// {
+// u.setResponsavel_loja("y");
+// }
+// }
+//
+// if(u.getGestor_geral() == null)
+// {
+// u.setGestor_geral("n");
+// }
+
+ u.setPrimeiro_login("n");
+ return u;
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+ }
+
+ public String butApagar_action() {
+ // TODO: Replace with your code
+ hidConfDelUser.setValue("apagar");
+ return null;
+ }
+
+ private String navigate()
+ {
+ if(isFromPlanos)
+ {
+ Utilizador u = getSessionBean1().getCurrentUser();
+ // String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+ String nav_from = getSessionBean1().getNavFrom();
+ if(nav_from.matches("FormSeguranca"))
+ {
+ return "form_seguranca";
+ }
+ else if(nav_from.matches("FormRH"))
+ {
+ return "form_rh";
+ }
+ else if(nav_from.matches("FormHS"))
+ {
+ return "form_hs";
+ }
+ else if(nav_from.matches("FormMedico"))
+ {
+ return "form_medico";
+ }
+ else if(nav_from.matches("AnaliseAcidenteTrabalho"))
+ {
+ return "analise_acidente";
+ }
+ else if(nav_from.matches("ViewAnaliseAcidenteTrabalho"))
+ {
+ return "view_analise";
+ }
+ else if(nav_from.matches("FormGestor"))
+ {
+ return "form_gestor";
+ }
+ else if(nav_from.matches("FormDirGerRh"))
+ {
+ return "form_dir_ger_rh";
+ }
+ else if(nav_from.matches("FormDirSiprp"))
+ {
+ return "form_dir_siprp";
+ }
+ else if(nav_from.matches("GestaoUtilizadores"))
+ {
+ return "gestao_utilizadores";
+ }
+ else if(nav_from.matches("NovoUtilizador"))
+ {
+ return "novo_utilizador";
+ }
+ else if(nav_from.matches("Login")) // first login
+ {
+ int tipo = getSessionBean1().getCurrentUser().getTipo().intValue();
+ switch(tipo)
+ {
+ case Global.TIPO_UTILIZADOR_SEGURANCA:
+ return "form_seguranca";
+ case Global.TIPO_UTILIZADOR_RH:
+ return "form_rh";
+ case Global.TIPO_UTILIZADOR_HS:
+ return "form_hs";
+ case Global.TIPO_UTILIZADOR_MEDICO:
+ return "form_medico";
+ case Global.TIPO_UTILIZADOR_GESTOR:
+ return "form_gestor";
+ case Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH:
+ return "form_dir_ger_rh";
+ case Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP:
+ return "form_dir_siprp";
+ case Global.TIPO_UTILIZADOR_DIRECTOR_LOJA:
+ return "form_gestor";
+ case Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA:
+ return "form_gestor";
+ }
+ }
+ return null;
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ if(getSessionBean1().getCurrentUser().getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH)
+ {
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ }
+ else if(getSessionBean1().getCurrentUser().getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
+ {
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ }
+
+ return "gestao_utilizadores";
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Footer.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Footer.java
new file mode 100644
index 00000000..52f9e49d
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Footer.java
@@ -0,0 +1,152 @@
+/*
+ * Footer.java
+ *
+ * Created on September 19, 2007, 10:57 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
+import com.sun.rave.web.ui.component.ImageComponent;
+import com.sun.rave.web.ui.component.PanelGroup;
+import com.sun.rave.web.ui.component.StaticText;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+
+/**
+ * Fragment bean that corresponds to a similarly named JSP page
+ * fragment. This class contains component definitions (and initialization
+ * code) for all components that you have defined on this fragment, as well as
+ * lifecycle methods and event handlers where you may add behavior
+ * to respond to incoming events.
+ */
+public class Footer extends AbstractFragmentBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init() throws Exception {
+ }
+
+ 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 StaticText staticText1 = new StaticText();
+
+ public StaticText getStaticText1() {
+ return staticText1;
+ }
+
+ public void setStaticText1(StaticText st) {
+ this.staticText1 = st;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private ImageComponent image1 = new ImageComponent();
+
+ public ImageComponent getImage1() {
+ return image1;
+ }
+
+ public void setImage1(ImageComponent ic) {
+ this.image1 = ic;
+ }
+ //
+
+ public Footer() {
+ }
+
+ /**
+ * Callback method that is called whenever a page containing
+ * this page fragment is navigated to, either directly via a URL,
+ * or indirectly via page navigation. Override this method to acquire
+ * resources that will be needed for event handlers and lifecycle methods.
+ *
+ * The default implementation does nothing.
+ */
+ 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
+
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("Page1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called. Override this
+ * method to release resources acquired in the init()
+ * resources that will be needed for event handlers and lifecycle methods.
+ *
+ * The default implementation does nothing.
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormDirGerRh.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormDirGerRh.java
new file mode 100644
index 00000000..57e6ab19
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormDirGerRh.java
@@ -0,0 +1,1551 @@
+/*
+ * FormDirGerRh.java
+ *
+ * Created on December 19, 2007, 11:48 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+import beans.AnaliseAcidente;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.DropDown;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.providers.AnalisesConcluidasDataProvider;
+import db.providers.AnalisesDataProvider;
+import db.providers.AnalisesSeguimentoDataProvider;
+import global.Global;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.ListIterator;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class FormDirGerRh extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridSeguimento1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento1() {
+ return gridSeguimento1;
+ }
+
+ public void setGridSeguimento1(HtmlPanelGrid hpg) {
+ this.gridSeguimento1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private TableColumn tableColumn5 = new TableColumn();
+
+ public TableColumn getTableColumn5() {
+ return tableColumn5;
+ }
+
+ public void setTableColumn5(TableColumn tc) {
+ this.tableColumn5 = tc;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+
+ private Hyperlink lnkEstabelecimentoSeg = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg() {
+ return lnkEstabelecimentoSeg;
+ }
+
+ public void setLnkEstabelecimentoSeg(Hyperlink h) {
+ this.lnkEstabelecimentoSeg = h;
+ }
+
+ private HtmlPanelGrid gridConcluidos1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos1() {
+ return gridConcluidos1;
+ }
+
+ public void setGridConcluidos1(HtmlPanelGrid hpg) {
+ this.gridConcluidos1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = 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 staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaSeg() {
+ return lnkDataAberturaSeg;
+ }
+
+ public void setLnkDataAberturaSeg(Hyperlink h) {
+ this.lnkDataAberturaSeg = h;
+ }
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaConcluida() {
+ return lnkDataAberturaConcluida;
+ }
+
+ public void setLnkDataAberturaConcluida(Hyperlink h) {
+ this.lnkDataAberturaConcluida = h;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private StaticText labelFilterEstabelecimentoSeg = new StaticText();
+ public StaticText getLabelFilterEstabelecimentoSeg() {
+ return labelFilterEstabelecimentoSeg;
+ }
+ public void setLabelFilterEstabelecimentoSeg(StaticText labelFilterEstabelecimentoSeg) {
+ this.labelFilterEstabelecimentoSeg = labelFilterEstabelecimentoSeg;
+ }
+
+ private TextField textFilterEstabelecimentoSeg = new TextField();
+
+ public TextField getTextFilterEstabelecimentoSeg() {
+ return textFilterEstabelecimentoSeg;
+ }
+ public void setTextFilterEstabelecimentoSeg(TextField textFilterEstabelecimentoSeg) {
+ this.textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+ private TextField textFilterEstabelecimentoConc = new TextField();
+
+ public TextField getTextFilterEstabelecimentoConc() {
+ return textFilterEstabelecimentoConc;
+ }
+
+ public void setTextFilterEstabelecimentoConc(TextField textFilterEstabelecimentoConc) {
+ this.textFilterEstabelecimentoConc = textFilterEstabelecimentoConc;
+ }
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ //
+
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FormDirGerRh() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FormDirGerRh Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ System.out.println("=== FORM_DIR_GER_RH ===");
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if(!pageFrom.matches("FormDirGerRh.jsp"))
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table1.setRendered(true);
+
+ ArrayList seguimentoList = adp.getAnalisesSeguimentoDirGerRhList();
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList(seguimentoList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table1.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table2.setRendered(true);
+
+ ArrayList concluidasList = adp.getAnalisesConcluidasList(null);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table2.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+ fillAnoDropDown();
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkDataAberturaSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+
+ public String lnkEstabelecimentoSeg_action() {
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ //fillDiaDropDown();
+ }
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoConc.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoConc.getText()).trim();
+ if( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = adp.searchAanalisesConcluidasList(
+ null, ano, mes, dia, por, nome, estabelecimento );
+
+ table2.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ table2.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+ public String lnkDataConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkDataAberturaConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+ }
+
+ public String lnkNrConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkPorConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkNomeConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ public String lnkEstabConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ return "view_analise";
+
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+
+ public String lnkGerirUtilizadores_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("FormDirGerRh");
+ //getSessionBean1().setModoEdicaoUtilizador("new");
+ return "gestao_utilizadores";
+
+ }
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+// private void fillDiaDropDown()
+// {
+//
+// }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+// Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+// FacesContext fc = getFacesContext().getCurrentInstance();
+// try
+// {
+// JSFUtils.redirect(fc, Global.PLANOS_ACTUACAO_URL + curUser);
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+ return null;
+ }
+
+ public String buttonFilterSeg_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateSeg.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORSeg.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORSeg.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameSeg.getText() != null )
+ {
+ nome = (( String ) textFilterNameSeg.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoSeg.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoSeg.getText()).trim();
+ if ( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList seguimentoList = adp.searchAnalisesSeguimentoDirGerRh( nome, estabelecimento, visitaDateStr, POR );
+
+ table1.setRendered( true );
+ txtSearchMsg.setRendered( false );
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch( Exception e )
+ {
+ table1.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormDirSiprp.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormDirSiprp.java
new file mode 100755
index 00000000..6731b771
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormDirSiprp.java
@@ -0,0 +1,1591 @@
+/*
+ * FormDirSiprp.java
+ *
+ * Created on November 21, 2007, 1:25 PM
+ * Copyright lluis2
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+import beans.AnaliseAcidente;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.DropDown;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.providers.AnalisesConcluidasDataProvider;
+import db.providers.AnalisesDataProvider;
+import db.providers.AnalisesSeguimentoDataProvider;
+import global.Global;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.ListIterator;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class FormDirSiprp extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridSeguimento1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento1() {
+ return gridSeguimento1;
+ }
+
+ public void setGridSeguimento1(HtmlPanelGrid hpg) {
+ this.gridSeguimento1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+ private HtmlPanelGrid gridConcluidos1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos1() {
+ return gridConcluidos1;
+ }
+
+ public void setGridConcluidos1(HtmlPanelGrid hpg) {
+ this.gridConcluidos1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = 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 DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private Table table3 = new Table();
+
+ public Table getTable3() {
+ return table3;
+ }
+
+ public void setTable3(Table t) {
+ this.table3 = t;
+ }
+
+ private TableRowGroup tableRowGroup3 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup3() {
+ return tableRowGroup3;
+ }
+
+ public void setTableRowGroup3(TableRowGroup trg) {
+ this.tableRowGroup3 = trg;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private TableColumn tableColumn14 = new TableColumn();
+
+ public TableColumn getTableColumn14() {
+ return tableColumn14;
+ }
+
+ public void setTableColumn14(TableColumn tc) {
+ this.tableColumn14 = tc;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private TableColumn tableColumn15 = new TableColumn();
+
+ public TableColumn getTableColumn15() {
+ return tableColumn15;
+ }
+
+ public void setTableColumn15(TableColumn tc) {
+ this.tableColumn15 = tc;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText txtMsg1 = new StaticText();
+
+ public StaticText getTxtMsg1() {
+ return txtMsg1;
+ }
+
+ public void setTxtMsg1(StaticText st) {
+ this.txtMsg1 = st;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaSeg1 = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaSeg1() {
+ return lnkDataAberturaSeg1;
+ }
+
+ public void setLnkDataAberturaSeg1(Hyperlink h) {
+ this.lnkDataAberturaSeg1 = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaConcluida1 = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaConcluida1() {
+ return lnkDataAberturaConcluida1;
+ }
+
+ public void setLnkDataAberturaConcluida1(Hyperlink h) {
+ this.lnkDataAberturaConcluida1 = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimentoSeg1 = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg1() {
+ return lnkEstabelecimentoSeg1;
+ }
+
+ public void setLnkEstabelecimentoSeg1(Hyperlink h) {
+ this.lnkEstabelecimentoSeg1 = h;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+
+ public TableColumn tableColumnDesactivarAnalise = new TableColumn();
+
+ public TableColumn getTableColumnDesactivarAnalise() {
+ return tableColumnDesactivarAnalise;
+ }
+
+ public void setTableColumnDesactivarAnalise(TableColumn tableColumnDesactivarAnalise) {
+ this.tableColumnDesactivarAnalise = tableColumnDesactivarAnalise;
+ }
+
+ public Button buttonDesactivarAnalise = new Button();
+
+ public Button getButtonDesactivarAnalise() {
+ return buttonDesactivarAnalise;
+ }
+
+ public void setButtonDesactivarAnalise(Button buttonDesactivarAnalise) {
+ this.buttonDesactivarAnalise = buttonDesactivarAnalise;
+ }
+
+
+
+ //
+
+
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private StaticText labelFilterEstabelecimentoSeg = new StaticText();
+ public StaticText getLabelFilterEstabelecimentoSeg() {
+ return labelFilterEstabelecimentoSeg;
+ }
+ public void setLabelFilterEstabelecimentoSeg(StaticText labelFilterEstabelecimentoSeg) {
+ this.labelFilterEstabelecimentoSeg = labelFilterEstabelecimentoSeg;
+ }
+
+ private TextField textFilterEstabelecimentoSeg = new TextField();
+
+ public TextField getTextFilterEstabelecimentoSeg() {
+ return textFilterEstabelecimentoSeg;
+ }
+ public void setTextFilterEstabelecimentoSeg(TextField textFilterEstabelecimentoSeg) {
+ this.textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+ private TextField textFilterEstabelecimentoConc = new TextField();
+
+ public TextField getTextFilterEstabelecimentoConc() {
+ return textFilterEstabelecimentoConc;
+ }
+
+ public void setTextFilterEstabelecimentoConc(TextField textFilterEstabelecimentoConc) {
+ this.textFilterEstabelecimentoConc = textFilterEstabelecimentoConc;
+ }
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+
+
+ public FormDirSiprp()
+ {
+
+ }
+
+ @Override
+ public void init()
+ {
+ super.init();
+
+ try
+ {
+ _init();
+ }
+ catch ( Exception e )
+ {
+ log("FormDirSiprp Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+ }
+
+ @Override
+ public void preprocess()
+ {
+ txtMsg1.setText( getSessionBean1().getMsg() );
+ getSessionBean1().setMsg( "" );
+ }
+
+
+ @Override
+ public void prerender()
+ {
+ System.out.println("=== FORM_DIR_SIPRP ===");
+
+ Utilizador currentUser = getSessionBean1().getCurrentUser();
+ lblUser.setText( currentUser == null ? "" : currentUser.getLogin() );
+
+ HttpServletRequest request = ( HttpServletRequest ) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom( referer );
+ if ( ( ! pageFrom.matches( "FormDirSiprp.jsp" ) ) || getSessionBean1().isFromAnaliseDeletion() )
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table2.setRendered( true );
+
+ ArrayList seguimentoList = adp.getAnalisesSeguimentoDirSiprpList();
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch ( Exception ex )
+ {
+ //lblActivos.setRendered(false);
+ table2.setRendered( false );
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table3.setRendered( true );
+
+ ArrayList concluidasList = adp.getAnalisesConcluidasList( null );
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList( concluidasList );
+ }
+ catch ( Exception ex )
+ {
+ //lblActivos.setRendered(false);
+ table3.setRendered( false );
+ ErrorLogger.logException( ex );
+ }
+ fillAnoDropDown();
+ }
+
+ //Column para desactivar plano - mostra se o utilizador for DIRECTOR SIPRP
+// System.out.println( "\n\nRendering 'desactivar' ... " + buttonDesactivarAnalise.isRendered() );
+ int uType = currentUser == null ? -1 : currentUser.getTipo().intValue();
+// System.out.println( "\tuserType : " + uType );
+ boolean renderOrNot = uType == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP;
+// System.out.println( "\trenderOrNot : " + renderOrNot + " ( " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " )" );
+ tableColumnDesactivarAnalise.setRendered( renderOrNot );
+ buttonDesactivarAnalise.setRendered( renderOrNot );
+ }
+
+
+ @Override
+ public void destroy()
+ {
+
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkPor_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkFase_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkDataAberturaSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkEstabelecimentoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ //fillDiaDropDown();
+ }
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoConc.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoConc.getText()).trim();
+ if( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = adp.searchAanalisesConcluidasList(
+ null, ano, mes, dia, por, nome, estabelecimento );
+
+ table3.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+
+
+ }
+ catch(Exception ex)
+ {
+ table3.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+ public String lnkDataConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkDataAberturaConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkNrConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkPorConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkNomeConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ public String lnkEstabConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup3.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup3.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("FormDirSiprp");
+ //getSessionBean1().setModoEdicaoUtilizador("new");
+ return "gestao_utilizadores";
+ }
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+// private void fillDiaDropDown()
+// {
+//
+// }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+// Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+// FacesContext fc = getFacesContext().getCurrentInstance();
+// try
+// {
+// JSFUtils.redirect(fc, Global.PLANOS_ACTUACAO_URL + curUser);
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+ return null;
+ }
+
+
+ public String buttonFilterSeg_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateSeg.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORSeg.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORSeg.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameSeg.getText() != null )
+ {
+ nome = (( String ) textFilterNameSeg.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoSeg.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoSeg.getText()).trim();
+ if ( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList seguimentoList = adp.searchAnalisesSeguimentoDirSiprp( nome, estabelecimento, visitaDateStr, POR );
+
+ table2.setRendered( true );
+ txtSearchMsg.setRendered( false );
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch( Exception e )
+ {
+ table2.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+ public String buttonDesactivarAnalise_action()
+ {
+ System.out.println( "\nbuttonDesactivarAnalise_action() : " );
+ AnaliseAcidente selectedAnalise = getTableSeguimentoRowData();
+
+ // TODO : call ConfirmarDesactivar.jsp with selectedAnalise
+ getSessionBean1().setCurrentAnalise( selectedAnalise );
+
+ return "confirmar_desactivar";
+ }
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormGestor.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormGestor.java
new file mode 100644
index 00000000..0754cc52
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormGestor.java
@@ -0,0 +1,1635 @@
+/*
+ * FormGestor.java
+ *
+ * Created on December 19, 2007, 3:58 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+import beans.AnaliseAcidente;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.DropDown;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.providers.AnalisesConcluidasDataProvider;
+import db.providers.AnalisesDataProvider;
+import db.providers.AnalisesSeguimentoDataProvider;
+import global.Global;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.ListIterator;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class FormGestor extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridSeguimento1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento1() {
+ return gridSeguimento1;
+ }
+
+ public void setGridSeguimento1(HtmlPanelGrid hpg) {
+ this.gridSeguimento1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private TableColumn tableColumn5 = new TableColumn();
+
+ public TableColumn getTableColumn5() {
+ return tableColumn5;
+ }
+
+ public void setTableColumn5(TableColumn tc) {
+ this.tableColumn5 = tc;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+ private HtmlPanelGrid gridConcluidos1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos1() {
+ return gridConcluidos1;
+ }
+
+ public void setGridConcluidos1(HtmlPanelGrid hpg) {
+ this.gridConcluidos1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = 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 staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaSeg1 = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaSeg1() {
+ return lnkDataAberturaSeg1;
+ }
+
+ public void setLnkDataAberturaSeg1(Hyperlink h) {
+ this.lnkDataAberturaSeg1 = h;
+ }
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaConcluida1 = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaConcluida1() {
+ return lnkDataAberturaConcluida1;
+ }
+
+ public void setLnkDataAberturaConcluida1(Hyperlink h) {
+ this.lnkDataAberturaConcluida1 = h;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimentoSeg1 = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg1() {
+ return lnkEstabelecimentoSeg1;
+ }
+
+ public void setLnkEstabelecimentoSeg1(Hyperlink h) {
+ this.lnkEstabelecimentoSeg1 = h;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+
+
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private StaticText labelFilterEstabelecimentoSeg = new StaticText();
+ public StaticText getLabelFilterEstabelecimentoSeg() {
+ return labelFilterEstabelecimentoSeg;
+ }
+ public void setLabelFilterEstabelecimentoSeg(StaticText labelFilterEstabelecimentoSeg) {
+ this.labelFilterEstabelecimentoSeg = labelFilterEstabelecimentoSeg;
+ }
+
+ private TextField textFilterEstabelecimentoSeg = new TextField();
+
+ public TextField getTextFilterEstabelecimentoSeg() {
+ return textFilterEstabelecimentoSeg;
+ }
+ public void setTextFilterEstabelecimentoSeg(TextField textFilterEstabelecimentoSeg) {
+ this.textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+ private TextField textFilterEstabelecimentoConc = new TextField();
+
+ public TextField getTextFilterEstabelecimentoConc() {
+ return textFilterEstabelecimentoConc;
+ }
+
+ public void setTextFilterEstabelecimentoConc(TextField textFilterEstabelecimentoConc) {
+ this.textFilterEstabelecimentoConc = textFilterEstabelecimentoConc;
+ }
+
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FormGestor() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ @Override
+ 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
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FormGestor Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ @Override
+ public void preprocess()
+ {
+
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ @Override
+ public void prerender()
+ {
+ System.out.println("=== FORM_GESTOR ===");
+ Utilizador curUser = getSessionBean1().getCurrentUser();
+ lblUser.setText( curUser.getLogin() );
+ if(curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_GESTOR)
+ {
+ if(curUser.getGestor_geral().matches("n"))
+ {
+ lnkPlanosActuacao.setDisabled(true);
+ }
+ }
+ else if(curUser.getTipo().intValue() != Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA)
+ {
+ if(curUser.getTipo().intValue() != Global.TIPO_UTILIZADOR_DIRECTOR_LOJA)
+ {
+ lnkPlanosActuacao.setDisabled(true);
+ }
+ }
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if ( ! pageFrom.matches( "FormGestor.jsp" ) )
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ Integer estabelecimento_id = null;
+ table1.setRendered( true );
+ ArrayList seguimentoList = null;
+
+ //if(curUser.getGestor_geral().matches("y") || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_LOJA)
+ if ( curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_GESTOR )
+ {
+ estabelecimento_id = curUser.getEstabelecimento_gestor();
+ if ( estabelecimento_id.intValue() == 0 )
+ {
+ seguimentoList = adp.getAnalisesSeguimentoGestorList( null );
+ }
+ else
+ {
+ seguimentoList = adp.getAnalisesSeguimentoGestorList( curUser.getEstabelecimento_id() );
+ }
+ }
+ else if ( curUser.getGestor_geral().matches("y") || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA )
+ {
+ seguimentoList = adp.getAnalisesSeguimentoGestorList( null );
+ }
+ else if ( curUser.getGestor_geral().matches("n") || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_LOJA )
+ {
+ seguimentoList = adp.getAnalisesSeguimentoGestorList( curUser.getEstabelecimento_id() );
+ }
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch ( Exception ex )
+ {
+ table1.setRendered( false );
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ table2.setRendered( true );
+ ArrayList concluidasList = null;
+
+ if ( getSessionBean1().getCurrentUser().getGestor_geral().matches("y")
+ || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA
+ /*|| curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_LOJA*/ )
+ {
+ concluidasList = adp.getAnalisesConcluidasList( null );
+ }
+ else
+ {
+ concluidasList = adp.getAnalisesConcluidasList( getSessionBean1().getCurrentUser().getEstabelecimento_id() );
+ }
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList( concluidasList );
+ }
+ catch ( Exception ex )
+ {
+ table2.setRendered( false );
+ ErrorLogger.logException( ex );
+ }
+ fillAnoDropDown();
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ @Override
+ public void destroy()
+ {
+
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+
+// Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+// FacesContext fc = getFacesContext().getCurrentInstance();
+// try
+// {
+// JSFUtils.redirect(fc, Global.PLANOS_ACTUACAO_URL + curUser);
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+ return null;
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ return null;
+ }
+
+ public String lnkGerirUtilizadores_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("FormGestor");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkDataAberturaSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkEstabelecimentoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ //fillDiaDropDown();
+ }
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoConc.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoConc.getText()).trim();
+ if( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = null;
+ if ( getSessionBean1().getCurrentUser().getGestor_geral().matches( "y" ) )
+ {
+ concluidasList = adp.searchAanalisesConcluidasList(
+ null, ano, mes, dia, por, nome, estabelecimento );
+ }
+ else
+ {
+ concluidasList = adp.searchAanalisesConcluidasList(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ ano, mes, dia, por, nome, null );
+ }
+
+ table2.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ table2.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+ public String lnkDataConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkDataAberturaConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+ }
+
+ public String lnkNrConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkPorConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkNomeConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ public String lnkEstabConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormGestor");
+ return "view_analise";
+
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+// private void fillDiaDropDown()
+// {
+//
+// }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkEstabelecimento_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String buttonFilterSeg_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateSeg.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORSeg.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORSeg.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameSeg.getText() != null )
+ {
+ nome = (( String ) textFilterNameSeg.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoSeg.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoSeg.getText()).trim();
+ if ( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ Utilizador curUser = getSessionBean1().getCurrentUser();
+ ArrayList seguimentoList = null;
+ Integer estabelecimento_id = null;
+
+ if ( curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_GESTOR )
+ {
+ estabelecimento_id = curUser.getEstabelecimento_gestor();
+ if ( estabelecimento_id.intValue() == 0 )
+ {
+ seguimentoList = adp.searchAnalisesSeguimentoGestor( null, nome, estabelecimento, visitaDateStr, POR );
+ }
+ else
+ {
+ seguimentoList = adp.searchAnalisesSeguimentoGestor( curUser.getEstabelecimento_id(), nome, estabelecimento, visitaDateStr, POR );
+ }
+ }
+ else if ( curUser.getGestor_geral().matches( "y" ) || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_NACIONAL_SEGURANCA )
+ {
+ seguimentoList = adp.searchAnalisesSeguimentoGestor( null, nome, estabelecimento, visitaDateStr, POR );
+ }
+ else if ( curUser.getGestor_geral().matches( "n" ) || curUser.getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_LOJA )
+ {
+ seguimentoList = adp.searchAnalisesSeguimentoGestor( curUser.getEstabelecimento_id(), nome, estabelecimento, visitaDateStr, POR );
+ }
+
+ table1.setRendered( true );
+ txtSearchMsg.setRendered( false );
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch( Exception e )
+ {
+ table1.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormHS.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormHS.java
new file mode 100644
index 00000000..dbab7df0
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormHS.java
@@ -0,0 +1,2067 @@
+/*
+ * FormHS.java
+ *
+ * Created on October 1, 2007, 1:43 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+import beans.AnaliseAcidente;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.DropDown;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.providers.AnalisesActualDataProvider;
+import db.providers.AnalisesConcluidasDataProvider;
+import db.providers.AnalisesDataProvider;
+import db.providers.AnalisesSeguimentoDataProvider;
+import global.Global;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.ListIterator;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class FormHS extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridActual1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridActual1() {
+ return gridActual1;
+ }
+
+ public void setGridActual1(HtmlPanelGrid hpg) {
+ this.gridActual1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkDataAcidente = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidente() {
+ return lnkDataAcidente;
+ }
+
+ public void setLnkDataAcidente(Hyperlink h) {
+ this.lnkDataAcidente = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNr = new Hyperlink();
+
+ public Hyperlink getLnkNr() {
+ return lnkNr;
+ }
+
+ public void setLnkNr(Hyperlink h) {
+ this.lnkNr = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentado = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentado() {
+ return lnkNomeAcidentado;
+ }
+
+ public void setLnkNomeAcidentado(Hyperlink h) {
+ this.lnkNomeAcidentado = h;
+ }
+
+ private HtmlPanelGrid gridSeguimento1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento1() {
+ return gridSeguimento1;
+ }
+
+ public void setGridSeguimento1(HtmlPanelGrid hpg) {
+ this.gridSeguimento1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private TableColumn tableColumn5 = new TableColumn();
+
+ public TableColumn getTableColumn5() {
+ return tableColumn5;
+ }
+
+ public void setTableColumn5(TableColumn tc) {
+ this.tableColumn5 = tc;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private HtmlPanelGrid gridConcluidos1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos1() {
+ return gridConcluidos1;
+ }
+
+ public void setGridConcluidos1(HtmlPanelGrid hpg) {
+ this.gridConcluidos1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private Table table3 = new Table();
+
+ public Table getTable3() {
+ return table3;
+ }
+
+ public void setTable3(Table t) {
+ this.table3 = t;
+ }
+
+ private TableRowGroup tableRowGroup3 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup3() {
+ return tableRowGroup3;
+ }
+
+ public void setTableRowGroup3(TableRowGroup trg) {
+ this.tableRowGroup3 = trg;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private Hyperlink lnkFase = new Hyperlink();
+
+ public Hyperlink getLnkFase() {
+ return lnkFase;
+ }
+
+ public void setLnkFase(Hyperlink h) {
+ this.lnkFase = h;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private TableColumn tableColumn14 = new TableColumn();
+
+ public TableColumn getTableColumn14() {
+ return tableColumn14;
+ }
+
+ public void setTableColumn14(TableColumn tc) {
+ this.tableColumn14 = tc;
+ }
+
+ private TableColumn tableColumn15 = new TableColumn();
+
+ public TableColumn getTableColumn15() {
+ return tableColumn15;
+ }
+
+ public void setTableColumn15(TableColumn tc) {
+ this.tableColumn15 = tc;
+ }
+
+ private Hyperlink lnkPor = new Hyperlink();
+
+ public Hyperlink getLnkPor() {
+ return lnkPor;
+ }
+
+ public void setLnkPor(Hyperlink h) {
+ this.lnkPor = h;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+
+ private HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel10() {
+ return gridPanel10;
+ }
+
+ public void setGridPanel10(HtmlPanelGrid hpg) {
+ this.gridPanel10 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private TableColumn tableColumn16 = new TableColumn();
+
+ public TableColumn getTableColumn16() {
+ return tableColumn16;
+ }
+
+ public void setTableColumn16(TableColumn tc) {
+ this.tableColumn16 = tc;
+ }
+
+ private Hyperlink lnkDataAbertura = new Hyperlink();
+
+ public Hyperlink getLnkDataAbertura() {
+ return lnkDataAbertura;
+ }
+
+ public void setLnkDataAbertura(Hyperlink h) {
+ this.lnkDataAbertura = h;
+ }
+
+ private TableColumn tableColumn17 = new TableColumn();
+
+ public TableColumn getTableColumn17() {
+ return tableColumn17;
+ }
+
+ public void setTableColumn17(TableColumn tc) {
+ this.tableColumn17 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaSeg() {
+ return lnkDataAberturaSeg;
+ }
+
+ public void setLnkDataAberturaSeg(Hyperlink h) {
+ this.lnkDataAberturaSeg = h;
+ }
+
+ private TableColumn tableColumn18 = new TableColumn();
+
+ public TableColumn getTableColumn18() {
+ return tableColumn18;
+ }
+
+ public void setTableColumn18(TableColumn tc) {
+ this.tableColumn18 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaConcluida() {
+ return lnkDataAberturaConcluida;
+ }
+
+ public void setLnkDataAberturaConcluida(Hyperlink h) {
+ this.lnkDataAberturaConcluida = h;
+ }
+
+ private TableColumn tableColumn19 = new TableColumn();
+
+ public TableColumn getTableColumn19() {
+ return tableColumn19;
+ }
+
+ public void setTableColumn19(TableColumn tc) {
+ this.tableColumn19 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimento = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimento() {
+ return lnkEstabelecimento;
+ }
+
+ public void setLnkEstabelecimento(Hyperlink h) {
+ this.lnkEstabelecimento = h;
+ }
+
+ private TableColumn tableColumn20 = new TableColumn();
+
+ public TableColumn getTableColumn20() {
+ return tableColumn20;
+ }
+
+ public void setTableColumn20(TableColumn tc) {
+ this.tableColumn20 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimentoSeg = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg() {
+ return lnkEstabelecimentoSeg;
+ }
+
+ public void setLnkEstabelecimentoSeg(Hyperlink h) {
+ this.lnkEstabelecimentoSeg = h;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+
+
+ private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterActual()
+ {
+ return this.gridPanelFilterActual;
+ }
+ public void setGridPanelFilterActual( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterActual = pg;
+ }
+
+ private PanelGroup groupPanelFilterActual = new PanelGroup();
+ public PanelGroup getGroupPanelFilterActual()
+ {
+ return this.groupPanelFilterActual;
+ }
+ public void setGroupPanelFilterActual( PanelGroup pg )
+ {
+ this.groupPanelFilterActual = pg;
+ }
+
+ private StaticText labelFilterNameActual = new StaticText();
+ public StaticText getLabelFilterNameActual()
+ {
+ return this.labelFilterNameActual;
+ }
+ public void setLabelFilterNameActual( StaticText st )
+ {
+ this.labelFilterNameActual = st;
+ }
+
+ private TextField textFilterNameActual = new TextField();
+ public TextField getTextFilterNameActual()
+ {
+ return this.textFilterNameActual;
+ }
+ public void setTextFilterNameActual( TextField tf )
+ {
+ this.textFilterNameActual = tf;
+ }
+
+ private StaticText labelFilterEstabelecimentoActual = new StaticText();
+ public StaticText getLabelFilterEstabelecimentoActual() {
+ return labelFilterEstabelecimentoActual;
+ }
+ public void setLabelFilterEstabelecimentoActual(StaticText labelFilterEstabelecimentoActual) {
+ this.labelFilterEstabelecimentoActual = labelFilterEstabelecimentoActual;
+ }
+
+ private TextField textFilterEstabelecimentoActual = new TextField();
+
+ public TextField getTextFilterEstabelecimentoActual() {
+ return textFilterEstabelecimentoActual;
+ }
+ public void setTextFilterEstabelecimentoActual(TextField textFilterEstabelecimentoActual) {
+ this.textFilterEstabelecimentoActual = textFilterEstabelecimentoActual;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateActual = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateActual()
+ {
+ return this.calFilterDateActual;
+ }
+ public void setCalFilterDateActual( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateActual = c;
+ }
+
+ private TextField textFilterPORActual = new TextField();
+
+ public TextField getTextFilterPORActual() {
+ return textFilterPORActual;
+ }
+
+ public void setTextFilterPORActual(TextField textFilterPORActual) {
+ this.textFilterPORActual = textFilterPORActual;
+ }
+
+
+ private Button buttonFilterActual = new Button();
+ public Button getButtonFilterActual()
+ {
+ return this.buttonFilterActual;
+ }
+ public void setButtonFilterActual( Button b )
+ {
+ this.buttonFilterActual = b;
+ }
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private StaticText labelFilterEstabelecimentoSeg = new StaticText();
+ public StaticText getLabelFilterEstabelecimentoSeg() {
+ return labelFilterEstabelecimentoSeg;
+ }
+ public void setLabelFilterEstabelecimentoSeg(StaticText labelFilterEstabelecimentoSeg) {
+ this.labelFilterEstabelecimentoSeg = labelFilterEstabelecimentoSeg;
+ }
+
+ private TextField textFilterEstabelecimentoSeg = new TextField();
+
+ public TextField getTextFilterEstabelecimentoSeg() {
+ return textFilterEstabelecimentoSeg;
+ }
+ public void setTextFilterEstabelecimentoSeg(TextField textFilterEstabelecimentoSeg) {
+ this.textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+
+ private TextField textFilterEstabelecimentoConc = new TextField();
+
+ public TextField getTextFilterEstabelecimentoConc() {
+ return textFilterEstabelecimentoConc;
+ }
+
+ public void setTextFilterEstabelecimentoConc(TextField textFilterEstabelecimentoConc) {
+ this.textFilterEstabelecimentoConc = textFilterEstabelecimentoConc;
+ }
+
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FormHS() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FormHS Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ System.out.println("=== FORM_HS ===");
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ System.out.println("PAGE FROM : " + pageFrom);
+ if((!pageFrom.matches("FormHS.jsp")) || getSessionBean1().isFromAnaliseDeletion())
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table1.setRendered(true);
+
+ //ArrayList actuaisList = adp.getAnalisesActuaisList(getSessionBean1().getCurrentUser().getEstabelecimento_id(), new Integer(3));
+ ArrayList actuaisList = adp.getAnalisesActuaisHsList( getSessionBean1().getCurrentUser().getEstabelecimento_id() );
+ getSessionBean1().getAnalisesActualDataProvider().setList(actuaisList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table1.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table2.setRendered(true);
+
+ ArrayList seguimentoList = adp.getAnalisesSeguimentoHsList(getSessionBean1().getCurrentUser().getEstabelecimento_id());
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList(seguimentoList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table2.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ System.out.println("CONCLUIDAS TABLE");
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(null);
+ table3.setRendered(true);
+ ArrayList concluidasList = adp.getAnalisesConcluidasHsList();
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table3.setRendered(false);
+ ErrorLogger.logException( ex );
+// System.out.println("ERRRRRROR : " + ex.getMessage());
+ }
+ fillAnoDropDown();
+ }
+
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "analise_acidente";
+ }
+
+ public String lnkDataAbertura_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "analise_acidente";
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "analise_acidente";
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "analise_acidente";
+ }
+
+ private AnaliseAcidente getTableActivosRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesActualDataProvider provider = (AnalisesActualDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "view_analise";
+ }
+
+ public String lnkDataAberturaSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "view_analise";
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormHS");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup3.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup3.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ //fillDiaDropDown();
+ }
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ String estabelecimento = null;
+ if ( textFilterEstabelecimentoConc.getText() != null )
+ {
+ estabelecimento = (( String ) textFilterEstabelecimentoConc.getText()).trim();
+ if( estabelecimento.length() == 0 )
+ {
+ estabelecimento = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = adp.searchAanalisesConcluidasList(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ ano, mes, dia, por, nome, estabelecimento );
+
+ table3.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ table3.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+// private String getPageFrom(String referer)
+// {
+// String pageFrom = referer.substring(referer.lastIndexOf("/")+1);
+// return pageFrom;
+// }
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+ private void fillDiaDropDown()
+ {
+// int ano = ( (Integer)drpAno.getSelected() ).intValue();
+// int mes = ( (Integer)drpMes.getSelected() ).intValue();
+// int dias = 0;
+// switch (mes) {
+// case 1: dias=31; break;
+// case 2:
+// GregorianCalendar cal = new GregorianCalendar();
+// if(cal.isLeapYear(ano))
+// {
+// dias = 29;
+// }
+// else
+// {
+// dias = 28;
+// }
+// break;
+// case 3: dias=31; break;
+// case 4: dias=30; break;
+// case 5: dias=31; break;
+// case 6: dias=30; break;
+// case 7: dias=31; break;
+// case 8: dias=31; break;
+// case 9: dias=30; break;
+// case 10: dias=31; break;
+// case 11: dias=30; break;
+// case 12: dias=31; break;
+// default: System.out.println("Invalid month.");break;
+// }
+//
+// ArrayList diasList = new ArrayList();
+// for(int dia=1; diaPage 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.
+ */
+public class FormMedico extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 lnkLogout = new Hyperlink();
+
+ public Hyperlink getLnkLogout() {
+ return lnkLogout;
+ }
+
+ public void setLnkLogout(Hyperlink h) {
+ this.lnkLogout = h;
+ }
+
+ private HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridActual = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridActual() {
+ return gridActual;
+ }
+
+ public void setGridActual(HtmlPanelGrid hpg) {
+ this.gridActual = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkDataAcidente = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidente() {
+ return lnkDataAcidente;
+ }
+
+ public void setLnkDataAcidente(Hyperlink h) {
+ this.lnkDataAcidente = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNr = new Hyperlink();
+
+ public Hyperlink getLnkNr() {
+ return lnkNr;
+ }
+
+ public void setLnkNr(Hyperlink h) {
+ this.lnkNr = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentado = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentado() {
+ return lnkNomeAcidentado;
+ }
+
+ public void setLnkNomeAcidentado(Hyperlink h) {
+ this.lnkNomeAcidentado = h;
+ }
+
+ private HtmlPanelGrid gridSeguimento = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento() {
+ return gridSeguimento;
+ }
+
+ public void setGridSeguimento(HtmlPanelGrid hpg) {
+ this.gridSeguimento = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private TableColumn tableColumn5 = new TableColumn();
+
+ public TableColumn getTableColumn5() {
+ return tableColumn5;
+ }
+
+ public void setTableColumn5(TableColumn tc) {
+ this.tableColumn5 = tc;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private HtmlPanelGrid gridConcluidos = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos() {
+ return gridConcluidos;
+ }
+
+ public void setGridConcluidos(HtmlPanelGrid hpg) {
+ this.gridConcluidos = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private Table table3 = new Table();
+
+ public Table getTable3() {
+ return table3;
+ }
+
+ public void setTable3(Table t) {
+ this.table3 = t;
+ }
+
+ private TableRowGroup tableRowGroup3 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup3() {
+ return tableRowGroup3;
+ }
+
+ public void setTableRowGroup3(TableRowGroup trg) {
+ this.tableRowGroup3 = trg;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private Hyperlink lnkFase = new Hyperlink();
+
+ public Hyperlink getLnkFase() {
+ return lnkFase;
+ }
+
+ public void setLnkFase(Hyperlink h) {
+ this.lnkFase = h;
+ }
+
+ private Hyperlink lnkEstabelecimento = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimento() {
+ return lnkEstabelecimento;
+ }
+
+ public void setLnkEstabelecimento(Hyperlink h) {
+ this.lnkEstabelecimento = h;
+ }
+
+ private TableColumn tableColumn16 = new TableColumn();
+
+ public TableColumn getTableColumn16() {
+ return tableColumn16;
+ }
+
+ public void setTableColumn16(TableColumn tc) {
+ this.tableColumn16 = tc;
+ }
+
+ private TableColumn tableColumn17 = new TableColumn();
+
+ public TableColumn getTableColumn17() {
+ return tableColumn17;
+ }
+
+ public void setTableColumn17(TableColumn tc) {
+ this.tableColumn17 = tc;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+ private Hyperlink lnkEstabelecimentoSeg = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg() {
+ return lnkEstabelecimentoSeg;
+ }
+
+ public void setLnkEstabelecimentoSeg(Hyperlink h) {
+ this.lnkEstabelecimentoSeg = h;
+ }
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private TableColumn tableColumn14 = new TableColumn();
+
+ public TableColumn getTableColumn14() {
+ return tableColumn14;
+ }
+
+ public void setTableColumn14(TableColumn tc) {
+ this.tableColumn14 = tc;
+ }
+
+ private TableColumn tableColumn15 = new TableColumn();
+
+ public TableColumn getTableColumn15() {
+ return tableColumn15;
+ }
+
+ public void setTableColumn15(TableColumn tc) {
+ this.tableColumn15 = tc;
+ }
+
+ private Hyperlink lnkPor = new Hyperlink();
+
+ public Hyperlink getLnkPor() {
+ return lnkPor;
+ }
+
+ public void setLnkPor(Hyperlink h) {
+ this.lnkPor = h;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+
+
+
+ private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterActual()
+ {
+ return this.gridPanelFilterActual;
+ }
+ public void setGridPanelFilterActual( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterActual = pg;
+ }
+
+ private PanelGroup groupPanelFilterActual = new PanelGroup();
+ public PanelGroup getGroupPanelFilterActual()
+ {
+ return this.groupPanelFilterActual;
+ }
+ public void setGroupPanelFilterActual( PanelGroup pg )
+ {
+ this.groupPanelFilterActual = pg;
+ }
+
+ private StaticText labelFilterNameActual = new StaticText();
+ public StaticText getLabelFilterNameActual()
+ {
+ return this.labelFilterNameActual;
+ }
+ public void setLabelFilterNameActual( StaticText st )
+ {
+ this.labelFilterNameActual = st;
+ }
+
+ private TextField textFilterNameActual = new TextField();
+ public TextField getTextFilterNameActual()
+ {
+ return this.textFilterNameActual;
+ }
+ public void setTextFilterNameActual( TextField tf )
+ {
+ this.textFilterNameActual = tf;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateActual = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateActual()
+ {
+ return this.calFilterDateActual;
+ }
+ public void setCalFilterDateActual( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateActual = c;
+ }
+
+ private TextField textFilterPORActual = new TextField();
+
+ public TextField getTextFilterPORActual() {
+ return textFilterPORActual;
+ }
+
+ public void setTextFilterPORActual(TextField textFilterPORActual) {
+ this.textFilterPORActual = textFilterPORActual;
+ }
+
+
+ private Button buttonFilterActual = new Button();
+ public Button getButtonFilterActual()
+ {
+ return this.buttonFilterActual;
+ }
+ public void setButtonFilterActual( Button b )
+ {
+ this.buttonFilterActual = b;
+ }
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FormMedico() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FormMedico Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if(!pageFrom.matches("FormMedico.jsp"))
+ {
+ try
+ {
+ //lblActivos.setRendered(true);
+ table1.setRendered(true);
+
+ //ArrayList actuaisList = adp.getAnalisesActuaisList(getSessionBean1().getCurrentUser().getEstabelecimento_id(), new Integer(5));
+ // ArrayList actuaisList = adp.getAnalisesActuaisMedicoList( getSessionBean1().getCurrentUser().getEstabelecimento_id() );
+ // getSessionBean1().getAnalisesActualDataProvider().setList(actuaisList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table1.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ table2.setRendered(false);
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table2.setRendered(true);
+
+ ArrayList seguimentoList = adp.getAnalisesSeguimentoMedList(getSessionBean1().getCurrentUser().getEstabelecimento_id());
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList(seguimentoList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table2.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table3.setRendered(true);
+
+ ArrayList concluidasList = adp.getAnalisesConcluidasList(getSessionBean1().getCurrentUser().getEstabelecimento_id());
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table3.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+ fillAnoDropDown();
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("FormMedico");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), false );
+
+ return "login";
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "analise_acidente";
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "analise_acidente";
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "analise_acidente";
+ }
+
+ private AnaliseAcidente getTableActivosRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesActualDataProvider provider = (AnalisesActualDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup3.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup3.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ fillDiaDropDown();
+ }
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = adp.searchAanalisesConcluidasList(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ ano, mes, dia, por, nome, null
+ );
+
+ table3.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+
+
+ }
+ catch(Exception ex)
+ {
+ table3.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+ return null;
+ }
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+ private void fillDiaDropDown()
+ {
+
+ }
+
+ public String lnkDataConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkNrConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkNomeConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkFase_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "analise_acidente";
+ }
+
+ public String lnkEstabelecimento_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "analise_acidente";
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkEstabelecimentoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkPor_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "analise_acidente";
+ }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkPorConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+ public String lnkEstabConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormMedico");
+ return "view_analise";
+ }
+
+
+
+
+ public String buttonFilterActual_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateActual.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORActual.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORActual.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameActual.getText() != null )
+ {
+ nome = (( String ) textFilterNameActual.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+// AnalisesDataProvider adp = new AnalisesDataProvider();
+ try
+ {
+// ArrayList actualList = adp.searchAnalisesActuaisMedico(
+// getSessionBean1().getCurrentUser().getEstabelecimento_id(), nome, visitaDateStr );
+
+ table1.setRendered( true );
+ txtSearchMsg.setRendered( false );
+// getSessionBean1().getAnalisesActualDataProvider().setList( actualList );
+ }
+ catch( Exception e )
+ {
+ table1.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+ public String buttonFilterSeg_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateSeg.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORSeg.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORSeg.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameSeg.getText() != null )
+ {
+ nome = (( String ) textFilterNameSeg.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList seguimentoList = adp.searchAnalisesSeguimentoMedico(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ nome, visitaDateStr, POR );
+
+ table2.setRendered( true );
+ txtSearchMsg.setRendered( false );
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch( Exception e )
+ {
+ table2.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormRH.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormRH.java
new file mode 100644
index 00000000..0d6e9cff
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/FormRH.java
@@ -0,0 +1,2022 @@
+/*
+ * FormRH.java
+ *
+ * Created on October 1, 2007, 11:43 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+import beans.AnaliseAcidente;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.DropDown;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.providers.AnalisesActualDataProvider;
+import db.providers.AnalisesConcluidasDataProvider;
+import db.providers.AnalisesDataProvider;
+import db.providers.AnalisesSeguimentoDataProvider;
+import global.Global;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.ListIterator;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class FormRH extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridLayoutTop1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop1() {
+ return gridLayoutTop1;
+ }
+
+ public void setGridLayoutTop1(HtmlPanelGrid hpg) {
+ this.gridLayoutTop1 = hpg;
+ }
+
+ private HtmlPanelGrid gridActual1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridActual1() {
+ return gridActual1;
+ }
+
+ public void setGridActual1(HtmlPanelGrid hpg) {
+ this.gridActual1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkDataAcidente = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidente() {
+ return lnkDataAcidente;
+ }
+
+ public void setLnkDataAcidente(Hyperlink h) {
+ this.lnkDataAcidente = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNr = new Hyperlink();
+
+ public Hyperlink getLnkNr() {
+ return lnkNr;
+ }
+
+ public void setLnkNr(Hyperlink h) {
+ this.lnkNr = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentado = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentado() {
+ return lnkNomeAcidentado;
+ }
+
+ public void setLnkNomeAcidentado(Hyperlink h) {
+ this.lnkNomeAcidentado = h;
+ }
+
+ private HtmlPanelGrid gridSeguimento1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento1() {
+ return gridSeguimento1;
+ }
+
+ public void setGridSeguimento1(HtmlPanelGrid hpg) {
+ this.gridSeguimento1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private TableColumn tableColumn5 = new TableColumn();
+
+ public TableColumn getTableColumn5() {
+ return tableColumn5;
+ }
+
+ public void setTableColumn5(TableColumn tc) {
+ this.tableColumn5 = tc;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private HtmlPanelGrid gridConcluidos1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos1() {
+ return gridConcluidos1;
+ }
+
+ public void setGridConcluidos1(HtmlPanelGrid hpg) {
+ this.gridConcluidos1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private Table table3 = new Table();
+
+ public Table getTable3() {
+ return table3;
+ }
+
+ public void setTable3(Table t) {
+ this.table3 = t;
+ }
+
+ private TableRowGroup tableRowGroup3 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup3() {
+ return tableRowGroup3;
+ }
+
+ public void setTableRowGroup3(TableRowGroup trg) {
+ this.tableRowGroup3 = trg;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private Hyperlink lnkFase = new Hyperlink();
+
+ public Hyperlink getLnkFase() {
+ return lnkFase;
+ }
+
+ public void setLnkFase(Hyperlink h) {
+ this.lnkFase = h;
+ }
+
+ private Hyperlink lnkEstabelecimento = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimento() {
+ return lnkEstabelecimento;
+ }
+
+ public void setLnkEstabelecimento(Hyperlink h) {
+ this.lnkEstabelecimento = h;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+ private Hyperlink lnkEstabelecimentoSeg = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg() {
+ return lnkEstabelecimentoSeg;
+ }
+
+ public void setLnkEstabelecimentoSeg(Hyperlink h) {
+ this.lnkEstabelecimentoSeg = h;
+ }
+
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private TableColumn tableColumn14 = new TableColumn();
+
+ public TableColumn getTableColumn14() {
+ return tableColumn14;
+ }
+
+ public void setTableColumn14(TableColumn tc) {
+ this.tableColumn14 = tc;
+ }
+
+ private TableColumn tableColumn15 = new TableColumn();
+
+ public TableColumn getTableColumn15() {
+ return tableColumn15;
+ }
+
+ public void setTableColumn15(TableColumn tc) {
+ this.tableColumn15 = tc;
+ }
+
+ private Hyperlink lnkPor = new Hyperlink();
+
+ public Hyperlink getLnkPor() {
+ return lnkPor;
+ }
+
+ public void setLnkPor(Hyperlink h) {
+ this.lnkPor = h;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText1 = new StaticText();
+
+ public StaticText getStaticText1() {
+ return staticText1;
+ }
+
+ public void setStaticText1(StaticText st) {
+ this.staticText1 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel10() {
+ return gridPanel10;
+ }
+
+ public void setGridPanel10(HtmlPanelGrid hpg) {
+ this.gridPanel10 = hpg;
+ }
+
+ private StaticText txtMsg1 = new StaticText();
+
+ public StaticText getTxtMsg1() {
+ return txtMsg1;
+ }
+
+ public void setTxtMsg1(StaticText st) {
+ this.txtMsg1 = st;
+ }
+
+ private TableColumn tableColumn16 = new TableColumn();
+
+ public TableColumn getTableColumn16() {
+ return tableColumn16;
+ }
+
+ public void setTableColumn16(TableColumn tc) {
+ this.tableColumn16 = tc;
+ }
+
+ private Hyperlink lnkDataAbertura = new Hyperlink();
+
+ public Hyperlink getLnkDataAbertura() {
+ return lnkDataAbertura;
+ }
+
+ public void setLnkDataAbertura(Hyperlink h) {
+ this.lnkDataAbertura = h;
+ }
+
+ private TableColumn tableColumn17 = new TableColumn();
+
+ public TableColumn getTableColumn17() {
+ return tableColumn17;
+ }
+
+ public void setTableColumn17(TableColumn tc) {
+ this.tableColumn17 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaSeg() {
+ return lnkDataAberturaSeg;
+ }
+
+ public void setLnkDataAberturaSeg(Hyperlink h) {
+ this.lnkDataAberturaSeg = h;
+ }
+
+ private TableColumn tableColumn18 = new TableColumn();
+
+ public TableColumn getTableColumn18() {
+ return tableColumn18;
+ }
+
+ public void setTableColumn18(TableColumn tc) {
+ this.tableColumn18 = tc;
+ }
+
+ private TableColumn tableColumn19 = new TableColumn();
+
+ public TableColumn getTableColumn19() {
+ return tableColumn19;
+ }
+
+ public void setTableColumn19(TableColumn tc) {
+ this.tableColumn19 = tc;
+ }
+
+ private TableColumn tableColumn20 = new TableColumn();
+
+ public TableColumn getTableColumn20() {
+ return tableColumn20;
+ }
+
+ public void setTableColumn20(TableColumn tc) {
+ this.tableColumn20 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaConcluida() {
+ return lnkDataAberturaConcluida;
+ }
+
+ public void setLnkDataAberturaConcluida(Hyperlink h) {
+ this.lnkDataAberturaConcluida = h;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+
+
+
+ private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterActual()
+ {
+ return this.gridPanelFilterActual;
+ }
+ public void setGridPanelFilterActual( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterActual = pg;
+ }
+
+ private PanelGroup groupPanelFilterActual = new PanelGroup();
+ public PanelGroup getGroupPanelFilterActual()
+ {
+ return this.groupPanelFilterActual;
+ }
+ public void setGroupPanelFilterActual( PanelGroup pg )
+ {
+ this.groupPanelFilterActual = pg;
+ }
+
+ private StaticText labelFilterNameActual = new StaticText();
+ public StaticText getLabelFilterNameActual()
+ {
+ return this.labelFilterNameActual;
+ }
+ public void setLabelFilterNameActual( StaticText st )
+ {
+ this.labelFilterNameActual = st;
+ }
+
+ private TextField textFilterNameActual = new TextField();
+ public TextField getTextFilterNameActual()
+ {
+ return this.textFilterNameActual;
+ }
+ public void setTextFilterNameActual( TextField tf )
+ {
+ this.textFilterNameActual = tf;
+ }
+ private com.sun.rave.web.ui.component.Calendar calFilterDateActual = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateActual()
+ {
+ return this.calFilterDateActual;
+ }
+ public void setCalFilterDateActual( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateActual = c;
+ }
+
+ private TextField textFilterPORActual = new TextField();
+
+ public TextField getTextFilterPORActual() {
+ return textFilterPORActual;
+ }
+
+ public void setTextFilterPORActual(TextField textFilterPORActual) {
+ this.textFilterPORActual = textFilterPORActual;
+ }
+
+
+ private Button buttonFilterActual = new Button();
+ public Button getButtonFilterActual()
+ {
+ return this.buttonFilterActual;
+ }
+ public void setButtonFilterActual( Button b )
+ {
+ this.buttonFilterActual = b;
+ }
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FormRH() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FormRH Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ System.out.println("=== FORM_RH ===");
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ String responsavel_loja = getSessionBean1().getCurrentUser().getResponsavel_loja();
+ if(responsavel_loja.matches("n"))
+ {
+ lnkPlanosActuacao.setDisabled(true);
+ }
+// if(getSessionBean1().getCurrentUser().getTipo().intValue() == 7) // director rh
+// {
+// //////stSep.setText("|");
+// }
+// else //rh
+// {
+// //////stSep.setText(" ");
+// //////lnkNewUser.setRendered(false);
+// stSep1.setRendered(false);
+// }
+
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if(!pageFrom.matches("FormRH.jsp"))
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table1.setRendered(true);
+
+ //ArrayList actuaisList = adp.getAnalisesActuaisList(getSessionBean1().getCurrentUser().getEstabelecimento_id());
+ ArrayList actuaisList = adp.getAnalisesActuaisRhList(getSessionBean1().getCurrentUser().getEstabelecimento_id(), responsavel_loja);
+ getSessionBean1().getAnalisesActualDataProvider().setList(actuaisList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table1.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table2.setRendered(true);
+
+ ArrayList seguimentoList = adp.getAnalisesSeguimentoRhList(getSessionBean1().getCurrentUser().getEstabelecimento_id(), responsavel_loja);
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList(seguimentoList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table2.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table3.setRendered(true);
+
+ ArrayList concluidasList = adp.getAnalisesConcluidasList(getSessionBean1().getCurrentUser().getEstabelecimento_id());
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table3.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+ fillAnoDropDown();
+ }
+
+ txtMsg1.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public String butNovaAnalise_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "analise_acidente";
+ }
+
+ public String lnkDataAbertura_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "analise_acidente";
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "analise_acidente";
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "analise_acidente";
+ }
+
+ private AnaliseAcidente getTableActivosRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesActualDataProvider provider = (AnalisesActualDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "view_analise";
+ }
+
+ public String lnkDataAberturaSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "view_analise";
+ }
+
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormRH");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup3.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup3.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ //fillDiaDropDown();
+ }
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = adp.searchAanalisesConcluidasList(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ ano, mes, dia, por, nome, null );
+
+ table3.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+
+
+ }
+ catch(Exception ex)
+ {
+ table3.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+// private String getPageFrom(String referer)
+// {
+// String pageFrom = referer.substring(referer.lastIndexOf("/")+1);
+// return pageFrom;
+// }
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+ private void fillDiaDropDown()
+ {
+// int ano = ( (Integer)drpAno.getSelected() ).intValue();
+// int mes = ( (Integer)drpMes.getSelected() ).intValue();
+// int dias = 0;
+// switch (mes) {
+// case 1: dias=31; break;
+// case 2:
+// GregorianCalendar cal = new GregorianCalendar();
+// if(cal.isLeapYear(ano))
+// {
+// dias = 29;
+// }
+// else
+// {
+// dias = 28;
+// }
+// break;
+// case 3: dias=31; break;
+// case 4: dias=30; break;
+// case 5: dias=31; break;
+// case 6: dias=30; break;
+// case 7: dias=31; break;
+// case 8: dias=31; break;
+// case 9: dias=30; break;
+// case 10: dias=31; break;
+// case 11: dias=30; break;
+// case 12: dias=31; break;
+// default: System.out.println("Invalid month.");break;
+// }
+//
+// ArrayList diasList = new ArrayList();
+// for(int dia=1; diaPage 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.
+ */
+public class FormSeguranca extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 gridBase = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridBase() {
+ return gridBase;
+ }
+
+ public void setGridBase(HtmlPanelGrid hpg) {
+ this.gridBase = hpg;
+ }
+
+ private HtmlPanelGrid gridLayout = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayout() {
+ return gridLayout;
+ }
+
+ public void setGridLayout(HtmlPanelGrid hpg) {
+ this.gridLayout = hpg;
+ }
+
+ private HtmlPanelGrid gridLayoutTop = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayoutTop() {
+ return gridLayoutTop;
+ }
+
+ public void setGridLayoutTop(HtmlPanelGrid hpg) {
+ this.gridLayoutTop = hpg;
+ }
+
+ private HtmlPanelGrid gridActual = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridActual() {
+ return gridActual;
+ }
+
+ public void setGridActual(HtmlPanelGrid hpg) {
+ this.gridActual = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel1() {
+ return gridPanel1;
+ }
+
+ public void setGridPanel1(HtmlPanelGrid hpg) {
+ this.gridPanel1 = hpg;
+ }
+
+ private StaticText staticText1 = new StaticText();
+
+ public StaticText getStaticText1() {
+ return staticText1;
+ }
+
+ public void setStaticText1(StaticText st) {
+ this.staticText1 = st;
+ }
+
+ private HtmlPanelGrid gridSeguimento = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridSeguimento() {
+ return gridSeguimento;
+ }
+
+ public void setGridSeguimento(HtmlPanelGrid hpg) {
+ this.gridSeguimento = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private HtmlPanelGrid gridConcluidos = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos() {
+ return gridConcluidos;
+ }
+
+ public void setGridConcluidos(HtmlPanelGrid hpg) {
+ this.gridConcluidos = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private Link link2 = new Link();
+
+ public Link getLink2() {
+ return link2;
+ }
+
+ public void setLink2(Link l) {
+ this.link2 = l;
+ }
+
+ private Button butNovaAnalise = new Button();
+
+ public Button getButNovaAnalise() {
+ return butNovaAnalise;
+ }
+
+ public void setButNovaAnalise(Button b) {
+ this.butNovaAnalise = b;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Table table2 = new Table();
+
+ public Table getTable2() {
+ return table2;
+ }
+
+ public void setTable2(Table t) {
+ this.table2 = t;
+ }
+
+ private TableRowGroup tableRowGroup2 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup2() {
+ return tableRowGroup2;
+ }
+
+ public void setTableRowGroup2(TableRowGroup trg) {
+ this.tableRowGroup2 = trg;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private TableColumn tableColumn5 = new TableColumn();
+
+ public TableColumn getTableColumn5() {
+ return tableColumn5;
+ }
+
+ public void setTableColumn5(TableColumn tc) {
+ this.tableColumn5 = tc;
+ }
+
+ private TableColumn tableColumn6 = new TableColumn();
+
+ public TableColumn getTableColumn6() {
+ return tableColumn6;
+ }
+
+ public void setTableColumn6(TableColumn tc) {
+ this.tableColumn6 = tc;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private PanelGroup groupPanel1 = new PanelGroup();
+
+ public PanelGroup getGroupPanel1() {
+ return groupPanel1;
+ }
+
+ public void setGroupPanel1(PanelGroup pg) {
+ this.groupPanel1 = pg;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+
+ private DropDown drpAno = new DropDown();
+
+ public DropDown getDrpAno() {
+ return drpAno;
+ }
+
+ public void setDrpAno(DropDown dd) {
+ this.drpAno = dd;
+ }
+
+ private PanelGroup groupPanel2 = new PanelGroup();
+
+ public PanelGroup getGroupPanel2() {
+ return groupPanel2;
+ }
+
+ public void setGroupPanel2(PanelGroup pg) {
+ this.groupPanel2 = pg;
+ }
+
+ private StaticText lblMes = new StaticText();
+
+ public StaticText getLblMes() {
+ return lblMes;
+ }
+
+ public void setLblMes(StaticText st) {
+ this.lblMes = st;
+ }
+
+ private DropDown drpMes = new DropDown();
+
+ public DropDown getDrpMes() {
+ return drpMes;
+ }
+
+ public void setDrpMes(DropDown dd) {
+ this.drpMes = dd;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText lblDia = new StaticText();
+
+ public StaticText getLblDia() {
+ return lblDia;
+ }
+
+ public void setLblDia(StaticText st) {
+ this.lblDia = st;
+ }
+
+ private DropDown drpDia = new DropDown();
+
+ public DropDown getDrpDia() {
+ return drpDia;
+ }
+
+ public void setDrpDia(DropDown dd) {
+ this.drpDia = dd;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText staticText14 = new StaticText();
+
+ public StaticText getStaticText14() {
+ return staticText14;
+ }
+
+ public void setStaticText14(StaticText st) {
+ this.staticText14 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private Table table3 = new Table();
+
+ public Table getTable3() {
+ return table3;
+ }
+
+ public void setTable3(Table t) {
+ this.table3 = t;
+ }
+
+ private TableRowGroup tableRowGroup3 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup3() {
+ return tableRowGroup3;
+ }
+
+ public void setTableRowGroup3(TableRowGroup trg) {
+ this.tableRowGroup3 = trg;
+ }
+
+ private TableColumn tableColumn7 = new TableColumn();
+
+ public TableColumn getTableColumn7() {
+ return tableColumn7;
+ }
+
+ public void setTableColumn7(TableColumn tc) {
+ this.tableColumn7 = tc;
+ }
+
+ private TableColumn tableColumn8 = new TableColumn();
+
+ public TableColumn getTableColumn8() {
+ return tableColumn8;
+ }
+
+ public void setTableColumn8(TableColumn tc) {
+ this.tableColumn8 = tc;
+ }
+
+ private TableColumn tableColumn9 = new TableColumn();
+
+ public TableColumn getTableColumn9() {
+ return tableColumn9;
+ }
+
+ public void setTableColumn9(TableColumn tc) {
+ this.tableColumn9 = tc;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = 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 Hyperlink lnkDataAcidente = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidente() {
+ return lnkDataAcidente;
+ }
+
+ public void setLnkDataAcidente(Hyperlink h) {
+ this.lnkDataAcidente = h;
+ }
+
+ private Hyperlink lnkNr = new Hyperlink();
+
+ public Hyperlink getLnkNr() {
+ return lnkNr;
+ }
+
+ public void setLnkNr(Hyperlink h) {
+ this.lnkNr = h;
+ }
+
+ private Hyperlink lnkNomeAcidentado = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentado() {
+ return lnkNomeAcidentado;
+ }
+
+ public void setLnkNomeAcidentado(Hyperlink h) {
+ this.lnkNomeAcidentado = h;
+ }
+
+ private Hyperlink lnkDataAcidenteSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAcidenteSeg() {
+ return lnkDataAcidenteSeg;
+ }
+
+ public void setLnkDataAcidenteSeg(Hyperlink h) {
+ this.lnkDataAcidenteSeg = h;
+ }
+
+ private Hyperlink lnkNrSeg = new Hyperlink();
+
+ public Hyperlink getLnkNrSeg() {
+ return lnkNrSeg;
+ }
+
+ public void setLnkNrSeg(Hyperlink h) {
+ this.lnkNrSeg = h;
+ }
+
+ private Hyperlink lnkNomeAcidentadoSeg = new Hyperlink();
+
+ public Hyperlink getLnkNomeAcidentadoSeg() {
+ return lnkNomeAcidentadoSeg;
+ }
+
+ public void setLnkNomeAcidentadoSeg(Hyperlink h) {
+ this.lnkNomeAcidentadoSeg = h;
+ }
+
+ private Hyperlink lnkDataConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataConcluida() {
+ return lnkDataConcluida;
+ }
+
+ public void setLnkDataConcluida(Hyperlink h) {
+ this.lnkDataConcluida = h;
+ }
+
+ private Hyperlink lnkNrConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNrConcluida() {
+ return lnkNrConcluida;
+ }
+
+ public void setLnkNrConcluida(Hyperlink h) {
+ this.lnkNrConcluida = h;
+ }
+
+ private Hyperlink lnkNomeConcluida = new Hyperlink();
+
+ public Hyperlink getLnkNomeConcluida() {
+ return lnkNomeConcluida;
+ }
+
+ public void setLnkNomeConcluida(Hyperlink h) {
+ this.lnkNomeConcluida = h;
+ }
+
+ private StaticText txtSearchMsg = new StaticText();
+
+ public StaticText getTxtSearchMsg() {
+ return txtSearchMsg;
+ }
+
+ public void setTxtSearchMsg(StaticText st) {
+ this.txtSearchMsg = st;
+ }
+
+ private TableColumn tableColumn10 = new TableColumn();
+
+ public TableColumn getTableColumn10() {
+ return tableColumn10;
+ }
+
+ public void setTableColumn10(TableColumn tc) {
+ this.tableColumn10 = tc;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkFase = new Hyperlink();
+
+ public Hyperlink getLnkFase() {
+ return lnkFase;
+ }
+
+ public void setLnkFase(Hyperlink h) {
+ this.lnkFase = h;
+ }
+
+ private Hyperlink lnkEstabelecimento = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimento() {
+ return lnkEstabelecimento;
+ }
+
+ public void setLnkEstabelecimento(Hyperlink h) {
+ this.lnkEstabelecimento = h;
+ }
+
+ private Hyperlink lnkFaseSeg = new Hyperlink();
+
+ public Hyperlink getLnkFaseSeg() {
+ return lnkFaseSeg;
+ }
+
+ public void setLnkFaseSeg(Hyperlink h) {
+ this.lnkFaseSeg = h;
+ }
+
+ private Hyperlink lnkEstabelecimentoSeg = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoSeg() {
+ return lnkEstabelecimentoSeg;
+ }
+
+ public void setLnkEstabelecimentoSeg(Hyperlink h) {
+ this.lnkEstabelecimentoSeg = h;
+ }
+
+ private TableColumn tableColumn12 = new TableColumn();
+
+ public TableColumn getTableColumn12() {
+ return tableColumn12;
+ }
+
+ public void setTableColumn12(TableColumn tc) {
+ this.tableColumn12 = tc;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private TableColumn tableColumn14 = new TableColumn();
+
+ public TableColumn getTableColumn14() {
+ return tableColumn14;
+ }
+
+ public void setTableColumn14(TableColumn tc) {
+ this.tableColumn14 = tc;
+ }
+
+ private TableColumn tableColumn15 = new TableColumn();
+
+ public TableColumn getTableColumn15() {
+ return tableColumn15;
+ }
+
+ public void setTableColumn15(TableColumn tc) {
+ this.tableColumn15 = tc;
+ }
+
+ private Hyperlink lnkPor = new Hyperlink();
+
+ public Hyperlink getLnkPor() {
+ return lnkPor;
+ }
+
+ public void setLnkPor(Hyperlink h) {
+ this.lnkPor = h;
+ }
+
+ private Hyperlink lnkPorSeg = new Hyperlink();
+
+ public Hyperlink getLnkPorSeg() {
+ return lnkPorSeg;
+ }
+
+ public void setLnkPorSeg(Hyperlink h) {
+ this.lnkPorSeg = h;
+ }
+
+ private Hyperlink lnkPorConcluida = new Hyperlink();
+
+ public Hyperlink getLnkPorConcluida() {
+ return lnkPorConcluida;
+ }
+
+ public void setLnkPorConcluida(Hyperlink h) {
+ this.lnkPorConcluida = h;
+ }
+
+ private Hyperlink lnkEstabConcluida = new Hyperlink();
+
+ public Hyperlink getLnkEstabConcluida() {
+ return lnkEstabConcluida;
+ }
+
+ public void setLnkEstabConcluida(Hyperlink h) {
+ this.lnkEstabConcluida = h;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ 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 HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel10() {
+ return gridPanel10;
+ }
+
+ public void setGridPanel10(HtmlPanelGrid hpg) {
+ this.gridPanel10 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private TableColumn tableColumn16 = new TableColumn();
+
+ public TableColumn getTableColumn16() {
+ return tableColumn16;
+ }
+
+ public void setTableColumn16(TableColumn tc) {
+ this.tableColumn16 = tc;
+ }
+
+ private Hyperlink lnkDataAbertura = new Hyperlink();
+
+ public Hyperlink getLnkDataAbertura() {
+ return lnkDataAbertura;
+ }
+
+ public void setLnkDataAbertura(Hyperlink h) {
+ this.lnkDataAbertura = h;
+ }
+
+ private TableColumn tableColumn17 = new TableColumn();
+
+ public TableColumn getTableColumn17() {
+ return tableColumn17;
+ }
+
+ public void setTableColumn17(TableColumn tc) {
+ this.tableColumn17 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaSeg = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaSeg() {
+ return lnkDataAberturaSeg;
+ }
+
+ public void setLnkDataAberturaSeg(Hyperlink h) {
+ this.lnkDataAberturaSeg = h;
+ }
+
+ private TableColumn tableColumn18 = new TableColumn();
+
+ public TableColumn getTableColumn18() {
+ return tableColumn18;
+ }
+
+ public void setTableColumn18(TableColumn tc) {
+ this.tableColumn18 = tc;
+ }
+
+
+ private TableColumn tableColumn19 = new TableColumn();
+
+ public TableColumn getTableColumn19() {
+ return tableColumn19;
+ }
+
+ public void setTableColumn19(TableColumn tc) {
+ this.tableColumn19 = tc;
+ }
+
+ private TableColumn tableColumn20 = new TableColumn();
+
+ public TableColumn getTableColumn20() {
+ return tableColumn20;
+ }
+
+ public void setTableColumn20(TableColumn tc) {
+ this.tableColumn20 = tc;
+ }
+
+ private Hyperlink lnkDataAberturaConcluida = new Hyperlink();
+
+ public Hyperlink getLnkDataAberturaConcluida() {
+ return lnkDataAberturaConcluida;
+ }
+
+ public void setLnkDataAberturaConcluida(Hyperlink h) {
+ this.lnkDataAberturaConcluida = h;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+
+
+ private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterSeg()
+ {
+ return this.gridPanelFilterSeg;
+ }
+ public void setGridPanelFilterSeg( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterSeg = pg;
+ }
+
+ private PanelGroup groupPanelFilterSeg = new PanelGroup();
+ public PanelGroup getGroupPanelFilterSeg()
+ {
+ return this.groupPanelFilterSeg;
+ }
+ public void setGroupPanelFilterSeg( PanelGroup pg )
+ {
+ this.groupPanelFilterSeg = pg;
+ }
+
+ private StaticText labelFilterNameSeg = new StaticText();
+ public StaticText getLabelFilterNameSeg()
+ {
+ return this.labelFilterNameSeg;
+ }
+ public void setLabelFilterNameSeg( StaticText st )
+ {
+ this.labelFilterNameSeg = st;
+ }
+
+ private TextField textFilterNameSeg = new TextField();
+ public TextField getTextFilterNameSeg()
+ {
+ return this.textFilterNameSeg;
+ }
+ public void setTextFilterNameSeg( TextField tf )
+ {
+ this.textFilterNameSeg = tf;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateSeg = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateSeg()
+ {
+ return this.calFilterDateSeg;
+ }
+ public void setCalFilterDateSeg( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateSeg = c;
+ }
+
+ private TextField textFilterPORSeg = new TextField();
+
+ public TextField getTextFilterPORSeg() {
+ return textFilterPORSeg;
+ }
+
+ public void setTextFilterPORSeg(TextField textFilterPORSeg) {
+ this.textFilterPORSeg = textFilterPORSeg;
+ }
+
+
+ private Button buttonFilterSeg = new Button();
+ public Button getButtonFilterSeg()
+ {
+ return this.buttonFilterSeg;
+ }
+ public void setButtonFilterSeg( Button b )
+ {
+ this.buttonFilterSeg = b;
+ }
+
+
+ private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid();
+ public HtmlPanelGrid getGridPanelFilterActual()
+ {
+ return this.gridPanelFilterActual;
+ }
+ public void setGridPanelFilterActual( HtmlPanelGrid pg )
+ {
+ this.gridPanelFilterActual = pg;
+ }
+
+ private PanelGroup groupPanelFilterActual = new PanelGroup();
+ public PanelGroup getGroupPanelFilterActual()
+ {
+ return this.groupPanelFilterActual;
+ }
+ public void setGroupPanelFilterActual( PanelGroup pg )
+ {
+ this.groupPanelFilterActual = pg;
+ }
+
+ private StaticText labelFilterNameActual = new StaticText();
+ public StaticText getLabelFilterNameActual()
+ {
+ return this.labelFilterNameActual;
+ }
+ public void setLabelFilterNameActual( StaticText st )
+ {
+ this.labelFilterNameActual = st;
+ }
+
+ private TextField textFilterNameActual = new TextField();
+ public TextField getTextFilterNameActual()
+ {
+ return this.textFilterNameActual;
+ }
+ public void setTextFilterNameActual( TextField tf )
+ {
+ this.textFilterNameActual = tf;
+ }
+
+ private com.sun.rave.web.ui.component.Calendar calFilterDateActual = new com.sun.rave.web.ui.component.Calendar();
+ public com.sun.rave.web.ui.component.Calendar getCalFilterDateActual()
+ {
+ return this.calFilterDateActual;
+ }
+ public void setCalFilterDateActual( com.sun.rave.web.ui.component.Calendar c )
+ {
+ this.calFilterDateActual = c;
+ }
+
+ private TextField textFilterPORActual = new TextField();
+
+ public TextField getTextFilterPORActual() {
+ return textFilterPORActual;
+ }
+
+ public void setTextFilterPORActual(TextField textFilterPORActual) {
+ this.textFilterPORActual = textFilterPORActual;
+ }
+
+
+ private Button buttonFilterActual = new Button();
+ public Button getButtonFilterActual()
+ {
+ return this.buttonFilterActual;
+ }
+ public void setButtonFilterActual( Button b )
+ {
+ this.buttonFilterActual = b;
+ }
+
+ private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public FormSeguranca() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("FormSeguranca Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ System.out.println("=== FORM_SEGURANCA ===");
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin());
+ String responsavel_loja = getSessionBean1().getCurrentUser().getResponsavel_loja();
+ if(responsavel_loja.matches("n"))
+ {
+ lnkPlanosActuacao.setDisabled(true);
+ }
+
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if( ! pageFrom.matches( "FormSeguranca.jsp" ) )
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table1.setRendered(true);
+
+ //ArrayList actuaisList = adp.getAnalisesActuaisList(getSessionBean1().getCurrentUser().getEstabelecimento_id(), new Integer(1));
+ ArrayList actuaisList = adp.getAnalisesActuaisSegList( getSessionBean1().getCurrentUser().getEstabelecimento_id(), responsavel_loja );
+ getSessionBean1().getAnalisesActualDataProvider().setList(actuaisList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table1.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table2.setRendered( true );
+
+ ArrayList seguimentoList = adp.getAnalisesSeguimentoSegList(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(), responsavel_loja );
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table2.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //lblActivos.setRendered(true);
+ table3.setRendered(true);
+
+ ArrayList concluidasList = adp.getAnalisesConcluidasList(getSessionBean1().getCurrentUser().getEstabelecimento_id());
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ //lblActivos.setRendered(false);
+ table3.setRendered(false);
+ ErrorLogger.logException( ex );
+ }
+ fillAnoDropDown();
+ }
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+
+// private void fillDateDropDowns()
+// {
+// fillAnoDropDown();
+// //fillMesDropDown();
+// //fillDiaDropDown();
+// }
+
+ private void fillAnoDropDown()
+ {
+// ArrayList anosList = new ArrayList();
+// for(int ano=2007; ano<2051; ano++)
+// {
+// anosList.add(new Integer(ano));
+// }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList anosList = adp.getAnosListFromAnalises();
+ com.sun.rave.web.ui.model.Option[] anoOptions = new com.sun.rave.web.ui.model.Option[anosList.size()+1];
+ anoOptions[0] = new Option("", "");
+ ListIterator iter = anosList.listIterator();
+ int i = 1;
+ while(iter.hasNext())
+ {
+ Integer ano = (Integer) iter.next();
+
+ anoOptions[i] = new Option(ano, ano.toString());
+ i++;
+ }
+ getSessionBean1().setAnoOptions(anoOptions);
+ Calendar cal = new GregorianCalendar();
+ int year = cal.get(Calendar.YEAR);
+ //drpAno.setSelected( new Integer(year) );
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+ private void fillMesDropDown()
+ {
+ com.sun.rave.web.ui.model.Option[] mesOptions = new com.sun.rave.web.ui.model.Option[13];
+ mesOptions[0] = new Option("", "");
+ mesOptions[1] = new Option(new Integer(1), "Janeiro");
+ mesOptions[2] = new Option(new Integer(2), "Fevereiro");
+ mesOptions[3] = new Option(new Integer(3), "Março");
+ mesOptions[4] = new Option(new Integer(4), "Abril");
+ mesOptions[5] = new Option(new Integer(5), "Maio");
+ mesOptions[6] = new Option(new Integer(6), "Junho");
+ mesOptions[7] = new Option(new Integer(7), "Julho");
+ mesOptions[8] = new Option(new Integer(8), "Agosto");
+ mesOptions[9] = new Option(new Integer(9), "Setembro");
+ mesOptions[10] = new Option(new Integer(10), "Outubro");
+ mesOptions[11] = new Option(new Integer(11), "Novembro");
+ mesOptions[12] = new Option(new Integer(12), "Dezembro");
+ getSessionBean1().setMesOptions(mesOptions);
+ Calendar cal = new GregorianCalendar();
+ int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
+ //drpMes.setSelected( new Integer(month+1) );
+ }
+
+ private void fillDiaDropDown()
+ {
+ int ano = ( (Integer)drpAno.getSelected() ).intValue();
+ int mes = ( (Integer)drpMes.getSelected() ).intValue();
+ int dias = 0;
+ switch (mes) {
+ case 1: dias=31; break;
+ case 2:
+ GregorianCalendar cal = new GregorianCalendar();
+ if(cal.isLeapYear(ano))
+ {
+ dias = 29;
+ }
+ else
+ {
+ dias = 28;
+ }
+ break;
+ case 3: dias=31; break;
+ case 4: dias=30; break;
+ case 5: dias=31; break;
+ case 6: dias=30; break;
+ case 7: dias=31; break;
+ case 8: dias=31; break;
+ case 9: dias=30; break;
+ case 10: dias=31; break;
+ case 11: dias=30; break;
+ case 12: dias=31; break;
+ default: System.out.println("Invalid month.");break;
+ }
+
+ ArrayList diasList = new ArrayList();
+ for(int dia=1; diaReturn a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object ano = event.getNewValue();
+ if(ano == null)
+ {
+ lblMes.setVisible(false);
+ drpMes.setVisible(false);
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblMes.setVisible(true);
+ drpMes.setVisible(true);
+ fillMesDropDown();
+ }
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ Object mes = event.getNewValue();
+ if(mes == null)
+ {
+ lblDia.setVisible(false);
+ drpDia.setVisible(false);
+ }
+ else
+ {
+ lblDia.setVisible(true);
+ drpDia.setVisible(true);
+ fillDiaDropDown();
+ }
+ }
+
+ public String buttonFilterActual_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateActual.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORActual.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORActual.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameActual.getText() != null )
+ {
+ nome = (( String ) textFilterNameActual.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList actualList = adp.searchAnalisesActualSeg(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ nome, visitaDateStr, POR,
+ getSessionBean1().getCurrentUser().getResponsavel_loja() );
+
+ table1.setRendered( true );
+ txtSearchMsg.setRendered( false );
+ getSessionBean1().getAnalisesActualDataProvider().setList( actualList );
+ }
+ catch( Exception e )
+ {
+ table1.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+ public String buttonFilterSeg_action()
+ {
+ Date visitaDate = ( Date ) calFilterDateSeg.getValue();
+ String visitaDateStr = null;
+ if ( visitaDate != null )
+ {
+ visitaDateStr = D_F.format( visitaDate );
+ }
+
+ String POR = null;
+ if ( textFilterPORSeg.getText() != null )
+ {
+ POR = ( ( String ) textFilterPORSeg.getText() ).trim();
+ if ( POR.length() == 0 )
+ {
+ POR = null;
+ }
+ }
+
+ String nome = null;
+ if ( textFilterNameSeg.getText() != null )
+ {
+ nome = (( String ) textFilterNameSeg.getText()).trim();
+ if( nome.length() == 0 )
+ {
+ nome = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList seguimentoList = adp.searchAnalisesSeguimentoSeg(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ nome, visitaDateStr, POR,
+ getSessionBean1().getCurrentUser().getResponsavel_loja() );
+
+ table2.setRendered( true );
+ txtSearchMsg.setRendered( false );
+ getSessionBean1().getAnalisesSeguimentoDataProvider().setList( seguimentoList );
+ }
+ catch( Exception e )
+ {
+ table2.setRendered( false );
+ txtSearchMsg.setRendered( true );
+ txtSearchMsg.setText( "Não foram encontrados registos para a sua pesquisa !" );
+ ErrorLogger.logException( e );
+ }
+
+ return null;
+ }
+
+ public String butPesquisar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ Object obAno = null;
+ Object obMes = null;
+ Object obDia = null;
+ try
+ {
+ obAno = drpAno.getSelected();
+ obMes = drpMes.getSelected();
+ obDia = drpDia.getSelected();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Integer ano = null;
+ Integer mes = null;
+ Integer dia = null;
+
+ if(obAno != null)
+ {
+ ano = (Integer) obAno;
+ }
+
+ if(obMes != null)
+ {
+ mes = (Integer) obMes;
+ }
+
+ if(obDia != null)
+ {
+ dia = (Integer) obDia;
+ }
+
+ String por = null;
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ }
+
+
+ String nome = null;
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //getSessionBean1().getAnalisesConcluidasDataProvider().setList(new ArrayList());
+ ArrayList concluidasList = adp.searchAanalisesConcluidasList(
+ getSessionBean1().getCurrentUser().getEstabelecimento_id(),
+ ano, mes, dia, por, nome, null );
+
+ table3.setRendered(true);
+ txtSearchMsg.setRendered(false);
+ getSessionBean1().getAnalisesConcluidasDataProvider().setList(concluidasList);
+ }
+ catch(Exception ex)
+ {
+ table3.setRendered(false);
+ txtSearchMsg.setRendered(true);
+ txtSearchMsg.setText("Não foram encontrados registos para a sua pesquisa !");
+ ErrorLogger.logException( ex );
+ }
+
+ return null;
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent vce) {
+ // TODO: Replace with your code
+
+ }
+
+// private String getPageFrom(String referer)
+// {
+// String pageFrom = referer.substring(referer.lastIndexOf("/")+1);
+// return pageFrom;
+// }
+
+ public String butNovaAnalise_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ getSessionBean1().setNavFrom("FormSeguranca");
+ getSessionBean1().setCurrentAnalise(null);
+ return "analise_acidente";
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente";
+ }
+
+ public String lnkDataAbertura_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente";
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente";
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente";
+ }
+
+ private AnaliseAcidente getTableActivosRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesActualDataProvider provider = (AnalisesActualDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+
+ }
+
+ public String lnkDataAberturaSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ private AnaliseAcidente getTableSeguimentoRowData()
+ {
+ RowKey rk = tableRowGroup2.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesSeguimentoDataProvider provider = (AnalisesSeguimentoDataProvider) tableRowGroup2.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ private AnaliseAcidente getTableConcluidasRowData()
+ {
+ RowKey rk = tableRowGroup3.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ AnalisesConcluidasDataProvider provider = (AnalisesConcluidasDataProvider) tableRowGroup3.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ AnaliseAcidente a = (AnaliseAcidente)list.get(k);
+ return a;
+ }
+
+ public String lnkEditUser_action() {
+ System.out.println("EDIT USER");
+ // TODO: Replace with your code
+ getSessionBean1().setNavFrom("FormSeguranca");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+ }
+
+ public String lnkDataConcluida_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkDataAberturaConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkNrConcluida_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkNomeConcluida_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkFase_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente";
+ }
+
+ public String lnkEstabelecimento_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente";
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkEstabelecimentoSeg_action() {
+ // TODO: Replace with your code
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkPor_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableActivosRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "analise_acidente"; }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableSeguimentoRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkPorConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkEstabConcluida_action() {
+ // TODO: Replace with your code
+
+ AnaliseAcidente a = getTableConcluidasRowData();
+ getSessionBean1().setCurrentAnalise(a);
+ getSessionBean1().setNavFrom("FormSeguranca");
+ return "view_analise";
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkAjuda_action() {
+ System.out.println("AJUDA");
+// // TODO: Replace with your code
+// 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;
+// }
+ return null;
+ }
+
+ private void showPdf(String pdfFilePath) throws Exception
+ {
+
+ File pdfFile = new File(pdfFilePath);
+ FileInputStream fis = new FileInputStream(pdfFile);
+ byte[] buf = new byte[(int)pdfFile.length()];
+ while ((fis.read(buf)) > 0)
+ {
+ //fos.write(buf, 0, buf.length);
+ }
+ fis.close();
+ FacesContext ctx = FacesContext.getCurrentInstance();
+ if (!ctx.getResponseComplete())
+ {
+ HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
+ String contentType = "application/pdf";
+ response.setContentType(contentType);
+ response.setHeader("Content-Disposition","attachment;filename=\"" + "Ajuda.pdf" + "\"");
+
+ ServletOutputStream out = response.getOutputStream();
+
+ //out.write(model.getInfo().getBytes());
+ out.write(buf, 0, buf.length);
+ out.flush();
+ out.close();
+ ctx.responseComplete();
+ ctx.release();
+ }
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+// Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+// FacesContext fc = getFacesContext().getCurrentInstance();
+// try
+// {
+// JSFUtils.redirect(fc, Global.PLANOS_ACTUACAO_URL + curUser);
+// }
+// catch(Exception ex)
+// {
+//
+// }
+ return null;
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ return null;
+ }
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/GestaoUtilizadores.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/GestaoUtilizadores.java
new file mode 100644
index 00000000..7af0eff2
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/GestaoUtilizadores.java
@@ -0,0 +1,1326 @@
+/*
+ * GestaoUtilizadores.java
+ *
+ * Created on November 30, 2007, 1:34 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.DropDown;
+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 com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.SingleSelectOptionsList;
+import db.providers.AnalisesDataProvider;
+import db.providers.UtilizadoresActivosListDataProvider;
+import db.providers.UtilizadoresDataProvider;
+import db.providers.UtilizadoresInactivosListDataProvider;
+import global.Global;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class GestaoUtilizadores extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridConcluidos1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridConcluidos1() {
+ return gridConcluidos1;
+ }
+
+ public void setGridConcluidos1(HtmlPanelGrid hpg) {
+ this.gridConcluidos1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private TextField txtPor = new TextField();
+
+ public TextField getTxtPor() {
+ return txtPor;
+ }
+
+ public void setTxtPor(TextField tf) {
+ this.txtPor = tf;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private PanelGroup groupPanelLogin = new PanelGroup();
+
+ public PanelGroup getGroupPanelLogin() {
+ return groupPanelLogin;
+ }
+
+ public void setGroupPanelLogin(PanelGroup groupPanelLogin) {
+ this.groupPanelLogin = groupPanelLogin;
+ }
+
+ private TextField txtLogin = new TextField();
+
+ public TextField getTxtLogin() {
+ return txtLogin;
+ }
+
+ public void setTxtLogin(TextField txtLogin) {
+ this.txtLogin = txtLogin;
+ }
+
+ private StaticText staticTextLogin = new StaticText();
+
+ public StaticText getStaticTextLogin() {
+ return staticTextLogin;
+ }
+
+ public void setStaticTextLogin(StaticText staticTextLogin) {
+ this.staticTextLogin = staticTextLogin;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private Button butPesquisar = new Button();
+
+ public Button getButPesquisar() {
+ return butPesquisar;
+ }
+
+ public void setButPesquisar(Button b) {
+ this.butPesquisar = b;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private Table table3 = new Table();
+
+ public Table getTable3() {
+ return table3;
+ }
+
+ public void setTable3(Table t) {
+ this.table3 = t;
+ }
+
+ private TableRowGroup tableRowGroup3 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup3() {
+ return tableRowGroup3;
+ }
+
+ public void setTableRowGroup3(TableRowGroup trg) {
+ this.tableRowGroup3 = trg;
+ }
+
+ private TableColumn tableColumn11 = new TableColumn();
+
+ public TableColumn getTableColumn11() {
+ return tableColumn11;
+ }
+
+ public void setTableColumn11(TableColumn tc) {
+ this.tableColumn11 = tc;
+ }
+
+ private Hyperlink lnkCategoriaActivos = new Hyperlink();
+
+ public Hyperlink getLnkCategoriaActivos() {
+ return lnkCategoriaActivos;
+ }
+
+ public void setLnkCategoriaActivos(Hyperlink h) {
+ this.lnkCategoriaActivos = h;
+ }
+
+ private TableColumn tableColumn13 = new TableColumn();
+
+ public TableColumn getTableColumn13() {
+ return tableColumn13;
+ }
+
+ public void setTableColumn13(TableColumn tc) {
+ this.tableColumn13 = tc;
+ }
+
+ private Hyperlink lnkPorActivos = new Hyperlink();
+
+ public Hyperlink getLnkPorActivos() {
+ return lnkPorActivos;
+ }
+
+ public void setLnkPorActivos(Hyperlink h) {
+ this.lnkPorActivos = h;
+ }
+
+ private TableColumn tableColumn14 = new TableColumn();
+
+ public TableColumn getTableColumn14() {
+ return tableColumn14;
+ }
+
+ public void setTableColumn14(TableColumn tc) {
+ this.tableColumn14 = tc;
+ }
+
+ private TableColumn tableColumnLogin = new TableColumn();
+
+ public TableColumn getTableColumnLogin() {
+ return tableColumnLogin;
+ }
+
+ public void setTableColumnLogin(TableColumn tableColumnLogin) {
+ this.tableColumnLogin = tableColumnLogin;
+ }
+
+ private Hyperlink lnkLoginActivos = new Hyperlink();
+
+ public Hyperlink getLnkLoginActivos() {
+ return lnkLoginActivos;
+ }
+
+ private TableColumn tableColumnLoginInactivos = new TableColumn();
+
+ public TableColumn getTableColumnLoginInactivos() {
+ return tableColumnLoginInactivos;
+ }
+
+ public void setTableColumnLoginInactivos(TableColumn tableColumnLoginInactivos) {
+ this.tableColumnLoginInactivos = tableColumnLoginInactivos;
+ }
+
+ private Hyperlink lnkLoginInactivos = new Hyperlink();
+
+ public Hyperlink getLnkLoginInactivos() {
+ return lnkLoginInactivos;
+ }
+
+ public void setLnkLoginInactivos(Hyperlink lnkLoginInactivos) {
+ this.lnkLoginInactivos = lnkLoginInactivos;
+ }
+
+
+
+ public void setLnkLoginActivos(Hyperlink lnkLoginActivos) {
+ this.lnkLoginActivos = lnkLoginActivos;
+ }
+
+
+
+ private Hyperlink lnkNomeActivos = new Hyperlink();
+
+ public Hyperlink getLnkNomeActivos() {
+ return lnkNomeActivos;
+ }
+
+ public void setLnkNomeActivos(Hyperlink h) {
+ this.lnkNomeActivos = h;
+ }
+
+ private TableColumn tableColumn15 = new TableColumn();
+
+ public TableColumn getTableColumn15() {
+ return tableColumn15;
+ }
+
+ public void setTableColumn15(TableColumn tc) {
+ this.tableColumn15 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimentoActivos = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoActivos() {
+ return lnkEstabelecimentoActivos;
+ }
+
+ public void setLnkEstabelecimentoActivos(Hyperlink h) {
+ this.lnkEstabelecimentoActivos = h;
+ }
+
+ private StaticText txtSearchMsg1 = new StaticText();
+
+ public StaticText getTxtSearchMsg1() {
+ return txtSearchMsg1;
+ }
+
+ public void setTxtSearchMsg1(StaticText st) {
+ this.txtSearchMsg1 = st;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private Table table1 = new Table();
+
+ public Table getTable1() {
+ return table1;
+ }
+
+ public void setTable1(Table t) {
+ this.table1 = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkPorInactivos = new Hyperlink();
+
+ public Hyperlink getLnkPorInactivos() {
+ return lnkPorInactivos;
+ }
+
+ public void setLnkPorInactivos(Hyperlink h) {
+ this.lnkPorInactivos = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNomeInactivos = new Hyperlink();
+
+ public Hyperlink getLnkNomeInactivos() {
+ return lnkNomeInactivos;
+ }
+
+ public void setLnkNomeInactivos(Hyperlink h) {
+ this.lnkNomeInactivos = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkCategoriaInactivos = new Hyperlink();
+
+ public Hyperlink getLnkCategoriaInactivos() {
+ return lnkCategoriaInactivos;
+ }
+
+ public void setLnkCategoriaInactivos(Hyperlink h) {
+ this.lnkCategoriaInactivos = h;
+ }
+
+ private TableColumn tableColumn4 = new TableColumn();
+
+ public TableColumn getTableColumn4() {
+ return tableColumn4;
+ }
+
+ public void setTableColumn4(TableColumn tc) {
+ this.tableColumn4 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimentoInactivos = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoInactivos() {
+ return lnkEstabelecimentoInactivos;
+ }
+
+ public void setLnkEstabelecimentoInactivos(Hyperlink h) {
+ this.lnkEstabelecimentoInactivos = h;
+ }
+
+ private StaticText txtSearchMsg2 = new StaticText();
+
+ public StaticText getTxtSearchMsg2() {
+ return txtSearchMsg2;
+ }
+
+ public void setTxtSearchMsg2(StaticText st) {
+ this.txtSearchMsg2 = st;
+ }
+
+ private DropDown drpEstabelecimentos = new DropDown();
+
+ public DropDown getDrpEstabelecimentos() {
+ return drpEstabelecimentos;
+ }
+
+ public void setDrpEstabelecimentos(DropDown dd) {
+ this.drpEstabelecimentos = dd;
+ }
+
+ private SingleSelectOptionsList drpEstabelecimentosDefaultOptions = new SingleSelectOptionsList();
+
+ public SingleSelectOptionsList getDrpEstabelecimentosDefaultOptions() {
+ return drpEstabelecimentosDefaultOptions;
+ }
+
+ public void setDrpEstabelecimentosDefaultOptions(SingleSelectOptionsList ssol) {
+ this.drpEstabelecimentosDefaultOptions = ssol;
+ }
+
+ //
+ boolean isPostback = false;
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Button butNovoUtilizador = new Button();
+
+ public Button getButNovoUtilizador() {
+ return butNovoUtilizador;
+ }
+
+ public void setButNovoUtilizador(Button b) {
+ this.butNovoUtilizador = b;
+ }
+
+ private HtmlPanelGrid gridMsg1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridMsg1() {
+ return gridMsg1;
+ }
+
+ public void setGridMsg1(HtmlPanelGrid hpg) {
+ this.gridMsg1 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+ /**
+ * Construct a new Page bean instance.
+ */
+ public GestaoUtilizadores() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("GestaoUtilizadores Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ else
+ {
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+
+ boolean userDeleted = getSessionBean1().isUserDeleted();
+
+ if(userDeleted)
+ {
+ getSessionBean1().setUserDeleted(false);
+ }
+
+ FacesContext fc = getFacesContext();
+ Map parameters = fc.getCurrentInstance().getExternalContext().getRequestParameterMap();
+ if(!pageFrom.matches("GestaoUtilizadores.jsp") || userDeleted || parameters.size() > 0)
+ {
+ isPostback = false;
+ }
+ else
+ {
+ isPostback = true;
+ }
+
+
+ }
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ @Override
+ public void prerender()
+ {
+ Utilizador u = getSessionBean1().getCurrentUser();
+ if(u.getTipo().intValue() != Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
+ {
+ lnkPlanosActuacao.setDisabled(true);
+ }
+
+ System.out.println("POSTBACK : " + isPostback);
+ if ( ! isPostback )
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ com.sun.rave.web.ui.model.Option[] listOptions = adp.getEstabelecimentosList( getSessionBean1().getCurrentUser().getEmpresa_id(), new Boolean(false));
+ listOptions[0].setLabel("-Todos-");
+ getSessionBean1().setEstabelecimentosOptions( listOptions );
+ drpEstabelecimentos.setSelected(new Integer(-1));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ if ( ! getSessionBean1().getIsSearchingUtilizadores() )
+ {
+ String isDirRh = "n";
+ if(getSessionBean1().getCurrentUser().getTipo().intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH) // Director geral rh
+ {
+ isDirRh = "y";
+ }
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ List< Utilizador > listUtilizadores = udp.getUtilizadoresList( null, null, null, null, "y", isDirRh );
+// List< Utilizador > listUtilizadores = udp.getUtilizadoresList( null, null, null, "y", isDirRh );
+ getSessionBean1().getUtilizadoresActivosListDataProvider().setList( listUtilizadores );
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ List< Utilizador > listUtilizadores = udp.getUtilizadoresList( null, null, null, null, "n", isDirRh );
+// List< Utilizador > listUtilizadores = udp.getUtilizadoresList( null, null, null, "n", isDirRh );
+ getSessionBean1().getUtilizadoresInactivosListDataProvider().setList( listUtilizadores );
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().getUtilizadoresInactivosListDataProvider().setList( new LinkedList() );
+ table1.setRendered(false);
+ }
+ }
+
+ }
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+
+ }
+
+ public String butNovaAnalise_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String lnkDataAcidente_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNr_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkPor_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeAcidentado_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkFase_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkDataAcidenteSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNrSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkPorSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkNomeAcidentadoSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkFaseSeg_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public void drpAno_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpMes_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpDia_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butPesquisar_action()
+ {
+ String por = null;
+ String nome = null;
+ Integer estabelecimento_id = null;
+ String login = null;
+
+ if(txtPor.getText() != null)
+ {
+ por = (String) txtPor.getText();
+ if(por.trim().length() == 0)
+ {
+ por = null;
+ }
+ else
+ {
+ por = por.toLowerCase();
+ }
+ }
+
+ if(txtNome.getText() != null)
+ {
+ nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ nome = null;
+ }
+ else
+ {
+ nome = nome.toLowerCase();
+ }
+ }
+
+ if ( txtLogin.getText() != null )
+ {
+ login = ( String ) txtLogin.getText();
+ if ( login == null || "".equals( login.trim() ) )
+ {
+ login = null;
+ }
+ else
+ {
+ login = login.toLowerCase();
+ }
+ }
+
+ estabelecimento_id = (Integer) drpEstabelecimentos.getSelected();
+ if(estabelecimento_id.intValue() == -1)
+ {
+ estabelecimento_id = null;
+ }
+
+ String isDirRh = "n";
+
+ if(getSessionBean1().getCurrentUser().getTipo().intValue() == 7) //director geral rh
+ {
+ isDirRh = "y";
+ }
+
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ getSessionBean1().setIsSearchingUtilizadores( true );
+ List< Utilizador > listUtilizadores = udp.getUtilizadoresList( por, nome, login, estabelecimento_id, "y", isDirRh );
+// List< Utilizador > listUtilizadores = udp.getUtilizadoresList( por, nome, estabelecimento_id, "y", isDirRh );
+ getSessionBean1().getUtilizadoresActivosListDataProvider().setList( listUtilizadores );
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().getUtilizadoresActivosListDataProvider().setList( new LinkedList< Utilizador >() );
+ }
+
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ getSessionBean1().setIsSearchingUtilizadores( true );
+ List< Utilizador > listUtilizadores = udp.getUtilizadoresList( por, nome, login, estabelecimento_id, "n", isDirRh );
+// List< Utilizador > listUtilizadores = udp.getUtilizadoresList( por, nome, estabelecimento_id, "n", isDirRh );
+ getSessionBean1().getUtilizadoresInactivosListDataProvider().setList( listUtilizadores );
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().getUtilizadoresInactivosListDataProvider().setList( new LinkedList< Utilizador >() );
+ }
+
+ return null;
+ }
+
+ public String lnkPorActivos_action()
+ {
+ Utilizador u = getUtilizadorActivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkNomeActivos_action()
+ {
+ Utilizador u = getUtilizadorActivoRowData();
+ System.out.println("UTILIZADOR ID : " + u.getId());
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkLoginActivos_action()
+ {
+ Utilizador u = getUtilizadorActivoRowData();
+ getSessionBean1().setEditUser( u );
+ getSessionBean1().setModoEdicaoUtilizador( "edit" );
+ getSessionBean1().setNavFrom( "GestaoUtilizadores" );
+ return "user_fields";
+ }
+
+ public String lnkCategoriaActivos_action()
+ {
+ Utilizador u = getUtilizadorActivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkEstabelecimentosActivos_action()
+ {
+ Utilizador u = getUtilizadorActivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ private Utilizador getUtilizadorActivoRowData()
+ {
+ RowKey rk = tableRowGroup3.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ UtilizadoresActivosListDataProvider provider = (UtilizadoresActivosListDataProvider) tableRowGroup3.getSourceData();
+ List< Utilizador > list = ( List< Utilizador > ) provider.getList();
+ Utilizador u = list.get( k );
+ return u;
+ }
+
+
+ public String lnkPorInactivos_action()
+ {
+ Utilizador u = getUtilizadorInactivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkNomeInactivos_action() {
+ // TODO: Replace with your code
+ Utilizador u = getUtilizadorInactivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkLoginInactivos_action()
+ {
+ Utilizador u = getUtilizadorInactivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkCategoriaInactivos_action() {
+ // TODO: Replace with your code
+ Utilizador u = getUtilizadorInactivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ public String lnkEstabelecimentoInactivos_action() {
+ // TODO: Replace with your code
+ Utilizador u = getUtilizadorInactivoRowData();
+ getSessionBean1().setEditUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setNavFrom("GestaoUtilizadores");
+ return "user_fields";
+ }
+
+ private Utilizador getUtilizadorInactivoRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ UtilizadoresInactivosListDataProvider provider = (UtilizadoresInactivosListDataProvider) tableRowGroup1.getSourceData();
+ List< Utilizador > list = ( List< Utilizador > ) provider.getList();
+ Utilizador u = list.get( k );
+ return u;
+ }
+
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String butNovoUtilizador_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return "novo_utilizador";
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ String nav_from = getSessionBean1().getNavFrom();
+ Integer tipo_utilizador = getSessionBean1().getCurrentUser().getTipo();
+ if(tipo_utilizador.intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
+ {
+ return "form_dir_siprp";
+ }
+ else if( tipo_utilizador.intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH )
+ {
+ return "form_dir_ger_rh";
+ }
+ return null;
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Header.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Header.java
new file mode 100644
index 00000000..c76d8289
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Header.java
@@ -0,0 +1,130 @@
+/*
+ * Header.java
+ *
+ * Created on September 19, 2007, 10:14 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
+import javax.faces.FacesException;
+import utils.Utils;
+
+/**
+ * Fragment bean that corresponds to a similarly named JSP page
+ * fragment. This class contains component definitions (and initialization
+ * code) for all components that you have defined on this fragment, as well as
+ * lifecycle methods and event handlers where you may add behavior
+ * to respond to incoming events.
+ */
+public class Header extends AbstractFragmentBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init() throws Exception {
+ }
+ //
+
+ public Header() {
+ }
+
+ /**
+ * Callback method that is called whenever a page containing
+ * this page fragment is navigated to, either directly via a URL,
+ * or indirectly via page navigation. Override this method to acquire
+ * resources that will be needed for event handlers and lifecycle methods.
+ *
+ * The default implementation does nothing.
+ */
+ 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
+
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("Page1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called. Override this
+ * method to release resources acquired in the init()
+ * resources that will be needed for event handlers and lifecycle methods.
+ *
+ * The default implementation does nothing.
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+ return null;
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), false );
+ return null;
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/LoadImage.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/LoadImage.java
new file mode 100644
index 00000000..b94b260a
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/LoadImage.java
@@ -0,0 +1,475 @@
+/*
+ * LoadImage.java
+ *
+ * Created on September 26, 2007, 5:36 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+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.Html;
+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 com.sun.rave.web.ui.component.Upload;
+import com.sun.rave.web.ui.model.UploadedFile;
+import global.Global;
+import java.io.File;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.servlet.ServletContext;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class LoadImage extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 gridLayout = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridLayout() {
+ return gridLayout;
+ }
+
+ public void setGridLayout(HtmlPanelGrid hpg) {
+ this.gridLayout = hpg;
+ }
+
+ private StaticText staticText1 = new StaticText();
+
+ public StaticText getStaticText1() {
+ return staticText1;
+ }
+
+ public void setStaticText1(StaticText st) {
+ this.staticText1 = st;
+ }
+
+ private Upload fileUpload1 = new Upload();
+
+ public Upload getFileUpload1() {
+ return fileUpload1;
+ }
+
+ public void setFileUpload1(Upload u) {
+ this.fileUpload1 = u;
+ }
+
+ //
+ /**
+ * Construct a new Page bean instance.
+ */
+
+ private String realImageFilePath;
+ //private static final String IMAGE_URL = "/resources/image-file";
+ //private String IMAGE_URL = "/resources/images";
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private Button butUpload = new Button();
+
+ public Button getButUpload() {
+ return butUpload;
+ }
+
+ public void setButUpload(Button b) {
+ this.butUpload = b;
+ }
+
+ private Button butCancelar = new Button();
+
+ public Button getButCancelar() {
+ return butCancelar;
+ }
+
+ public void setButCancelar(Button b) {
+ this.butCancelar = b;
+ }
+ public LoadImage() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("LoadImage Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ else
+ {
+
+ getSessionBean1().setImageName(null);
+ ServletContext theApplicationsServletContext =
+ (ServletContext) this.getExternalContext().getContext();
+ //this.realImageFilePath = theApplicationsServletContext.getRealPath(IMAGE_URL);
+ //this.realImageFilePath = theApplicationsServletContext.getRealPath(Global.IMAGE_FOLDER);
+ try
+ {
+ realImageFilePath = Global.IMAGE_FOLDER + "/tmp" + getSessionBean1().getCurrentUser().getLogin();
+ File f = new File(realImageFilePath);
+ f.mkdir();
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+
+
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ //String uploadedFileName = (String) this.txtFileName.getValue();
+ //if ( uploadedFileName != null ) {
+// IMAGE_URL += getSessionBean1().getImageName();
+// System.out.println("IMAGE URL : " + IMAGE_URL);
+ //image1.setUrl(IMAGE_URL);
+// }
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), false );
+ return null;
+ }
+
+ public String lnkNome_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkDataNascimento_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String butCancelar_action() {
+ getSessionBean1().setImageName(null);
+ return "analise_acidente";
+ }
+
+ public String butUpload_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ //realImageFilePath += "/tmp" + getSessionBean1().getCurrentUser().getLogin();
+ System.out.println("REAL IMAGE FILE PATH : " + realImageFilePath);
+ File fdir = new File(realImageFilePath);
+ System.out.println("FDIR : " + fdir);
+
+
+ UploadedFile uploadedFile = fileUpload1.getUploadedFile();
+ if(uploadedFile != null)
+ {
+
+ String uploadedFileName = uploadedFile.getOriginalName();
+
+ // Some browsers return complete path name, some don't
+ // Make sure we only have the file name
+ // First, try forward slash
+ int index = uploadedFileName.lastIndexOf('/');
+ String justFileName;
+ if ( index >= 0) {
+ justFileName = uploadedFileName.substring( index + 1 );
+ } else {
+ // Try backslash
+ index = uploadedFileName.lastIndexOf('\\');
+ if (index >= 0) {
+ justFileName = uploadedFileName.substring( index + 1 );
+ } else {
+ // No forward or back slashes
+ justFileName = uploadedFileName;
+ }
+ }
+ //justFileName = justFileName.substring(0, justFileName.lastIndexOf('.'));
+ int firstImageNr = getFirstImageNr().intValue();
+ File files[] = fdir.listFiles();
+ // realImageFilePath += "/" + justFileName;
+ System.out.println("FILES : " + files);
+
+ int imageName = firstImageNr + files.length + 1;
+ justFileName = new Integer(imageName).toString();
+
+ if(imageName < 10)
+ {
+ justFileName = "0" + justFileName;
+ }
+ //this.txtFileName.setValue(justFileName);
+ Long uploadedFileSize = new Long(uploadedFile.getSize());
+ //this.txtFileSize.setValue(uploadedFileSize);
+ String uploadedFileType = uploadedFile.getContentType();
+ //this.txtFileType.setValue(uploadedFileType);
+ if ( uploadedFileType.equals("image/jpeg")
+ || uploadedFileType.equals("image/pjpeg")
+ || uploadedFileType.equals("image/gif")
+ || uploadedFileType.equals("image/png")
+ || uploadedFileType.equals("image/x-png")) {
+ try {
+
+ realImageFilePath += "/" + justFileName;
+ File file = new File(this.realImageFilePath);
+ uploadedFile.write(file);
+ getSessionBean1().setImageName(justFileName);
+ //getSessionBean1().setMsg("Ficheiro carregado !");
+ } catch (Exception ex) {
+ ErrorLogger.logException( ex );
+ getSessionBean1().setMsg("Não foi possivel carregar o ficheiro !");
+ return null;
+ }
+ } else {
+ getSessionBean1().setMsg("Tem de seleccionar um ficheiro do tipo JPEG, PJPEG, GIF, PNG, ou X-PNG !");
+ new File(this.realImageFilePath).delete();
+ return null;
+ }
+ }
+ else
+ {
+ getSessionBean1().setImageName(null);
+ }
+
+ return "analise_acidente";
+ }
+
+ private Integer getFirstImageNr()
+ {
+ if(getSessionBean1().getCurrentAnalise() == null)
+ {
+ return new Integer(0);
+ }
+ else
+ {
+ String folderName = getSessionBean1().getCurrentAnalise().getAnalise_nr().substring(0,2) + getSessionBean1().getCurrentAnalise().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 fdir = new File(imageFileFolder);
+ int nr = 0;
+ if(fdir.exists())
+ {
+ File files[] = fdir.listFiles();
+ for(int i=0; i < files.length; i++)
+ {
+ String nr_str = files[i].getName();
+ int i_nr = Integer.parseInt(nr_str);
+ if(i_nr > nr)
+ {
+ nr = i_nr;
+ }
+ }
+ return new Integer(nr);
+ }
+
+ return new Integer(0);
+ }
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Login.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Login.java
new file mode 100644
index 00000000..9318e035
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Login.java
@@ -0,0 +1,681 @@
+/*
+ * Page1.java
+ *
+ * Created on September 18, 2007, 3:14 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+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.Html;
+import com.sun.rave.web.ui.component.Hyperlink;
+import com.sun.rave.web.ui.component.Link;
+import com.sun.rave.web.ui.component.Page;
+import com.sun.rave.web.ui.component.PasswordField;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.TextField;
+import com.sun.rave.web.ui.model.Option;
+import db.providers.AnalisesDataProvider;
+import db.providers.UtilizadoresDataProvider;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class Login extends AbstractPageBean
+{
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel1() {
+ return gridPanel1;
+ }
+
+ public void setGridPanel1(HtmlPanelGrid hpg) {
+ this.gridPanel1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText1 = new StaticText();
+
+ public StaticText getStaticText1() {
+ return staticText1;
+ }
+
+ public void setStaticText1(StaticText st) {
+ this.staticText1 = st;
+ }
+
+ private TextField txtUtilizador = new TextField();
+
+ public TextField getTxtUtilizador() {
+ return txtUtilizador;
+ }
+
+ public void setTxtUtilizador(TextField tf) {
+ this.txtUtilizador = tf;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private PasswordField txtPassword = new PasswordField();
+
+ public PasswordField getTxtPassword() {
+ return txtPassword;
+ }
+
+ public void setTxtPassword(PasswordField pf) {
+ this.txtPassword = pf;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private Hyperlink lnkPassRecovery = new Hyperlink();
+
+ public Hyperlink getLnkPassRecovery() {
+ return lnkPassRecovery;
+ }
+
+ public void setLnkPassRecovery(Hyperlink h) {
+ this.lnkPassRecovery = h;
+ }
+
+ private Button butLogin = new Button();
+
+ public Button getButLogin() {
+ return butLogin;
+ }
+
+ public void setButLogin(Button b) {
+ this.butLogin = b;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ //
+ /**
+ * Construct a new Page bean instance.
+ */
+ public Login()
+ {
+// connect();
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ @Override
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("Page1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ @Override
+ public void preprocess()
+ {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ @Override
+ public void prerender()
+ {
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ @Override
+ public void destroy()
+ {
+
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1()
+ {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String butLogin_action()
+ {
+ String sRet = null;
+
+ if(txtUtilizador.getText() != null)
+ {
+ String utilizador = (String) txtUtilizador.getText();
+ if(utilizador.trim().length() > 0)
+ {
+ if(txtPassword.getText() != null)
+ {
+ String password = (String) txtPassword.getText();
+ if( password.trim().length() > 0 )
+ {
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+
+ Utilizador u = udp.getUtilizador( utilizador );
+ if( u != null && "y".equals( u.getActivo() ) )
+ {
+ if ( ! password.equals( u.getPassword() ) )
+ {
+ getSessionBean1().setMsg( "Palavra-chave inválida !" );
+ }
+ else
+ {
+ //if(u.getOwner_id().intValue() == 0 )
+
+ Utils.doLogin( getExternalContext(), u );
+
+
+
+
+
+ //Login Ok !
+// if(u.getPrimeiro_login().matches("y") || mustChangePassword(u))
+ if(u.getPrimeiro_login().matches("y") )
+ {
+ getSessionBean1().setMudarPassword(true);
+ getSessionBean1().setCurrentUser( u );
+ getSessionBean1().setNavFrom("Login");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ getSessionBean1().setLoggedIn(true);
+ initializeClock();
+ initializeDropDownOptions();
+ return "user";
+ }
+ try
+ {
+ Integer permissao = udp.getPermissionCode( u.getId() );
+ sRet = "form_seguranca";
+ if ( permissao != null )
+ {
+ if(permissao.intValue() == 1) //seguranca
+ {
+ if(u.getResponsavel_loja().matches("y"))
+ {
+ sRet = "acesso";
+ }
+ else
+ {
+ sRet = "form_seguranca";
+ }
+ }
+ else if(permissao.intValue() == 2) // rh
+ {
+ if(u.getResponsavel_loja().matches("y"))
+ {
+ sRet = "acesso";
+ }
+ else
+ {
+ sRet = "form_rh";
+ }
+ //sRet = "form_rh";
+ }
+ else if(permissao.intValue() == 3) // hs
+ {
+ //sRet = "form_hs";
+ sRet = "acesso";
+ }
+ else if(permissao.intValue() == 5) // medico
+ {
+ sRet = "form_medico";
+ }
+ else if(permissao.intValue() == 6) // gestor
+ {
+ //sRet = "form_gestor";
+ sRet = "acesso";
+ }
+ else if(permissao.intValue() == 7) // director geral rh
+ {
+ //sRet = "form_rh";
+ //sRet = "form_dir_ger_rh";
+ sRet = "acesso";
+ }
+ else if(permissao.intValue() == 8) // director siprp
+ {
+ //sRet = "form_dir_siprp";
+ sRet = "acesso";
+ }
+ else if(permissao.intValue() == 9) // director loja
+ {
+ sRet = "acesso";
+ }
+ else if(permissao.intValue() == 10) // director nacional de seguranca
+ {
+ sRet = "acesso";
+ }
+ }
+
+ u.setCodigo_permissao( permissao );
+ getSessionBean1().setCurrentUser( u );
+ getSessionBean1().setLoggedIn( true );
+ initializeClock();
+ initializeDropDownOptions();
+
+ // só para testes. retirar depois :
+ ///getSessionBean1().setModoEdicaoUtilizador("new");
+ ///sRet = "create_user";
+ }
+ catch ( Exception e1 )
+ {
+ ErrorLogger.logException( e1 );
+ getSessionBean1().setMsg("Não tem permissão para entrar na aplicação !");
+ }
+ }
+
+ }
+ else
+ {
+ getSessionBean1().setMsg("Utilizador inválido ! ");
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().setMsg("Utilizador inválido ! ");
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta palavra-chave !");
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta palavra-chave !");
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta utilizador !");
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta utilizador !");
+ }
+ return sRet;
+ }
+
+ public String lnkPassRecovery_action()
+ {
+ return "recuperar_password";
+ }
+
+// private void connect()
+// {
+// db.Db db = new db.Db();
+// try
+// {
+// Connection connection = db.connect();
+// }
+// catch(Exception ex)
+// {
+// getSessionBean1().setMsg("Erro na ligação à Base de Dados");
+// //***** terminate session
+// try
+// {
+// getExternalContext().redirect("faces/Erro.jsp");
+// }
+// catch ( Exception e )
+// {
+// ErrorLogger.logException( e );
+// }
+// ErrorLogger.logException( ex );
+// }
+// }
+
+ private void initializeClock()
+ {
+ com.sun.rave.web.ui.model.Option[] horasOptions = new com.sun.rave.web.ui.model.Option[25];
+ horasOptions[0] = new Option(new Integer(-1), "-");
+ int j = 0;
+ String str_j = "";
+ for(int i=1; i < 25; i++)
+ {
+ if(j < 10)
+ {
+ str_j = "0" + new Integer(j).toString();
+ }
+ else
+ {
+ str_j = new Integer(j).toString();
+ }
+ horasOptions[i] = new Option(new Integer(j), str_j);
+ j++;
+ }
+ getSessionBean1().setHorasOptions(horasOptions);
+
+ com.sun.rave.web.ui.model.Option[] minutosOptions = new com.sun.rave.web.ui.model.Option[13];
+ minutosOptions[0] = new Option(new Integer(-1), "-");
+ j = 0;
+ for(int i=1; i < 13; i++)
+ {
+ if(j < 10)
+ {
+ str_j = "0" + new Integer(j).toString();
+ }
+ else
+ {
+ str_j = new Integer(j).toString();
+ }
+ minutosOptions[i] = new Option(new Integer(j), str_j);
+ j += 5;
+ }
+ getSessionBean1().setMinutosOptions(minutosOptions);
+ }
+
+ private void initializeDropDownOptions()
+ {
+// UtilizadoresDataProvider udp = new UtilizadoresDataProvider();
+// try
+// {
+// getSessionBean1().setTecnicosOptions(udp.getTecnicosSaudeList());
+// //drpTipo.setSelected(new Integer(0));
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+
+// try
+// {
+// getSessionBean1().setMedicosOptions(udp.getMedicosList());
+// //drpTipo.setSelected(new Integer(0));
+// }
+// catch(Exception ex)
+// {
+// ErrorLogger.logException( ex );
+// }
+
+// AnalisesDataProvider adp = new AnalisesDataProvider();
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ getSessionBean1().setCausasOptions(adp.getCausasList());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ getSessionBean1().setDepartamentoOptions(adp.getDepartamentosList());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+
+ private boolean mustChangePassword(Utilizador u)
+ {
+ java.util.Date now = new java.util.Date();
+ Calendar cal = new GregorianCalendar();
+ cal.setTime(now);
+ int ano = cal.get(Calendar.YEAR);
+ int mes = cal.get(Calendar.MONTH);
+ int dia = cal.get(Calendar.DAY_OF_MONTH);
+
+ Calendar today = new GregorianCalendar(ano, mes, dia);
+ Calendar firstJan = new GregorianCalendar(ano, Calendar.JANUARY, 1);
+// Calendar firstJan = new GregorianCalendar(ano, Calendar.DECEMBER, 27);
+ Calendar firstJul = new GregorianCalendar(ano, Calendar.JULY, 1);
+
+ if(today.compareTo(firstJan) == 0 || today.compareTo(firstJul) == 0)
+ {
+ return true;
+ }
+
+ if(u.getData_password() == null)
+ {
+ return true;
+ }
+ else
+ {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ try
+ {
+ java.util.Date dt_password = sdf.parse(u.getData_password().toString());
+ Calendar cal_dt_password = new GregorianCalendar();
+ cal_dt_password.setTime(dt_password);
+ cal_dt_password.add(GregorianCalendar.MONTH, 6);
+ if(cal.compareTo(cal_dt_password) > 0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ }
+ return false;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/NewUser.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/NewUser.java
new file mode 100644
index 00000000..3b713ced
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/NewUser.java
@@ -0,0 +1,176 @@
+/*
+ * NewUser.java
+ *
+ * Created on December 4, 2007, 11:29 AM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package analiseacidentestrabalho;
+
+/**
+ *
+ * @author lluis
+ */
+public class NewUser {
+ private Integer tipo;
+ private String tipo_descricao;
+ private String nome;
+ private Integer estabelecimento;
+ private String estabelecimento_descricao;
+ private String login;
+ private String password;
+ private String email;
+
+ private String numero_mecanografico;
+ private Integer empresa_id;
+ private String numero_cedula;
+ private String cap;
+ private Integer funcionario_hst_id;
+ private Integer medico_id;
+ private String responsavel_loja;
+ private String gestor_geral;
+ private String activo;
+
+ /** Creates a new instance of NewUser */
+ public NewUser() {
+ }
+
+ public Integer getTipo() {
+ return tipo;
+ }
+
+ public void setTipo(Integer tipo) {
+ this.tipo = tipo;
+ }
+
+ public String getTipo_descricao() {
+ return tipo_descricao;
+ }
+
+ public void setTipo_descricao(String tipo_descricao) {
+ this.tipo_descricao = tipo_descricao;
+ }
+
+ public String getNome() {
+ return nome;
+ }
+
+ public void setNome(String nome) {
+ this.nome = nome;
+ }
+
+ public Integer getEstabelecimento() {
+ return estabelecimento;
+ }
+
+ public void setEstabelecimento(Integer estabelecimento) {
+ this.estabelecimento = estabelecimento;
+ }
+
+ public String getEstabelecimento_descricao() {
+ return estabelecimento_descricao;
+ }
+
+ public void setEstabelecimento_descricao(String estabelecimento_descricao) {
+ this.estabelecimento_descricao = estabelecimento_descricao;
+ }
+
+ public String getLogin() {
+ return login;
+ }
+
+ public void setLogin(String login) {
+ this.login = login;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getNumero_mecanografico() {
+ return numero_mecanografico;
+ }
+
+ public void setNumero_mecanografico(String numero_mecanografico) {
+ this.numero_mecanografico = numero_mecanografico;
+ }
+
+ public Integer getEmpresa_id() {
+ return empresa_id;
+ }
+
+ public void setEmpresa_id(Integer empresa_id) {
+ this.empresa_id = empresa_id;
+ }
+
+ public String getNumero_cedula() {
+ return numero_cedula;
+ }
+
+ public void setNumero_cedula(String numero_cedula) {
+ this.numero_cedula = numero_cedula;
+ }
+
+ public String getCap() {
+ return cap;
+ }
+
+ public void setCap(String cap) {
+ this.cap = cap;
+ }
+
+ public Integer getFuncionario_hst_id() {
+ return funcionario_hst_id;
+ }
+
+ public void setFuncionario_hst_id(Integer funcionario_hst_id) {
+ this.funcionario_hst_id = funcionario_hst_id;
+ }
+
+ public Integer getMedico_id() {
+ return medico_id;
+ }
+
+ public void setMedico_id(Integer medico_id) {
+ this.medico_id = medico_id;
+ }
+
+ public String getResponsavel_loja() {
+ return responsavel_loja;
+ }
+
+ public void setResponsavel_loja(String responsavel_loja) {
+ this.responsavel_loja = responsavel_loja;
+ }
+
+ public String getActivo() {
+ return activo;
+ }
+
+ public void setActivo(String activo) {
+ this.activo = activo;
+ }
+
+ public String getGestor_geral() {
+ return gestor_geral;
+ }
+
+ public void setGestor_geral(String gestor_geral) {
+ this.gestor_geral = gestor_geral;
+ }
+
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/NovoUtilizador.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/NovoUtilizador.java
new file mode 100644
index 00000000..be1283a0
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/NovoUtilizador.java
@@ -0,0 +1,2021 @@
+/*
+ * NovoUtilizador.java
+ *
+ * Created on December 3, 2007, 2:30 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Medico;
+import beans.Trabalhador;
+import beans.Utilizador;
+import com.evolute.utils.error.ErrorLogger;
+import com.sun.data.provider.RowKey;
+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.Checkbox;
+import com.sun.rave.web.ui.component.DropDown;
+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.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.RadioButton;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.Table;
+import com.sun.rave.web.ui.component.TableColumn;
+import com.sun.rave.web.ui.component.TableRowGroup;
+import com.sun.rave.web.ui.component.TextField;
+import db.providers.AnalisesDataProvider;
+import db.providers.TrabalhadoresListDataProvider;
+import global.Global;
+import java.util.ArrayList;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class NovoUtilizador extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridMsg1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridMsg1() {
+ return gridMsg1;
+ }
+
+ public void setGridMsg1(HtmlPanelGrid hpg) {
+ this.gridMsg1 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private Button butCancelar = new Button();
+
+ public Button getButCancelar() {
+ return butCancelar;
+ }
+
+ public void setButCancelar(Button b) {
+ this.butCancelar = b;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private Button butContinuar = new Button();
+
+ public Button getButContinuar() {
+ return butContinuar;
+ }
+
+ public void setButContinuar(Button b) {
+ this.butContinuar = b;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private HtmlPanelGrid gridCategoria = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridCategoria() {
+ return gridCategoria;
+ }
+
+ public void setGridCategoria(HtmlPanelGrid hpg) {
+ this.gridCategoria = hpg;
+ }
+
+ private HtmlPanelGrid gridUtilizador = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridUtilizador() {
+ return gridUtilizador;
+ }
+
+ public void setGridUtilizador(HtmlPanelGrid hpg) {
+ this.gridUtilizador = hpg;
+ }
+
+ private PanelGroup pgCatDirRh = new PanelGroup();
+
+ public PanelGroup getPgCatDirRh() {
+ return pgCatDirRh;
+ }
+
+ public void setPgCatDirRh(PanelGroup pg) {
+ this.pgCatDirRh = pg;
+ }
+
+ private RadioButton rbCatDirRh = new RadioButton();
+
+ public RadioButton getRbCatDirRh() {
+ return rbCatDirRh;
+ }
+
+ public void setRbCatDirRh(RadioButton rbCatGestao) {
+ this.rbCatDirRh = rbCatGestao;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+
+ private PanelGroup pgCatGestao = new PanelGroup();
+
+ public PanelGroup getPgCatGestao() {
+ return pgCatGestao;
+ }
+
+ public void setPgCatGestao(PanelGroup pg) {
+ this.pgCatGestao = pg;
+ }
+
+ private RadioButton rbCatGestao = new RadioButton();
+
+ public RadioButton getRbCatGestao() {
+ return rbCatGestao;
+ }
+
+ public void setRbCatGestao(RadioButton rbCatGestao) {
+ this.rbCatGestao = rbCatGestao;
+ }
+
+ private StaticText staticText12 = new StaticText();
+
+ public StaticText getStaticText12() {
+ return staticText12;
+ }
+
+ public void setStaticText12(StaticText st) {
+ this.staticText12 = st;
+ }
+
+ private PanelGroup pgCatGestaoAd = new PanelGroup();
+
+ public PanelGroup getPgCatGestaoAd() {
+ return pgCatGestaoAd;
+ }
+
+ public void setPgCatGestaoAd(PanelGroup pg) {
+ this.pgCatGestaoAd = pg;
+ }
+
+ private StaticText staticText13 = new StaticText();
+
+ public StaticText getStaticText13() {
+ return staticText13;
+ }
+
+ public void setStaticText13(StaticText st) {
+ this.staticText13 = st;
+ }
+
+ private Checkbox chkGestaoGeral = new Checkbox();
+
+ public Checkbox getChkGestaoGeral() {
+ return chkGestaoGeral;
+ }
+
+ public void setChkGestaoGeral(Checkbox c) {
+ this.chkGestaoGeral = c;
+ }
+
+ private PanelGroup pgCatHs = new PanelGroup();
+
+ public PanelGroup getPgCatHs() {
+ return pgCatHs;
+ }
+
+ public void setPgCatHs(PanelGroup pg) {
+ this.pgCatHs = pg;
+ }
+
+ private RadioButton rbCatHs = new RadioButton();
+
+ public RadioButton getRbCatHs() {
+ return rbCatHs;
+ }
+
+ public void setRbCatHs(RadioButton rbCatGestao) {
+ this.rbCatHs = rbCatGestao;
+ }
+
+ private StaticText staticText14 = new StaticText();
+
+ public StaticText getStaticText14() {
+ return staticText14;
+ }
+
+ public void setStaticText14(StaticText st) {
+ this.staticText14 = st;
+ }
+
+ private PanelGroup pgCatMed = new PanelGroup();
+
+ public PanelGroup getPgCatMed() {
+ return pgCatMed;
+ }
+
+ public void setPgCatMed(PanelGroup pg) {
+ this.pgCatMed = pg;
+ }
+
+ private RadioButton rbCatMed = new RadioButton();
+
+ public RadioButton getRbCatMed() {
+ return rbCatMed;
+ }
+
+ public void setRbCatMed(RadioButton rbCatGestao) {
+ this.rbCatMed = rbCatGestao;
+ }
+
+ private StaticText staticText15 = new StaticText();
+
+ public StaticText getStaticText15() {
+ return staticText15;
+ }
+
+ public void setStaticText15(StaticText st) {
+ this.staticText15 = st;
+ }
+
+ private PanelGroup pgCatRh = new PanelGroup();
+
+ public PanelGroup getPgCatRh() {
+ return pgCatRh;
+ }
+
+ public void setPgCatRh(PanelGroup pg) {
+ this.pgCatRh = pg;
+ }
+
+ private RadioButton rbCatRh = new RadioButton();
+
+ public RadioButton getRbCatRh() {
+ return rbCatRh;
+ }
+
+ public void setRbCatRh(RadioButton rbCatGestao) {
+ this.rbCatRh = rbCatGestao;
+ }
+
+ private StaticText staticText16 = new StaticText();
+
+ public StaticText getStaticText16() {
+ return staticText16;
+ }
+
+ public void setStaticText16(StaticText st) {
+ this.staticText16 = st;
+ }
+
+ private PanelGroup pgCatRhAd = new PanelGroup();
+
+ public PanelGroup getPgCatRhAd() {
+ return pgCatRhAd;
+ }
+
+ public void setPgCatRhAd(PanelGroup pg) {
+ this.pgCatRhAd = pg;
+ }
+
+ private StaticText staticText17 = new StaticText();
+
+ public StaticText getStaticText17() {
+ return staticText17;
+ }
+
+ public void setStaticText17(StaticText st) {
+ this.staticText17 = st;
+ }
+
+ private Checkbox chkRhResp = new Checkbox();
+
+ public Checkbox getChkRhResp() {
+ return chkRhResp;
+ }
+
+ public void setChkRhResp(Checkbox c) {
+ this.chkRhResp = c;
+ }
+
+ private PanelGroup pgCatSeg = new PanelGroup();
+
+ public PanelGroup getPgCatSeg() {
+ return pgCatSeg;
+ }
+
+ public void setPgCatSeg(PanelGroup pg) {
+ this.pgCatSeg = pg;
+ }
+
+ private RadioButton rbCatSeg = new RadioButton();
+
+ public RadioButton getRbCatSeg() {
+ return rbCatSeg;
+ }
+
+ public void setRbCatSeg(RadioButton rbCatGestao) {
+ this.rbCatSeg = rbCatGestao;
+ }
+
+ private StaticText staticText18 = new StaticText();
+
+ public StaticText getStaticText18() {
+ return staticText18;
+ }
+
+ public void setStaticText18(StaticText st) {
+ this.staticText18 = st;
+ }
+
+ private PanelGroup pgCatSegAd = new PanelGroup();
+
+ public PanelGroup getPgCatSegAd() {
+ return pgCatSegAd;
+ }
+
+ public void setPgCatSegAd(PanelGroup pg) {
+ this.pgCatSegAd = pg;
+ }
+
+ private StaticText staticText19 = new StaticText();
+
+ public StaticText getStaticText19() {
+ return staticText19;
+ }
+
+ public void setStaticText19(StaticText st) {
+ this.staticText19 = st;
+ }
+
+ private Checkbox chkSegResp = new Checkbox();
+
+ public Checkbox getChkSegResp() {
+ return chkSegResp;
+ }
+
+ public void setChkSegResp(Checkbox c) {
+ this.chkSegResp = c;
+ }
+
+ private HtmlPanelGrid gridTrabalhadores = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridTrabalhadores() {
+ return gridTrabalhadores;
+ }
+
+ public void setGridTrabalhadores(HtmlPanelGrid hpg) {
+ this.gridTrabalhadores = hpg;
+ }
+
+ private StaticText txtSearchMsg1 = new StaticText();
+
+ public StaticText getTxtSearchMsg1() {
+ return txtSearchMsg1;
+ }
+
+ public void setTxtSearchMsg1(StaticText st) {
+ this.txtSearchMsg1 = st;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private TextField txtNrMecanografico = new TextField();
+
+ public TextField getTxtNrMecanografico() {
+ return txtNrMecanografico;
+ }
+
+ public void setTxtNrMecanografico(TextField tf) {
+ this.txtNrMecanografico = tf;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private TextField txtNomeTrabalhador = new TextField();
+
+ public TextField getTxtNomeTrabalhador() {
+ return txtNomeTrabalhador;
+ }
+
+ public void setTxtNomeTrabalhador(TextField tf) {
+ this.txtNomeTrabalhador = tf;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private Button butProcurarTrab = new Button();
+
+ public Button getButProcurarTrab() {
+ return butProcurarTrab;
+ }
+
+ public void setButProcurarTrab(Button b) {
+ this.butProcurarTrab = b;
+ }
+
+ private Table tblTrabalhadores = new Table();
+
+ public Table getTblTrabalhadores() {
+ return tblTrabalhadores;
+ }
+
+ public void setTblTrabalhadores(Table t) {
+ this.tblTrabalhadores = t;
+ }
+
+ private TableRowGroup tableRowGroup1 = new TableRowGroup();
+
+ public TableRowGroup getTableRowGroup1() {
+ return tableRowGroup1;
+ }
+
+ public void setTableRowGroup1(TableRowGroup trg) {
+ this.tableRowGroup1 = trg;
+ }
+
+ private TableColumn tableColumn1 = new TableColumn();
+
+ public TableColumn getTableColumn1() {
+ return tableColumn1;
+ }
+
+ public void setTableColumn1(TableColumn tc) {
+ this.tableColumn1 = tc;
+ }
+
+ private Hyperlink lnkPOR = new Hyperlink();
+
+ public Hyperlink getLnkPOR() {
+ return lnkPOR;
+ }
+
+ public void setLnkPOR(Hyperlink h) {
+ this.lnkPOR = h;
+ }
+
+ private TableColumn tableColumn2 = new TableColumn();
+
+ public TableColumn getTableColumn2() {
+ return tableColumn2;
+ }
+
+ public void setTableColumn2(TableColumn tc) {
+ this.tableColumn2 = tc;
+ }
+
+ private Hyperlink lnkNomeTrabalhador = new Hyperlink();
+
+ public Hyperlink getLnkNomeTrabalhador() {
+ return lnkNomeTrabalhador;
+ }
+
+ public void setLnkNomeTrabalhador(Hyperlink h) {
+ this.lnkNomeTrabalhador = h;
+ }
+
+ private TableColumn tableColumn3 = new TableColumn();
+
+ public TableColumn getTableColumn3() {
+ return tableColumn3;
+ }
+
+ public void setTableColumn3(TableColumn tc) {
+ this.tableColumn3 = tc;
+ }
+
+ private Hyperlink lnkEstabelecimentoTrabalhador = new Hyperlink();
+
+ public Hyperlink getLnkEstabelecimentoTrabalhador() {
+ return lnkEstabelecimentoTrabalhador;
+ }
+
+ public void setLnkEstabelecimentoTrabalhador(Hyperlink h) {
+ this.lnkEstabelecimentoTrabalhador = h;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private StaticText stOutro = new StaticText();
+
+ public StaticText getStOutro() {
+ return stOutro;
+ }
+
+ public void setStOutro(StaticText st) {
+ this.stOutro = st;
+ }
+
+ private HtmlPanelGrid gridOutro = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridOutro() {
+ return gridOutro;
+ }
+
+ public void setGridOutro(HtmlPanelGrid hpg) {
+ this.gridOutro = hpg;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private TextField txtNomeOutro = new TextField();
+
+ public TextField getTxtNomeOutro() {
+ return txtNomeOutro;
+ }
+
+ public void setTxtNomeOutro(TextField tf) {
+ this.txtNomeOutro = tf;
+ }
+
+ private StaticText staticText20 = new StaticText();
+
+ public StaticText getStaticText20() {
+ return staticText20;
+ }
+
+ public void setStaticText20(StaticText st) {
+ this.staticText20 = st;
+ }
+
+ private DropDown drpEstabelecimentoOutro = new DropDown();
+
+ public DropDown getDrpEstabelecimentoOutro() {
+ return drpEstabelecimentoOutro;
+ }
+
+ public void setDrpEstabelecimentoOutro(DropDown dd) {
+ this.drpEstabelecimentoOutro = dd;
+ }
+
+ private HtmlPanelGrid gridTecnicosHs = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridTecnicosHs() {
+ return gridTecnicosHs;
+ }
+
+ public void setGridTecnicosHs(HtmlPanelGrid hpg) {
+ this.gridTecnicosHs = hpg;
+ }
+
+ private StaticText staticText21 = new StaticText();
+
+ public StaticText getStaticText21() {
+ return staticText21;
+ }
+
+ public void setStaticText21(StaticText st) {
+ this.staticText21 = st;
+ }
+
+ private DropDown drpNomeHs = new DropDown();
+
+ public DropDown getDrpNomeHs() {
+ return drpNomeHs;
+ }
+
+ public void setDrpNomeHs(DropDown dd) {
+ this.drpNomeHs = dd;
+ }
+
+ private StaticText staticText22 = new StaticText();
+
+ public StaticText getStaticText22() {
+ return staticText22;
+ }
+
+ public void setStaticText22(StaticText st) {
+ this.staticText22 = st;
+ }
+
+ private TextField txtCap = new TextField();
+
+ public TextField getTxtCap() {
+ return txtCap;
+ }
+
+ public void setTxtCap(TextField tf) {
+ this.txtCap = tf;
+ }
+
+ private HtmlPanelGrid gridMedicos = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridMedicos() {
+ return gridMedicos;
+ }
+
+ public void setGridMedicos(HtmlPanelGrid hpg) {
+ this.gridMedicos = hpg;
+ }
+
+ private StaticText staticText23 = new StaticText();
+
+ public StaticText getStaticText23() {
+ return staticText23;
+ }
+
+ public void setStaticText23(StaticText st) {
+ this.staticText23 = st;
+ }
+
+ private DropDown drpNomeMed = new DropDown();
+
+ public DropDown getDrpNomeMed() {
+ return drpNomeMed;
+ }
+
+ public void setDrpNomeMed(DropDown dd) {
+ this.drpNomeMed = dd;
+ }
+
+ private StaticText staticText24 = new StaticText();
+
+ public StaticText getStaticText24() {
+ return staticText24;
+ }
+
+ public void setStaticText24(StaticText st) {
+ this.staticText24 = st;
+ }
+
+ private DropDown drpEstabelecimentoMed = new DropDown();
+
+ public DropDown getDrpEstabelecimentoMed() {
+ return drpEstabelecimentoMed;
+ }
+
+ public void setDrpEstabelecimentoMed(DropDown dd) {
+ this.drpEstabelecimentoMed = dd;
+ }
+
+ //
+ boolean isPostback = false;
+
+ private HiddenField hidHighlight = new HiddenField();
+
+ public HiddenField getHidHighlight() {
+ return hidHighlight;
+ }
+
+ public void setHidHighlight(HiddenField hf) {
+ this.hidHighlight = hf;
+ }
+
+ private HiddenField hidClear = new HiddenField();
+
+ public HiddenField getHidClear() {
+ return hidClear;
+ }
+
+ public void setHidClear(HiddenField hf) {
+ this.hidClear = hf;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText25 = new StaticText();
+
+ public StaticText getStaticText25() {
+ return staticText25;
+ }
+
+ public void setStaticText25(StaticText st) {
+ this.staticText25 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText26 = new StaticText();
+
+ public StaticText getStaticText26() {
+ return staticText26;
+ }
+
+ public void setStaticText26(StaticText st) {
+ this.staticText26 = st;
+ }
+ private RadioButton rbCatDirNacSeg = new RadioButton();
+
+ public RadioButton getRbCatDirNacSeg() {
+ return rbCatDirNacSeg;
+ }
+
+ public void setRbCatDirNacSeg(RadioButton rb) {
+ this.rbCatDirNacSeg = rb;
+ }
+ private RadioButton rbCatDirLoja = new RadioButton();
+
+ public RadioButton getRbCatDirLoja() {
+ return rbCatDirLoja;
+ }
+
+ public void setRbCatDirLoja(RadioButton rb) {
+ this.rbCatDirLoja = rb;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ /**
+ * Construct a new Page bean instance.
+ */
+ public NovoUtilizador() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("NovoUtilizador Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ else
+ {
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if(!pageFrom.matches("NovoUtilizador.jsp"))
+ {
+ isPostback = false;
+ }
+ else
+ {
+ isPostback = true;
+ }
+
+ }
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ if(!isPostback)
+ {
+ getSessionBean1().setNewUser(null);
+ initializePage();
+ }
+ else
+ {
+ showPagePostback();
+ }
+
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ getSessionBean1().setNavFrom("NovoUtilizador");
+ getSessionBean1().setModoEdicaoUtilizador("edit");
+ return "user";
+
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ public void drpTipo_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpNome_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butCancelar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return "gestao_utilizadores";
+ }
+
+ public String butApagar_action()
+ {
+ return null;
+ }
+
+ public String butContinuar_action()
+ {
+ if(rbCatHs.getSelected() != null)
+ {
+ if(rbCatHs.getSelected().equals(new Boolean(true)))
+ {
+ if(drpNomeHs.getSelected().equals(new Integer(0) ))
+ {
+ getSessionBean1().setMsg("Falta nome do técnico de higiena e segurança!");
+ return null;
+ }
+ else if(txtCap.getText() == null)
+ {
+ getSessionBean1().setMsg("Falta cap!");
+ return null;
+ }
+ else
+ {
+ String cap = (String) txtCap.getText();
+ if(cap.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Falta cap!");
+ return null;
+ }
+ else
+ {
+ NewUser u = new NewUser();
+ u.setTipo(new Integer(3));
+ u.setNumero_mecanografico("");
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ u.setTipo_descricao(adp.getTipoDescricao(u.getTipo()));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ u.setFuncionario_hst_id((Integer) drpNomeHs.getSelected());
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ Integer tecnico_id = (Integer) drpNomeHs.getSelected();
+ u.setNome(Utils.unicodeToHTML(adp.getTecnicoSaudeNome(tecnico_id)));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ u.setCap(cap);
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ u.setResponsavel_loja("n");
+ u.setEstabelecimento(null);
+ getSessionBean1().setNewUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+ return "new_user_fields";
+ }
+ }
+ }
+ }
+ else if(rbCatMed.getSelected() != null)
+ {
+ if(rbCatMed.getSelected().equals(new Boolean(true)))
+ {
+ if(drpNomeMed.getSelected().equals(new Integer(0)))
+ {
+ getSessionBean1().setMsg("Falta nome do médico!");
+ return null;
+ }
+ else if(drpEstabelecimentoMed.getSelected().equals(new Integer(-1)))
+ {
+ getSessionBean1().setMsg("Falta estabelecimento!");
+ return null;
+ }
+ else
+ {
+ NewUser u = new NewUser();
+ u.setTipo(new Integer(5));
+ u.setNumero_mecanografico("");
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ u.setTipo_descricao(adp.getTipoDescricao(u.getTipo()));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ u.setMedico_id((Integer) drpNomeMed.getSelected());
+ //u.setNome(drpNomeMed.getLabel());
+ Medico m = null;
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ Integer medico_id = (Integer) drpNomeMed.getSelected();
+ m = adp.getMedico(medico_id);
+ u.setNome(m.getNome());
+ u.setNumero_cedula(m.getNumero_cedula());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ u.setEstabelecimento((Integer) drpEstabelecimentoMed.getSelected());
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ u.setEstabelecimento_descricao(adp.getEstabelecimentoNome(u.getEstabelecimento()));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ u.setResponsavel_loja("n");
+ getSessionBean1().setNewUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+ return "new_user_fields";
+ }
+ }
+ }
+ else //
+ {
+ if(getSessionBean1().getNewUser() == null)
+ {
+ boolean booOutro = false;
+ NewUser u = new NewUser();
+ if(txtNomeOutro.getText() != null)
+ {
+ String nome_outro = (String) txtNomeOutro.getText();
+ if(nome_outro.trim().length() > 0)
+ {
+ u.setNome(nome_outro);
+ booOutro = true;
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta designação!");
+ return null;
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta designação!");
+ return null;
+ }
+ Integer estabelecimento_outro = (Integer) drpEstabelecimentoOutro.getSelected();
+ System.out.println("ESTABELECIMENTO OUTRO : " + estabelecimento_outro.intValue());
+ if(estabelecimento_outro.intValue() == -1)
+ {
+ getSessionBean1().setMsg("Falta estabelecimento!");
+ return null;
+ }
+ else
+ {
+ u.setEstabelecimento(estabelecimento_outro);
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ u.setEstabelecimento_descricao(adp.getEstabelecimentoNome(estabelecimento_outro));
+ booOutro = true;
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+ u = setUserTipo(u);
+ u.setNumero_mecanografico("");
+ u.setResponsavel_loja("n");
+ u.setGestor_geral("n");
+ switch(u.getTipo().intValue())
+ {
+ case 1: //seg
+ if(chkSegResp.getSelected() != null)
+ {
+ if(chkSegResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ break;
+ case 2: //rh
+ if(chkRhResp.getSelected() != null)
+ {
+ if(chkRhResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ break;
+ case 6: //gestor
+ if(chkGestaoGeral.getSelected() != null)
+ {
+ if(chkGestaoGeral.getSelected().equals(new Boolean(true)))
+ {
+ u.setGestor_geral("y");
+ }
+ }
+
+ break;
+ }
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ if(booOutro)
+ {
+ getSessionBean1().setNewUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+ return "new_user_fields";
+ }
+ getSessionBean1().setNewUser(u);
+ }
+ }
+
+ if(getSessionBean1().getNewUser() == null)
+ {
+ getSessionBean1().setMsg("Tem de definir um novo utilizador !");
+ return null;
+ }
+ else
+ {
+
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+ return "new_user_fields";
+ }
+ }
+
+
+
+ private void initializePage()
+ {
+ getSessionBean1().getTrabalhadoresListDataProvider().setList(new ArrayList());
+ int tipo = getSessionBean1().getCurrentUser().getTipo().intValue();
+ switch(tipo)
+ {
+ case 7: //Director RH
+ pgCatDirRh.setRendered(false);
+ pgCatHs.setRendered(false);
+ pgCatMed.setRendered(false);
+ break;
+ }
+
+ //gridUtilizador.setRendered(false);
+ gridTrabalhadores.setStyleClass("hidden");
+ tblTrabalhadores.setStyleClass("hidden");
+ gridTecnicosHs.setStyleClass("hidden");
+ gridMedicos.setStyleClass("hidden");
+
+ rbCatDirRh.setSelected(null);
+ rbCatGestao.setSelected(null);
+ rbCatHs.setSelected(null);
+ rbCatMed.setSelected(null);
+ rbCatRh.setSelected(null);
+ rbCatSeg.setSelected(null);
+ rbCatDirNacSeg.setSelected(null);
+ rbCatDirLoja.setSelected(null);
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ com.sun.rave.web.ui.model.Option[] listMedOptions = adp.getEstabelecimentosList( new Integer(Global.AUCHAN), new Boolean(false));
+ listMedOptions[0].setLabel("-Seleccionar-");
+ com.sun.rave.web.ui.model.Option[] listOutroOptions = adp.getEstabelecimentosList( getSessionBean1().getCurrentUser().getEmpresa_id(), new Boolean(false));
+ listOutroOptions[0].setLabel("-Seleccionar-");
+
+
+ getSessionBean1().setEstabelecimentosMedOptions(listMedOptions);
+ getSessionBean1().setEstabelecimentosOutroOptions( listOutroOptions );
+ drpEstabelecimentoOutro.setSelected(new Integer(-1));
+ drpEstabelecimentoMed.setSelected(new Integer(-1));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ getSessionBean1().setTecnicosOptions(adp.getTecnicosSaudeList());
+ drpNomeHs.setSelected(new Integer(0));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ getSessionBean1().setMedicosOptions(adp.getMedicosList());
+ drpNomeMed.setSelected(new Integer(0));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+
+ public String butProcurarTrab_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ boolean booNrOk = false;
+ boolean booNomeOk = false;
+ String nr_mecano = null;
+ String nome = null;
+ if(txtNrMecanografico.getText() != null)
+ {
+ nr_mecano = (String) txtNrMecanografico.getText();
+ if(nr_mecano.trim().length() > 0)
+ {
+ booNrOk = true;
+ }
+ else
+ {
+ nr_mecano = null;
+ }
+ }
+
+ if(txtNomeTrabalhador.getText() != null)
+ {
+ nome = (String) txtNomeTrabalhador.getText();
+
+ if(nome.trim().length() > 0)
+ {
+ booNomeOk = true;
+ }
+ else
+ {
+ nome = null;
+ }
+ }
+
+ if(! booNrOk && !booNomeOk)
+ {
+ getSessionBean1().setMsg("Tem de preencher Numero Mecanográfico ou Nome");
+ return null;
+ }
+
+ Trabalhador t = null;
+ if(nome != null)
+ {
+ nome = utils.Utils.textToUnicode( nome.toUpperCase());
+ }
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ ArrayList list = adp.searchTrabalhador(getSessionBean1().getCurrentUser().getEmpresa_id(), nr_mecano, nome );
+// if(list.size() == 1)
+// {
+// t = (Trabalhador) list.get(0);
+// NewUser u = new NewUser();
+//
+// u.setNome(t.getNome());
+// u.setNumero_mecanografico(t.getNumero_mecanografico());
+// u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+// u.setEstabelecimento(t.getEstabelecimento_id());
+// u.setEstabelecimento_descricao(t.getEstabelecimento());
+// u = setUserTipo(u);
+// u.setResponsavel_loja("n");
+// if(u.getTipo().intValue() == 1) //seg
+// {
+// if(chkSegResp.getSelected() != null)
+// {
+// if(chkSegResp.getSelected().equals(new Boolean(true)))
+// {
+// u.setResponsavel_loja("y");
+// }
+// }
+// }
+// else if(u.getTipo().intValue() == 2) //rh
+// {
+// if(chkRhResp.getSelected() != null)
+// {
+// if(chkRhResp.getSelected().equals(new Boolean(true)))
+// {
+// u.setResponsavel_loja("y");
+// }
+// }
+// }
+// getSessionBean1().setNewUser(u);
+// }
+// else
+// {
+ //tblTrabalhadores.setRendered(true);
+ gridTrabalhadores.setStyleClass("");
+ tblTrabalhadores.setStyleClass("");
+ getSessionBean1().getTrabalhadoresListDataProvider().setList(list);
+// }
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Trabalhador inexistente !");
+ getSessionBean1().getTrabalhadoresListDataProvider().setList(new ArrayList());
+ tblTrabalhadores.setStyleClass("hidden");
+ ErrorLogger.logException( ex );
+ }
+ return null;
+ }
+
+ public String lnkPOR_action() {
+ // TODO: Replace with your code
+ Trabalhador t = getTrabalhadorRowData();
+ NewUser u = new NewUser();
+ u = setUserTipo(u);
+ u.setNome(t.getNome());
+ u.setNumero_mecanografico(t.getNumero_mecanografico());
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ u.setEstabelecimento(t.getEstabelecimento_id());
+ u.setEstabelecimento_descricao(t.getEstabelecimento());
+ u.setResponsavel_loja("n");
+ u.setGestor_geral("n");
+ if(u.getTipo().intValue() == 1) //seg
+ {
+ if(chkSegResp.getSelected() != null)
+ {
+ if(chkSegResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ else if(u.getTipo().intValue() == 2) //rh
+ {
+ if(chkRhResp.getSelected() != null)
+ {
+ if(chkRhResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ else if(u.getTipo().intValue() == 6) //gestor
+ {
+ if(chkGestaoGeral.getSelected() != null)
+ {
+ if(chkGestaoGeral.getSelected().equals(new Boolean(true)))
+ {
+ u.setGestor_geral("y");
+ }
+ }
+
+ }
+
+
+ getSessionBean1().setNewUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+
+ return "new_user_fields";
+ }
+
+ public String lnkNomeTrabalhador_action() {
+ // TODO: Replace with your code
+ Trabalhador t = getTrabalhadorRowData();
+ NewUser u = new NewUser();
+ u = setUserTipo(u);
+ u.setNome(t.getNome());
+ u.setNumero_mecanografico(t.getNumero_mecanografico());
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ u.setEstabelecimento(t.getEstabelecimento_id());
+ u.setEstabelecimento_descricao(t.getEstabelecimento());
+ u.setResponsavel_loja("n");
+ u.setGestor_geral("n");
+ if(u.getTipo().intValue() == 1) //seg
+ {
+ if(chkSegResp.getSelected() != null)
+ {
+ if(chkSegResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ else if(u.getTipo().intValue() == 2) //rh
+ {
+ if(chkRhResp.getSelected() != null)
+ {
+ if(chkRhResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ else if(u.getTipo().intValue() == 6) //gestor
+ {
+ if(chkGestaoGeral.getSelected() != null)
+ {
+ if(chkGestaoGeral.getSelected().equals(new Boolean(true)))
+ {
+ u.setGestor_geral("y");
+ }
+ }
+
+ }
+
+ getSessionBean1().setNewUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+
+ return "new_user_fields";
+ }
+
+ public String lnkEstabelecimentoTrabalhador_action() {
+ // TODO: Replace with your code
+ Trabalhador t = getTrabalhadorRowData();
+ NewUser u = new NewUser();
+ u = setUserTipo(u);
+ u.setNome(t.getNome());
+ u.setNumero_mecanografico(t.getNumero_mecanografico());
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ u.setEstabelecimento(t.getEstabelecimento_id());
+ u.setEstabelecimento_descricao(t.getEstabelecimento());
+ u.setResponsavel_loja("n");
+ u.setGestor_geral("n");
+ if(u.getTipo().intValue() == 1) //seg
+ {
+ if(chkSegResp.getSelected() != null)
+ {
+ if(chkSegResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ else if(u.getTipo().intValue() == 2) //rh
+ {
+ if(chkRhResp.getSelected() != null)
+ {
+ if(chkRhResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ else if(u.getTipo().intValue() == 6) //gestor
+ {
+ if(chkGestaoGeral.getSelected() != null)
+ {
+ if(chkGestaoGeral.getSelected().equals(new Boolean(true)))
+ {
+ u.setGestor_geral("y");
+ }
+ }
+
+ }
+
+ getSessionBean1().setNewUser(u);
+ getSessionBean1().setModoEdicaoUtilizador("new");
+ getSessionBean1().setNavFrom("NovoUtilizador");
+
+ return "new_user_fields";
+ }
+
+ private Trabalhador getTrabalhadorRowData()
+ {
+ RowKey rk = tableRowGroup1.getRowKey();
+ int k = Integer.parseInt(rk.getRowId());
+ TrabalhadoresListDataProvider provider = (TrabalhadoresListDataProvider) tableRowGroup1.getSourceData();
+ ArrayList list = (ArrayList) provider.getList();
+ Trabalhador t = (Trabalhador)list.get(k);
+ hidHighlight.setValue(rk.getRowId());
+ return t;
+ }
+
+ private NewUser setUserTipo(NewUser u)
+ {
+ if(rbCatDirNacSeg.getSelected() != null)
+ {
+ if(rbCatDirNacSeg.getSelected().equals(new Boolean(true)))
+ {
+ u.setTipo(new Integer(10));
+ }
+ }
+ if(rbCatDirLoja.getSelected() != null)
+ {
+ if(rbCatDirLoja.getSelected().equals(new Boolean(true)))
+ {
+ u.setTipo(new Integer(9));
+ }
+ }
+ if(rbCatDirRh.getSelected() != null)
+ {
+ if(rbCatDirRh.getSelected().equals(new Boolean(true)))
+ {
+ u.setTipo(new Integer(7));
+ }
+ }
+ if(rbCatGestao.getSelected() != null)
+ {
+ if(rbCatGestao.getSelected().equals(new Boolean(true)))
+ {
+ u.setTipo(new Integer(6));
+ }
+ }
+ if(rbCatRh.getSelected() != null)
+ {
+ if(rbCatRh.getSelected().equals(new Boolean(true)))
+ {
+ u.setTipo(new Integer(2));
+ }
+ }
+ if(rbCatSeg.getSelected() != null)
+ {
+ if(rbCatSeg.getSelected().equals(new Boolean(true)))
+ {
+ u.setTipo(new Integer(1));
+ }
+ }
+
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ u.setTipo_descricao(adp.getTipoDescricao(u.getTipo()));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ return u;
+ }
+
+ private void showPagePostback()
+ {
+ if(rbCatDirRh.getSelected() != null)
+ {
+ if(rbCatDirRh.getSelected().equals( new Boolean(true) ))
+ {
+ gridTrabalhadores.setStyleClass("");
+ return;
+ }
+ }
+
+ if(rbCatGestao.getSelected() != null)
+ {
+ if(rbCatGestao.getSelected().equals( new Boolean(true) ))
+ {
+ gridTrabalhadores.setStyleClass("");
+ return;
+ }
+ }
+
+ if(rbCatRh.getSelected() != null)
+ {
+ if(rbCatRh.getSelected().equals( new Boolean(true) ))
+ {
+ gridTrabalhadores.setStyleClass("");
+ return;
+ }
+ }
+ if(rbCatSeg.getSelected() != null)
+ {
+ if(rbCatSeg.getSelected().equals( new Boolean(true) ))
+ {
+ gridTrabalhadores.setStyleClass("");
+ return;
+ }
+ }
+
+ if(rbCatHs.getSelected() != null)
+ {
+ if(rbCatHs.getSelected().equals( new Boolean(true) ))
+ {
+ gridTecnicosHs.setStyleClass("");
+ return;
+ }
+ }
+
+ if(rbCatMed.getSelected() != null)
+ {
+ if(rbCatMed.getSelected().equals( new Boolean(true) ))
+ {
+ gridMedicos.setStyleClass("");
+ return;
+ }
+ }
+
+ }
+
+// public String getColumnStyle(){
+// TableRowDataProvider trdp = (TableRowDataProvider) getBean("currentRow");
+// RowKey rowKey = trdp.getTableRow();
+// System.out.println(rowKey);
+// if ((Integer.parseInt(rowKey.getRowId()) % 2) == 0){
+// return " ";
+// }
+// else {
+// return "background-color: #eeeeee";
+// }
+// }
+
+ private void setNewUser()
+ {
+
+ NewUser u = new NewUser();
+ u = setUserTipo(u);
+ u.setNumero_mecanografico("");
+ u.setResponsavel_loja("n");
+ u.setGestor_geral("n");
+ switch(u.getTipo().intValue())
+ {
+ case 1: //seg
+ if(chkSegResp.getSelected() != null)
+ {
+ if(chkSegResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ break;
+ case 2: //rh
+ if(chkRhResp.getSelected() != null)
+ {
+ if(chkRhResp.getSelected().equals(new Boolean(true)))
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ break;
+ case 6: //gestor
+ if(chkGestaoGeral.getSelected() != null)
+ {
+ if(chkGestaoGeral.getSelected().equals(new Boolean(true)))
+ {
+ u.setGestor_geral("y");
+ }
+ }
+
+ break;
+ }
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+
+ return "gestao_utilizadores";
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ Integer tipo_utilizador = getSessionBean1().getCurrentUser().getTipo();
+ if(tipo_utilizador.intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
+ {
+ return "form_dir_siprp";
+ }
+ else if(tipo_utilizador.intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH)
+ {
+ return "form_dir_ger_rh";
+ }
+
+ return null;
+ }
+
+ public void rbCatRh_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+ }
+
+ public void rbCatHs_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/RecuperarPassword.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/RecuperarPassword.java
new file mode 100644
index 00000000..8ff0e365
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/RecuperarPassword.java
@@ -0,0 +1,551 @@
+/*
+ * RecuperarPassword.java
+ *
+ * Created on September 19, 2007, 9:57 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Utilizador;
+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.Html;
+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 com.sun.rave.web.ui.component.TextField;
+import db.providers.UtilizadoresDataProvider;
+import global.Global;
+import java.util.Date;
+import java.util.Properties;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.mail.BodyPart;
+import javax.mail.Message;
+import javax.mail.Multipart;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMessage;
+import javax.mail.internet.MimeMultipart;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class RecuperarPassword extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 gridPanel1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel1() {
+ return gridPanel1;
+ }
+
+ public void setGridPanel1(HtmlPanelGrid hpg) {
+ this.gridPanel1 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText1 = new StaticText();
+
+ public StaticText getStaticText1() {
+ return staticText1;
+ }
+
+ public void setStaticText1(StaticText st) {
+ this.staticText1 = st;
+ }
+
+ private TextField txtUtilizador = new TextField();
+
+ public TextField getTxtUtilizador() {
+ return txtUtilizador;
+ }
+
+ public void setTxtUtilizador(TextField tf) {
+ this.txtUtilizador = tf;
+ }
+
+ private StaticText staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private TextField txtEmail = new TextField();
+
+ public TextField getTxtEmail() {
+ return txtEmail;
+ }
+
+ public void setTxtEmail(TextField tf) {
+ this.txtEmail = tf;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private PanelGroup groupPanel1 = new PanelGroup();
+
+ public PanelGroup getGroupPanel1() {
+ return groupPanel1;
+ }
+
+ public void setGroupPanel1(PanelGroup pg) {
+ this.groupPanel1 = pg;
+ }
+
+ private Button butCancelar = new Button();
+
+ public Button getButCancelar() {
+ return butCancelar;
+ }
+
+ public void setButCancelar(Button b) {
+ this.butCancelar = b;
+ }
+
+ private Button butOk = new Button();
+
+ public Button getButOk() {
+ return butOk;
+ }
+
+ public void setButOk(Button b) {
+ this.butOk = b;
+ }
+
+ //
+
+ /**
+ * Construct a new Page bean instance.
+ */
+ public RecuperarPassword() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("RecuperarPassword Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+// if (!getSessionBean1().isLoggedIn()) {
+// try {
+// getExternalContext().redirect("Login.jsp");
+// } catch(Exception e) {
+// // . . . handle exception . . .
+// }
+// }
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ @Override
+ public void preprocess()
+ {
+
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String butLogin_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return null;
+ }
+
+ public String butCancelar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+ return "login";
+ }
+
+ public String butOk_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+
+
+ if(fieldsValidationOk())
+ {
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+
+ String utilizador = (String) txtUtilizador.getText();
+ Utilizador u = udp.getUtilizador(utilizador);
+ String email = (String) txtEmail.getText();
+ if(u.getEmail().equals(email))
+ {
+ //send mail :
+ try
+ {
+ sendEmail(u.getEmail(), u.getLogin(), u.getPassword(), Global.ENDERECO_ENVIO);
+ getSessionBean1().setMsg("A sua password foi enviada para o seu email");
+ return "login";
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Erro no envio da password !");
+ ErrorLogger.logException( ex );
+ }
+
+ }
+ else
+ {
+ getSessionBean1().setMsg("Os dados não coincidem com os registos !");
+ }
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Utilizador inválido !");
+ }
+ }
+
+
+ return null;
+ }
+
+
+ private final String SMTP_HOST = "mail2.evolute.pt";
+ private final int SMTP_PORT = 587;
+
+ private final String mail_username = "acidentes.auchan@siprp.pt";
+ private final String mail_password = "EghRzS2l";
+
+ private void sendEmail(String emailTo, String login, String password, String admin_email) throws Exception
+ {
+ Properties props = new Properties();
+ //props.put("mail.transport.protocol", "smtp");
+ props.put("mail.smtp.host", SMTP_HOST );
+ props.put("mail.from", admin_email );
+ props.put("mail.smtp.auth", "true");
+ props.put("mail.smtp.user", mail_username );
+ props.put("mail.smtp.password", mail_password );
+ Session session1 = Session.getInstance(props);
+ Message msg = new MimeMessage(session1);
+
+// try
+// {
+ //Address Email_TO = new InternetAddress("myemail@bol.com.br");
+ msg.setFrom(new InternetAddress(admin_email));
+ InternetAddress[] address = {new InternetAddress(emailTo)};
+ msg.setRecipients(Message.RecipientType.TO, address);
+ msg.setSubject("Envio da password");
+ msg.setSentDate(new Date());
+ Multipart multipart = new MimeMultipart();
+ BodyPart msgBodyPart = new MimeBodyPart();
+ String html;
+ html=" ";
+ html+="";
+ html+="Envio da password de " + login + " :
";
+ html+="Password: " + password + "
";
+ html+="";
+ msgBodyPart.setContent(html, "text/html");
+ multipart.addBodyPart(msgBodyPart);
+ msg.setContent(multipart);
+
+// Transport.send(msg);
+ Transport t;
+ t = session1.getTransport( "smtp" );
+
+ t.connect( SMTP_HOST, SMTP_PORT, mail_username, mail_password );
+ t.sendMessage( msg, msg.getAllRecipients() );
+
+ t.close();
+ System.out.println("Email Enviado !!!! " + emailTo + ", " + login);
+// }
+// catch (Exception ex)
+// {
+// System.out.println("MAIL ERROR : " + ex.getMessage());
+// ErrorLogger.logException( ex );
+// }
+
+ }
+
+ private boolean fieldsValidationOk()
+ {
+ if(txtUtilizador.getText() != null)
+ {
+ String utilizador = (String) txtUtilizador.getText();
+ if(utilizador.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Falta utilizador !");
+ return false;
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta utilizador !");
+ return false;
+ }
+
+ if(txtEmail.getText() != null)
+ {
+ String email = (String) txtEmail.getText();
+ if(email.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Falta email !");
+ return false;
+ }
+ else
+ {
+ if(! Utils.isValidEmail(email))
+ {
+ getSessionBean1().setMsg("Email inválido !");
+ return false;
+ }
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Falta email !");
+ return false;
+ }
+
+ return true;
+ }
+
+// private boolean isValidEmail(String email){
+// boolean res = true;
+//
+// int indexOfAtChar=email.indexOf("@");
+//
+// if(indexOfAtChar > 0)
+// {
+// int indexOfDotChar =
+// email.indexOf(".",indexOfAtChar);
+// if(indexOfDotChar > 0)
+// {
+// res = true;
+// }
+// else
+// {
+// res = false;
+// }
+// }
+// else{
+// res = false;
+// }
+// return res;
+// }
+
+
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/RequestBean1.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/RequestBean1.java
new file mode 100644
index 00000000..66ece1e4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/RequestBean1.java
@@ -0,0 +1,100 @@
+/*
+ * RequestBean1.java
+ *
+ * Created on September 18, 2007, 3:14 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import com.sun.rave.web.ui.appbase.AbstractRequestBean;
+import javax.faces.FacesException;
+
+/**
+ * Request scope data bean for your application. Create properties
+ * here to represent data that should be made available across different
+ * pages in the same HTTP request, so that the page bean classes do not
+ * have to be directly linked to each other.
+ *
+ * An instance of this class will be created for you automatically,
+ * the first time your application evaluates a value binding expression
+ * or method binding expression that references a managed bean using
+ * this class.
+ */
+public class RequestBean1 extends AbstractRequestBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init() throws Exception {
+ }
+ //
+
+ /**
+ * Construct a new request data bean instance.
+ */
+ public RequestBean1() {
+ }
+
+ /**
+ * This method is called when this bean is initially added to
+ * request scope. Typically, this occurs as a result of evaluating
+ * a value binding or method binding expression, which utilizes the
+ * managed bean facility to instantiate this bean and store it into
+ * request scope.
+ *
+ * You may customize this method to allocate resources that are required
+ * for the lifetime of the current request.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("RequestBean1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * This method is called when this bean is removed from
+ * request scope. This occurs automatically when the corresponding
+ * HTTP response has been completed and sent to the client.
+ *
+ * You may customize this method to clean up resources allocated
+ * during the execution of the init() method, or
+ * at any later time during the lifetime of the request.
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/SessionBean1.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/SessionBean1.java
new file mode 100644
index 00000000..0c653e57
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/SessionBean1.java
@@ -0,0 +1,781 @@
+/*
+ * SessionBean1.java
+ *
+ * Created on September 18, 2007, 3:14 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Medico;
+import beans.Utilizador;
+import beans.Acidentado;
+import beans.AnaliseAcidente;
+import com.sun.rave.web.ui.appbase.AbstractSessionBean;
+import global.Global;
+import javax.faces.FacesException;
+import pagestate.AnaliseAcidenteTrabalhoState;
+
+/**
+ * Session scope data bean for your application. Create properties
+ * here to represent cached data that should be made available across
+ * multiple HTTP requests for an individual user.
+ *
+ * An instance of this class will be created for you automatically,
+ * the first time your application evaluates a value binding expression
+ * or method binding expression that references a managed bean using
+ * this class.
+ */
+public class SessionBean1 extends AbstractSessionBean
+{
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init() throws Exception {
+ }
+ //
+ private String logoEmpresaUrl = "";
+
+ private Boolean canAccessEstatisticas = false;
+
+ public Boolean getCanAccessEstatisticas()
+ {
+ if ( isLoggedIn() && getCurrentUser() != null && getCurrentUser().getTipo() != null )
+ {
+ int tipo = getCurrentUser().getTipo().intValue();
+
+ canAccessEstatisticas = tipo == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP || tipo == Global.TIPO_UTILIZADOR_HS;
+ }
+ return canAccessEstatisticas;
+ }
+
+ public void setCanAccessEstatisticas(Boolean canAccessEstatisticas) {
+ this.canAccessEstatisticas = canAccessEstatisticas;
+ }
+
+ private Boolean isSearchingUtilizadores = false;
+ /**
+ * Construct a new session data bean instance.
+ */
+ public SessionBean1()
+ {
+ msg = new String("");
+ currentUser = new Utilizador();
+ analisesActualDataProvider = new db.providers.AnalisesActualDataProvider();
+ analisesSeguimentoDataProvider = new db.providers.AnalisesSeguimentoDataProvider();
+ analisesConcluidasDataProvider = new db.providers.AnalisesConcluidasDataProvider();
+ trabalhadoresListDataProvider = new db.providers.TrabalhadoresListDataProvider();
+ setEstadosCorrecaoDataProvider(new db.providers.EstadosCorrecaoDataProvider());
+ utilizadoresActivosListDataProvider = new db.providers.UtilizadoresActivosListDataProvider();
+ utilizadoresInactivosListDataProvider = new db.providers.UtilizadoresInactivosListDataProvider();
+
+ setNavFrom("");
+ setAcidentado(null);
+ setCurrentAnalise(null);
+ setLoggedIn(false);
+
+ modoEdicaoUtilizador = "";
+ setIdSequence(1);
+ setNewUser(null);
+ setEditUser(null);
+ setUserDeleted(false);
+ setMudarPassword(false);
+ setFromAjuda(false);
+ setGravado(false);
+ setSubmetido(false);
+ setFromAnaliseDeletion(false);
+ setIeBug(false);
+ setCorrecao(null);
+ setCanAccessEstatisticas( false );
+ setIsSearchingUtilizadores( false );
+ }
+
+ /**
+ * This method is called when this bean is initially added to
+ * session scope. Typically, this occurs as a result of evaluating
+ * a value binding or method binding expression, which utilizes the
+ * managed bean facility to instantiate this bean and store it into
+ * session scope.
+ *
+ * You may customize this method to initialize and cache data values
+ * or resources that are required for the lifetime of a particular
+ * user session.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("SessionBean1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * This method is called when the session containing it is about to be
+ * passivated. Typically, this occurs in a distributed servlet container
+ * when the session is about to be transferred to a different
+ * container instance, after which the activate() method
+ * will be called to indicate that the transfer is complete.
+ *
+ * You may customize this method to release references to session data
+ * or resources that can not be serialized with the session itself.
+ */
+ public void passivate() {
+ }
+
+ /**
+ * This method is called when the session containing it was
+ * reactivated.
+ *
+ * You may customize this method to reacquire references to session
+ * data or resources that could not be serialized with the
+ * session itself.
+ */
+ public void activate() {
+ }
+
+ /**
+ * This method is called when this bean is removed from
+ * session scope. Typically, this occurs as a result of
+ * the session timing out or being terminated by the application.
+ *
+ * You may customize this method to clean up resources allocated
+ * during the execution of the init() method, or
+ * at any later time during the lifetime of the application.
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ private String msg;
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ private Utilizador currentUser;
+
+ public Utilizador getCurrentUser() {
+ return currentUser;
+ }
+
+ public void setCurrentUser(Utilizador currentUser) {
+ this.currentUser = currentUser;
+ setCanAccessEstatisticas( getCanAccessEstatisticas() );
+ }
+
+ private db.providers.AnalisesActualDataProvider analisesActualDataProvider;
+ private db.providers.AnalisesSeguimentoDataProvider analisesSeguimentoDataProvider;
+ private db.providers.AnalisesConcluidasDataProvider analisesConcluidasDataProvider;
+ private db.providers.TrabalhadoresListDataProvider trabalhadoresListDataProvider;
+ private db.providers.EstadosCorrecaoDataProvider estadosCorrecaoDataProvider;
+ private db.providers.UtilizadoresActivosListDataProvider utilizadoresActivosListDataProvider;
+ private db.providers.UtilizadoresInactivosListDataProvider utilizadoresInactivosListDataProvider;
+
+ public db.providers.AnalisesActualDataProvider getAnalisesActualDataProvider() {
+ return analisesActualDataProvider;
+ }
+
+ public void setAnalisesActualDataProvider(db.providers.AnalisesActualDataProvider analisesActualDataProvider) {
+ this.analisesActualDataProvider = analisesActualDataProvider;
+ }
+
+ public db.providers.AnalisesSeguimentoDataProvider getAnalisesSeguimentoDataProvider() {
+ return analisesSeguimentoDataProvider;
+ }
+
+ public void setAnalisesSeguimentoDataProvider(db.providers.AnalisesSeguimentoDataProvider analisesSeguimentoDataProvider) {
+ this.analisesSeguimentoDataProvider = analisesSeguimentoDataProvider;
+ }
+
+ public db.providers.AnalisesConcluidasDataProvider getAnalisesConcluidasDataProvider() {
+ return analisesConcluidasDataProvider;
+ }
+
+ public void setAnalisesConcluidasDataProvider(db.providers.AnalisesConcluidasDataProvider analisesConcluidasDataProvider) {
+ this.analisesConcluidasDataProvider = analisesConcluidasDataProvider;
+ }
+
+ public db.providers.TrabalhadoresListDataProvider getTrabalhadoresListDataProvider() {
+ return trabalhadoresListDataProvider;
+ }
+
+ public void setTrabalhadoresListDataProvider(db.providers.TrabalhadoresListDataProvider trabalhadoresListDataProvider) {
+ this.trabalhadoresListDataProvider = trabalhadoresListDataProvider;
+ }
+
+ public db.providers.EstadosCorrecaoDataProvider getEstadosCorrecaoDataProvider() {
+ return estadosCorrecaoDataProvider;
+ }
+
+ public void setEstadosCorrecaoDataProvider(db.providers.EstadosCorrecaoDataProvider estadosCorrecaoDataProvider) {
+ this.estadosCorrecaoDataProvider = estadosCorrecaoDataProvider;
+ }
+
+ public db.providers.UtilizadoresActivosListDataProvider getUtilizadoresActivosListDataProvider() {
+ return utilizadoresActivosListDataProvider;
+ }
+
+ public void setUtilizadoresActivosListDataProvider(db.providers.UtilizadoresActivosListDataProvider utilizadoresActivosListDataProvider) {
+ this.utilizadoresActivosListDataProvider = utilizadoresActivosListDataProvider;
+ }
+
+ public db.providers.UtilizadoresInactivosListDataProvider getUtilizadoresInactivosListDataProvider() {
+ return utilizadoresInactivosListDataProvider;
+ }
+
+ public void setUtilizadoresInactivosListDataProvider(db.providers.UtilizadoresInactivosListDataProvider utilizadoresInactivosListDataProvider) {
+ this.utilizadoresInactivosListDataProvider = utilizadoresInactivosListDataProvider;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] anoOptions;
+
+ private Integer anoChoice;
+
+ public Integer getAnoChoice() {
+ return anoChoice;
+ }
+
+ public void setAnoChoice(Integer anoChoice) {
+ this.anoChoice = anoChoice;
+ }
+
+ public com.sun.rave.web.ui.model.Option[] getAnoOptions() {
+ return anoOptions;
+ }
+
+ public void setAnoOptions(com.sun.rave.web.ui.model.Option[] anoOptions) {
+ this.anoOptions = anoOptions;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] mesOptions;
+
+ private Integer mesChoice;
+
+ public Integer getMesChoice() {
+ return mesChoice;
+ }
+
+ public void setMesChoice(Integer mesChoice) {
+ this.mesChoice = mesChoice;
+ }
+
+ public com.sun.rave.web.ui.model.Option[] getMesOptions() {
+ return mesOptions;
+ }
+
+ public void setMesOptions(com.sun.rave.web.ui.model.Option[] mesOptions) {
+ this.mesOptions = mesOptions;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] diaOptions;
+
+ private Integer diaChoice;
+
+ public Integer getDiaChoice() {
+ return diaChoice;
+ }
+
+ public void setDiaChoice(Integer diaChoice) {
+ this.diaChoice = diaChoice;
+ }
+
+ public com.sun.rave.web.ui.model.Option[] getDiaOptions() {
+ return diaOptions;
+ }
+
+ public void setDiaOptions(com.sun.rave.web.ui.model.Option[] diaOptions) {
+ this.diaOptions = diaOptions;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] departamentoOptions;
+
+ private Integer departamentoChoice;
+
+ public Integer getDepartamentoChoice() {
+ return departamentoChoice;
+ }
+
+ public void setDepartamentoChoice(Integer departamentoChoice) {
+ this.departamentoChoice = departamentoChoice;
+ }
+
+ public com.sun.rave.web.ui.model.Option[] getDepartamentoOptions() {
+ return departamentoOptions;
+ }
+
+ public void setDepartamentoOptions(com.sun.rave.web.ui.model.Option[] departamentoOptions) {
+ this.departamentoOptions = departamentoOptions;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] seccaoOptions;
+
+ private Integer seccaoChoice;
+
+ public Integer getSeccaoChoice() {
+ return seccaoChoice;
+ }
+
+ public void setSeccaoChoice(Integer seccaoChoice) {
+ this.seccaoChoice = seccaoChoice;
+ }
+
+ public com.sun.rave.web.ui.model.Option[] getSeccaoOptions() {
+ return seccaoOptions;
+ }
+
+ public void setSeccaoOptions(com.sun.rave.web.ui.model.Option[] seccaoOptions) {
+ this.seccaoOptions = seccaoOptions;
+ }
+
+ private String imageName;
+
+ public String getImageName() {
+ return imageName;
+ }
+
+ public void setImageName(String imageName) {
+ this.imageName = imageName;
+ }
+
+ private String navFrom;
+
+ public String getNavFrom() {
+ return navFrom;
+ }
+
+ public void setNavFrom(String navFrom) {
+ this.navFrom = navFrom;
+ }
+
+ private Acidentado acidentado;
+
+ public Acidentado getAcidentado() {
+ return acidentado;
+ }
+
+ public void setAcidentado(Acidentado acidentado) {
+ this.acidentado = acidentado;
+ }
+
+ private AnaliseAcidenteTrabalhoState analise_acidente_trabalho_state;
+
+ public AnaliseAcidenteTrabalhoState getAnalise_acidente_trabalho_state() {
+ return analise_acidente_trabalho_state;
+ }
+
+ public void setAnalise_acidente_trabalho_state(AnaliseAcidenteTrabalhoState analise_acidente_trabalho_state) {
+ this.analise_acidente_trabalho_state = analise_acidente_trabalho_state;
+ }
+
+ private AnaliseAcidente currentAnalise;
+
+ public AnaliseAcidente getCurrentAnalise() {
+ return currentAnalise;
+ }
+
+ public void setCurrentAnalise(AnaliseAcidente currentAnalise) {
+ this.currentAnalise = currentAnalise;
+ }
+
+ private boolean loggedIn;
+
+ public boolean isLoggedIn()
+ {
+ return loggedIn;
+ }
+
+ public void setLoggedIn(boolean loggedIn)
+ {
+ this.loggedIn = loggedIn;
+ }
+
+ private String modoEdicaoUtilizador;
+
+ public String getModoEdicaoUtilizador() {
+ return modoEdicaoUtilizador;
+ }
+
+ public void setModoEdicaoUtilizador(String modoEdicaoUtilizador) {
+ this.modoEdicaoUtilizador = modoEdicaoUtilizador;
+ }
+
+ private Integer tipoChoice;
+
+ public Integer getTipoChoice() {
+ return tipoChoice;
+ }
+
+ public void setTipoChoice(Integer tipoChoice) {
+ this.tipoChoice = tipoChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] tiposOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getTiposOptions() {
+ return tiposOptions;
+ }
+
+ public void setTiposOptions(com.sun.rave.web.ui.model.Option[] tiposOptions) {
+ this.tiposOptions = tiposOptions;
+ }
+
+
+ private Integer estabelecimentoChoice;
+
+ public Integer getEstabelecimentoChoice() {
+ return estabelecimentoChoice;
+ }
+
+ public void setEstabelecimentoChoice(Integer estabelecimentoChoice) {
+ this.estabelecimentoChoice = estabelecimentoChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] estabelecimentosOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getEstabelecimentosOptions() {
+ return estabelecimentosOptions;
+ }
+
+ public void setEstabelecimentosOptions(com.sun.rave.web.ui.model.Option[] estabelecimentosOptions) {
+ this.estabelecimentosOptions = estabelecimentosOptions;
+ }
+
+ private Integer estabelecimentoGestorChoice;
+
+ public Integer getEstabelecimentoGestorChoice() {
+ return estabelecimentoGestorChoice;
+ }
+
+ public void setEstabelecimentoGestorChoice(Integer estabelecimentoGestorChoice) {
+ this.estabelecimentoGestorChoice = estabelecimentoGestorChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] estabelecimentosGestorOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getEstabelecimentosGestorOptions() {
+ return estabelecimentosGestorOptions;
+ }
+
+ public void setEstabelecimentosGestorOptions(com.sun.rave.web.ui.model.Option[] estabelecimentosGestorOptions) {
+ this.estabelecimentosGestorOptions = estabelecimentosGestorOptions;
+ }
+
+
+
+ //
+ private Integer estabelecimentoOutroChoice;
+
+ public Integer getEstabelecimentoOutroChoice() {
+ return estabelecimentoOutroChoice;
+ }
+
+ public void setEstabelecimentoOutroChoice(Integer estabelecimentoOutroChoice) {
+ this.estabelecimentoOutroChoice = estabelecimentoOutroChoice;
+ }
+
+
+
+ private com.sun.rave.web.ui.model.Option[] estabelecimentosOutroOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getEstabelecimentosOutroOptions() {
+ return estabelecimentosOutroOptions;
+ }
+
+ public void setEstabelecimentosOutroOptions(com.sun.rave.web.ui.model.Option[] estabelecimentosOutroOptions) {
+ this.estabelecimentosOutroOptions = estabelecimentosOutroOptions;
+ }
+
+
+ private Integer estabelecimentoMedChoice;
+
+ public Integer getEstabelecimentoMedChoice() {
+ return estabelecimentoMedChoice;
+ }
+
+ public void setEstabelecimentoMedChoice(Integer estabelecimentoMedChoice) {
+ this.estabelecimentoMedChoice = estabelecimentoMedChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] estabelecimentosMedOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getEstabelecimentosMedOptions() {
+ return estabelecimentosMedOptions;
+ }
+
+ public void setEstabelecimentosMedOptions(com.sun.rave.web.ui.model.Option[] estabelecimentosMedOptions) {
+ this.estabelecimentosMedOptions = estabelecimentosMedOptions;
+ }
+
+ private Integer tecnicoChoice;
+
+ public Integer getTecnicoChoice() {
+ return tecnicoChoice;
+ }
+
+ public void setTecnicoChoice(Integer tecnicoChoice) {
+ this.tecnicoChoice = tecnicoChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] tecnicosOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getTecnicosOptions() {
+ return tecnicosOptions;
+ }
+
+ public void setTecnicosOptions(com.sun.rave.web.ui.model.Option[] tecnicosOptions) {
+ this.tecnicosOptions = tecnicosOptions;
+ }
+
+
+ private Integer medicoChoice;
+
+ public Integer getMedicoChoice() {
+ return medicoChoice;
+ }
+
+ public void setMedicoChoice(Integer medicoChoice) {
+ this.medicoChoice = medicoChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] medicosOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getMedicosOptions() {
+ return medicosOptions;
+ }
+
+ public void setMedicosOptions(com.sun.rave.web.ui.model.Option[] medicosOptions) {
+ this.medicosOptions = medicosOptions;
+ }
+
+
+ // Clock :
+ private Integer horaChoice;
+
+ public Integer getHoraChoice() {
+ return horaChoice;
+ }
+
+ public void setHoraChoice(Integer horaChoice) {
+ this.horaChoice = horaChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] horasOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getHorasOptions() {
+ return horasOptions;
+ }
+
+ public void setHorasOptions(com.sun.rave.web.ui.model.Option[] horasOptions) {
+ this.horasOptions = horasOptions;
+ }
+
+
+ private Integer minutoChoice;
+
+ public Integer getMinutoChoice() {
+ return minutoChoice;
+ }
+
+ public void setMinutoChoice(Integer minutoChoice) {
+ this.minutoChoice = minutoChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] minutosOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getMinutosOptions() {
+ return minutosOptions;
+ }
+
+ public void setMinutosOptions(com.sun.rave.web.ui.model.Option[] minutosOptions) {
+ this.minutosOptions = minutosOptions;
+ }
+
+
+ private Integer causaChoice;
+
+ public Integer getCausaChoice() {
+ return causaChoice;
+ }
+
+ public void setCausaChoice(Integer causaChoice) {
+ this.causaChoice = causaChoice;
+ }
+
+ private com.sun.rave.web.ui.model.Option[] causasOptions;
+
+ public com.sun.rave.web.ui.model.Option[] getCausasOptions() {
+ return causasOptions;
+ }
+
+ public void setCausasOptions(com.sun.rave.web.ui.model.Option[] causasOptions) {
+ this.causasOptions = causasOptions;
+ }
+
+ private int idSequence;
+
+ public int getIdSequence() {
+ return idSequence;
+ }
+
+ public void setIdSequence(int idSequence) {
+ this.idSequence = idSequence;
+ }
+
+ private NewUser newUser;
+
+ public NewUser getNewUser() {
+ return newUser;
+ }
+
+ public void setNewUser(NewUser newUser) {
+ this.newUser = newUser;
+ }
+
+ private Utilizador editUser;
+
+ public Utilizador getEditUser() {
+ return editUser;
+ }
+
+ public void setEditUser(Utilizador editUser) {
+ this.editUser = editUser;
+ }
+
+ private boolean userDeleted;
+
+ public boolean isUserDeleted() {
+ return userDeleted;
+ }
+
+ public void setUserDeleted(boolean userDeleted) {
+ this.userDeleted = userDeleted;
+ }
+
+ private boolean mudarPassword;
+
+ public boolean isMudarPassword() {
+ return mudarPassword;
+ }
+
+ public void setMudarPassword(boolean mudarPassword) {
+ this.mudarPassword = mudarPassword;
+ }
+
+ private Medico medico;
+
+ public Medico getMedico() {
+ return medico;
+ }
+
+ public void setMedico(Medico medico) {
+ this.medico = medico;
+ }
+
+ private boolean fromAjuda;
+
+ public boolean isFromAjuda() {
+ return fromAjuda;
+ }
+
+ public void setFromAjuda(boolean fromAjuda) {
+ this.fromAjuda = fromAjuda;
+ }
+
+ private boolean submetido;
+
+ private boolean gravado;
+
+ public boolean isSubmetido() {
+ return submetido;
+ }
+
+ public void setSubmetido(boolean submetido) {
+ this.submetido = submetido;
+ }
+
+ public boolean isGravado() {
+ return gravado;
+ }
+
+ public void setGravado(boolean gravado) {
+ this.gravado = gravado;
+ }
+
+ private boolean fromAnaliseDeletion;
+
+ public boolean isFromAnaliseDeletion() {
+ return fromAnaliseDeletion;
+ }
+
+ public void setFromAnaliseDeletion(boolean fromAnaliseDeletion) {
+ this.fromAnaliseDeletion = fromAnaliseDeletion;
+ }
+
+ private boolean ieBug;
+
+ public boolean isIeBug() {
+ return ieBug;
+ }
+
+ public void setIeBug(boolean ieBug) {
+ this.ieBug = ieBug;
+ }
+
+ private beans.Correcao correcao;
+
+ public beans.Correcao getCorrecao() {
+ return correcao;
+ }
+
+ public void setCorrecao(beans.Correcao correcao) {
+ this.correcao = correcao;
+ }
+
+ public String getLogoEmpresaUrl() {
+ return logoEmpresaUrl;
+ }
+
+ public void setLogoEmpresaUrl(String logoEmpresaUrl) {
+ this.logoEmpresaUrl = logoEmpresaUrl;
+
+ }
+
+ public Boolean getIsSearchingUtilizadores() {
+ return isSearchingUtilizadores;
+ }
+
+ public void setIsSearchingUtilizadores(Boolean isSearchingUtilizadores) {
+ this.isSearchingUtilizadores = isSearchingUtilizadores;
+ }
+
+
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Top.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Top.java
new file mode 100644
index 00000000..d183ddf6
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/Top.java
@@ -0,0 +1,203 @@
+/*
+ * Top.java
+ *
+ * Created on September 20, 2007, 11:04 AM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
+import com.sun.rave.web.ui.component.Hyperlink;
+import com.sun.rave.web.ui.component.ImageComponent;
+import com.sun.rave.web.ui.component.PanelGroup;
+import com.sun.rave.web.ui.component.StaticText;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+
+/**
+ * Fragment bean that corresponds to a similarly named JSP page
+ * fragment. This class contains component definitions (and initialization
+ * code) for all components that you have defined on this fragment, as well as
+ * lifecycle methods and event handlers where you may add behavior
+ * to respond to incoming events.
+ */
+public class Top extends AbstractFragmentBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ private void _init() throws Exception {
+ }
+
+ 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 staticText2 = new StaticText();
+
+ public StaticText getStaticText2() {
+ return staticText2;
+ }
+
+ public void setStaticText2(StaticText st) {
+ this.staticText2 = st;
+ }
+
+ private Hyperlink lnkChangePassword = new Hyperlink();
+
+ public Hyperlink getLnkChangePassword() {
+ return lnkChangePassword;
+ }
+
+ public void setLnkChangePassword(Hyperlink h) {
+ this.lnkChangePassword = h;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private Hyperlink lnkLogout = new Hyperlink();
+
+ public Hyperlink getLnkLogout() {
+ return lnkLogout;
+ }
+
+ public void setLnkLogout(Hyperlink h) {
+ this.lnkLogout = h;
+ }
+ //
+
+ public Top() {
+ }
+
+ /**
+ * Callback method that is called whenever a page containing
+ * this page fragment is navigated to, either directly via a URL,
+ * or indirectly via page navigation. Override this method to acquire
+ * resources that will be needed for event handlers and lifecycle methods.
+ *
+ * The default implementation does nothing.
+ */
+ 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
+
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("Page1 Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called. Override this
+ * method to release resources acquired in the init()
+ * resources that will be needed for event handlers and lifecycle methods.
+ *
+ * The default implementation does nothing.
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/UtilizadorFields.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/UtilizadorFields.java
new file mode 100644
index 00000000..d1c29f59
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/UtilizadorFields.java
@@ -0,0 +1,1649 @@
+/*
+ * UtilizadorFields.java
+ *
+ * Created on December 4, 2007, 3:27 PM
+ * Copyright lluis
+ */
+package analiseacidentestrabalho;
+
+import beans.Permissao;
+import beans.Utilizador;
+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.Checkbox;
+import com.sun.rave.web.ui.component.DropDown;
+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.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.PasswordField;
+import com.sun.rave.web.ui.component.StaticText;
+import com.sun.rave.web.ui.component.TextField;
+import db.providers.AnalisesDataProvider;
+import db.providers.UtilizadoresDataProvider;
+import global.Global;
+import javax.faces.FacesException;
+import javax.faces.component.html.HtmlPanelGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import javax.servlet.http.HttpServletRequest;
+import utils.Utils;
+
+/**
+ * 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.
+ */
+public class UtilizadorFields extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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 HtmlPanelGrid gridMsg1 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridMsg1() {
+ return gridMsg1;
+ }
+
+ public void setGridMsg1(HtmlPanelGrid hpg) {
+ this.gridMsg1 = hpg;
+ }
+
+ private StaticText txtMsg = new StaticText();
+
+ public StaticText getTxtMsg() {
+ return txtMsg;
+ }
+
+ public void setTxtMsg(StaticText st) {
+ this.txtMsg = st;
+ }
+
+ private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel2() {
+ return gridPanel2;
+ }
+
+ public void setGridPanel2(HtmlPanelGrid hpg) {
+ this.gridPanel2 = hpg;
+ }
+
+ private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel3() {
+ return gridPanel3;
+ }
+
+ public void setGridPanel3(HtmlPanelGrid hpg) {
+ this.gridPanel3 = hpg;
+ }
+
+ private PanelGroup groupPanel3 = new PanelGroup();
+
+ public PanelGroup getGroupPanel3() {
+ return groupPanel3;
+ }
+
+ public void setGroupPanel3(PanelGroup pg) {
+ this.groupPanel3 = pg;
+ }
+
+ private StaticText stCriarEditar = new StaticText();
+
+ public StaticText getStCriarEditar() {
+ return stCriarEditar;
+ }
+
+ public void setStCriarEditar(StaticText st) {
+ this.stCriarEditar = st;
+ }
+
+ private StaticText staticText3 = new StaticText();
+
+ public StaticText getStaticText3() {
+ return staticText3;
+ }
+
+ public void setStaticText3(StaticText st) {
+ this.staticText3 = st;
+ }
+
+ private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel6() {
+ return gridPanel6;
+ }
+
+ public void setGridPanel6(HtmlPanelGrid hpg) {
+ this.gridPanel6 = hpg;
+ }
+
+ private PanelGroup groupPanel4 = new PanelGroup();
+
+ public PanelGroup getGroupPanel4() {
+ return groupPanel4;
+ }
+
+ public void setGroupPanel4(PanelGroup pg) {
+ this.groupPanel4 = pg;
+ }
+
+ private StaticText staticText10 = new StaticText();
+
+ public StaticText getStaticText10() {
+ return staticText10;
+ }
+
+ public void setStaticText10(StaticText st) {
+ this.staticText10 = st;
+ }
+
+ private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel7() {
+ return gridPanel7;
+ }
+
+ public void setGridPanel7(HtmlPanelGrid hpg) {
+ this.gridPanel7 = hpg;
+ }
+
+ private Button butCancelar = new Button();
+
+ public Button getButCancelar() {
+ return butCancelar;
+ }
+
+ public void setButCancelar(Button b) {
+ this.butCancelar = b;
+ }
+
+ private PanelGroup groupPanel5 = new PanelGroup();
+
+ public PanelGroup getGroupPanel5() {
+ return groupPanel5;
+ }
+
+ public void setGroupPanel5(PanelGroup pg) {
+ this.groupPanel5 = pg;
+ }
+
+ private Button butGravar = new Button();
+
+ public Button getButGravar() {
+ return butGravar;
+ }
+
+ public void setButGravar(Button b) {
+ this.butGravar = b;
+ }
+
+ private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel4() {
+ return gridPanel4;
+ }
+
+ public void setGridPanel4(HtmlPanelGrid hpg) {
+ this.gridPanel4 = hpg;
+ }
+
+ private StaticText staticText4 = new StaticText();
+
+ public StaticText getStaticText4() {
+ return staticText4;
+ }
+
+ public void setStaticText4(StaticText st) {
+ this.staticText4 = st;
+ }
+
+ private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel5() {
+ return gridPanel5;
+ }
+
+ public void setGridPanel5(HtmlPanelGrid hpg) {
+ this.gridPanel5 = hpg;
+ }
+
+ private PanelGroup groupPanel6 = new PanelGroup();
+
+ public PanelGroup getGroupPanel6() {
+ return groupPanel6;
+ }
+
+ public void setGroupPanel6(PanelGroup pg) {
+ this.groupPanel6 = pg;
+ }
+
+ private PanelGroup groupPanel7 = new PanelGroup();
+
+ public PanelGroup getGroupPanel7() {
+ return groupPanel7;
+ }
+
+ public void setGroupPanel7(PanelGroup pg) {
+ this.groupPanel7 = pg;
+ }
+
+ private StaticText staticText5 = new StaticText();
+
+ public StaticText getStaticText5() {
+ return staticText5;
+ }
+
+ public void setStaticText5(StaticText st) {
+ this.staticText5 = st;
+ }
+
+ private StaticText staticText8 = new StaticText();
+
+ public StaticText getStaticText8() {
+ return staticText8;
+ }
+
+ public void setStaticText8(StaticText st) {
+ this.staticText8 = st;
+ }
+
+ private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel8() {
+ return gridPanel8;
+ }
+
+ public void setGridPanel8(HtmlPanelGrid hpg) {
+ this.gridPanel8 = hpg;
+ }
+
+ private DropDown drpEstabelecimentos = new DropDown();
+
+ public DropDown getDrpEstabelecimentos() {
+ return drpEstabelecimentos;
+ }
+
+ public void setDrpEstabelecimentos(DropDown dd) {
+ this.drpEstabelecimentos = dd;
+ }
+
+ private StaticText stEstabelecimento = new StaticText();
+
+ public StaticText getStEstabelecimento() {
+ return stEstabelecimento;
+ }
+
+ public void setStEstabelecimento(StaticText st) {
+ this.stEstabelecimento = st;
+ }
+
+ private StaticText staticText11 = new StaticText();
+
+ public StaticText getStaticText11() {
+ return staticText11;
+ }
+
+ public void setStaticText11(StaticText st) {
+ this.staticText11 = st;
+ }
+
+ private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel9() {
+ return gridPanel9;
+ }
+
+ public void setGridPanel9(HtmlPanelGrid hpg) {
+ this.gridPanel9 = hpg;
+ }
+
+ private DropDown drpNome = new DropDown();
+
+ public DropDown getDrpNome() {
+ return drpNome;
+ }
+
+ public void setDrpNome(DropDown dd) {
+ this.drpNome = dd;
+ }
+
+ private TextField txtNome = new TextField();
+
+ public TextField getTxtNome() {
+ return txtNome;
+ }
+
+ public void setTxtNome(TextField tf) {
+ this.txtNome = tf;
+ }
+
+ private StaticText stNome = new StaticText();
+
+ public StaticText getStNome() {
+ return stNome;
+ }
+
+ public void setStNome(StaticText st) {
+ this.stNome = st;
+ }
+
+ private StaticText staticText13 = new StaticText();
+
+ public StaticText getStaticText13() {
+ return staticText13;
+ }
+
+ public void setStaticText13(StaticText st) {
+ this.staticText13 = st;
+ }
+
+ private TextField txtLogin = new TextField();
+
+ public TextField getTxtLogin() {
+ return txtLogin;
+ }
+
+ public void setTxtLogin(TextField tf) {
+ this.txtLogin = tf;
+ }
+
+ private StaticText staticText14 = new StaticText();
+
+ public StaticText getStaticText14() {
+ return staticText14;
+ }
+
+ public void setStaticText14(StaticText st) {
+ this.staticText14 = st;
+ }
+
+ private PasswordField txtPassword = new PasswordField();
+
+ public PasswordField getTxtPassword() {
+ return txtPassword;
+ }
+
+ public void setTxtPassword(PasswordField pf) {
+ this.txtPassword = pf;
+ }
+
+ private StaticText staticText15 = new StaticText();
+
+ public StaticText getStaticText15() {
+ return staticText15;
+ }
+
+ public void setStaticText15(StaticText st) {
+ this.staticText15 = st;
+ }
+
+ private TextField txtEmail = new TextField();
+
+ public TextField getTxtEmail() {
+ return txtEmail;
+ }
+
+ public void setTxtEmail(TextField tf) {
+ this.txtEmail = tf;
+ }
+
+ //
+ boolean isPostback = false;
+
+ private HiddenField hidConfDelUser = new HiddenField();
+
+ public HiddenField getHidConfDelUser() {
+ return hidConfDelUser;
+ }
+
+ public void setHidConfDelUser(HiddenField hf) {
+ this.hidConfDelUser = hf;
+ }
+
+ private StaticText staticText7 = new StaticText();
+
+ public StaticText getStaticText7() {
+ return staticText7;
+ }
+
+ public void setStaticText7(StaticText st) {
+ this.staticText7 = st;
+ }
+
+ private PasswordField txtConfPassword = new PasswordField();
+
+ public PasswordField getTxtConfPassword() {
+ return txtConfPassword;
+ }
+
+ public void setTxtConfPassword(PasswordField pf) {
+ this.txtConfPassword = pf;
+ }
+
+ private StaticText stTipo = new StaticText();
+
+ public StaticText getStTipo() {
+ return stTipo;
+ }
+
+ public void setStTipo(StaticText st) {
+ this.stTipo = st;
+ }
+
+ private HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel10() {
+ return gridPanel10;
+ }
+
+ public void setGridPanel10(HtmlPanelGrid hpg) {
+ this.gridPanel10 = hpg;
+ }
+
+ private PanelGroup groupPanel8 = new PanelGroup();
+
+ public PanelGroup getGroupPanel8() {
+ return groupPanel8;
+ }
+
+ public void setGroupPanel8(PanelGroup pg) {
+ this.groupPanel8 = pg;
+ }
+
+ private Checkbox chkActivo = new Checkbox();
+
+ public Checkbox getChkActivo() {
+ return chkActivo;
+ }
+
+ public void setChkActivo(Checkbox c) {
+ this.chkActivo = c;
+ }
+
+ private StaticText staticText6 = new StaticText();
+
+ public StaticText getStaticText6() {
+ return staticText6;
+ }
+
+ public void setStaticText6(StaticText st) {
+ this.staticText6 = st;
+ }
+
+ private StaticText staticText9 = new StaticText();
+
+ public StaticText getStaticText9() {
+ return staticText9;
+ }
+
+ public void setStaticText9(StaticText st) {
+ this.staticText9 = st;
+ }
+
+ private StaticText lblRespLoja = new StaticText();
+
+ public StaticText getLblRespLoja() {
+ return lblRespLoja;
+ }
+
+ public void setLblRespLoja(StaticText st) {
+ this.lblRespLoja = st;
+ }
+
+ private Checkbox chkRespLoja = new Checkbox();
+
+ public Checkbox getChkRespLoja() {
+ return chkRespLoja;
+ }
+
+ public void setChkRespLoja(Checkbox c) {
+ this.chkRespLoja = c;
+ }
+
+ private StaticText lblGeral = new StaticText();
+
+ public StaticText getLblGeral() {
+ return lblGeral;
+ }
+
+ public void setLblGeral(StaticText st) {
+ this.lblGeral = st;
+ }
+
+ private Checkbox chkGeral = new Checkbox();
+
+ public Checkbox getChkGeral() {
+ return chkGeral;
+ }
+
+ public void setChkGeral(Checkbox c) {
+ this.chkGeral = c;
+ }
+
+ private HtmlPanelGrid gridPanel11 = new HtmlPanelGrid();
+
+ public HtmlPanelGrid getGridPanel11() {
+ return gridPanel11;
+ }
+
+ public void setGridPanel11(HtmlPanelGrid hpg) {
+ this.gridPanel11 = hpg;
+ }
+
+ private PanelGroup groupPanel9 = new PanelGroup();
+
+ public PanelGroup getGroupPanel9() {
+ return groupPanel9;
+ }
+
+ public void setGroupPanel9(PanelGroup pg) {
+ this.groupPanel9 = pg;
+ }
+
+ private StaticText staticText12 = new StaticText();
+
+ public StaticText getStaticText12() {
+ return staticText12;
+ }
+
+ public void setStaticText12(StaticText st) {
+ this.staticText12 = st;
+ }
+
+ private ImageComponent image3 = new ImageComponent();
+
+ public ImageComponent getImage3() {
+ return image3;
+ }
+
+ public void setImage3(ImageComponent ic) {
+ this.image3 = ic;
+ }
+
+ private StaticText staticText16 = new StaticText();
+
+ public StaticText getStaticText16() {
+ return staticText16;
+ }
+
+ public void setStaticText16(StaticText st) {
+ this.staticText16 = st;
+ }
+ private StaticText lblUser = new StaticText();
+
+ public StaticText getLblUser() {
+ return lblUser;
+ }
+
+ public void setLblUser(StaticText st) {
+ this.lblUser = st;
+ }
+ private Hyperlink lnkPlanosActuacao = new Hyperlink();
+
+ public Hyperlink getLnkPlanosActuacao() {
+ return lnkPlanosActuacao;
+ }
+
+ public void setLnkPlanosActuacao(Hyperlink h) {
+ this.lnkPlanosActuacao = h;
+ }
+ /**
+ * Construct a new Page bean instance.
+ */
+ public UtilizadorFields() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ 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
+
+ //
+ // Initialize automatically managed components
+ // *Note* - this logic should NOT be modified
+ try {
+ _init();
+ } catch (Exception e) {
+ log("UtilizadorFields Initialization Failure", e);
+ throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ if (!getSessionBean1().isLoggedIn()) {
+ try {
+ getExternalContext().redirect("Login.jsp");
+ } catch(Exception e) {
+ // . . . handle exception . . .
+ }
+ }
+ else
+ {
+
+ lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
+ HttpServletRequest request = (HttpServletRequest) getExternalContext().getRequest();
+ String referer = request.getRequestURI();
+ String pageFrom = Utils.getPageFrom(referer);
+ if(!pageFrom.matches("UtilizadorFields.jsp"))
+ {
+ isPostback = false;
+ }
+ else
+ {
+ isPostback = true;
+ }
+
+ }
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ public void preprocess() {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ public void prerender() {
+ if(!isPostback)
+ {
+ if(getSessionBean1().getModoEdicaoUtilizador().matches("new"))
+ {
+ stCriarEditar.setText("CRIAR");
+ initializeNew();
+ }
+ else if( getSessionBean1().getModoEdicaoUtilizador().matches("edit"))
+ {
+ stCriarEditar.setText("EDITAR");
+ fillPage();
+ }
+ }
+ else //postback
+ {
+ String del_user = (String)getExternalContext().getRequestParameterMap().get("del_user");
+ if(del_user != null)
+ {
+ if(del_user.matches("yes"))
+ {
+ hidConfDelUser.setValue("");
+ try
+ {
+ deleteUser();
+ getSessionBean1().setMsg("Utilizador eliminado!");
+ //return "gestao_utilizadores";
+ getSessionBean1().setUserDeleted(true);
+ try
+ {
+ getExternalContext().redirect("GestaoUtilizadores.jsp");
+ }
+ catch(Exception e)
+ {
+ ErrorLogger.logException( e );
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ getSessionBean1().setMsg("Erro na eliminação do utilizador!");
+ }
+ }
+ else if(del_user.matches("no"))
+ {
+ hidConfDelUser.setValue("");
+ fillPage();
+ }
+ }
+
+ }
+
+ txtMsg.setText(getSessionBean1().getMsg());
+ getSessionBean1().setMsg("");
+
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ public void destroy() {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ public String lnkEditUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+
+ return null;
+
+ }
+
+ public void drpTipo_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public void drpNome_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String butCancelar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ String nav_from = getSessionBean1().getNavFrom();
+ if(nav_from.matches("GestaoUtilizadores"))
+ {
+ return "gestao_utilizadores";
+ }
+ else if(nav_from.matches("NovoUtilizador"))
+ {
+ return "novo_utilizador";
+ }
+ return null;
+ }
+
+ public String butApagar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ hidConfDelUser.setValue("apagar");
+ return null;
+ }
+
+ public String butGravar_action() {
+ // TODO: Process the button click action. Return value is a navigation
+ // case name where null will return to the same page.
+ if(validationOk( getSessionBean1().getModoEdicaoUtilizador() ))
+ {
+ if(getSessionBean1().getModoEdicaoUtilizador().matches("new"))
+ {
+ try
+ {
+ Utilizador u = addUser();
+ addPermissao(u);
+ getSessionBean1().setMsg("Utilizador criado");
+ getSessionBean1().setNewUser(null);
+ return "gestao_utilizadores";
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Erro na criação do utilizador!");
+ ErrorLogger.logException( ex );
+ }
+ }
+ else if( getSessionBean1().getModoEdicaoUtilizador().matches("edit") )
+ {
+ try
+ {
+ updateUser();
+ getSessionBean1().setMsg("Utilizador actualizado");
+ return "gestao_utilizadores";
+ }
+ catch(Exception ex)
+ {
+ getSessionBean1().setMsg("Erro na actualização do utilizador");
+ ErrorLogger.logException( ex );
+ }
+ }
+ }
+ return null;
+ }
+
+ private void initializeNew()
+ {
+ //drpTipo.setStyleClass("hidden");
+ //drpEstabelecimentos.setStyleClass("hidden");
+ NewUser u = getSessionBean1().getNewUser();
+ getSessionBean1().setEstabelecimentosOptions(getSessionBean1().getEstabelecimentosOutroOptions());
+ if(u.getEstabelecimento() == null)
+ {
+ drpEstabelecimentos.setDisabled(true);
+ }
+ else
+ {
+ drpEstabelecimentos.setSelected(u.getEstabelecimento());
+ }
+
+ drpNome.setStyleClass("hidden");
+ txtNome.setStyleClass("hidden");
+
+
+ stTipo.setText(u.getTipo_descricao());
+ //stEstabelecimento.setText(u.getEstabelecimento_descricao());
+ stEstabelecimento.setStyleClass("hidden");
+ stNome.setText(Utils.unicodeToHTML(u.getNome()));
+
+ txtLogin.setText("");
+ txtPassword.setText("");
+ txtConfPassword.setText("");
+ txtEmail.setText("");
+
+
+ chkActivo.setSelected(new Boolean(true));
+ lblGeral.setRendered(false);
+ chkGeral.setRendered(false);
+ lblRespLoja.setRendered(false);
+ chkRespLoja.setRendered(false);
+ }
+
+ private void fillPage()
+ {
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+
+ //Integer permissao = udp.getPermissionCode( getSessionBean1().getCurrentUser().getId() );
+ //getSessionBean1().setTiposOptions(adp.getTiposList(permissao));
+ getSessionBean1().setTiposOptions(adp.getTiposList());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ Utilizador u = getSessionBean1().getEditUser();
+ //stTipo.setStyleClass("hidden");
+ stEstabelecimento.setStyleClass("hidden");
+ stNome.setStyleClass("hidden");
+
+ System.out.println("ACTIVO = " + u.getActivo());
+ if(u.getActivo().matches("y"))
+ {
+ chkActivo.setSelected(new Boolean(true));
+ }
+ else
+ {
+ chkActivo.setSelected(new Boolean(false));
+ }
+ //drpTipo.setSelected(u.getTipo());
+ try
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ stTipo.setText(adp.getTipoDescricao(u.getTipo()));
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ drpEstabelecimentos.setSelected(u.getEstabelecimento_id());
+
+ if(u.getTipo().intValue() == 3) //hs
+ {
+ drpNome.setStyleClass("hidden");
+ txtNome.setText(Utils.unicodeToHTML(u.getNome()));
+ }
+ else if(u.getTipo().intValue() == 5) //medico
+ {
+ drpNome.setStyleClass("hidden");
+ System.out.println("MEDICA : " + Utils.unicodeToHTML(u.getNome()));
+ txtNome.setText(Utils.unicodeToHTML(u.getNome()));
+ }
+ else
+ {
+ drpNome.setStyleClass("hidden");
+ txtNome.setText(Utils.unicodeToHTML(u.getNome()));
+ }
+
+ if(u.getTipo().intValue() == 6) // gestor
+ {
+ chkGeral.setSelected(new Boolean(false));
+ if(u.getGestor_geral().matches("y"))
+ {
+ chkGeral.setSelected(new Boolean(true));
+ }
+ }
+ else
+ {
+ lblGeral.setRendered(false);
+ chkGeral.setRendered(false);
+ }
+
+
+ if(u.getTipo().intValue() == 1 || u.getTipo().intValue() == 2)
+ {
+ chkRespLoja.setSelected(new Boolean(false));
+ if(u.getResponsavel_loja().matches("y"))
+ {
+ chkRespLoja.setSelected(new Boolean(true));
+ }
+ }
+ else
+ {
+ lblRespLoja.setRendered(false);
+ chkRespLoja.setRendered(false);
+ }
+
+ txtLogin.setText(u.getLogin());
+ //txtPassword.setText(u.getPassword());
+ txtEmail.setText(u.getEmail());
+
+ }
+
+ private boolean validationOk(String modo)
+ {
+ if(modo.matches("new"))
+ {
+ if(txtLogin.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de indicar o login!");
+ return false;
+ }
+ else
+ {
+ String login = (String) txtLogin.getText();
+ if(login.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de indicar o login!");
+ return false;
+ }
+ else
+ {
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ Utilizador u = udp.getUtilizador( login );
+ if ( u != null && login.equals( u.getLogin() ) )
+ {
+ getSessionBean1().setMsg("O utilizador " + login + " já existe!");
+ return false;
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+ }
+
+ if(txtPassword.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de indicar a password!");
+ return false;
+ }
+ else
+ {
+ String password = (String) txtPassword.getText();
+ if(password.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de indicar a password!");
+ return false;
+ }
+ else
+ {
+ if(txtConfPassword.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de confirmar a password!");
+ return false;
+ }
+ else
+ {
+ String conf_password = (String) txtConfPassword.getText();
+ if(conf_password.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de confirmar a password!");
+ return false;
+ }
+ else
+ {
+ if(!password.equals(conf_password))
+ {
+ getSessionBean1().setMsg("A confirmação tem de ser igual à a password!");
+ return false;
+ }
+ }
+ }
+ } //
+ }
+
+ if(txtEmail.getText() != null)
+ {
+ String email = (String) txtEmail.getText();
+ if(email.trim().length() > 0)
+ {
+ if(! Utils.isValidEmail(email))
+ {
+ getSessionBean1().setMsg("Email inválido!");
+ return false;
+ }
+
+ }
+ else
+ {
+ getSessionBean1().setMsg("Tem de indicar o email!");
+ return false;
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Tem de indicar o email!");
+ return false;
+ }
+
+ }
+ else if(modo.matches("edit"))
+ {
+ Utilizador u = getSessionBean1().getEditUser();
+
+// Integer iTipo = (Integer) drpTipo.getSelected();
+// if(iTipo.intValue() == 0)
+// {
+// getSessionBean1().setMsg("Falta tipo !");
+// return false;
+// }
+
+ int tipo = u.getTipo().intValue();
+
+ if(tipo != 3)
+ {
+ Integer estabelecimento = (Integer) drpEstabelecimentos.getSelected();
+ if(estabelecimento.intValue() == -1)
+ {
+ getSessionBean1().setMsg("Falta estabelecimento!");
+ return false;
+ }
+ }
+
+// if(tipo == 3 || tipo == 5)
+// {
+// Integer nome = (Integer) drpNome.getSelected();
+// if(nome.intValue() == 0)
+// {
+// getSessionBean1().setMsg("Falta nome !");
+// return false;
+// }
+// }
+// else
+// {
+ if(txtNome.getText() == null)
+ {
+ getSessionBean1().setMsg("Falta nome!");
+
+ return false;
+ }
+ else
+ {
+ String nome = (String) txtNome.getText();
+ if(nome.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Falta nome!");
+ return false;
+ }
+ }
+// }
+
+
+ if(txtLogin.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de indicar o login!");
+ return false;
+ }
+ else
+ {
+ String login = (String) txtLogin.getText();
+ if(login.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de indicar o login!");
+ return false;
+ }
+ else
+ {
+ if(!login.equals(u.getLogin()))
+ {
+
+ try
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ Utilizador ut = udp.getUtilizador(login);
+ if(ut.getLogin().equals(login))
+ {
+ getSessionBean1().setMsg("O utilizador " + login + " já existe!");
+ return false;
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ }
+
+ }
+ }
+// if(txtPassword.getText() == null)
+// {
+// getSessionBean1().setMsg("Falta password!");
+// return false;
+// }
+// else
+ if(txtPassword.getText() != null)
+ {
+ String password = (String) txtPassword.getText();
+ if(password.trim().length() > 0)
+ {
+ if(! password.equals(u.getPassword()))
+ {
+ if(txtConfPassword.getText() == null)
+ {
+ getSessionBean1().setMsg("Tem de confirmar a password!");
+ return false;
+ }
+ else
+ {
+ String conf_password = (String) txtConfPassword.getText();
+ if(conf_password.trim().length() == 0)
+ {
+ getSessionBean1().setMsg("Tem de confirmar a password!");
+ return false;
+ }
+ else
+ {
+ if(!password.equals(conf_password))
+ {
+ getSessionBean1().setMsg("A confirmação tem de ser igual à password!");
+ return false;
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ if(txtConfPassword.getText() != null)
+ {
+ String conf = (String) txtConfPassword.getText();
+ if(conf.trim().length() > 0)
+ {
+ getSessionBean1().setMsg("Falta password!");
+ return false;
+ }
+ }
+ }
+ }
+ else
+ {
+ if(txtConfPassword.getText() != null)
+ {
+ String conf = (String) txtConfPassword.getText();
+ if(conf.trim().length() > 0)
+ {
+ getSessionBean1().setMsg("Falta password!");
+ return false;
+ }
+ }
+ }
+
+ if(txtEmail.getText() != null)
+ {
+ String email = (String) txtEmail.getText();
+ if(email.trim().length() > 0)
+ {
+ if(! Utils.isValidEmail(email))
+ {
+ getSessionBean1().setMsg("Email inválido!");
+ return false;
+ }
+
+ }
+ }
+ else
+ {
+ getSessionBean1().setMsg("Tem de indicar o email!");
+ return false;
+ }
+
+ }
+ return true;
+ }
+
+ private Utilizador addUser() throws Exception
+ {
+ Utilizador u = fillUser();
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ Integer id = udp.createNewUtilizador(u);
+ u.setId(id);
+ return u;
+ }
+
+ private void addPermissao(Utilizador u) throws Exception
+ {
+ Permissao p = new Permissao();
+ p.setUser_id(u.getId());
+ p.setCodigo_permissao(u.getTipo());
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ udp.createPermissao(p);
+ }
+
+ private void updateUser() throws Exception
+ {
+ AnalisesDataProvider adp = AnalisesDataProvider.getInstance();
+ //Utilizador u = fillUser();
+ Utilizador u = getSessionBean1().getEditUser();
+
+
+ //u.setTipo((Integer) drpTipo.getSelected());
+ u.setEstabelecimento_id( (Integer) drpEstabelecimentos.getSelected() );
+
+ int tipo = u.getTipo().intValue();
+// if(tipo == 3)
+// {
+// u.setFuncionario_hst_id((Integer) drpNome.getSelected());
+// u.setNome( adp.getTecnicoSaudeNome( u.getFuncionario_hst_id() ) );
+// }
+// else if(tipo == 5)
+// {
+// u.setMedico_id( (Integer) drpNome.getSelected() );
+// u.setNome( adp.getMedicoNome(u.getMedico_id()) );
+// }
+ u.setActivo("n");
+ if(chkActivo.getSelected() != null)
+ {
+ if(chkActivo.getSelected().equals(new Boolean(true)))
+ {
+ u.setActivo("y");
+ }
+ }
+ u.setNome((String) txtNome.getText());
+ u.setLogin((String) txtLogin.getText());
+ if(txtPassword.getText() != null)
+ {
+ String password = (String) txtPassword.getText();
+ if(password.trim().length() > 0)
+ {
+ u.setPassword(password);
+ }
+ }
+
+ u.setEmail((String) txtEmail.getText());
+
+ u.setGestor_geral("n");
+ try
+ {
+ if(chkGeral.getSelected() != null)
+ {
+ if(chkGeral.getSelected().equals(new Boolean(true)) )
+ {
+ u.setGestor_geral("y");
+ }
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+
+ u.setResponsavel_loja("n");
+ try
+ {
+ if(chkRespLoja.getSelected() != null)
+ {
+ if(chkRespLoja.getSelected().equals(new Boolean(true)) )
+ {
+ u.setResponsavel_loja("y");
+ }
+ }
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ u.setPrimeiro_login("n");
+// UtilizadoresDataProvider udp = new UtilizadoresDataProvider();
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ udp.updateUtilizador( u );
+ }
+
+
+ private Utilizador fillUser()
+ {
+ NewUser nu = getSessionBean1().getNewUser();
+ Utilizador u = new Utilizador();
+ u.setActivo("n");
+ if(chkActivo.getSelected() != null)
+ {
+ if(chkActivo.getSelected().equals(new Boolean(true)))
+ {
+ u.setActivo("y");
+ }
+ }
+ u.setAdministrador("n");
+ u.setTipo(nu.getTipo());
+ u.setEmpresa_id(getSessionBean1().getCurrentUser().getEmpresa_id());
+ //u.setEstabelecimento_id( nu.getEstabelecimento() );
+ if(nu.getEstabelecimento() != null)
+ {
+ u.setEstabelecimento_id((Integer) drpEstabelecimentos.getSelected());
+ }
+ u.setNome(Utils.unicodeToHTML(nu.getNome()));
+ u.setLogin( (String) txtLogin.getText() );
+ u.setPassword( (String) txtPassword.getText() );
+ java.util.Date today =
+ new java.util.Date();
+ java.sql.Date sqlToday =
+ new java.sql.Date(today.getTime());
+ u.setData_password(sqlToday);
+ u.setEmail("");
+ u.setNumero_mecanografico(nu.getNumero_mecanografico());
+ if(txtEmail.getText() != null)
+ {
+ u.setEmail( (String) txtEmail.getText() );
+ }
+
+ Integer tipo = (Integer) nu.getTipo();
+
+ u.setNumero_cedula("");
+ u.setCap("");
+ if(tipo.intValue() == 3 || tipo.intValue() == 5)
+ {
+ if(tipo.intValue() == 3)
+ {
+ try
+ {
+ //Integer tecnico_id = (Integer) drpNome.getSelected();
+ //u.setFuncionario_hst_id(tecnico_id);
+ //u.setNome( adp.getTecnicoSaudeNome(tecnico_id) );
+ u.setFuncionario_hst_id(nu.getFuncionario_hst_id());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ u.setCap( nu.getCap());
+ }
+ else // medico
+ {
+ try
+ {
+ //Integer medico_id = (Integer) drpNome.getSelected();
+ //u.setMedico_id(medico_id);
+ //u.setNome( adp.getMedicoNome(medico_id) );
+ u.setMedico_id(nu.getMedico_id());
+ }
+ catch(Exception ex)
+ {
+ ErrorLogger.logException( ex );
+ }
+ //u.setNumero_cedula( (String) stCedula.getText());
+ u.setNumero_cedula(nu.getNumero_cedula());
+ }
+ }
+// else
+// {
+// u.setNome( (String) txtNome.getText() );
+// }
+
+ u.setResponsavel_loja(nu.getResponsavel_loja());
+ if(nu.getGestor_geral() == null)
+ {
+ u.setGestor_geral("n");
+ }
+ else
+ {
+ u.setGestor_geral(nu.getGestor_geral());
+ }
+
+
+// u.setResponsavel_loja("n");
+// if(chkResponsavelLoja.getSelected() != null)
+// {
+// if(chkResponsavelLoja.getSelected().equals(new Boolean(true)))
+// {
+// u.setResponsavel_loja("y");
+// }
+// }
+ return u;
+ }
+
+ private void deleteUser() throws Exception
+ {
+ UtilizadoresDataProvider udp = UtilizadoresDataProvider.getInstance();
+ udp.deleteUser(getSessionBean1().getEditUser().getId());
+ }
+
+ public String lnkNewUser_action() {
+ // TODO: Replace with your code
+
+ return null;
+ }
+
+ public String lnkAnalisesAcidente_action() {
+ // TODO: Replace with your code
+ Integer tipo_utilizador = getSessionBean1().getCurrentUser().getTipo();
+ if(tipo_utilizador.intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP)
+ {
+ return "form_dir_siprp";
+ }
+ else if(tipo_utilizador.intValue() == Global.TIPO_UTILIZADOR_DIRECTOR_GERAL_RH)
+ {
+ return "form_dir_ger_rh";
+ }
+
+ return null;
+ }
+
+ public void drpEstabelecimentos_processValueChange(ValueChangeEvent event) {
+ // TODO: Replace with your code
+
+ }
+
+ public String lnkAjuda_action() {
+ // TODO: Replace with your code
+// 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 lnkPlanosActuacao_action() {
+ // TODO: Replace with your code
+ Utilizador u = getSessionBean1().getCurrentUser();
+// String curUser = "?user=" + u.getId().toString();
+ FacesContext fc = getFacesContext().getCurrentInstance();
+ Global.redirectToPlanos(fc, u);
+ return null;
+ }
+}
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ViewAnaliseAcidenteTrabalho.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ViewAnaliseAcidenteTrabalho.java
new file mode 100644
index 00000000..343a54ba
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/analiseacidentestrabalho/ViewAnaliseAcidenteTrabalho.java
@@ -0,0 +1,4654 @@
+/*
+ * 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;
+
+/**
+ * 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.
+ */
+public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
+ //
+ private int __placeholder;
+
+ /**
+ * Automatically managed component initialization. WARNING:
+ * This method is automatically generated, so any user-specified code inserted
+ * here is subject to being replaced.
+ */
+ 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;
+ }
+
+ //
+ //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;
+ }
+ /**
+ * Construct a new Page bean instance.
+ */
+ public ViewAnaliseAcidenteTrabalho() {
+ }
+
+ /**
+ * 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.
+ *
+ * Note that, if the current request is a postback, the property
+ * values of the components do not represent any
+ * values submitted with this request. Instead, they represent the
+ * property values that were saved for this view when it was rendered.
+ */
+ @Override
+ public void init()
+ {
+ // Perform initializations inherited from our superclasssuperclass
+ super.init();
+ // Perform application initialization that must complete
+ // *before* managed components are initialized
+ // TODO - add your own initialiation code here
+
+ //
+ // 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);
+ }
+
+ //
+ // Perform application initialization that must complete
+ // *after* managed components are initialized
+ // TODO - add your own initialization code here
+ 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();
+ }
+
+ }
+
+ /**
+ * Callback method that is called after the component tree has been
+ * restored, but before any event processing takes place. This method
+ * will only 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.
+ */
+ @Override
+ public void preprocess()
+ {
+ }
+
+ /**
+ * Callback method that is called just before rendering takes place.
+ * This method will only 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.
+ */
+ @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("");
+ }
+ }
+ }
+
+ /**
+ * Callback method that is called after rendering is completed for
+ * this request, if init() was called (regardless of whether
+ * or not this was the page that was actually rendered). Customize this
+ * method to release resources acquired in the init(),
+ * preprocess(), or prerender() methods (or
+ * acquired during execution of an event handler).
+ */
+ @Override
+ public void destroy()
+ {
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected SessionBean1 getSessionBean1() {
+ return (SessionBean1)getBean("SessionBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected RequestBean1 getRequestBean1() {
+ return (RequestBean1)getBean("RequestBean1");
+ }
+
+ /**
+ * Return a reference to the scoped data bean.
+ */
+ protected ApplicationBean1 getApplicationBean1() {
+ return (ApplicationBean1)getBean("ApplicationBean1");
+ }
+
+ public String lnkLogout_action()
+ {
+ Utils.doLogout( getExternalContext(), true );
+ return null;
+ }
+
+ 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()
+ {
+ 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 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 (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Acidentados extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Acidentados.ID, Acidentados.ID_INDEX );
+ FIELD_INDEXES.put( Acidentados.ID_FULL, Acidentados.ID_INDEX );
+ FIELD_INDEXES.put( Acidentados.NOME, Acidentados.NOME_INDEX );
+ FIELD_INDEXES.put( Acidentados.NOME_FULL, Acidentados.NOME_INDEX );
+ FIELD_INDEXES.put( Acidentados.DATA_NASCIMENTO, Acidentados.DATA_NASCIMENTO_INDEX );
+ FIELD_INDEXES.put( Acidentados.DATA_NASCIMENTO_FULL, Acidentados.DATA_NASCIMENTO_INDEX );
+ FIELD_INDEXES.put( Acidentados.BILHETE_IDENTIDADE, Acidentados.BILHETE_IDENTIDADE_INDEX );
+ FIELD_INDEXES.put( Acidentados.BILHETE_IDENTIDADE_FULL, Acidentados.BILHETE_IDENTIDADE_INDEX );
+ FIELD_INDEXES.put( Acidentados.MORADA, Acidentados.MORADA_INDEX );
+ FIELD_INDEXES.put( Acidentados.MORADA_FULL, Acidentados.MORADA_INDEX );
+ FIELD_INDEXES.put( Acidentados.COD_POSTAL, Acidentados.COD_POSTAL_INDEX );
+ FIELD_INDEXES.put( Acidentados.COD_POSTAL_FULL, Acidentados.COD_POSTAL_INDEX );
+ FIELD_INDEXES.put( Acidentados.LOCALIDADE, Acidentados.LOCALIDADE_INDEX );
+ FIELD_INDEXES.put( Acidentados.LOCALIDADE_FULL, Acidentados.LOCALIDADE_INDEX );
+ FIELD_INDEXES.put( Acidentados.CONTACTO_TELEFONICO, Acidentados.CONTACTO_TELEFONICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.CONTACTO_TELEFONICO_FULL, Acidentados.CONTACTO_TELEFONICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.DATA_ADMISSAO, Acidentados.DATA_ADMISSAO_INDEX );
+ FIELD_INDEXES.put( Acidentados.DATA_ADMISSAO_FULL, Acidentados.DATA_ADMISSAO_INDEX );
+ FIELD_INDEXES.put( Acidentados.FUNCAO, Acidentados.FUNCAO_INDEX );
+ FIELD_INDEXES.put( Acidentados.FUNCAO_FULL, Acidentados.FUNCAO_INDEX );
+ FIELD_INDEXES.put( Acidentados.TRABALHADOR_ID, Acidentados.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Acidentados.TRABALHADOR_ID_FULL, Acidentados.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Acidentados.TURNO, Acidentados.TURNO_INDEX );
+ FIELD_INDEXES.put( Acidentados.TURNO_FULL, Acidentados.TURNO_INDEX );
+ FIELD_INDEXES.put( Acidentados.NUMERO_MECANOGRAFICO, Acidentados.NUMERO_MECANOGRAFICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.NUMERO_MECANOGRAFICO_FULL, Acidentados.NUMERO_MECANOGRAFICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.NOME_SUPERIOR_HIERARQUICO, Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.NOME_SUPERIOR_HIERARQUICO_FULL, Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.EMAIL_SUPERIOR_HIERARQUICO, Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.EMAIL_SUPERIOR_HIERARQUICO_FULL, Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.ESTABELECIMENTO_ORIGEM, Acidentados.ESTABELECIMENTO_ORIGEM_INDEX );
+ FIELD_INDEXES.put( Acidentados.ESTABELECIMENTO_ORIGEM_FULL, Acidentados.ESTABELECIMENTO_ORIGEM_INDEX );
+ FIELD_INDEXES.put( Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO, Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_FULL, Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "acidentados";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.acidentados";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "acidentados.id";
+ public static final int ID_INDEX = 0;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "acidentados.nome";
+ public static final int NOME_INDEX = 1;
+ public static final String DATA_NASCIMENTO = "data_nascimento";
+ public static final String DATA_NASCIMENTO_FULL = "acidentados.data_nascimento";
+ public static final int DATA_NASCIMENTO_INDEX = 2;
+ public static final String BILHETE_IDENTIDADE = "bilhete_identidade";
+ public static final String BILHETE_IDENTIDADE_FULL = "acidentados.bilhete_identidade";
+ public static final int BILHETE_IDENTIDADE_INDEX = 3;
+ public static final String MORADA = "morada";
+ public static final String MORADA_FULL = "acidentados.morada";
+ public static final int MORADA_INDEX = 4;
+ public static final String COD_POSTAL = "cod_postal";
+ public static final String COD_POSTAL_FULL = "acidentados.cod_postal";
+ public static final int COD_POSTAL_INDEX = 5;
+ public static final String LOCALIDADE = "localidade";
+ public static final String LOCALIDADE_FULL = "acidentados.localidade";
+ public static final int LOCALIDADE_INDEX = 6;
+ public static final String CONTACTO_TELEFONICO = "contacto_telefonico";
+ public static final String CONTACTO_TELEFONICO_FULL = "acidentados.contacto_telefonico";
+ public static final int CONTACTO_TELEFONICO_INDEX = 7;
+ public static final String DATA_ADMISSAO = "data_admissao";
+ public static final String DATA_ADMISSAO_FULL = "acidentados.data_admissao";
+ public static final int DATA_ADMISSAO_INDEX = 8;
+ public static final String FUNCAO = "funcao";
+ public static final String FUNCAO_FULL = "acidentados.funcao";
+ public static final int FUNCAO_INDEX = 9;
+ public static final String TRABALHADOR_ID = "trabalhador_id";
+ public static final String TRABALHADOR_ID_FULL = "acidentados.trabalhador_id";
+ public static final int TRABALHADOR_ID_INDEX = 10;
+ public static final String TURNO = "turno";
+ public static final String TURNO_FULL = "acidentados.turno";
+ public static final int TURNO_INDEX = 11;
+ public static final String NUMERO_MECANOGRAFICO = "numero_mecanografico";
+ public static final String NUMERO_MECANOGRAFICO_FULL = "acidentados.numero_mecanografico";
+ public static final int NUMERO_MECANOGRAFICO_INDEX = 12;
+ public static final String NOME_SUPERIOR_HIERARQUICO = "nome_superior_hierarquico";
+ public static final String NOME_SUPERIOR_HIERARQUICO_FULL = "acidentados.nome_superior_hierarquico";
+ public static final int NOME_SUPERIOR_HIERARQUICO_INDEX = 13;
+ public static final String EMAIL_SUPERIOR_HIERARQUICO = "email_superior_hierarquico";
+ public static final String EMAIL_SUPERIOR_HIERARQUICO_FULL = "acidentados.email_superior_hierarquico";
+ public static final int EMAIL_SUPERIOR_HIERARQUICO_INDEX = 14;
+ public static final String ESTABELECIMENTO_ORIGEM = "estabelecimento_origem";
+ public static final String ESTABELECIMENTO_ORIGEM_FULL = "acidentados.estabelecimento_origem";
+ public static final int ESTABELECIMENTO_ORIGEM_INDEX = 15;
+ public static final String DATA_EMAIL_SUPERIOR_HIERARQUICO = "data_email_superior_hierarquico";
+ public static final String DATA_EMAIL_SUPERIOR_HIERARQUICO_FULL = "acidentados.data_email_superior_hierarquico";
+ public static final int DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX = 16;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ NOME, DATA_NASCIMENTO, BILHETE_IDENTIDADE, MORADA, COD_POSTAL, LOCALIDADE,
+ CONTACTO_TELEFONICO, DATA_ADMISSAO, FUNCAO, TRABALHADOR_ID, TURNO,
+ NUMERO_MECANOGRAFICO, NOME_SUPERIOR_HIERARQUICO,
+ EMAIL_SUPERIOR_HIERARQUICO, ESTABELECIMENTO_ORIGEM,
+ DATA_EMAIL_SUPERIOR_HIERARQUICO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + NOME, TABLENAME + "." + DATA_NASCIMENTO, TABLENAME + "." + BILHETE_IDENTIDADE, TABLENAME + "." + MORADA, TABLENAME + "." + COD_POSTAL, TABLENAME + "." + LOCALIDADE,
+ TABLENAME + "." + CONTACTO_TELEFONICO, TABLENAME + "." + DATA_ADMISSAO, TABLENAME + "." + FUNCAO, TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TURNO,
+ TABLENAME + "." + NUMERO_MECANOGRAFICO, TABLENAME + "." + NOME_SUPERIOR_HIERARQUICO,
+ TABLENAME + "." + EMAIL_SUPERIOR_HIERARQUICO, TABLENAME + "." + ESTABELECIMENTO_ORIGEM,
+ TABLENAME + "." + DATA_EMAIL_SUPERIOR_HIERARQUICO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, NOME, DATA_NASCIMENTO, BILHETE_IDENTIDADE, MORADA, COD_POSTAL, LOCALIDADE,
+ CONTACTO_TELEFONICO, DATA_ADMISSAO, FUNCAO, TRABALHADOR_ID, TURNO,
+ NUMERO_MECANOGRAFICO, NOME_SUPERIOR_HIERARQUICO,
+ EMAIL_SUPERIOR_HIERARQUICO, ESTABELECIMENTO_ORIGEM,
+ DATA_EMAIL_SUPERIOR_HIERARQUICO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, NOME, DATA_NASCIMENTO, BILHETE_IDENTIDADE, MORADA, COD_POSTAL, LOCALIDADE,
+ CONTACTO_TELEFONICO, DATA_ADMISSAO, FUNCAO, TRABALHADOR_ID, TURNO,
+ NUMERO_MECANOGRAFICO, NOME_SUPERIOR_HIERARQUICO,
+ EMAIL_SUPERIOR_HIERARQUICO, ESTABELECIMENTO_ORIGEM,
+ DATA_EMAIL_SUPERIOR_HIERARQUICO, };
+
+ private Integer id;
+ private String nome;
+ private java.util.Date data_nascimento;
+ private String bilhete_identidade;
+ private String morada;
+ private String cod_postal;
+ private String localidade;
+ private String contacto_telefonico;
+ private java.util.Date data_admissao;
+ private String funcao;
+ private Integer trabalhador_id;
+ private String turno;
+ private String numero_mecanografico;
+ private String nome_superior_hierarquico;
+ private String email_superior_hierarquico;
+ private String estabelecimento_origem;
+ private java.util.Date data_email_superior_hierarquico;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Acidentados()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAnalisesAcidentes_acidentado_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.AnalisesAcidentesData.class , getPrimaryKey().getMap().get("id"), "acidentado_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_nascimento()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_NASCIMENTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_nascimento;
+ }
+
+ public void setData_nascimento( java.util.Date data_nascimento )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_NASCIMENTO, data_nascimento );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_nascimento = data_nascimento;
+ LAZY_LOADED_OBJECTS.put( DATA_NASCIMENTO, Boolean.TRUE );
+ }
+
+ public String getBilhete_identidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( BILHETE_IDENTIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.bilhete_identidade;
+ }
+
+ public void setBilhete_identidade( String bilhete_identidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( BILHETE_IDENTIDADE, bilhete_identidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.bilhete_identidade = bilhete_identidade;
+ LAZY_LOADED_OBJECTS.put( BILHETE_IDENTIDADE, Boolean.TRUE );
+ }
+
+ public String getMorada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MORADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.morada;
+ }
+
+ public void setMorada( String morada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MORADA, morada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.morada = morada;
+ LAZY_LOADED_OBJECTS.put( MORADA, Boolean.TRUE );
+ }
+
+ public String getCod_postal()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( COD_POSTAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cod_postal;
+ }
+
+ public void setCod_postal( String cod_postal )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( COD_POSTAL, cod_postal );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cod_postal = cod_postal;
+ LAZY_LOADED_OBJECTS.put( COD_POSTAL, Boolean.TRUE );
+ }
+
+ public String getLocalidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LOCALIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.localidade;
+ }
+
+ public void setLocalidade( String localidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LOCALIDADE, localidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.localidade = localidade;
+ LAZY_LOADED_OBJECTS.put( LOCALIDADE, Boolean.TRUE );
+ }
+
+ public String getContacto_telefonico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONTACTO_TELEFONICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.contacto_telefonico;
+ }
+
+ public void setContacto_telefonico( String contacto_telefonico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONTACTO_TELEFONICO, contacto_telefonico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.contacto_telefonico = contacto_telefonico;
+ LAZY_LOADED_OBJECTS.put( CONTACTO_TELEFONICO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_admissao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_ADMISSAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_admissao;
+ }
+
+ public void setData_admissao( java.util.Date data_admissao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_ADMISSAO, data_admissao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_admissao = data_admissao;
+ LAZY_LOADED_OBJECTS.put( DATA_ADMISSAO, Boolean.TRUE );
+ }
+
+ public String getFuncao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FUNCAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.funcao;
+ }
+
+ public void setFuncao( String funcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FUNCAO, funcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.funcao = funcao;
+ LAZY_LOADED_OBJECTS.put( FUNCAO, Boolean.TRUE );
+ }
+
+ public Integer getTrabalhador_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TRABALHADOR_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.trabalhador_id;
+ }
+
+ public void setTrabalhador_id( Integer trabalhador_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TRABALHADOR_ID, trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.trabalhador_id = trabalhador_id;
+ LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
+ }
+
+ public String getTurno()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TURNO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.turno;
+ }
+
+ public void setTurno( String turno )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TURNO, turno );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.turno = turno;
+ LAZY_LOADED_OBJECTS.put( TURNO, Boolean.TRUE );
+ }
+
+ public String getNumero_mecanografico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NUMERO_MECANOGRAFICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.numero_mecanografico;
+ }
+
+ public void setNumero_mecanografico( String numero_mecanografico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NUMERO_MECANOGRAFICO, numero_mecanografico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.numero_mecanografico = numero_mecanografico;
+ LAZY_LOADED_OBJECTS.put( NUMERO_MECANOGRAFICO, Boolean.TRUE );
+ }
+
+ public String getNome_superior_hierarquico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_SUPERIOR_HIERARQUICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_superior_hierarquico;
+ }
+
+ public void setNome_superior_hierarquico( String nome_superior_hierarquico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_SUPERIOR_HIERARQUICO, nome_superior_hierarquico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_superior_hierarquico = nome_superior_hierarquico;
+ LAZY_LOADED_OBJECTS.put( NOME_SUPERIOR_HIERARQUICO, Boolean.TRUE );
+ }
+
+ public String getEmail_superior_hierarquico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMAIL_SUPERIOR_HIERARQUICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.email_superior_hierarquico;
+ }
+
+ public void setEmail_superior_hierarquico( String email_superior_hierarquico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMAIL_SUPERIOR_HIERARQUICO, email_superior_hierarquico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.email_superior_hierarquico = email_superior_hierarquico;
+ LAZY_LOADED_OBJECTS.put( EMAIL_SUPERIOR_HIERARQUICO, Boolean.TRUE );
+ }
+
+ public String getEstabelecimento_origem()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ORIGEM );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_origem;
+ }
+
+ public void setEstabelecimento_origem( String estabelecimento_origem )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ORIGEM, estabelecimento_origem );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_origem = estabelecimento_origem;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ORIGEM, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_email_superior_hierarquico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_EMAIL_SUPERIOR_HIERARQUICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_email_superior_hierarquico;
+ }
+
+ public void setData_email_superior_hierarquico( java.util.Date data_email_superior_hierarquico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_EMAIL_SUPERIOR_HIERARQUICO, data_email_superior_hierarquico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_email_superior_hierarquico = data_email_superior_hierarquico;
+ LAZY_LOADED_OBJECTS.put( DATA_EMAIL_SUPERIOR_HIERARQUICO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Acidentados.ID_INDEX:
+ value = getId();
+ break;
+ case Acidentados.NOME_INDEX:
+ value = getNome();
+ break;
+ case Acidentados.DATA_NASCIMENTO_INDEX:
+ value = getData_nascimento();
+ break;
+ case Acidentados.BILHETE_IDENTIDADE_INDEX:
+ value = getBilhete_identidade();
+ break;
+ case Acidentados.MORADA_INDEX:
+ value = getMorada();
+ break;
+ case Acidentados.COD_POSTAL_INDEX:
+ value = getCod_postal();
+ break;
+ case Acidentados.LOCALIDADE_INDEX:
+ value = getLocalidade();
+ break;
+ case Acidentados.CONTACTO_TELEFONICO_INDEX:
+ value = getContacto_telefonico();
+ break;
+ case Acidentados.DATA_ADMISSAO_INDEX:
+ value = getData_admissao();
+ break;
+ case Acidentados.FUNCAO_INDEX:
+ value = getFuncao();
+ break;
+ case Acidentados.TRABALHADOR_ID_INDEX:
+ value = getTrabalhador_id();
+ break;
+ case Acidentados.TURNO_INDEX:
+ value = getTurno();
+ break;
+ case Acidentados.NUMERO_MECANOGRAFICO_INDEX:
+ value = getNumero_mecanografico();
+ break;
+ case Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX:
+ value = getNome_superior_hierarquico();
+ break;
+ case Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ value = getEmail_superior_hierarquico();
+ break;
+ case Acidentados.ESTABELECIMENTO_ORIGEM_INDEX:
+ value = getEstabelecimento_origem();
+ break;
+ case Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ value = getData_email_superior_hierarquico();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Acidentados.ID_INDEX:
+ value = this.id;
+ break;
+ case Acidentados.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Acidentados.DATA_NASCIMENTO_INDEX:
+ value = this.data_nascimento;
+ break;
+ case Acidentados.BILHETE_IDENTIDADE_INDEX:
+ value = this.bilhete_identidade;
+ break;
+ case Acidentados.MORADA_INDEX:
+ value = this.morada;
+ break;
+ case Acidentados.COD_POSTAL_INDEX:
+ value = this.cod_postal;
+ break;
+ case Acidentados.LOCALIDADE_INDEX:
+ value = this.localidade;
+ break;
+ case Acidentados.CONTACTO_TELEFONICO_INDEX:
+ value = this.contacto_telefonico;
+ break;
+ case Acidentados.DATA_ADMISSAO_INDEX:
+ value = this.data_admissao;
+ break;
+ case Acidentados.FUNCAO_INDEX:
+ value = this.funcao;
+ break;
+ case Acidentados.TRABALHADOR_ID_INDEX:
+ value = this.trabalhador_id;
+ break;
+ case Acidentados.TURNO_INDEX:
+ value = this.turno;
+ break;
+ case Acidentados.NUMERO_MECANOGRAFICO_INDEX:
+ value = this.numero_mecanografico;
+ break;
+ case Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX:
+ value = this.nome_superior_hierarquico;
+ break;
+ case Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ value = this.email_superior_hierarquico;
+ break;
+ case Acidentados.ESTABELECIMENTO_ORIGEM_INDEX:
+ value = this.estabelecimento_origem;
+ break;
+ case Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ value = this.data_email_superior_hierarquico;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Acidentados.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Acidentados.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Acidentados.DATA_NASCIMENTO_INDEX:
+ setData_nascimento( ( java.util.Date ) value );
+ break;
+ case Acidentados.BILHETE_IDENTIDADE_INDEX:
+ setBilhete_identidade( ( String ) value );
+ break;
+ case Acidentados.MORADA_INDEX:
+ setMorada( ( String ) value );
+ break;
+ case Acidentados.COD_POSTAL_INDEX:
+ setCod_postal( ( String ) value );
+ break;
+ case Acidentados.LOCALIDADE_INDEX:
+ setLocalidade( ( String ) value );
+ break;
+ case Acidentados.CONTACTO_TELEFONICO_INDEX:
+ setContacto_telefonico( ( String ) value );
+ break;
+ case Acidentados.DATA_ADMISSAO_INDEX:
+ setData_admissao( ( java.util.Date ) value );
+ break;
+ case Acidentados.FUNCAO_INDEX:
+ setFuncao( ( String ) value );
+ break;
+ case Acidentados.TRABALHADOR_ID_INDEX:
+ setTrabalhador_id( ( Integer ) value );
+ break;
+ case Acidentados.TURNO_INDEX:
+ setTurno( ( String ) value );
+ break;
+ case Acidentados.NUMERO_MECANOGRAFICO_INDEX:
+ setNumero_mecanografico( ( String ) value );
+ break;
+ case Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX:
+ setNome_superior_hierarquico( ( String ) value );
+ break;
+ case Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ setEmail_superior_hierarquico( ( String ) value );
+ break;
+ case Acidentados.ESTABELECIMENTO_ORIGEM_INDEX:
+ setEstabelecimento_origem( ( String ) value );
+ break;
+ case Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ setData_email_superior_hierarquico( ( java.util.Date ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Acidentados.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Acidentados.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Acidentados.DATA_NASCIMENTO_INDEX:
+ this.data_nascimento = ( java.util.Date ) value;
+ break;
+ case Acidentados.BILHETE_IDENTIDADE_INDEX:
+ this.bilhete_identidade = ( String ) value;
+ break;
+ case Acidentados.MORADA_INDEX:
+ this.morada = ( String ) value;
+ break;
+ case Acidentados.COD_POSTAL_INDEX:
+ this.cod_postal = ( String ) value;
+ break;
+ case Acidentados.LOCALIDADE_INDEX:
+ this.localidade = ( String ) value;
+ break;
+ case Acidentados.CONTACTO_TELEFONICO_INDEX:
+ this.contacto_telefonico = ( String ) value;
+ break;
+ case Acidentados.DATA_ADMISSAO_INDEX:
+ this.data_admissao = ( java.util.Date ) value;
+ break;
+ case Acidentados.FUNCAO_INDEX:
+ this.funcao = ( String ) value;
+ break;
+ case Acidentados.TRABALHADOR_ID_INDEX:
+ this.trabalhador_id = ( Integer ) value;
+ break;
+ case Acidentados.TURNO_INDEX:
+ this.turno = ( String ) value;
+ break;
+ case Acidentados.NUMERO_MECANOGRAFICO_INDEX:
+ this.numero_mecanografico = ( String ) value;
+ break;
+ case Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX:
+ this.nome_superior_hierarquico = ( String ) value;
+ break;
+ case Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ this.email_superior_hierarquico = ( String ) value;
+ break;
+ case Acidentados.ESTABELECIMENTO_ORIGEM_INDEX:
+ this.estabelecimento_origem = ( String ) value;
+ break;
+ case Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ this.data_email_superior_hierarquico = ( java.util.Date ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Acidentados.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Acidentados.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.DATA_NASCIMENTO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Acidentados.BILHETE_IDENTIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.MORADA_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.COD_POSTAL_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.LOCALIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.CONTACTO_TELEFONICO_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.DATA_ADMISSAO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Acidentados.FUNCAO_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.TRABALHADOR_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Acidentados.TURNO_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.NUMERO_MECANOGRAFICO_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.NOME_SUPERIOR_HIERARQUICO_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.ESTABELECIMENTO_ORIGEM_INDEX:
+ theClass = String.class;
+ break;
+ case Acidentados.DATA_EMAIL_SUPERIOR_HIERARQUICO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Acidentados._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Acidentados.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Actualizacao.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Actualizacao.java
new file mode 100644
index 00000000..bd8499be
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Actualizacao.java
@@ -0,0 +1,178 @@
+/*
+* Actualizacao.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Actualizacao extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "actualizacao";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.actualizacao";
+
+ public static final int _INVALID__INDEX = -1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ };
+
+
+ protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
+
+ public Actualizacao()
+ {
+ super();
+ dirtyProperties = new boolean[]{ };
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ throw new RuntimeException( "getPrimaryKeyName on Actualizacao is invalid" );
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Actualizacao._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.ObjectPrimaryKey( TABLENAME, Actualizacao.PK_FIELD_NAMES );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/AnalisesAcidentes.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/AnalisesAcidentes.java
new file mode 100644
index 00000000..4159182e
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/AnalisesAcidentes.java
@@ -0,0 +1,5780 @@
+/*
+* AnalisesAcidentes.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class AnalisesAcidentes extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( AnalisesAcidentes.ID, AnalisesAcidentes.ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ID_FULL, AnalisesAcidentes.ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ACIDENTE, AnalisesAcidentes.DATA_ACIDENTE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ACIDENTE_FULL, AnalisesAcidentes.DATA_ACIDENTE_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( AnalisesAcidentes.CLASS_IDENTIFIER, AnalisesAcidentes.ACIDENTADO_ID, AnalisesAcidentes.TO_ACIDENTADO_ID );
+ FIELD_INDEXES.put( AnalisesAcidentes.ACIDENTADO_ID, AnalisesAcidentes.ACIDENTADO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ACIDENTADO_ID_FULL, AnalisesAcidentes.ACIDENTADO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TO_ACIDENTADO_ID, AnalisesAcidentes.TO_ACIDENTADO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTADO, AnalisesAcidentes.ESTADO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTADO_FULL, AnalisesAcidentes.ESTADO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTABELECIMENTO_ID, AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTABELECIMENTO_ID_FULL, AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.HORAS_TURNO, AnalisesAcidentes.HORAS_TURNO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.HORAS_TURNO_FULL, AnalisesAcidentes.HORAS_TURNO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SECCAO, AnalisesAcidentes.SECCAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SECCAO_FULL, AnalisesAcidentes.SECCAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LOCAL_TRABALHO, AnalisesAcidentes.LOCAL_TRABALHO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LOCAL_TRABALHO_FULL, AnalisesAcidentes.LOCAL_TRABALHO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TAREFA, AnalisesAcidentes.TAREFA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TAREFA_FULL, AnalisesAcidentes.TAREFA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SUBSTANCIAS, AnalisesAcidentes.SUBSTANCIAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SUBSTANCIAS_FULL, AnalisesAcidentes.SUBSTANCIAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SUPERIOR_HIERARQUICO, AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SUPERIOR_HIERARQUICO_FULL, AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CONDICOES, AnalisesAcidentes.CONDICOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CONDICOES_FULL, AnalisesAcidentes.CONDICOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TESTEMUNHAS, AnalisesAcidentes.TESTEMUNHAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TESTEMUNHAS_FULL, AnalisesAcidentes.TESTEMUNHAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DESCRICAO, AnalisesAcidentes.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DESCRICAO_FULL, AnalisesAcidentes.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CONCLUSOES, AnalisesAcidentes.CONCLUSOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CONCLUSOES_FULL, AnalisesAcidentes.CONCLUSOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ACCOES, AnalisesAcidentes.ACCOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ACCOES_FULL, AnalisesAcidentes.ACCOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.HORA_ACIDENTE, AnalisesAcidentes.HORA_ACIDENTE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.HORA_ACIDENTE_FULL, AnalisesAcidentes.HORA_ACIDENTE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.FORMACAO_SHST, AnalisesAcidentes.FORMACAO_SHST_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.FORMACAO_SHST_FULL, AnalisesAcidentes.FORMACAO_SHST_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE, AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_FULL, AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR, AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_FULL, AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR, AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_FULL, AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES, AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_FULL, AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES, AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_FULL, AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_FULL, AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_CABECA, AnalisesAcidentes.LESAO_CABECA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_CABECA_FULL, AnalisesAcidentes.LESAO_CABECA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_PESCOCO, AnalisesAcidentes.LESAO_PESCOCO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_PESCOCO_FULL, AnalisesAcidentes.LESAO_PESCOCO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_TRONCO, AnalisesAcidentes.LESAO_TRONCO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_TRONCO_FULL, AnalisesAcidentes.LESAO_TRONCO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR, AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_FULL, AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ, AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_FULL, AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_INF_DIR, AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_FULL, AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ, AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_FULL, AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF1, AnalisesAcidentes.ESPECIF1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF1_FULL, AnalisesAcidentes.ESPECIF1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF2, AnalisesAcidentes.ESPECIF2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF2_FULL, AnalisesAcidentes.ESPECIF2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF3, AnalisesAcidentes.ESPECIF3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF3_FULL, AnalisesAcidentes.ESPECIF3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF4, AnalisesAcidentes.ESPECIF4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESPECIF4_FULL, AnalisesAcidentes.ESPECIF4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TIPO_INCAPACIDADE, AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TIPO_INCAPACIDADE_FULL, AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.COEF_INCAPACIDADE, AnalisesAcidentes.COEF_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.COEF_INCAPACIDADE_FULL, AnalisesAcidentes.COEF_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_AVAL_INCAPACIDADE, AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_FULL, AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_REV_INCAPACIDADE, AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_REV_INCAPACIDADE_FULL, AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.PERIODO_INCAPACIDADE_DE, AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_FULL, AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.PERIODO_INCAPACIDADE_A, AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.PERIODO_INCAPACIDADE_A_FULL, AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_FLEXAO, AnalisesAcidentes.IMG_FLEXAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_FLEXAO_FULL, AnalisesAcidentes.IMG_FLEXAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_EXT1, AnalisesAcidentes.IMG_EXT1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_EXT1_FULL, AnalisesAcidentes.IMG_EXT1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_EXT2, AnalisesAcidentes.IMG_EXT2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_EXT2_FULL, AnalisesAcidentes.IMG_EXT2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB2, AnalisesAcidentes.IMG_CAB2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB2_FULL, AnalisesAcidentes.IMG_CAB2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB3, AnalisesAcidentes.IMG_CAB3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB3_FULL, AnalisesAcidentes.IMG_CAB3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA2, AnalisesAcidentes.IMG_MA2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA2_FULL, AnalisesAcidentes.IMG_MA2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA3, AnalisesAcidentes.IMG_MA3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA3_FULL, AnalisesAcidentes.IMG_MA3_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA5, AnalisesAcidentes.IMG_MA5_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA5_FULL, AnalisesAcidentes.IMG_MA5_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA6, AnalisesAcidentes.IMG_MA6_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA6_FULL, AnalisesAcidentes.IMG_MA6_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA8, AnalisesAcidentes.IMG_MA8_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA8_FULL, AnalisesAcidentes.IMG_MA8_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA10, AnalisesAcidentes.IMG_MA10_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA10_FULL, AnalisesAcidentes.IMG_MA10_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_CARGA, AnalisesAcidentes.RESTRICAO_CARGA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_CARGA_FULL, AnalisesAcidentes.RESTRICAO_CARGA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_MOTRICIDADE, AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_MOTRICIDADE_FULL, AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_CONDUCAO, AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_CONDUCAO_FULL, AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_VIBRACOES, AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_VIBRACOES_FULL, AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_OUTRAS, AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RESTRICAO_OUTRAS_FULL, AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.MED_OBSERV, AnalisesAcidentes.MED_OBSERV_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.MED_OBSERV_FULL, AnalisesAcidentes.MED_OBSERV_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TIPO_LESAO, AnalisesAcidentes.TIPO_LESAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TIPO_LESAO_FULL, AnalisesAcidentes.TIPO_LESAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_ROT1, AnalisesAcidentes.IMG_ROT1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_ROT1_FULL, AnalisesAcidentes.IMG_ROT1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_ROT2, AnalisesAcidentes.IMG_ROT2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_ROT2_FULL, AnalisesAcidentes.IMG_ROT2_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB1, AnalisesAcidentes.IMG_CAB1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB1_FULL, AnalisesAcidentes.IMG_CAB1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB4, AnalisesAcidentes.IMG_CAB4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_CAB4_FULL, AnalisesAcidentes.IMG_CAB4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA1, AnalisesAcidentes.IMG_MA1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA1_FULL, AnalisesAcidentes.IMG_MA1_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA4, AnalisesAcidentes.IMG_MA4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA4_FULL, AnalisesAcidentes.IMG_MA4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA7, AnalisesAcidentes.IMG_MA7_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA7_FULL, AnalisesAcidentes.IMG_MA7_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA9, AnalisesAcidentes.IMG_MA9_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.IMG_MA9_FULL, AnalisesAcidentes.IMG_MA9_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.EMPRESA_ID, AnalisesAcidentes.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.EMPRESA_ID_FULL, AnalisesAcidentes.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.MEDICO_ID, AnalisesAcidentes.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.MEDICO_ID_FULL, AnalisesAcidentes.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TECNICO_SAUDE_ID, AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TECNICO_SAUDE_ID_FULL, AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ANALISE_NR, AnalisesAcidentes.ANALISE_NR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ANALISE_NR_FULL, AnalisesAcidentes.ANALISE_NR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTADO_ASSINATURA, AnalisesAcidentes.ESTADO_ASSINATURA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTADO_ASSINATURA_FULL, AnalisesAcidentes.ESTADO_ASSINATURA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_RESP_SEG, AnalisesAcidentes.ASS_RESP_SEG_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_RESP_SEG_FULL, AnalisesAcidentes.ASS_RESP_SEG_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_RESP_RH, AnalisesAcidentes.ASS_RESP_RH_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_RESP_RH_FULL, AnalisesAcidentes.ASS_RESP_RH_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_CONSOLIDACAO, AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_CONSOLIDACAO_FULL, AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ASSINATURA_SEG, AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ASSINATURA_SEG_FULL, AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ASSINATURA_RH, AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ASSINATURA_RH_FULL, AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_CONSOLIDACAO, AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_CONSOLIDACAO_FULL, AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_RESP_SEG, AnalisesAcidentes.NOME_RESP_SEG_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_RESP_SEG_FULL, AnalisesAcidentes.NOME_RESP_SEG_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_RESP_RH, AnalisesAcidentes.NOME_RESP_RH_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_RESP_RH_FULL, AnalisesAcidentes.NOME_RESP_RH_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CAUSAS, AnalisesAcidentes.CAUSAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CAUSAS_FULL, AnalisesAcidentes.CAUSAS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTADO_ANTES_CORRECAO, AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ESTADO_ANTES_CORRECAO_FULL, AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.OBSERVACOES_CORRECAO, AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.OBSERVACOES_CORRECAO_FULL, AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CORRECAO, AnalisesAcidentes.CORRECAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CORRECAO_FULL, AnalisesAcidentes.CORRECAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_SUPERIOR, AnalisesAcidentes.ASS_SUPERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.ASS_SUPERIOR_FULL, AnalisesAcidentes.ASS_SUPERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_SUPERIOR, AnalisesAcidentes.NOME_SUPERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_SUPERIOR_FULL, AnalisesAcidentes.NOME_SUPERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR, AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_FULL, AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.AVERIGUADOR, AnalisesAcidentes.AVERIGUADOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.AVERIGUADOR_FULL, AnalisesAcidentes.AVERIGUADOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.AVERIGUACAO_POSTERIOR, AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.AVERIGUACAO_POSTERIOR_FULL, AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.AVERIGUACAO_OBS, AnalisesAcidentes.AVERIGUACAO_OBS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.AVERIGUACAO_OBS_FULL, AnalisesAcidentes.AVERIGUACAO_OBS_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_RESP_CONSOLIDACAO, AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_FULL, AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_INICIO_PROCESSO, AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_INICIO_PROCESSO_FULL, AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( AnalisesAcidentes.CLASS_IDENTIFIER, AnalisesAcidentes.DEPARTAMENTO_ID, AnalisesAcidentes.TO_DEPARTAMENTO_ID );
+ FIELD_INDEXES.put( AnalisesAcidentes.DEPARTAMENTO_ID, AnalisesAcidentes.DEPARTAMENTO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DEPARTAMENTO_ID_FULL, AnalisesAcidentes.DEPARTAMENTO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TO_DEPARTAMENTO_ID, AnalisesAcidentes.TO_DEPARTAMENTO_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( AnalisesAcidentes.CLASS_IDENTIFIER, AnalisesAcidentes.SECCAO_ID, AnalisesAcidentes.TO_SECCAO_ID );
+ FIELD_INDEXES.put( AnalisesAcidentes.SECCAO_ID, AnalisesAcidentes.SECCAO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.SECCAO_ID_FULL, AnalisesAcidentes.SECCAO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.TO_SECCAO_ID, AnalisesAcidentes.TO_SECCAO_ID_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RH_FASE4, AnalisesAcidentes.RH_FASE4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.RH_FASE4_FULL, AnalisesAcidentes.RH_FASE4_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.APAGADA, AnalisesAcidentes.APAGADA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.APAGADA_FULL, AnalisesAcidentes.APAGADA_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO, AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_FULL, AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_DESACTIVACAO, AnalisesAcidentes.DATA_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.DATA_DESACTIVACAO_FULL, AnalisesAcidentes.DATA_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.COMENTARIO_DESACTIVACAO, AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( AnalisesAcidentes.COMENTARIO_DESACTIVACAO_FULL, AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyacidentado_idToacidentados =
+ new com.evolute.entity.ForeignKey( AnalisesAcidentes.class, AnalisesAcidentes.ACIDENTADO_ID, db.data.siprp.outer.AcidentadosData.class, db.data.siprp.outer.AcidentadosData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeydepartamento_idTodepartamentos =
+ new com.evolute.entity.ForeignKey( AnalisesAcidentes.class, AnalisesAcidentes.DEPARTAMENTO_ID, db.data.siprp.outer.DepartamentosData.class, db.data.siprp.outer.DepartamentosData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyseccao_idToseccoes =
+ new com.evolute.entity.ForeignKey( AnalisesAcidentes.class, AnalisesAcidentes.SECCAO_ID, db.data.siprp.outer.SeccoesData.class, db.data.siprp.outer.SeccoesData.ID );
+
+ public static final String TABLENAME = "analises_acidentes";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.analises_acidentes";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "analises_acidentes.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATA_ACIDENTE = "data_acidente";
+ public static final String DATA_ACIDENTE_FULL = "analises_acidentes.data_acidente";
+ public static final int DATA_ACIDENTE_INDEX = 1;
+ public static final String ACIDENTADO_ID = "acidentado_id";
+ public static final String ACIDENTADO_ID_FULL = "analises_acidentes.acidentado_id";
+ public static final int ACIDENTADO_ID_INDEX = 2;
+ public static final String TO_ACIDENTADO_ID = "to_acidentado_id";
+ public static final String TO_ACIDENTADO_ID_FULL = "analises_acidentes.to_acidentado_id";
+ public static final int TO_ACIDENTADO_ID_INDEX = 3;
+ public static final String ESTADO = "estado";
+ public static final String ESTADO_FULL = "analises_acidentes.estado";
+ public static final int ESTADO_INDEX = 4;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "analises_acidentes.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 5;
+ public static final String HORAS_TURNO = "horas_turno";
+ public static final String HORAS_TURNO_FULL = "analises_acidentes.horas_turno";
+ public static final int HORAS_TURNO_INDEX = 6;
+ public static final String SECCAO = "seccao";
+ public static final String SECCAO_FULL = "analises_acidentes.seccao";
+ public static final int SECCAO_INDEX = 7;
+ public static final String LOCAL_TRABALHO = "local_trabalho";
+ public static final String LOCAL_TRABALHO_FULL = "analises_acidentes.local_trabalho";
+ public static final int LOCAL_TRABALHO_INDEX = 8;
+ public static final String TAREFA = "tarefa";
+ public static final String TAREFA_FULL = "analises_acidentes.tarefa";
+ public static final int TAREFA_INDEX = 9;
+ public static final String SUBSTANCIAS = "substancias";
+ public static final String SUBSTANCIAS_FULL = "analises_acidentes.substancias";
+ public static final int SUBSTANCIAS_INDEX = 10;
+ public static final String SUPERIOR_HIERARQUICO = "superior_hierarquico";
+ public static final String SUPERIOR_HIERARQUICO_FULL = "analises_acidentes.superior_hierarquico";
+ public static final int SUPERIOR_HIERARQUICO_INDEX = 11;
+ public static final String CONDICOES = "condicoes";
+ public static final String CONDICOES_FULL = "analises_acidentes.condicoes";
+ public static final int CONDICOES_INDEX = 12;
+ public static final String TESTEMUNHAS = "testemunhas";
+ public static final String TESTEMUNHAS_FULL = "analises_acidentes.testemunhas";
+ public static final int TESTEMUNHAS_INDEX = 13;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "analises_acidentes.descricao";
+ public static final int DESCRICAO_INDEX = 14;
+ public static final String CONCLUSOES = "conclusoes";
+ public static final String CONCLUSOES_FULL = "analises_acidentes.conclusoes";
+ public static final int CONCLUSOES_INDEX = 15;
+ public static final String ACCOES = "accoes";
+ public static final String ACCOES_FULL = "analises_acidentes.accoes";
+ public static final int ACCOES_INDEX = 16;
+ public static final String HORA_ACIDENTE = "hora_acidente";
+ public static final String HORA_ACIDENTE_FULL = "analises_acidentes.hora_acidente";
+ public static final int HORA_ACIDENTE_INDEX = 17;
+ public static final String FORMACAO_SHST = "formacao_shst";
+ public static final String FORMACAO_SHST_FULL = "analises_acidentes.formacao_shst";
+ public static final int FORMACAO_SHST_INDEX = 18;
+ public static final String FORMACAO_SHST_NAO_PORQUE = "formacao_shst_nao_porque";
+ public static final String FORMACAO_SHST_NAO_PORQUE_FULL = "analises_acidentes.formacao_shst_nao_porque";
+ public static final int FORMACAO_SHST_NAO_PORQUE_INDEX = 19;
+ public static final String OUTROS_ACIDENTES_COM_COLABORADOR = "outros_acidentes_com_colaborador";
+ public static final String OUTROS_ACIDENTES_COM_COLABORADOR_FULL = "analises_acidentes.outros_acidentes_com_colaborador";
+ public static final int OUTROS_ACIDENTES_COM_COLABORADOR_INDEX = 20;
+ public static final String NR_ACIDENTES_COM_COLABORADOR = "nr_acidentes_com_colaborador";
+ public static final String NR_ACIDENTES_COM_COLABORADOR_FULL = "analises_acidentes.nr_acidentes_com_colaborador";
+ public static final int NR_ACIDENTES_COM_COLABORADOR_INDEX = 21;
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR1 = "nr_relatorio_acidente_colaborador1";
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR1_FULL = "analises_acidentes.nr_relatorio_acidente_colaborador1";
+ public static final int NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX = 22;
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR2 = "nr_relatorio_acidente_colaborador2";
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR2_FULL = "analises_acidentes.nr_relatorio_acidente_colaborador2";
+ public static final int NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX = 23;
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR3 = "nr_relatorio_acidente_colaborador3";
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR3_FULL = "analises_acidentes.nr_relatorio_acidente_colaborador3";
+ public static final int NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX = 24;
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR4 = "nr_relatorio_acidente_colaborador4";
+ public static final String NR_RELATORIO_ACIDENTE_COLABORADOR4_FULL = "analises_acidentes.nr_relatorio_acidente_colaborador4";
+ public static final int NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX = 25;
+ public static final String ACIDENTES_OUTROS_COLABORADORES = "acidentes_outros_colaboradores";
+ public static final String ACIDENTES_OUTROS_COLABORADORES_FULL = "analises_acidentes.acidentes_outros_colaboradores";
+ public static final int ACIDENTES_OUTROS_COLABORADORES_INDEX = 26;
+ public static final String NR_ACIDENTES_OUTROS_COLABORADORES = "nr_acidentes_outros_colaboradores";
+ public static final String NR_ACIDENTES_OUTROS_COLABORADORES_FULL = "analises_acidentes.nr_acidentes_outros_colaboradores";
+ public static final int NR_ACIDENTES_OUTROS_COLABORADORES_INDEX = 27;
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1 = "nr_relatorio_acidente_outros_colaboradores1";
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_FULL = "analises_acidentes.nr_relatorio_acidente_outros_colaboradores1";
+ public static final int NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX = 28;
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2 = "nr_relatorio_acidente_outros_colaboradores2";
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_FULL = "analises_acidentes.nr_relatorio_acidente_outros_colaboradores2";
+ public static final int NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX = 29;
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3 = "nr_relatorio_acidente_outros_colaboradores3";
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_FULL = "analises_acidentes.nr_relatorio_acidente_outros_colaboradores3";
+ public static final int NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX = 30;
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4 = "nr_relatorio_acidente_outros_colaboradores4";
+ public static final String NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_FULL = "analises_acidentes.nr_relatorio_acidente_outros_colaboradores4";
+ public static final int NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX = 31;
+ public static final String LESAO_CABECA = "lesao_cabeca";
+ public static final String LESAO_CABECA_FULL = "analises_acidentes.lesao_cabeca";
+ public static final int LESAO_CABECA_INDEX = 32;
+ public static final String LESAO_PESCOCO = "lesao_pescoco";
+ public static final String LESAO_PESCOCO_FULL = "analises_acidentes.lesao_pescoco";
+ public static final int LESAO_PESCOCO_INDEX = 33;
+ public static final String LESAO_TRONCO = "lesao_tronco";
+ public static final String LESAO_TRONCO_FULL = "analises_acidentes.lesao_tronco";
+ public static final int LESAO_TRONCO_INDEX = 34;
+ public static final String LESAO_MEMBRO_SUP_DIR = "lesao_membro_sup_dir";
+ public static final String LESAO_MEMBRO_SUP_DIR_FULL = "analises_acidentes.lesao_membro_sup_dir";
+ public static final int LESAO_MEMBRO_SUP_DIR_INDEX = 35;
+ public static final String LESAO_MEMBRO_SUP_ESQ = "lesao_membro_sup_esq";
+ public static final String LESAO_MEMBRO_SUP_ESQ_FULL = "analises_acidentes.lesao_membro_sup_esq";
+ public static final int LESAO_MEMBRO_SUP_ESQ_INDEX = 36;
+ public static final String LESAO_MEMBRO_INF_DIR = "lesao_membro_inf_dir";
+ public static final String LESAO_MEMBRO_INF_DIR_FULL = "analises_acidentes.lesao_membro_inf_dir";
+ public static final int LESAO_MEMBRO_INF_DIR_INDEX = 37;
+ public static final String LESAO_MEMBRO_INF_ESQ = "lesao_membro_inf_esq";
+ public static final String LESAO_MEMBRO_INF_ESQ_FULL = "analises_acidentes.lesao_membro_inf_esq";
+ public static final int LESAO_MEMBRO_INF_ESQ_INDEX = 38;
+ public static final String ESPECIF1 = "especif1";
+ public static final String ESPECIF1_FULL = "analises_acidentes.especif1";
+ public static final int ESPECIF1_INDEX = 39;
+ public static final String ESPECIF2 = "especif2";
+ public static final String ESPECIF2_FULL = "analises_acidentes.especif2";
+ public static final int ESPECIF2_INDEX = 40;
+ public static final String ESPECIF3 = "especif3";
+ public static final String ESPECIF3_FULL = "analises_acidentes.especif3";
+ public static final int ESPECIF3_INDEX = 41;
+ public static final String ESPECIF4 = "especif4";
+ public static final String ESPECIF4_FULL = "analises_acidentes.especif4";
+ public static final int ESPECIF4_INDEX = 42;
+ public static final String TIPO_INCAPACIDADE = "tipo_incapacidade";
+ public static final String TIPO_INCAPACIDADE_FULL = "analises_acidentes.tipo_incapacidade";
+ public static final int TIPO_INCAPACIDADE_INDEX = 43;
+ public static final String COEF_INCAPACIDADE = "coef_incapacidade";
+ public static final String COEF_INCAPACIDADE_FULL = "analises_acidentes.coef_incapacidade";
+ public static final int COEF_INCAPACIDADE_INDEX = 44;
+ public static final String DATA_AVAL_INCAPACIDADE = "data_aval_incapacidade";
+ public static final String DATA_AVAL_INCAPACIDADE_FULL = "analises_acidentes.data_aval_incapacidade";
+ public static final int DATA_AVAL_INCAPACIDADE_INDEX = 45;
+ public static final String DATA_REV_INCAPACIDADE = "data_rev_incapacidade";
+ public static final String DATA_REV_INCAPACIDADE_FULL = "analises_acidentes.data_rev_incapacidade";
+ public static final int DATA_REV_INCAPACIDADE_INDEX = 46;
+ public static final String PERIODO_INCAPACIDADE_DE = "periodo_incapacidade_de";
+ public static final String PERIODO_INCAPACIDADE_DE_FULL = "analises_acidentes.periodo_incapacidade_de";
+ public static final int PERIODO_INCAPACIDADE_DE_INDEX = 47;
+ public static final String PERIODO_INCAPACIDADE_A = "periodo_incapacidade_a";
+ public static final String PERIODO_INCAPACIDADE_A_FULL = "analises_acidentes.periodo_incapacidade_a";
+ public static final int PERIODO_INCAPACIDADE_A_INDEX = 48;
+ public static final String IMG_FLEXAO = "img_flexao";
+ public static final String IMG_FLEXAO_FULL = "analises_acidentes.img_flexao";
+ public static final int IMG_FLEXAO_INDEX = 49;
+ public static final String IMG_EXT1 = "img_ext1";
+ public static final String IMG_EXT1_FULL = "analises_acidentes.img_ext1";
+ public static final int IMG_EXT1_INDEX = 50;
+ public static final String IMG_EXT2 = "img_ext2";
+ public static final String IMG_EXT2_FULL = "analises_acidentes.img_ext2";
+ public static final int IMG_EXT2_INDEX = 51;
+ public static final String IMG_CAB2 = "img_cab2";
+ public static final String IMG_CAB2_FULL = "analises_acidentes.img_cab2";
+ public static final int IMG_CAB2_INDEX = 52;
+ public static final String IMG_CAB3 = "img_cab3";
+ public static final String IMG_CAB3_FULL = "analises_acidentes.img_cab3";
+ public static final int IMG_CAB3_INDEX = 53;
+ public static final String IMG_MA2 = "img_ma2";
+ public static final String IMG_MA2_FULL = "analises_acidentes.img_ma2";
+ public static final int IMG_MA2_INDEX = 54;
+ public static final String IMG_MA3 = "img_ma3";
+ public static final String IMG_MA3_FULL = "analises_acidentes.img_ma3";
+ public static final int IMG_MA3_INDEX = 55;
+ public static final String IMG_MA5 = "img_ma5";
+ public static final String IMG_MA5_FULL = "analises_acidentes.img_ma5";
+ public static final int IMG_MA5_INDEX = 56;
+ public static final String IMG_MA6 = "img_ma6";
+ public static final String IMG_MA6_FULL = "analises_acidentes.img_ma6";
+ public static final int IMG_MA6_INDEX = 57;
+ public static final String IMG_MA8 = "img_ma8";
+ public static final String IMG_MA8_FULL = "analises_acidentes.img_ma8";
+ public static final int IMG_MA8_INDEX = 58;
+ public static final String IMG_MA10 = "img_ma10";
+ public static final String IMG_MA10_FULL = "analises_acidentes.img_ma10";
+ public static final int IMG_MA10_INDEX = 59;
+ public static final String RESTRICAO_CARGA = "restricao_carga";
+ public static final String RESTRICAO_CARGA_FULL = "analises_acidentes.restricao_carga";
+ public static final int RESTRICAO_CARGA_INDEX = 60;
+ public static final String RESTRICAO_MOTRICIDADE = "restricao_motricidade";
+ public static final String RESTRICAO_MOTRICIDADE_FULL = "analises_acidentes.restricao_motricidade";
+ public static final int RESTRICAO_MOTRICIDADE_INDEX = 61;
+ public static final String RESTRICAO_CONDUCAO = "restricao_conducao";
+ public static final String RESTRICAO_CONDUCAO_FULL = "analises_acidentes.restricao_conducao";
+ public static final int RESTRICAO_CONDUCAO_INDEX = 62;
+ public static final String RESTRICAO_VIBRACOES = "restricao_vibracoes";
+ public static final String RESTRICAO_VIBRACOES_FULL = "analises_acidentes.restricao_vibracoes";
+ public static final int RESTRICAO_VIBRACOES_INDEX = 63;
+ public static final String RESTRICAO_OUTRAS = "restricao_outras";
+ public static final String RESTRICAO_OUTRAS_FULL = "analises_acidentes.restricao_outras";
+ public static final int RESTRICAO_OUTRAS_INDEX = 64;
+ public static final String MED_OBSERV = "med_observ";
+ public static final String MED_OBSERV_FULL = "analises_acidentes.med_observ";
+ public static final int MED_OBSERV_INDEX = 65;
+ public static final String TIPO_LESAO = "tipo_lesao";
+ public static final String TIPO_LESAO_FULL = "analises_acidentes.tipo_lesao";
+ public static final int TIPO_LESAO_INDEX = 66;
+ public static final String IMG_ROT1 = "img_rot1";
+ public static final String IMG_ROT1_FULL = "analises_acidentes.img_rot1";
+ public static final int IMG_ROT1_INDEX = 67;
+ public static final String IMG_ROT2 = "img_rot2";
+ public static final String IMG_ROT2_FULL = "analises_acidentes.img_rot2";
+ public static final int IMG_ROT2_INDEX = 68;
+ public static final String IMG_CAB1 = "img_cab1";
+ public static final String IMG_CAB1_FULL = "analises_acidentes.img_cab1";
+ public static final int IMG_CAB1_INDEX = 69;
+ public static final String IMG_CAB4 = "img_cab4";
+ public static final String IMG_CAB4_FULL = "analises_acidentes.img_cab4";
+ public static final int IMG_CAB4_INDEX = 70;
+ public static final String IMG_MA1 = "img_ma1";
+ public static final String IMG_MA1_FULL = "analises_acidentes.img_ma1";
+ public static final int IMG_MA1_INDEX = 71;
+ public static final String IMG_MA4 = "img_ma4";
+ public static final String IMG_MA4_FULL = "analises_acidentes.img_ma4";
+ public static final int IMG_MA4_INDEX = 72;
+ public static final String IMG_MA7 = "img_ma7";
+ public static final String IMG_MA7_FULL = "analises_acidentes.img_ma7";
+ public static final int IMG_MA7_INDEX = 73;
+ public static final String IMG_MA9 = "img_ma9";
+ public static final String IMG_MA9_FULL = "analises_acidentes.img_ma9";
+ public static final int IMG_MA9_INDEX = 74;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "analises_acidentes.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 75;
+ public static final String MEDICO_ID = "medico_id";
+ public static final String MEDICO_ID_FULL = "analises_acidentes.medico_id";
+ public static final int MEDICO_ID_INDEX = 76;
+ public static final String TECNICO_SAUDE_ID = "tecnico_saude_id";
+ public static final String TECNICO_SAUDE_ID_FULL = "analises_acidentes.tecnico_saude_id";
+ public static final int TECNICO_SAUDE_ID_INDEX = 77;
+ public static final String ANALISE_NR = "analise_nr";
+ public static final String ANALISE_NR_FULL = "analises_acidentes.analise_nr";
+ public static final int ANALISE_NR_INDEX = 78;
+ public static final String ESTADO_ASSINATURA = "estado_assinatura";
+ public static final String ESTADO_ASSINATURA_FULL = "analises_acidentes.estado_assinatura";
+ public static final int ESTADO_ASSINATURA_INDEX = 79;
+ public static final String ASS_RESP_SEG = "ass_resp_seg";
+ public static final String ASS_RESP_SEG_FULL = "analises_acidentes.ass_resp_seg";
+ public static final int ASS_RESP_SEG_INDEX = 80;
+ public static final String ASS_RESP_RH = "ass_resp_rh";
+ public static final String ASS_RESP_RH_FULL = "analises_acidentes.ass_resp_rh";
+ public static final int ASS_RESP_RH_INDEX = 81;
+ public static final String DATA_CONSOLIDACAO = "data_consolidacao";
+ public static final String DATA_CONSOLIDACAO_FULL = "analises_acidentes.data_consolidacao";
+ public static final int DATA_CONSOLIDACAO_INDEX = 82;
+ public static final String DATA_ASSINATURA_SEG = "data_assinatura_seg";
+ public static final String DATA_ASSINATURA_SEG_FULL = "analises_acidentes.data_assinatura_seg";
+ public static final int DATA_ASSINATURA_SEG_INDEX = 83;
+ public static final String DATA_ASSINATURA_RH = "data_assinatura_rh";
+ public static final String DATA_ASSINATURA_RH_FULL = "analises_acidentes.data_assinatura_rh";
+ public static final int DATA_ASSINATURA_RH_INDEX = 84;
+ public static final String ASS_CONSOLIDACAO = "ass_consolidacao";
+ public static final String ASS_CONSOLIDACAO_FULL = "analises_acidentes.ass_consolidacao";
+ public static final int ASS_CONSOLIDACAO_INDEX = 85;
+ public static final String NOME_RESP_SEG = "nome_resp_seg";
+ public static final String NOME_RESP_SEG_FULL = "analises_acidentes.nome_resp_seg";
+ public static final int NOME_RESP_SEG_INDEX = 86;
+ public static final String NOME_RESP_RH = "nome_resp_rh";
+ public static final String NOME_RESP_RH_FULL = "analises_acidentes.nome_resp_rh";
+ public static final int NOME_RESP_RH_INDEX = 87;
+ public static final String CAUSAS = "causas";
+ public static final String CAUSAS_FULL = "analises_acidentes.causas";
+ public static final int CAUSAS_INDEX = 88;
+ public static final String ESTADO_ANTES_CORRECAO = "estado_antes_correcao";
+ public static final String ESTADO_ANTES_CORRECAO_FULL = "analises_acidentes.estado_antes_correcao";
+ public static final int ESTADO_ANTES_CORRECAO_INDEX = 89;
+ public static final String OBSERVACOES_CORRECAO = "observacoes_correcao";
+ public static final String OBSERVACOES_CORRECAO_FULL = "analises_acidentes.observacoes_correcao";
+ public static final int OBSERVACOES_CORRECAO_INDEX = 90;
+ public static final String CORRECAO = "correcao";
+ public static final String CORRECAO_FULL = "analises_acidentes.correcao";
+ public static final int CORRECAO_INDEX = 91;
+ public static final String ASS_SUPERIOR = "ass_superior";
+ public static final String ASS_SUPERIOR_FULL = "analises_acidentes.ass_superior";
+ public static final int ASS_SUPERIOR_INDEX = 92;
+ public static final String NOME_SUPERIOR = "nome_superior";
+ public static final String NOME_SUPERIOR_FULL = "analises_acidentes.nome_superior";
+ public static final int NOME_SUPERIOR_INDEX = 93;
+ public static final String DATA_ASSINATURA_SUPERIOR = "data_assinatura_superior";
+ public static final String DATA_ASSINATURA_SUPERIOR_FULL = "analises_acidentes.data_assinatura_superior";
+ public static final int DATA_ASSINATURA_SUPERIOR_INDEX = 94;
+ public static final String AVERIGUADOR = "averiguador";
+ public static final String AVERIGUADOR_FULL = "analises_acidentes.averiguador";
+ public static final int AVERIGUADOR_INDEX = 95;
+ public static final String AVERIGUACAO_POSTERIOR = "averiguacao_posterior";
+ public static final String AVERIGUACAO_POSTERIOR_FULL = "analises_acidentes.averiguacao_posterior";
+ public static final int AVERIGUACAO_POSTERIOR_INDEX = 96;
+ public static final String AVERIGUACAO_OBS = "averiguacao_obs";
+ public static final String AVERIGUACAO_OBS_FULL = "analises_acidentes.averiguacao_obs";
+ public static final int AVERIGUACAO_OBS_INDEX = 97;
+ public static final String NOME_RESP_CONSOLIDACAO = "nome_resp_consolidacao";
+ public static final String NOME_RESP_CONSOLIDACAO_FULL = "analises_acidentes.nome_resp_consolidacao";
+ public static final int NOME_RESP_CONSOLIDACAO_INDEX = 98;
+ public static final String DATA_INICIO_PROCESSO = "data_inicio_processo";
+ public static final String DATA_INICIO_PROCESSO_FULL = "analises_acidentes.data_inicio_processo";
+ public static final int DATA_INICIO_PROCESSO_INDEX = 99;
+ public static final String DEPARTAMENTO_ID = "departamento_id";
+ public static final String DEPARTAMENTO_ID_FULL = "analises_acidentes.departamento_id";
+ public static final int DEPARTAMENTO_ID_INDEX = 100;
+ public static final String TO_DEPARTAMENTO_ID = "to_departamento_id";
+ public static final String TO_DEPARTAMENTO_ID_FULL = "analises_acidentes.to_departamento_id";
+ public static final int TO_DEPARTAMENTO_ID_INDEX = 101;
+ public static final String SECCAO_ID = "seccao_id";
+ public static final String SECCAO_ID_FULL = "analises_acidentes.seccao_id";
+ public static final int SECCAO_ID_INDEX = 102;
+ public static final String TO_SECCAO_ID = "to_seccao_id";
+ public static final String TO_SECCAO_ID_FULL = "analises_acidentes.to_seccao_id";
+ public static final int TO_SECCAO_ID_INDEX = 103;
+ public static final String RH_FASE4 = "rh_fase4";
+ public static final String RH_FASE4_FULL = "analises_acidentes.rh_fase4";
+ public static final int RH_FASE4_INDEX = 104;
+ public static final String APAGADA = "apagada";
+ public static final String APAGADA_FULL = "analises_acidentes.apagada";
+ public static final int APAGADA_INDEX = 105;
+ public static final String CONCLUIDO_POR_DESACTIVACAO = "concluido_por_desactivacao";
+ public static final String CONCLUIDO_POR_DESACTIVACAO_FULL = "analises_acidentes.concluido_por_desactivacao";
+ public static final int CONCLUIDO_POR_DESACTIVACAO_INDEX = 106;
+ public static final String DATA_DESACTIVACAO = "data_desactivacao";
+ public static final String DATA_DESACTIVACAO_FULL = "analises_acidentes.data_desactivacao";
+ public static final int DATA_DESACTIVACAO_INDEX = 107;
+ public static final String COMENTARIO_DESACTIVACAO = "comentario_desactivacao";
+ public static final String COMENTARIO_DESACTIVACAO_FULL = "analises_acidentes.comentario_desactivacao";
+ public static final int COMENTARIO_DESACTIVACAO_INDEX = 108;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATA_ACIDENTE, ACIDENTADO_ID, TO_ACIDENTADO_ID, ESTADO, ESTABELECIMENTO_ID,
+ HORAS_TURNO, SECCAO, LOCAL_TRABALHO, TAREFA, SUBSTANCIAS, SUPERIOR_HIERARQUICO,
+ CONDICOES, TESTEMUNHAS, DESCRICAO, CONCLUSOES, ACCOES, HORA_ACIDENTE,
+ FORMACAO_SHST, FORMACAO_SHST_NAO_PORQUE, OUTROS_ACIDENTES_COM_COLABORADOR,
+ NR_ACIDENTES_COM_COLABORADOR, NR_RELATORIO_ACIDENTE_COLABORADOR1,
+ NR_RELATORIO_ACIDENTE_COLABORADOR2, NR_RELATORIO_ACIDENTE_COLABORADOR3,
+ NR_RELATORIO_ACIDENTE_COLABORADOR4, ACIDENTES_OUTROS_COLABORADORES,
+ NR_ACIDENTES_OUTROS_COLABORADORES,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, LESAO_CABECA, LESAO_PESCOCO,
+ LESAO_TRONCO, LESAO_MEMBRO_SUP_DIR, LESAO_MEMBRO_SUP_ESQ,
+ LESAO_MEMBRO_INF_DIR, LESAO_MEMBRO_INF_ESQ, ESPECIF1, ESPECIF2, ESPECIF3,
+ ESPECIF4, TIPO_INCAPACIDADE, COEF_INCAPACIDADE, DATA_AVAL_INCAPACIDADE,
+ DATA_REV_INCAPACIDADE, PERIODO_INCAPACIDADE_DE, PERIODO_INCAPACIDADE_A,
+ IMG_FLEXAO, IMG_EXT1, IMG_EXT2, IMG_CAB2, IMG_CAB3, IMG_MA2, IMG_MA3, IMG_MA5, IMG_MA6,
+ IMG_MA8, IMG_MA10, RESTRICAO_CARGA, RESTRICAO_MOTRICIDADE, RESTRICAO_CONDUCAO,
+ RESTRICAO_VIBRACOES, RESTRICAO_OUTRAS, MED_OBSERV, TIPO_LESAO, IMG_ROT1,
+ IMG_ROT2, IMG_CAB1, IMG_CAB4, IMG_MA1, IMG_MA4, IMG_MA7, IMG_MA9, EMPRESA_ID,
+ MEDICO_ID, TECNICO_SAUDE_ID, ANALISE_NR, ESTADO_ASSINATURA, ASS_RESP_SEG,
+ ASS_RESP_RH, DATA_CONSOLIDACAO, DATA_ASSINATURA_SEG, DATA_ASSINATURA_RH,
+ ASS_CONSOLIDACAO, NOME_RESP_SEG, NOME_RESP_RH, CAUSAS, ESTADO_ANTES_CORRECAO,
+ OBSERVACOES_CORRECAO, CORRECAO, ASS_SUPERIOR, NOME_SUPERIOR,
+ DATA_ASSINATURA_SUPERIOR, AVERIGUADOR, AVERIGUACAO_POSTERIOR,
+ AVERIGUACAO_OBS, NOME_RESP_CONSOLIDACAO, DATA_INICIO_PROCESSO,
+ DEPARTAMENTO_ID, TO_DEPARTAMENTO_ID, SECCAO_ID, TO_SECCAO_ID, RH_FASE4, APAGADA,
+ CONCLUIDO_POR_DESACTIVACAO, DATA_DESACTIVACAO, COMENTARIO_DESACTIVACAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATA_ACIDENTE, TABLENAME + "." + ACIDENTADO_ID, TABLENAME + "." + TO_ACIDENTADO_ID, TABLENAME + "." + ESTADO, TABLENAME + "." + ESTABELECIMENTO_ID,
+ TABLENAME + "." + HORAS_TURNO, TABLENAME + "." + SECCAO, TABLENAME + "." + LOCAL_TRABALHO, TABLENAME + "." + TAREFA, TABLENAME + "." + SUBSTANCIAS, TABLENAME + "." + SUPERIOR_HIERARQUICO,
+ TABLENAME + "." + CONDICOES, TABLENAME + "." + TESTEMUNHAS, TABLENAME + "." + DESCRICAO, TABLENAME + "." + CONCLUSOES, TABLENAME + "." + ACCOES, TABLENAME + "." + HORA_ACIDENTE,
+ TABLENAME + "." + FORMACAO_SHST, TABLENAME + "." + FORMACAO_SHST_NAO_PORQUE, TABLENAME + "." + OUTROS_ACIDENTES_COM_COLABORADOR,
+ TABLENAME + "." + NR_ACIDENTES_COM_COLABORADOR, TABLENAME + "." + NR_RELATORIO_ACIDENTE_COLABORADOR1,
+ TABLENAME + "." + NR_RELATORIO_ACIDENTE_COLABORADOR2, TABLENAME + "." + NR_RELATORIO_ACIDENTE_COLABORADOR3,
+ TABLENAME + "." + NR_RELATORIO_ACIDENTE_COLABORADOR4, TABLENAME + "." + ACIDENTES_OUTROS_COLABORADORES,
+ TABLENAME + "." + NR_ACIDENTES_OUTROS_COLABORADORES,
+ TABLENAME + "." + NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1,
+ TABLENAME + "." + NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2,
+ TABLENAME + "." + NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3,
+ TABLENAME + "." + NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, TABLENAME + "." + LESAO_CABECA, TABLENAME + "." + LESAO_PESCOCO,
+ TABLENAME + "." + LESAO_TRONCO, TABLENAME + "." + LESAO_MEMBRO_SUP_DIR, TABLENAME + "." + LESAO_MEMBRO_SUP_ESQ,
+ TABLENAME + "." + LESAO_MEMBRO_INF_DIR, TABLENAME + "." + LESAO_MEMBRO_INF_ESQ, TABLENAME + "." + ESPECIF1, TABLENAME + "." + ESPECIF2, TABLENAME + "." + ESPECIF3,
+ TABLENAME + "." + ESPECIF4, TABLENAME + "." + TIPO_INCAPACIDADE, TABLENAME + "." + COEF_INCAPACIDADE, TABLENAME + "." + DATA_AVAL_INCAPACIDADE,
+ TABLENAME + "." + DATA_REV_INCAPACIDADE, TABLENAME + "." + PERIODO_INCAPACIDADE_DE, TABLENAME + "." + PERIODO_INCAPACIDADE_A,
+ TABLENAME + "." + IMG_FLEXAO, TABLENAME + "." + IMG_EXT1, TABLENAME + "." + IMG_EXT2, TABLENAME + "." + IMG_CAB2, TABLENAME + "." + IMG_CAB3, TABLENAME + "." + IMG_MA2, TABLENAME + "." + IMG_MA3, TABLENAME + "." + IMG_MA5, TABLENAME + "." + IMG_MA6,
+ TABLENAME + "." + IMG_MA8, TABLENAME + "." + IMG_MA10, TABLENAME + "." + RESTRICAO_CARGA, TABLENAME + "." + RESTRICAO_MOTRICIDADE, TABLENAME + "." + RESTRICAO_CONDUCAO,
+ TABLENAME + "." + RESTRICAO_VIBRACOES, TABLENAME + "." + RESTRICAO_OUTRAS, TABLENAME + "." + MED_OBSERV, TABLENAME + "." + TIPO_LESAO, TABLENAME + "." + IMG_ROT1,
+ TABLENAME + "." + IMG_ROT2, TABLENAME + "." + IMG_CAB1, TABLENAME + "." + IMG_CAB4, TABLENAME + "." + IMG_MA1, TABLENAME + "." + IMG_MA4, TABLENAME + "." + IMG_MA7, TABLENAME + "." + IMG_MA9, TABLENAME + "." + EMPRESA_ID,
+ TABLENAME + "." + MEDICO_ID, TABLENAME + "." + TECNICO_SAUDE_ID, TABLENAME + "." + ANALISE_NR, TABLENAME + "." + ESTADO_ASSINATURA, TABLENAME + "." + ASS_RESP_SEG,
+ TABLENAME + "." + ASS_RESP_RH, TABLENAME + "." + DATA_CONSOLIDACAO, TABLENAME + "." + DATA_ASSINATURA_SEG, TABLENAME + "." + DATA_ASSINATURA_RH,
+ TABLENAME + "." + ASS_CONSOLIDACAO, TABLENAME + "." + NOME_RESP_SEG, TABLENAME + "." + NOME_RESP_RH, TABLENAME + "." + CAUSAS, TABLENAME + "." + ESTADO_ANTES_CORRECAO,
+ TABLENAME + "." + OBSERVACOES_CORRECAO, TABLENAME + "." + CORRECAO, TABLENAME + "." + ASS_SUPERIOR, TABLENAME + "." + NOME_SUPERIOR,
+ TABLENAME + "." + DATA_ASSINATURA_SUPERIOR, TABLENAME + "." + AVERIGUADOR, TABLENAME + "." + AVERIGUACAO_POSTERIOR,
+ TABLENAME + "." + AVERIGUACAO_OBS, TABLENAME + "." + NOME_RESP_CONSOLIDACAO, TABLENAME + "." + DATA_INICIO_PROCESSO,
+ TABLENAME + "." + DEPARTAMENTO_ID, TABLENAME + "." + TO_DEPARTAMENTO_ID, TABLENAME + "." + SECCAO_ID, TABLENAME + "." + TO_SECCAO_ID, TABLENAME + "." + RH_FASE4, TABLENAME + "." + APAGADA,
+ TABLENAME + "." + CONCLUIDO_POR_DESACTIVACAO, TABLENAME + "." + DATA_DESACTIVACAO, TABLENAME + "." + COMENTARIO_DESACTIVACAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATA_ACIDENTE, ACIDENTADO_ID, ESTADO, ESTABELECIMENTO_ID, HORAS_TURNO, SECCAO,
+ LOCAL_TRABALHO, TAREFA, SUBSTANCIAS, SUPERIOR_HIERARQUICO, CONDICOES,
+ TESTEMUNHAS, DESCRICAO, CONCLUSOES, ACCOES, HORA_ACIDENTE, FORMACAO_SHST,
+ FORMACAO_SHST_NAO_PORQUE, OUTROS_ACIDENTES_COM_COLABORADOR,
+ NR_ACIDENTES_COM_COLABORADOR, NR_RELATORIO_ACIDENTE_COLABORADOR1,
+ NR_RELATORIO_ACIDENTE_COLABORADOR2, NR_RELATORIO_ACIDENTE_COLABORADOR3,
+ NR_RELATORIO_ACIDENTE_COLABORADOR4, ACIDENTES_OUTROS_COLABORADORES,
+ NR_ACIDENTES_OUTROS_COLABORADORES,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, LESAO_CABECA, LESAO_PESCOCO,
+ LESAO_TRONCO, LESAO_MEMBRO_SUP_DIR, LESAO_MEMBRO_SUP_ESQ,
+ LESAO_MEMBRO_INF_DIR, LESAO_MEMBRO_INF_ESQ, ESPECIF1, ESPECIF2, ESPECIF3,
+ ESPECIF4, TIPO_INCAPACIDADE, COEF_INCAPACIDADE, DATA_AVAL_INCAPACIDADE,
+ DATA_REV_INCAPACIDADE, PERIODO_INCAPACIDADE_DE, PERIODO_INCAPACIDADE_A,
+ IMG_FLEXAO, IMG_EXT1, IMG_EXT2, IMG_CAB2, IMG_CAB3, IMG_MA2, IMG_MA3, IMG_MA5, IMG_MA6,
+ IMG_MA8, IMG_MA10, RESTRICAO_CARGA, RESTRICAO_MOTRICIDADE, RESTRICAO_CONDUCAO,
+ RESTRICAO_VIBRACOES, RESTRICAO_OUTRAS, MED_OBSERV, TIPO_LESAO, IMG_ROT1,
+ IMG_ROT2, IMG_CAB1, IMG_CAB4, IMG_MA1, IMG_MA4, IMG_MA7, IMG_MA9, EMPRESA_ID,
+ MEDICO_ID, TECNICO_SAUDE_ID, ANALISE_NR, ESTADO_ASSINATURA, ASS_RESP_SEG,
+ ASS_RESP_RH, DATA_CONSOLIDACAO, DATA_ASSINATURA_SEG, DATA_ASSINATURA_RH,
+ ASS_CONSOLIDACAO, NOME_RESP_SEG, NOME_RESP_RH, CAUSAS, ESTADO_ANTES_CORRECAO,
+ OBSERVACOES_CORRECAO, CORRECAO, ASS_SUPERIOR, NOME_SUPERIOR,
+ DATA_ASSINATURA_SUPERIOR, AVERIGUADOR, AVERIGUACAO_POSTERIOR,
+ AVERIGUACAO_OBS, NOME_RESP_CONSOLIDACAO, DATA_INICIO_PROCESSO,
+ DEPARTAMENTO_ID, SECCAO_ID, RH_FASE4, APAGADA, CONCLUIDO_POR_DESACTIVACAO,
+ DATA_DESACTIVACAO, COMENTARIO_DESACTIVACAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATA_ACIDENTE, ACIDENTADO_ID, ESTADO, ESTABELECIMENTO_ID, HORAS_TURNO, SECCAO,
+ LOCAL_TRABALHO, TAREFA, SUBSTANCIAS, SUPERIOR_HIERARQUICO, CONDICOES,
+ TESTEMUNHAS, DESCRICAO, CONCLUSOES, ACCOES, HORA_ACIDENTE, FORMACAO_SHST,
+ FORMACAO_SHST_NAO_PORQUE, OUTROS_ACIDENTES_COM_COLABORADOR,
+ NR_ACIDENTES_COM_COLABORADOR, NR_RELATORIO_ACIDENTE_COLABORADOR1,
+ NR_RELATORIO_ACIDENTE_COLABORADOR2, NR_RELATORIO_ACIDENTE_COLABORADOR3,
+ NR_RELATORIO_ACIDENTE_COLABORADOR4, ACIDENTES_OUTROS_COLABORADORES,
+ NR_ACIDENTES_OUTROS_COLABORADORES,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3,
+ NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, LESAO_CABECA, LESAO_PESCOCO,
+ LESAO_TRONCO, LESAO_MEMBRO_SUP_DIR, LESAO_MEMBRO_SUP_ESQ,
+ LESAO_MEMBRO_INF_DIR, LESAO_MEMBRO_INF_ESQ, ESPECIF1, ESPECIF2, ESPECIF3,
+ ESPECIF4, TIPO_INCAPACIDADE, COEF_INCAPACIDADE, DATA_AVAL_INCAPACIDADE,
+ DATA_REV_INCAPACIDADE, PERIODO_INCAPACIDADE_DE, PERIODO_INCAPACIDADE_A,
+ IMG_FLEXAO, IMG_EXT1, IMG_EXT2, IMG_CAB2, IMG_CAB3, IMG_MA2, IMG_MA3, IMG_MA5, IMG_MA6,
+ IMG_MA8, IMG_MA10, RESTRICAO_CARGA, RESTRICAO_MOTRICIDADE, RESTRICAO_CONDUCAO,
+ RESTRICAO_VIBRACOES, RESTRICAO_OUTRAS, MED_OBSERV, TIPO_LESAO, IMG_ROT1,
+ IMG_ROT2, IMG_CAB1, IMG_CAB4, IMG_MA1, IMG_MA4, IMG_MA7, IMG_MA9, EMPRESA_ID,
+ MEDICO_ID, TECNICO_SAUDE_ID, ANALISE_NR, ESTADO_ASSINATURA, ASS_RESP_SEG,
+ ASS_RESP_RH, DATA_CONSOLIDACAO, DATA_ASSINATURA_SEG, DATA_ASSINATURA_RH,
+ ASS_CONSOLIDACAO, NOME_RESP_SEG, NOME_RESP_RH, CAUSAS, ESTADO_ANTES_CORRECAO,
+ OBSERVACOES_CORRECAO, CORRECAO, ASS_SUPERIOR, NOME_SUPERIOR,
+ DATA_ASSINATURA_SUPERIOR, AVERIGUADOR, AVERIGUACAO_POSTERIOR,
+ AVERIGUACAO_OBS, NOME_RESP_CONSOLIDACAO, DATA_INICIO_PROCESSO,
+ DEPARTAMENTO_ID, SECCAO_ID, RH_FASE4, APAGADA, CONCLUIDO_POR_DESACTIVACAO,
+ DATA_DESACTIVACAO, COMENTARIO_DESACTIVACAO, };
+
+ private Integer id;
+ private java.util.Date data_acidente;
+ private Integer acidentado_id;
+ private db.data.siprp.outer.AcidentadosData to_acidentado_id;
+ private Integer estado;
+ private Integer estabelecimento_id;
+ private Integer horas_turno;
+ private String seccao;
+ private String local_trabalho;
+ private String tarefa;
+ private String substancias;
+ private String superior_hierarquico;
+ private String condicoes;
+ private String testemunhas;
+ private String descricao;
+ private String conclusoes;
+ private String accoes;
+ private java.sql.Time hora_acidente;
+ private String formacao_shst;
+ private String formacao_shst_nao_porque;
+ private String outros_acidentes_com_colaborador;
+ private Integer nr_acidentes_com_colaborador;
+ private Integer nr_relatorio_acidente_colaborador1;
+ private Integer nr_relatorio_acidente_colaborador2;
+ private Integer nr_relatorio_acidente_colaborador3;
+ private Integer nr_relatorio_acidente_colaborador4;
+ private String acidentes_outros_colaboradores;
+ private Integer nr_acidentes_outros_colaboradores;
+ private Integer nr_relatorio_acidente_outros_colaboradores1;
+ private Integer nr_relatorio_acidente_outros_colaboradores2;
+ private Integer nr_relatorio_acidente_outros_colaboradores3;
+ private Integer nr_relatorio_acidente_outros_colaboradores4;
+ private String lesao_cabeca;
+ private String lesao_pescoco;
+ private String lesao_tronco;
+ private String lesao_membro_sup_dir;
+ private String lesao_membro_sup_esq;
+ private String lesao_membro_inf_dir;
+ private String lesao_membro_inf_esq;
+ private String especif1;
+ private String especif2;
+ private String especif3;
+ private String especif4;
+ private String tipo_incapacidade;
+ private Integer coef_incapacidade;
+ private java.util.Date data_aval_incapacidade;
+ private java.util.Date data_rev_incapacidade;
+ private java.util.Date periodo_incapacidade_de;
+ private java.util.Date periodo_incapacidade_a;
+ private String img_flexao;
+ private String img_ext1;
+ private String img_ext2;
+ private String img_cab2;
+ private String img_cab3;
+ private String img_ma2;
+ private String img_ma3;
+ private String img_ma5;
+ private String img_ma6;
+ private String img_ma8;
+ private String img_ma10;
+ private Integer restricao_carga;
+ private String restricao_motricidade;
+ private String restricao_conducao;
+ private String restricao_vibracoes;
+ private String restricao_outras;
+ private String med_observ;
+ private String tipo_lesao;
+ private String img_rot1;
+ private String img_rot2;
+ private String img_cab1;
+ private String img_cab4;
+ private String img_ma1;
+ private String img_ma4;
+ private String img_ma7;
+ private String img_ma9;
+ private Integer empresa_id;
+ private Integer medico_id;
+ private Integer tecnico_saude_id;
+ private String analise_nr;
+ private Integer estado_assinatura;
+ private String ass_resp_seg;
+ private String ass_resp_rh;
+ private java.util.Date data_consolidacao;
+ private java.util.Date data_assinatura_seg;
+ private java.util.Date data_assinatura_rh;
+ private String ass_consolidacao;
+ private String nome_resp_seg;
+ private String nome_resp_rh;
+ private Integer causas;
+ private Integer estado_antes_correcao;
+ private String observacoes_correcao;
+ private String correcao;
+ private String ass_superior;
+ private String nome_superior;
+ private java.util.Date data_assinatura_superior;
+ private String averiguador;
+ private String averiguacao_posterior;
+ private String averiguacao_obs;
+ private String nome_resp_consolidacao;
+ private java.util.Date data_inicio_processo;
+ private Integer departamento_id;
+ private db.data.siprp.outer.DepartamentosData to_departamento_id;
+ private Integer seccao_id;
+ private db.data.siprp.outer.SeccoesData to_seccao_id;
+ private Integer rh_fase4;
+ private String apagada;
+ private Boolean concluido_por_desactivacao;
+ private java.util.Date data_desactivacao;
+ private String comentario_desactivacao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public AnalisesAcidentes()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromMedidas_analise_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.MedidasData.class , getPrimaryKey().getMap().get("id"), "analise_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromRecomendacoes_analise_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.RecomendacoesData.class , getPrimaryKey().getMap().get("id"), "analise_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.Date getData_acidente()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_ACIDENTE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_acidente;
+ }
+
+ public void setData_acidente( java.util.Date data_acidente )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_ACIDENTE, data_acidente );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_acidente = data_acidente;
+ LAZY_LOADED_OBJECTS.put( DATA_ACIDENTE, Boolean.TRUE );
+ }
+
+ public Integer getAcidentado_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACIDENTADO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.acidentado_id;
+ }
+
+ public void setAcidentado_id( Integer acidentado_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACIDENTADO_ID, acidentado_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.acidentado_id = acidentado_id;
+ LAZY_LOADED_OBJECTS.put( ACIDENTADO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.AcidentadosData toAcidentado_id()
+ {
+ try
+ {
+ prepare( TO_ACIDENTADO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_acidentado_id;
+ }
+
+ public void setToAcidentado_id( db.data.siprp.outer.AcidentadosData to_acidentado_id )
+ {
+ try
+ {
+ preProcess( TO_ACIDENTADO_ID, to_acidentado_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_acidentado_id = to_acidentado_id;
+ }
+
+ public Integer getEstado()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTADO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estado;
+ }
+
+ public void setEstado( Integer estado )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTADO, estado );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estado = estado;
+ LAZY_LOADED_OBJECTS.put( ESTADO, Boolean.TRUE );
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public Integer getHoras_turno()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( HORAS_TURNO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.horas_turno;
+ }
+
+ public void setHoras_turno( Integer horas_turno )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( HORAS_TURNO, horas_turno );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.horas_turno = horas_turno;
+ LAZY_LOADED_OBJECTS.put( HORAS_TURNO, Boolean.TRUE );
+ }
+
+ public String getSeccao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SECCAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.seccao;
+ }
+
+ public void setSeccao( String seccao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SECCAO, seccao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.seccao = seccao;
+ LAZY_LOADED_OBJECTS.put( SECCAO, Boolean.TRUE );
+ }
+
+ public String getLocal_trabalho()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LOCAL_TRABALHO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.local_trabalho;
+ }
+
+ public void setLocal_trabalho( String local_trabalho )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LOCAL_TRABALHO, local_trabalho );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.local_trabalho = local_trabalho;
+ LAZY_LOADED_OBJECTS.put( LOCAL_TRABALHO, Boolean.TRUE );
+ }
+
+ public String getTarefa()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TAREFA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tarefa;
+ }
+
+ public void setTarefa( String tarefa )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TAREFA, tarefa );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tarefa = tarefa;
+ LAZY_LOADED_OBJECTS.put( TAREFA, Boolean.TRUE );
+ }
+
+ public String getSubstancias()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SUBSTANCIAS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.substancias;
+ }
+
+ public void setSubstancias( String substancias )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SUBSTANCIAS, substancias );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.substancias = substancias;
+ LAZY_LOADED_OBJECTS.put( SUBSTANCIAS, Boolean.TRUE );
+ }
+
+ public String getSuperior_hierarquico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SUPERIOR_HIERARQUICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.superior_hierarquico;
+ }
+
+ public void setSuperior_hierarquico( String superior_hierarquico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SUPERIOR_HIERARQUICO, superior_hierarquico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.superior_hierarquico = superior_hierarquico;
+ LAZY_LOADED_OBJECTS.put( SUPERIOR_HIERARQUICO, Boolean.TRUE );
+ }
+
+ public String getCondicoes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONDICOES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.condicoes;
+ }
+
+ public void setCondicoes( String condicoes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONDICOES, condicoes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.condicoes = condicoes;
+ LAZY_LOADED_OBJECTS.put( CONDICOES, Boolean.TRUE );
+ }
+
+ public String getTestemunhas()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TESTEMUNHAS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.testemunhas;
+ }
+
+ public void setTestemunhas( String testemunhas )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TESTEMUNHAS, testemunhas );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.testemunhas = testemunhas;
+ LAZY_LOADED_OBJECTS.put( TESTEMUNHAS, Boolean.TRUE );
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public String getConclusoes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONCLUSOES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.conclusoes;
+ }
+
+ public void setConclusoes( String conclusoes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONCLUSOES, conclusoes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.conclusoes = conclusoes;
+ LAZY_LOADED_OBJECTS.put( CONCLUSOES, Boolean.TRUE );
+ }
+
+ public String getAccoes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACCOES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.accoes;
+ }
+
+ public void setAccoes( String accoes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACCOES, accoes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.accoes = accoes;
+ LAZY_LOADED_OBJECTS.put( ACCOES, Boolean.TRUE );
+ }
+
+ public java.sql.Time getHora_acidente()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( HORA_ACIDENTE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.hora_acidente;
+ }
+
+ public void setHora_acidente( java.sql.Time hora_acidente )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( HORA_ACIDENTE, hora_acidente );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.hora_acidente = hora_acidente;
+ LAZY_LOADED_OBJECTS.put( HORA_ACIDENTE, Boolean.TRUE );
+ }
+
+ public String getFormacao_shst()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FORMACAO_SHST );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.formacao_shst;
+ }
+
+ public void setFormacao_shst( String formacao_shst )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FORMACAO_SHST, formacao_shst );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.formacao_shst = formacao_shst;
+ LAZY_LOADED_OBJECTS.put( FORMACAO_SHST, Boolean.TRUE );
+ }
+
+ public String getFormacao_shst_nao_porque()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FORMACAO_SHST_NAO_PORQUE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.formacao_shst_nao_porque;
+ }
+
+ public void setFormacao_shst_nao_porque( String formacao_shst_nao_porque )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FORMACAO_SHST_NAO_PORQUE, formacao_shst_nao_porque );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.formacao_shst_nao_porque = formacao_shst_nao_porque;
+ LAZY_LOADED_OBJECTS.put( FORMACAO_SHST_NAO_PORQUE, Boolean.TRUE );
+ }
+
+ public String getOutros_acidentes_com_colaborador()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTROS_ACIDENTES_COM_COLABORADOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outros_acidentes_com_colaborador;
+ }
+
+ public void setOutros_acidentes_com_colaborador( String outros_acidentes_com_colaborador )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTROS_ACIDENTES_COM_COLABORADOR, outros_acidentes_com_colaborador );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outros_acidentes_com_colaborador = outros_acidentes_com_colaborador;
+ LAZY_LOADED_OBJECTS.put( OUTROS_ACIDENTES_COM_COLABORADOR, Boolean.TRUE );
+ }
+
+ public Integer getNr_acidentes_com_colaborador()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_ACIDENTES_COM_COLABORADOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_acidentes_com_colaborador;
+ }
+
+ public void setNr_acidentes_com_colaborador( Integer nr_acidentes_com_colaborador )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_ACIDENTES_COM_COLABORADOR, nr_acidentes_com_colaborador );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_acidentes_com_colaborador = nr_acidentes_com_colaborador;
+ LAZY_LOADED_OBJECTS.put( NR_ACIDENTES_COM_COLABORADOR, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_colaborador1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_COLABORADOR1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_colaborador1;
+ }
+
+ public void setNr_relatorio_acidente_colaborador1( Integer nr_relatorio_acidente_colaborador1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_COLABORADOR1, nr_relatorio_acidente_colaborador1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_colaborador1 = nr_relatorio_acidente_colaborador1;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_COLABORADOR1, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_colaborador2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_COLABORADOR2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_colaborador2;
+ }
+
+ public void setNr_relatorio_acidente_colaborador2( Integer nr_relatorio_acidente_colaborador2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_COLABORADOR2, nr_relatorio_acidente_colaborador2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_colaborador2 = nr_relatorio_acidente_colaborador2;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_COLABORADOR2, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_colaborador3()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_COLABORADOR3 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_colaborador3;
+ }
+
+ public void setNr_relatorio_acidente_colaborador3( Integer nr_relatorio_acidente_colaborador3 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_COLABORADOR3, nr_relatorio_acidente_colaborador3 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_colaborador3 = nr_relatorio_acidente_colaborador3;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_COLABORADOR3, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_colaborador4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_COLABORADOR4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_colaborador4;
+ }
+
+ public void setNr_relatorio_acidente_colaborador4( Integer nr_relatorio_acidente_colaborador4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_COLABORADOR4, nr_relatorio_acidente_colaborador4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_colaborador4 = nr_relatorio_acidente_colaborador4;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_COLABORADOR4, Boolean.TRUE );
+ }
+
+ public String getAcidentes_outros_colaboradores()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACIDENTES_OUTROS_COLABORADORES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.acidentes_outros_colaboradores;
+ }
+
+ public void setAcidentes_outros_colaboradores( String acidentes_outros_colaboradores )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACIDENTES_OUTROS_COLABORADORES, acidentes_outros_colaboradores );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.acidentes_outros_colaboradores = acidentes_outros_colaboradores;
+ LAZY_LOADED_OBJECTS.put( ACIDENTES_OUTROS_COLABORADORES, Boolean.TRUE );
+ }
+
+ public Integer getNr_acidentes_outros_colaboradores()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_ACIDENTES_OUTROS_COLABORADORES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_acidentes_outros_colaboradores;
+ }
+
+ public void setNr_acidentes_outros_colaboradores( Integer nr_acidentes_outros_colaboradores )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_ACIDENTES_OUTROS_COLABORADORES, nr_acidentes_outros_colaboradores );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_acidentes_outros_colaboradores = nr_acidentes_outros_colaboradores;
+ LAZY_LOADED_OBJECTS.put( NR_ACIDENTES_OUTROS_COLABORADORES, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_outros_colaboradores1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_outros_colaboradores1;
+ }
+
+ public void setNr_relatorio_acidente_outros_colaboradores1( Integer nr_relatorio_acidente_outros_colaboradores1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1, nr_relatorio_acidente_outros_colaboradores1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_outros_colaboradores1 = nr_relatorio_acidente_outros_colaboradores1;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_outros_colaboradores2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_outros_colaboradores2;
+ }
+
+ public void setNr_relatorio_acidente_outros_colaboradores2( Integer nr_relatorio_acidente_outros_colaboradores2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2, nr_relatorio_acidente_outros_colaboradores2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_outros_colaboradores2 = nr_relatorio_acidente_outros_colaboradores2;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_outros_colaboradores3()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_outros_colaboradores3;
+ }
+
+ public void setNr_relatorio_acidente_outros_colaboradores3( Integer nr_relatorio_acidente_outros_colaboradores3 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3, nr_relatorio_acidente_outros_colaboradores3 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_outros_colaboradores3 = nr_relatorio_acidente_outros_colaboradores3;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3, Boolean.TRUE );
+ }
+
+ public Integer getNr_relatorio_acidente_outros_colaboradores4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nr_relatorio_acidente_outros_colaboradores4;
+ }
+
+ public void setNr_relatorio_acidente_outros_colaboradores4( Integer nr_relatorio_acidente_outros_colaboradores4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, nr_relatorio_acidente_outros_colaboradores4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nr_relatorio_acidente_outros_colaboradores4 = nr_relatorio_acidente_outros_colaboradores4;
+ LAZY_LOADED_OBJECTS.put( NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4, Boolean.TRUE );
+ }
+
+ public String getLesao_cabeca()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_CABECA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_cabeca;
+ }
+
+ public void setLesao_cabeca( String lesao_cabeca )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_CABECA, lesao_cabeca );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_cabeca = lesao_cabeca;
+ LAZY_LOADED_OBJECTS.put( LESAO_CABECA, Boolean.TRUE );
+ }
+
+ public String getLesao_pescoco()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_PESCOCO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_pescoco;
+ }
+
+ public void setLesao_pescoco( String lesao_pescoco )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_PESCOCO, lesao_pescoco );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_pescoco = lesao_pescoco;
+ LAZY_LOADED_OBJECTS.put( LESAO_PESCOCO, Boolean.TRUE );
+ }
+
+ public String getLesao_tronco()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_TRONCO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_tronco;
+ }
+
+ public void setLesao_tronco( String lesao_tronco )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_TRONCO, lesao_tronco );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_tronco = lesao_tronco;
+ LAZY_LOADED_OBJECTS.put( LESAO_TRONCO, Boolean.TRUE );
+ }
+
+ public String getLesao_membro_sup_dir()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_MEMBRO_SUP_DIR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_membro_sup_dir;
+ }
+
+ public void setLesao_membro_sup_dir( String lesao_membro_sup_dir )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_MEMBRO_SUP_DIR, lesao_membro_sup_dir );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_membro_sup_dir = lesao_membro_sup_dir;
+ LAZY_LOADED_OBJECTS.put( LESAO_MEMBRO_SUP_DIR, Boolean.TRUE );
+ }
+
+ public String getLesao_membro_sup_esq()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_MEMBRO_SUP_ESQ );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_membro_sup_esq;
+ }
+
+ public void setLesao_membro_sup_esq( String lesao_membro_sup_esq )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_MEMBRO_SUP_ESQ, lesao_membro_sup_esq );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_membro_sup_esq = lesao_membro_sup_esq;
+ LAZY_LOADED_OBJECTS.put( LESAO_MEMBRO_SUP_ESQ, Boolean.TRUE );
+ }
+
+ public String getLesao_membro_inf_dir()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_MEMBRO_INF_DIR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_membro_inf_dir;
+ }
+
+ public void setLesao_membro_inf_dir( String lesao_membro_inf_dir )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_MEMBRO_INF_DIR, lesao_membro_inf_dir );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_membro_inf_dir = lesao_membro_inf_dir;
+ LAZY_LOADED_OBJECTS.put( LESAO_MEMBRO_INF_DIR, Boolean.TRUE );
+ }
+
+ public String getLesao_membro_inf_esq()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LESAO_MEMBRO_INF_ESQ );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.lesao_membro_inf_esq;
+ }
+
+ public void setLesao_membro_inf_esq( String lesao_membro_inf_esq )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LESAO_MEMBRO_INF_ESQ, lesao_membro_inf_esq );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.lesao_membro_inf_esq = lesao_membro_inf_esq;
+ LAZY_LOADED_OBJECTS.put( LESAO_MEMBRO_INF_ESQ, Boolean.TRUE );
+ }
+
+ public String getEspecif1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESPECIF1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.especif1;
+ }
+
+ public void setEspecif1( String especif1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESPECIF1, especif1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.especif1 = especif1;
+ LAZY_LOADED_OBJECTS.put( ESPECIF1, Boolean.TRUE );
+ }
+
+ public String getEspecif2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESPECIF2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.especif2;
+ }
+
+ public void setEspecif2( String especif2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESPECIF2, especif2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.especif2 = especif2;
+ LAZY_LOADED_OBJECTS.put( ESPECIF2, Boolean.TRUE );
+ }
+
+ public String getEspecif3()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESPECIF3 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.especif3;
+ }
+
+ public void setEspecif3( String especif3 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESPECIF3, especif3 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.especif3 = especif3;
+ LAZY_LOADED_OBJECTS.put( ESPECIF3, Boolean.TRUE );
+ }
+
+ public String getEspecif4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESPECIF4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.especif4;
+ }
+
+ public void setEspecif4( String especif4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESPECIF4, especif4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.especif4 = especif4;
+ LAZY_LOADED_OBJECTS.put( ESPECIF4, Boolean.TRUE );
+ }
+
+ public String getTipo_incapacidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO_INCAPACIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo_incapacidade;
+ }
+
+ public void setTipo_incapacidade( String tipo_incapacidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO_INCAPACIDADE, tipo_incapacidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo_incapacidade = tipo_incapacidade;
+ LAZY_LOADED_OBJECTS.put( TIPO_INCAPACIDADE, Boolean.TRUE );
+ }
+
+ public Integer getCoef_incapacidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( COEF_INCAPACIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.coef_incapacidade;
+ }
+
+ public void setCoef_incapacidade( Integer coef_incapacidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( COEF_INCAPACIDADE, coef_incapacidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.coef_incapacidade = coef_incapacidade;
+ LAZY_LOADED_OBJECTS.put( COEF_INCAPACIDADE, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_aval_incapacidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_AVAL_INCAPACIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_aval_incapacidade;
+ }
+
+ public void setData_aval_incapacidade( java.util.Date data_aval_incapacidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_AVAL_INCAPACIDADE, data_aval_incapacidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_aval_incapacidade = data_aval_incapacidade;
+ LAZY_LOADED_OBJECTS.put( DATA_AVAL_INCAPACIDADE, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_rev_incapacidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_REV_INCAPACIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_rev_incapacidade;
+ }
+
+ public void setData_rev_incapacidade( java.util.Date data_rev_incapacidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_REV_INCAPACIDADE, data_rev_incapacidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_rev_incapacidade = data_rev_incapacidade;
+ LAZY_LOADED_OBJECTS.put( DATA_REV_INCAPACIDADE, Boolean.TRUE );
+ }
+
+ public java.util.Date getPeriodo_incapacidade_de()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PERIODO_INCAPACIDADE_DE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.periodo_incapacidade_de;
+ }
+
+ public void setPeriodo_incapacidade_de( java.util.Date periodo_incapacidade_de )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PERIODO_INCAPACIDADE_DE, periodo_incapacidade_de );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.periodo_incapacidade_de = periodo_incapacidade_de;
+ LAZY_LOADED_OBJECTS.put( PERIODO_INCAPACIDADE_DE, Boolean.TRUE );
+ }
+
+ public java.util.Date getPeriodo_incapacidade_a()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PERIODO_INCAPACIDADE_A );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.periodo_incapacidade_a;
+ }
+
+ public void setPeriodo_incapacidade_a( java.util.Date periodo_incapacidade_a )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PERIODO_INCAPACIDADE_A, periodo_incapacidade_a );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.periodo_incapacidade_a = periodo_incapacidade_a;
+ LAZY_LOADED_OBJECTS.put( PERIODO_INCAPACIDADE_A, Boolean.TRUE );
+ }
+
+ public String getImg_flexao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_FLEXAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_flexao;
+ }
+
+ public void setImg_flexao( String img_flexao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_FLEXAO, img_flexao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_flexao = img_flexao;
+ LAZY_LOADED_OBJECTS.put( IMG_FLEXAO, Boolean.TRUE );
+ }
+
+ public String getImg_ext1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_EXT1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ext1;
+ }
+
+ public void setImg_ext1( String img_ext1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_EXT1, img_ext1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ext1 = img_ext1;
+ LAZY_LOADED_OBJECTS.put( IMG_EXT1, Boolean.TRUE );
+ }
+
+ public String getImg_ext2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_EXT2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ext2;
+ }
+
+ public void setImg_ext2( String img_ext2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_EXT2, img_ext2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ext2 = img_ext2;
+ LAZY_LOADED_OBJECTS.put( IMG_EXT2, Boolean.TRUE );
+ }
+
+ public String getImg_cab2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_CAB2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_cab2;
+ }
+
+ public void setImg_cab2( String img_cab2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_CAB2, img_cab2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_cab2 = img_cab2;
+ LAZY_LOADED_OBJECTS.put( IMG_CAB2, Boolean.TRUE );
+ }
+
+ public String getImg_cab3()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_CAB3 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_cab3;
+ }
+
+ public void setImg_cab3( String img_cab3 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_CAB3, img_cab3 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_cab3 = img_cab3;
+ LAZY_LOADED_OBJECTS.put( IMG_CAB3, Boolean.TRUE );
+ }
+
+ public String getImg_ma2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma2;
+ }
+
+ public void setImg_ma2( String img_ma2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA2, img_ma2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma2 = img_ma2;
+ LAZY_LOADED_OBJECTS.put( IMG_MA2, Boolean.TRUE );
+ }
+
+ public String getImg_ma3()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA3 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma3;
+ }
+
+ public void setImg_ma3( String img_ma3 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA3, img_ma3 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma3 = img_ma3;
+ LAZY_LOADED_OBJECTS.put( IMG_MA3, Boolean.TRUE );
+ }
+
+ public String getImg_ma5()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA5 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma5;
+ }
+
+ public void setImg_ma5( String img_ma5 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA5, img_ma5 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma5 = img_ma5;
+ LAZY_LOADED_OBJECTS.put( IMG_MA5, Boolean.TRUE );
+ }
+
+ public String getImg_ma6()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA6 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma6;
+ }
+
+ public void setImg_ma6( String img_ma6 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA6, img_ma6 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma6 = img_ma6;
+ LAZY_LOADED_OBJECTS.put( IMG_MA6, Boolean.TRUE );
+ }
+
+ public String getImg_ma8()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA8 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma8;
+ }
+
+ public void setImg_ma8( String img_ma8 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA8, img_ma8 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma8 = img_ma8;
+ LAZY_LOADED_OBJECTS.put( IMG_MA8, Boolean.TRUE );
+ }
+
+ public String getImg_ma10()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA10 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma10;
+ }
+
+ public void setImg_ma10( String img_ma10 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA10, img_ma10 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma10 = img_ma10;
+ LAZY_LOADED_OBJECTS.put( IMG_MA10, Boolean.TRUE );
+ }
+
+ public Integer getRestricao_carga()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESTRICAO_CARGA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.restricao_carga;
+ }
+
+ public void setRestricao_carga( Integer restricao_carga )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESTRICAO_CARGA, restricao_carga );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.restricao_carga = restricao_carga;
+ LAZY_LOADED_OBJECTS.put( RESTRICAO_CARGA, Boolean.TRUE );
+ }
+
+ public String getRestricao_motricidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESTRICAO_MOTRICIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.restricao_motricidade;
+ }
+
+ public void setRestricao_motricidade( String restricao_motricidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESTRICAO_MOTRICIDADE, restricao_motricidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.restricao_motricidade = restricao_motricidade;
+ LAZY_LOADED_OBJECTS.put( RESTRICAO_MOTRICIDADE, Boolean.TRUE );
+ }
+
+ public String getRestricao_conducao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESTRICAO_CONDUCAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.restricao_conducao;
+ }
+
+ public void setRestricao_conducao( String restricao_conducao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESTRICAO_CONDUCAO, restricao_conducao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.restricao_conducao = restricao_conducao;
+ LAZY_LOADED_OBJECTS.put( RESTRICAO_CONDUCAO, Boolean.TRUE );
+ }
+
+ public String getRestricao_vibracoes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESTRICAO_VIBRACOES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.restricao_vibracoes;
+ }
+
+ public void setRestricao_vibracoes( String restricao_vibracoes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESTRICAO_VIBRACOES, restricao_vibracoes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.restricao_vibracoes = restricao_vibracoes;
+ LAZY_LOADED_OBJECTS.put( RESTRICAO_VIBRACOES, Boolean.TRUE );
+ }
+
+ public String getRestricao_outras()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESTRICAO_OUTRAS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.restricao_outras;
+ }
+
+ public void setRestricao_outras( String restricao_outras )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESTRICAO_OUTRAS, restricao_outras );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.restricao_outras = restricao_outras;
+ LAZY_LOADED_OBJECTS.put( RESTRICAO_OUTRAS, Boolean.TRUE );
+ }
+
+ public String getMed_observ()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MED_OBSERV );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.med_observ;
+ }
+
+ public void setMed_observ( String med_observ )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MED_OBSERV, med_observ );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.med_observ = med_observ;
+ LAZY_LOADED_OBJECTS.put( MED_OBSERV, Boolean.TRUE );
+ }
+
+ public String getTipo_lesao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO_LESAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo_lesao;
+ }
+
+ public void setTipo_lesao( String tipo_lesao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO_LESAO, tipo_lesao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo_lesao = tipo_lesao;
+ LAZY_LOADED_OBJECTS.put( TIPO_LESAO, Boolean.TRUE );
+ }
+
+ public String getImg_rot1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_ROT1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_rot1;
+ }
+
+ public void setImg_rot1( String img_rot1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_ROT1, img_rot1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_rot1 = img_rot1;
+ LAZY_LOADED_OBJECTS.put( IMG_ROT1, Boolean.TRUE );
+ }
+
+ public String getImg_rot2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_ROT2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_rot2;
+ }
+
+ public void setImg_rot2( String img_rot2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_ROT2, img_rot2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_rot2 = img_rot2;
+ LAZY_LOADED_OBJECTS.put( IMG_ROT2, Boolean.TRUE );
+ }
+
+ public String getImg_cab1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_CAB1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_cab1;
+ }
+
+ public void setImg_cab1( String img_cab1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_CAB1, img_cab1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_cab1 = img_cab1;
+ LAZY_LOADED_OBJECTS.put( IMG_CAB1, Boolean.TRUE );
+ }
+
+ public String getImg_cab4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_CAB4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_cab4;
+ }
+
+ public void setImg_cab4( String img_cab4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_CAB4, img_cab4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_cab4 = img_cab4;
+ LAZY_LOADED_OBJECTS.put( IMG_CAB4, Boolean.TRUE );
+ }
+
+ public String getImg_ma1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma1;
+ }
+
+ public void setImg_ma1( String img_ma1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA1, img_ma1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma1 = img_ma1;
+ LAZY_LOADED_OBJECTS.put( IMG_MA1, Boolean.TRUE );
+ }
+
+ public String getImg_ma4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma4;
+ }
+
+ public void setImg_ma4( String img_ma4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA4, img_ma4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma4 = img_ma4;
+ LAZY_LOADED_OBJECTS.put( IMG_MA4, Boolean.TRUE );
+ }
+
+ public String getImg_ma7()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA7 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma7;
+ }
+
+ public void setImg_ma7( String img_ma7 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA7, img_ma7 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma7 = img_ma7;
+ LAZY_LOADED_OBJECTS.put( IMG_MA7, Boolean.TRUE );
+ }
+
+ public String getImg_ma9()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( IMG_MA9 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.img_ma9;
+ }
+
+ public void setImg_ma9( String img_ma9 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( IMG_MA9, img_ma9 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.img_ma9 = img_ma9;
+ LAZY_LOADED_OBJECTS.put( IMG_MA9, Boolean.TRUE );
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public Integer getMedico_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDICO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medico_id;
+ }
+
+ public void setMedico_id( Integer medico_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDICO_ID, medico_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medico_id = medico_id;
+ LAZY_LOADED_OBJECTS.put( MEDICO_ID, Boolean.TRUE );
+ }
+
+ public Integer getTecnico_saude_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TECNICO_SAUDE_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tecnico_saude_id;
+ }
+
+ public void setTecnico_saude_id( Integer tecnico_saude_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TECNICO_SAUDE_ID, tecnico_saude_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tecnico_saude_id = tecnico_saude_id;
+ LAZY_LOADED_OBJECTS.put( TECNICO_SAUDE_ID, Boolean.TRUE );
+ }
+
+ public String getAnalise_nr()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ANALISE_NR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.analise_nr;
+ }
+
+ public void setAnalise_nr( String analise_nr )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ANALISE_NR, analise_nr );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.analise_nr = analise_nr;
+ LAZY_LOADED_OBJECTS.put( ANALISE_NR, Boolean.TRUE );
+ }
+
+ public Integer getEstado_assinatura()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTADO_ASSINATURA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estado_assinatura;
+ }
+
+ public void setEstado_assinatura( Integer estado_assinatura )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTADO_ASSINATURA, estado_assinatura );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estado_assinatura = estado_assinatura;
+ LAZY_LOADED_OBJECTS.put( ESTADO_ASSINATURA, Boolean.TRUE );
+ }
+
+ public String getAss_resp_seg()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ASS_RESP_SEG );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ass_resp_seg;
+ }
+
+ public void setAss_resp_seg( String ass_resp_seg )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ASS_RESP_SEG, ass_resp_seg );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ass_resp_seg = ass_resp_seg;
+ LAZY_LOADED_OBJECTS.put( ASS_RESP_SEG, Boolean.TRUE );
+ }
+
+ public String getAss_resp_rh()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ASS_RESP_RH );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ass_resp_rh;
+ }
+
+ public void setAss_resp_rh( String ass_resp_rh )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ASS_RESP_RH, ass_resp_rh );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ass_resp_rh = ass_resp_rh;
+ LAZY_LOADED_OBJECTS.put( ASS_RESP_RH, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_consolidacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_CONSOLIDACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_consolidacao;
+ }
+
+ public void setData_consolidacao( java.util.Date data_consolidacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_CONSOLIDACAO, data_consolidacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_consolidacao = data_consolidacao;
+ LAZY_LOADED_OBJECTS.put( DATA_CONSOLIDACAO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_assinatura_seg()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_ASSINATURA_SEG );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_assinatura_seg;
+ }
+
+ public void setData_assinatura_seg( java.util.Date data_assinatura_seg )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_ASSINATURA_SEG, data_assinatura_seg );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_assinatura_seg = data_assinatura_seg;
+ LAZY_LOADED_OBJECTS.put( DATA_ASSINATURA_SEG, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_assinatura_rh()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_ASSINATURA_RH );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_assinatura_rh;
+ }
+
+ public void setData_assinatura_rh( java.util.Date data_assinatura_rh )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_ASSINATURA_RH, data_assinatura_rh );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_assinatura_rh = data_assinatura_rh;
+ LAZY_LOADED_OBJECTS.put( DATA_ASSINATURA_RH, Boolean.TRUE );
+ }
+
+ public String getAss_consolidacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ASS_CONSOLIDACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ass_consolidacao;
+ }
+
+ public void setAss_consolidacao( String ass_consolidacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ASS_CONSOLIDACAO, ass_consolidacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ass_consolidacao = ass_consolidacao;
+ LAZY_LOADED_OBJECTS.put( ASS_CONSOLIDACAO, Boolean.TRUE );
+ }
+
+ public String getNome_resp_seg()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_RESP_SEG );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_resp_seg;
+ }
+
+ public void setNome_resp_seg( String nome_resp_seg )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_RESP_SEG, nome_resp_seg );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_resp_seg = nome_resp_seg;
+ LAZY_LOADED_OBJECTS.put( NOME_RESP_SEG, Boolean.TRUE );
+ }
+
+ public String getNome_resp_rh()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_RESP_RH );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_resp_rh;
+ }
+
+ public void setNome_resp_rh( String nome_resp_rh )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_RESP_RH, nome_resp_rh );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_resp_rh = nome_resp_rh;
+ LAZY_LOADED_OBJECTS.put( NOME_RESP_RH, Boolean.TRUE );
+ }
+
+ public Integer getCausas()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CAUSAS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.causas;
+ }
+
+ public void setCausas( Integer causas )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CAUSAS, causas );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.causas = causas;
+ LAZY_LOADED_OBJECTS.put( CAUSAS, Boolean.TRUE );
+ }
+
+ public Integer getEstado_antes_correcao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTADO_ANTES_CORRECAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estado_antes_correcao;
+ }
+
+ public void setEstado_antes_correcao( Integer estado_antes_correcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTADO_ANTES_CORRECAO, estado_antes_correcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estado_antes_correcao = estado_antes_correcao;
+ LAZY_LOADED_OBJECTS.put( ESTADO_ANTES_CORRECAO, Boolean.TRUE );
+ }
+
+ public String getObservacoes_correcao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OBSERVACOES_CORRECAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.observacoes_correcao;
+ }
+
+ public void setObservacoes_correcao( String observacoes_correcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OBSERVACOES_CORRECAO, observacoes_correcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.observacoes_correcao = observacoes_correcao;
+ LAZY_LOADED_OBJECTS.put( OBSERVACOES_CORRECAO, Boolean.TRUE );
+ }
+
+ public String getCorrecao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CORRECAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.correcao;
+ }
+
+ public void setCorrecao( String correcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CORRECAO, correcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.correcao = correcao;
+ LAZY_LOADED_OBJECTS.put( CORRECAO, Boolean.TRUE );
+ }
+
+ public String getAss_superior()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ASS_SUPERIOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ass_superior;
+ }
+
+ public void setAss_superior( String ass_superior )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ASS_SUPERIOR, ass_superior );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ass_superior = ass_superior;
+ LAZY_LOADED_OBJECTS.put( ASS_SUPERIOR, Boolean.TRUE );
+ }
+
+ public String getNome_superior()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_SUPERIOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_superior;
+ }
+
+ public void setNome_superior( String nome_superior )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_SUPERIOR, nome_superior );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_superior = nome_superior;
+ LAZY_LOADED_OBJECTS.put( NOME_SUPERIOR, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_assinatura_superior()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_ASSINATURA_SUPERIOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_assinatura_superior;
+ }
+
+ public void setData_assinatura_superior( java.util.Date data_assinatura_superior )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_ASSINATURA_SUPERIOR, data_assinatura_superior );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_assinatura_superior = data_assinatura_superior;
+ LAZY_LOADED_OBJECTS.put( DATA_ASSINATURA_SUPERIOR, Boolean.TRUE );
+ }
+
+ public String getAveriguador()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AVERIGUADOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.averiguador;
+ }
+
+ public void setAveriguador( String averiguador )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AVERIGUADOR, averiguador );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.averiguador = averiguador;
+ LAZY_LOADED_OBJECTS.put( AVERIGUADOR, Boolean.TRUE );
+ }
+
+ public String getAveriguacao_posterior()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AVERIGUACAO_POSTERIOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.averiguacao_posterior;
+ }
+
+ public void setAveriguacao_posterior( String averiguacao_posterior )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AVERIGUACAO_POSTERIOR, averiguacao_posterior );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.averiguacao_posterior = averiguacao_posterior;
+ LAZY_LOADED_OBJECTS.put( AVERIGUACAO_POSTERIOR, Boolean.TRUE );
+ }
+
+ public String getAveriguacao_obs()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AVERIGUACAO_OBS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.averiguacao_obs;
+ }
+
+ public void setAveriguacao_obs( String averiguacao_obs )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AVERIGUACAO_OBS, averiguacao_obs );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.averiguacao_obs = averiguacao_obs;
+ LAZY_LOADED_OBJECTS.put( AVERIGUACAO_OBS, Boolean.TRUE );
+ }
+
+ public String getNome_resp_consolidacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_RESP_CONSOLIDACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_resp_consolidacao;
+ }
+
+ public void setNome_resp_consolidacao( String nome_resp_consolidacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_RESP_CONSOLIDACAO, nome_resp_consolidacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_resp_consolidacao = nome_resp_consolidacao;
+ LAZY_LOADED_OBJECTS.put( NOME_RESP_CONSOLIDACAO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_inicio_processo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_INICIO_PROCESSO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_inicio_processo;
+ }
+
+ public void setData_inicio_processo( java.util.Date data_inicio_processo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_INICIO_PROCESSO, data_inicio_processo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_inicio_processo = data_inicio_processo;
+ LAZY_LOADED_OBJECTS.put( DATA_INICIO_PROCESSO, Boolean.TRUE );
+ }
+
+ public Integer getDepartamento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DEPARTAMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.departamento_id;
+ }
+
+ public void setDepartamento_id( Integer departamento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DEPARTAMENTO_ID, departamento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.departamento_id = departamento_id;
+ LAZY_LOADED_OBJECTS.put( DEPARTAMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.DepartamentosData toDepartamento_id()
+ {
+ try
+ {
+ prepare( TO_DEPARTAMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_departamento_id;
+ }
+
+ public void setToDepartamento_id( db.data.siprp.outer.DepartamentosData to_departamento_id )
+ {
+ try
+ {
+ preProcess( TO_DEPARTAMENTO_ID, to_departamento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_departamento_id = to_departamento_id;
+ }
+
+ public Integer getSeccao_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SECCAO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.seccao_id;
+ }
+
+ public void setSeccao_id( Integer seccao_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SECCAO_ID, seccao_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.seccao_id = seccao_id;
+ LAZY_LOADED_OBJECTS.put( SECCAO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.SeccoesData toSeccao_id()
+ {
+ try
+ {
+ prepare( TO_SECCAO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_seccao_id;
+ }
+
+ public void setToSeccao_id( db.data.siprp.outer.SeccoesData to_seccao_id )
+ {
+ try
+ {
+ preProcess( TO_SECCAO_ID, to_seccao_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_seccao_id = to_seccao_id;
+ }
+
+ public Integer getRh_fase4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RH_FASE4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.rh_fase4;
+ }
+
+ public void setRh_fase4( Integer rh_fase4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RH_FASE4, rh_fase4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.rh_fase4 = rh_fase4;
+ LAZY_LOADED_OBJECTS.put( RH_FASE4, Boolean.TRUE );
+ }
+
+ public String getApagada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( APAGADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.apagada;
+ }
+
+ public void setApagada( String apagada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( APAGADA, apagada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.apagada = apagada;
+ LAZY_LOADED_OBJECTS.put( APAGADA, Boolean.TRUE );
+ }
+
+ public Boolean getConcluido_por_desactivacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONCLUIDO_POR_DESACTIVACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.concluido_por_desactivacao;
+ }
+
+ public void setConcluido_por_desactivacao( Boolean concluido_por_desactivacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONCLUIDO_POR_DESACTIVACAO, concluido_por_desactivacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.concluido_por_desactivacao = concluido_por_desactivacao;
+ LAZY_LOADED_OBJECTS.put( CONCLUIDO_POR_DESACTIVACAO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_desactivacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_DESACTIVACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_desactivacao;
+ }
+
+ public void setData_desactivacao( java.util.Date data_desactivacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_DESACTIVACAO, data_desactivacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_desactivacao = data_desactivacao;
+ LAZY_LOADED_OBJECTS.put( DATA_DESACTIVACAO, Boolean.TRUE );
+ }
+
+ public String getComentario_desactivacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( COMENTARIO_DESACTIVACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.comentario_desactivacao;
+ }
+
+ public void setComentario_desactivacao( String comentario_desactivacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( COMENTARIO_DESACTIVACAO, comentario_desactivacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.comentario_desactivacao = comentario_desactivacao;
+ LAZY_LOADED_OBJECTS.put( COMENTARIO_DESACTIVACAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AnalisesAcidentes.ID_INDEX:
+ value = getId();
+ break;
+ case AnalisesAcidentes.DATA_ACIDENTE_INDEX:
+ value = getData_acidente();
+ break;
+ case AnalisesAcidentes.ACIDENTADO_ID_INDEX:
+ value = getAcidentado_id();
+ break;
+ case AnalisesAcidentes.TO_ACIDENTADO_ID_INDEX:
+ value = toAcidentado_id();
+ break;
+ case AnalisesAcidentes.ESTADO_INDEX:
+ value = getEstado();
+ break;
+ case AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case AnalisesAcidentes.HORAS_TURNO_INDEX:
+ value = getHoras_turno();
+ break;
+ case AnalisesAcidentes.SECCAO_INDEX:
+ value = getSeccao();
+ break;
+ case AnalisesAcidentes.LOCAL_TRABALHO_INDEX:
+ value = getLocal_trabalho();
+ break;
+ case AnalisesAcidentes.TAREFA_INDEX:
+ value = getTarefa();
+ break;
+ case AnalisesAcidentes.SUBSTANCIAS_INDEX:
+ value = getSubstancias();
+ break;
+ case AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX:
+ value = getSuperior_hierarquico();
+ break;
+ case AnalisesAcidentes.CONDICOES_INDEX:
+ value = getCondicoes();
+ break;
+ case AnalisesAcidentes.TESTEMUNHAS_INDEX:
+ value = getTestemunhas();
+ break;
+ case AnalisesAcidentes.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case AnalisesAcidentes.CONCLUSOES_INDEX:
+ value = getConclusoes();
+ break;
+ case AnalisesAcidentes.ACCOES_INDEX:
+ value = getAccoes();
+ break;
+ case AnalisesAcidentes.HORA_ACIDENTE_INDEX:
+ value = getHora_acidente();
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_INDEX:
+ value = getFormacao_shst();
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX:
+ value = getFormacao_shst_nao_porque();
+ break;
+ case AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX:
+ value = getOutros_acidentes_com_colaborador();
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX:
+ value = getNr_acidentes_com_colaborador();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX:
+ value = getNr_relatorio_acidente_colaborador1();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX:
+ value = getNr_relatorio_acidente_colaborador2();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX:
+ value = getNr_relatorio_acidente_colaborador3();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX:
+ value = getNr_relatorio_acidente_colaborador4();
+ break;
+ case AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ value = getAcidentes_outros_colaboradores();
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ value = getNr_acidentes_outros_colaboradores();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX:
+ value = getNr_relatorio_acidente_outros_colaboradores1();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX:
+ value = getNr_relatorio_acidente_outros_colaboradores2();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX:
+ value = getNr_relatorio_acidente_outros_colaboradores3();
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX:
+ value = getNr_relatorio_acidente_outros_colaboradores4();
+ break;
+ case AnalisesAcidentes.LESAO_CABECA_INDEX:
+ value = getLesao_cabeca();
+ break;
+ case AnalisesAcidentes.LESAO_PESCOCO_INDEX:
+ value = getLesao_pescoco();
+ break;
+ case AnalisesAcidentes.LESAO_TRONCO_INDEX:
+ value = getLesao_tronco();
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX:
+ value = getLesao_membro_sup_dir();
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX:
+ value = getLesao_membro_sup_esq();
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX:
+ value = getLesao_membro_inf_dir();
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX:
+ value = getLesao_membro_inf_esq();
+ break;
+ case AnalisesAcidentes.ESPECIF1_INDEX:
+ value = getEspecif1();
+ break;
+ case AnalisesAcidentes.ESPECIF2_INDEX:
+ value = getEspecif2();
+ break;
+ case AnalisesAcidentes.ESPECIF3_INDEX:
+ value = getEspecif3();
+ break;
+ case AnalisesAcidentes.ESPECIF4_INDEX:
+ value = getEspecif4();
+ break;
+ case AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX:
+ value = getTipo_incapacidade();
+ break;
+ case AnalisesAcidentes.COEF_INCAPACIDADE_INDEX:
+ value = getCoef_incapacidade();
+ break;
+ case AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX:
+ value = getData_aval_incapacidade();
+ break;
+ case AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX:
+ value = getData_rev_incapacidade();
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX:
+ value = getPeriodo_incapacidade_de();
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX:
+ value = getPeriodo_incapacidade_a();
+ break;
+ case AnalisesAcidentes.IMG_FLEXAO_INDEX:
+ value = getImg_flexao();
+ break;
+ case AnalisesAcidentes.IMG_EXT1_INDEX:
+ value = getImg_ext1();
+ break;
+ case AnalisesAcidentes.IMG_EXT2_INDEX:
+ value = getImg_ext2();
+ break;
+ case AnalisesAcidentes.IMG_CAB2_INDEX:
+ value = getImg_cab2();
+ break;
+ case AnalisesAcidentes.IMG_CAB3_INDEX:
+ value = getImg_cab3();
+ break;
+ case AnalisesAcidentes.IMG_MA2_INDEX:
+ value = getImg_ma2();
+ break;
+ case AnalisesAcidentes.IMG_MA3_INDEX:
+ value = getImg_ma3();
+ break;
+ case AnalisesAcidentes.IMG_MA5_INDEX:
+ value = getImg_ma5();
+ break;
+ case AnalisesAcidentes.IMG_MA6_INDEX:
+ value = getImg_ma6();
+ break;
+ case AnalisesAcidentes.IMG_MA8_INDEX:
+ value = getImg_ma8();
+ break;
+ case AnalisesAcidentes.IMG_MA10_INDEX:
+ value = getImg_ma10();
+ break;
+ case AnalisesAcidentes.RESTRICAO_CARGA_INDEX:
+ value = getRestricao_carga();
+ break;
+ case AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX:
+ value = getRestricao_motricidade();
+ break;
+ case AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX:
+ value = getRestricao_conducao();
+ break;
+ case AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX:
+ value = getRestricao_vibracoes();
+ break;
+ case AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX:
+ value = getRestricao_outras();
+ break;
+ case AnalisesAcidentes.MED_OBSERV_INDEX:
+ value = getMed_observ();
+ break;
+ case AnalisesAcidentes.TIPO_LESAO_INDEX:
+ value = getTipo_lesao();
+ break;
+ case AnalisesAcidentes.IMG_ROT1_INDEX:
+ value = getImg_rot1();
+ break;
+ case AnalisesAcidentes.IMG_ROT2_INDEX:
+ value = getImg_rot2();
+ break;
+ case AnalisesAcidentes.IMG_CAB1_INDEX:
+ value = getImg_cab1();
+ break;
+ case AnalisesAcidentes.IMG_CAB4_INDEX:
+ value = getImg_cab4();
+ break;
+ case AnalisesAcidentes.IMG_MA1_INDEX:
+ value = getImg_ma1();
+ break;
+ case AnalisesAcidentes.IMG_MA4_INDEX:
+ value = getImg_ma4();
+ break;
+ case AnalisesAcidentes.IMG_MA7_INDEX:
+ value = getImg_ma7();
+ break;
+ case AnalisesAcidentes.IMG_MA9_INDEX:
+ value = getImg_ma9();
+ break;
+ case AnalisesAcidentes.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case AnalisesAcidentes.MEDICO_ID_INDEX:
+ value = getMedico_id();
+ break;
+ case AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX:
+ value = getTecnico_saude_id();
+ break;
+ case AnalisesAcidentes.ANALISE_NR_INDEX:
+ value = getAnalise_nr();
+ break;
+ case AnalisesAcidentes.ESTADO_ASSINATURA_INDEX:
+ value = getEstado_assinatura();
+ break;
+ case AnalisesAcidentes.ASS_RESP_SEG_INDEX:
+ value = getAss_resp_seg();
+ break;
+ case AnalisesAcidentes.ASS_RESP_RH_INDEX:
+ value = getAss_resp_rh();
+ break;
+ case AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX:
+ value = getData_consolidacao();
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX:
+ value = getData_assinatura_seg();
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX:
+ value = getData_assinatura_rh();
+ break;
+ case AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX:
+ value = getAss_consolidacao();
+ break;
+ case AnalisesAcidentes.NOME_RESP_SEG_INDEX:
+ value = getNome_resp_seg();
+ break;
+ case AnalisesAcidentes.NOME_RESP_RH_INDEX:
+ value = getNome_resp_rh();
+ break;
+ case AnalisesAcidentes.CAUSAS_INDEX:
+ value = getCausas();
+ break;
+ case AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX:
+ value = getEstado_antes_correcao();
+ break;
+ case AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX:
+ value = getObservacoes_correcao();
+ break;
+ case AnalisesAcidentes.CORRECAO_INDEX:
+ value = getCorrecao();
+ break;
+ case AnalisesAcidentes.ASS_SUPERIOR_INDEX:
+ value = getAss_superior();
+ break;
+ case AnalisesAcidentes.NOME_SUPERIOR_INDEX:
+ value = getNome_superior();
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX:
+ value = getData_assinatura_superior();
+ break;
+ case AnalisesAcidentes.AVERIGUADOR_INDEX:
+ value = getAveriguador();
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX:
+ value = getAveriguacao_posterior();
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_OBS_INDEX:
+ value = getAveriguacao_obs();
+ break;
+ case AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX:
+ value = getNome_resp_consolidacao();
+ break;
+ case AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX:
+ value = getData_inicio_processo();
+ break;
+ case AnalisesAcidentes.DEPARTAMENTO_ID_INDEX:
+ value = getDepartamento_id();
+ break;
+ case AnalisesAcidentes.TO_DEPARTAMENTO_ID_INDEX:
+ value = toDepartamento_id();
+ break;
+ case AnalisesAcidentes.SECCAO_ID_INDEX:
+ value = getSeccao_id();
+ break;
+ case AnalisesAcidentes.TO_SECCAO_ID_INDEX:
+ value = toSeccao_id();
+ break;
+ case AnalisesAcidentes.RH_FASE4_INDEX:
+ value = getRh_fase4();
+ break;
+ case AnalisesAcidentes.APAGADA_INDEX:
+ value = getApagada();
+ break;
+ case AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ value = getConcluido_por_desactivacao();
+ break;
+ case AnalisesAcidentes.DATA_DESACTIVACAO_INDEX:
+ value = getData_desactivacao();
+ break;
+ case AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX:
+ value = getComentario_desactivacao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AnalisesAcidentes.ID_INDEX:
+ value = this.id;
+ break;
+ case AnalisesAcidentes.DATA_ACIDENTE_INDEX:
+ value = this.data_acidente;
+ break;
+ case AnalisesAcidentes.ACIDENTADO_ID_INDEX:
+ value = this.acidentado_id;
+ break;
+ case AnalisesAcidentes.TO_ACIDENTADO_ID_INDEX:
+ value = this.to_acidentado_id;
+ break;
+ case AnalisesAcidentes.ESTADO_INDEX:
+ value = this.estado;
+ break;
+ case AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case AnalisesAcidentes.HORAS_TURNO_INDEX:
+ value = this.horas_turno;
+ break;
+ case AnalisesAcidentes.SECCAO_INDEX:
+ value = this.seccao;
+ break;
+ case AnalisesAcidentes.LOCAL_TRABALHO_INDEX:
+ value = this.local_trabalho;
+ break;
+ case AnalisesAcidentes.TAREFA_INDEX:
+ value = this.tarefa;
+ break;
+ case AnalisesAcidentes.SUBSTANCIAS_INDEX:
+ value = this.substancias;
+ break;
+ case AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX:
+ value = this.superior_hierarquico;
+ break;
+ case AnalisesAcidentes.CONDICOES_INDEX:
+ value = this.condicoes;
+ break;
+ case AnalisesAcidentes.TESTEMUNHAS_INDEX:
+ value = this.testemunhas;
+ break;
+ case AnalisesAcidentes.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case AnalisesAcidentes.CONCLUSOES_INDEX:
+ value = this.conclusoes;
+ break;
+ case AnalisesAcidentes.ACCOES_INDEX:
+ value = this.accoes;
+ break;
+ case AnalisesAcidentes.HORA_ACIDENTE_INDEX:
+ value = this.hora_acidente;
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_INDEX:
+ value = this.formacao_shst;
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX:
+ value = this.formacao_shst_nao_porque;
+ break;
+ case AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX:
+ value = this.outros_acidentes_com_colaborador;
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX:
+ value = this.nr_acidentes_com_colaborador;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX:
+ value = this.nr_relatorio_acidente_colaborador1;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX:
+ value = this.nr_relatorio_acidente_colaborador2;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX:
+ value = this.nr_relatorio_acidente_colaborador3;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX:
+ value = this.nr_relatorio_acidente_colaborador4;
+ break;
+ case AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ value = this.acidentes_outros_colaboradores;
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ value = this.nr_acidentes_outros_colaboradores;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX:
+ value = this.nr_relatorio_acidente_outros_colaboradores1;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX:
+ value = this.nr_relatorio_acidente_outros_colaboradores2;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX:
+ value = this.nr_relatorio_acidente_outros_colaboradores3;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX:
+ value = this.nr_relatorio_acidente_outros_colaboradores4;
+ break;
+ case AnalisesAcidentes.LESAO_CABECA_INDEX:
+ value = this.lesao_cabeca;
+ break;
+ case AnalisesAcidentes.LESAO_PESCOCO_INDEX:
+ value = this.lesao_pescoco;
+ break;
+ case AnalisesAcidentes.LESAO_TRONCO_INDEX:
+ value = this.lesao_tronco;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX:
+ value = this.lesao_membro_sup_dir;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX:
+ value = this.lesao_membro_sup_esq;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX:
+ value = this.lesao_membro_inf_dir;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX:
+ value = this.lesao_membro_inf_esq;
+ break;
+ case AnalisesAcidentes.ESPECIF1_INDEX:
+ value = this.especif1;
+ break;
+ case AnalisesAcidentes.ESPECIF2_INDEX:
+ value = this.especif2;
+ break;
+ case AnalisesAcidentes.ESPECIF3_INDEX:
+ value = this.especif3;
+ break;
+ case AnalisesAcidentes.ESPECIF4_INDEX:
+ value = this.especif4;
+ break;
+ case AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX:
+ value = this.tipo_incapacidade;
+ break;
+ case AnalisesAcidentes.COEF_INCAPACIDADE_INDEX:
+ value = this.coef_incapacidade;
+ break;
+ case AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX:
+ value = this.data_aval_incapacidade;
+ break;
+ case AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX:
+ value = this.data_rev_incapacidade;
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX:
+ value = this.periodo_incapacidade_de;
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX:
+ value = this.periodo_incapacidade_a;
+ break;
+ case AnalisesAcidentes.IMG_FLEXAO_INDEX:
+ value = this.img_flexao;
+ break;
+ case AnalisesAcidentes.IMG_EXT1_INDEX:
+ value = this.img_ext1;
+ break;
+ case AnalisesAcidentes.IMG_EXT2_INDEX:
+ value = this.img_ext2;
+ break;
+ case AnalisesAcidentes.IMG_CAB2_INDEX:
+ value = this.img_cab2;
+ break;
+ case AnalisesAcidentes.IMG_CAB3_INDEX:
+ value = this.img_cab3;
+ break;
+ case AnalisesAcidentes.IMG_MA2_INDEX:
+ value = this.img_ma2;
+ break;
+ case AnalisesAcidentes.IMG_MA3_INDEX:
+ value = this.img_ma3;
+ break;
+ case AnalisesAcidentes.IMG_MA5_INDEX:
+ value = this.img_ma5;
+ break;
+ case AnalisesAcidentes.IMG_MA6_INDEX:
+ value = this.img_ma6;
+ break;
+ case AnalisesAcidentes.IMG_MA8_INDEX:
+ value = this.img_ma8;
+ break;
+ case AnalisesAcidentes.IMG_MA10_INDEX:
+ value = this.img_ma10;
+ break;
+ case AnalisesAcidentes.RESTRICAO_CARGA_INDEX:
+ value = this.restricao_carga;
+ break;
+ case AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX:
+ value = this.restricao_motricidade;
+ break;
+ case AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX:
+ value = this.restricao_conducao;
+ break;
+ case AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX:
+ value = this.restricao_vibracoes;
+ break;
+ case AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX:
+ value = this.restricao_outras;
+ break;
+ case AnalisesAcidentes.MED_OBSERV_INDEX:
+ value = this.med_observ;
+ break;
+ case AnalisesAcidentes.TIPO_LESAO_INDEX:
+ value = this.tipo_lesao;
+ break;
+ case AnalisesAcidentes.IMG_ROT1_INDEX:
+ value = this.img_rot1;
+ break;
+ case AnalisesAcidentes.IMG_ROT2_INDEX:
+ value = this.img_rot2;
+ break;
+ case AnalisesAcidentes.IMG_CAB1_INDEX:
+ value = this.img_cab1;
+ break;
+ case AnalisesAcidentes.IMG_CAB4_INDEX:
+ value = this.img_cab4;
+ break;
+ case AnalisesAcidentes.IMG_MA1_INDEX:
+ value = this.img_ma1;
+ break;
+ case AnalisesAcidentes.IMG_MA4_INDEX:
+ value = this.img_ma4;
+ break;
+ case AnalisesAcidentes.IMG_MA7_INDEX:
+ value = this.img_ma7;
+ break;
+ case AnalisesAcidentes.IMG_MA9_INDEX:
+ value = this.img_ma9;
+ break;
+ case AnalisesAcidentes.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case AnalisesAcidentes.MEDICO_ID_INDEX:
+ value = this.medico_id;
+ break;
+ case AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX:
+ value = this.tecnico_saude_id;
+ break;
+ case AnalisesAcidentes.ANALISE_NR_INDEX:
+ value = this.analise_nr;
+ break;
+ case AnalisesAcidentes.ESTADO_ASSINATURA_INDEX:
+ value = this.estado_assinatura;
+ break;
+ case AnalisesAcidentes.ASS_RESP_SEG_INDEX:
+ value = this.ass_resp_seg;
+ break;
+ case AnalisesAcidentes.ASS_RESP_RH_INDEX:
+ value = this.ass_resp_rh;
+ break;
+ case AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX:
+ value = this.data_consolidacao;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX:
+ value = this.data_assinatura_seg;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX:
+ value = this.data_assinatura_rh;
+ break;
+ case AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX:
+ value = this.ass_consolidacao;
+ break;
+ case AnalisesAcidentes.NOME_RESP_SEG_INDEX:
+ value = this.nome_resp_seg;
+ break;
+ case AnalisesAcidentes.NOME_RESP_RH_INDEX:
+ value = this.nome_resp_rh;
+ break;
+ case AnalisesAcidentes.CAUSAS_INDEX:
+ value = this.causas;
+ break;
+ case AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX:
+ value = this.estado_antes_correcao;
+ break;
+ case AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX:
+ value = this.observacoes_correcao;
+ break;
+ case AnalisesAcidentes.CORRECAO_INDEX:
+ value = this.correcao;
+ break;
+ case AnalisesAcidentes.ASS_SUPERIOR_INDEX:
+ value = this.ass_superior;
+ break;
+ case AnalisesAcidentes.NOME_SUPERIOR_INDEX:
+ value = this.nome_superior;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX:
+ value = this.data_assinatura_superior;
+ break;
+ case AnalisesAcidentes.AVERIGUADOR_INDEX:
+ value = this.averiguador;
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX:
+ value = this.averiguacao_posterior;
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_OBS_INDEX:
+ value = this.averiguacao_obs;
+ break;
+ case AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX:
+ value = this.nome_resp_consolidacao;
+ break;
+ case AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX:
+ value = this.data_inicio_processo;
+ break;
+ case AnalisesAcidentes.DEPARTAMENTO_ID_INDEX:
+ value = this.departamento_id;
+ break;
+ case AnalisesAcidentes.TO_DEPARTAMENTO_ID_INDEX:
+ value = this.to_departamento_id;
+ break;
+ case AnalisesAcidentes.SECCAO_ID_INDEX:
+ value = this.seccao_id;
+ break;
+ case AnalisesAcidentes.TO_SECCAO_ID_INDEX:
+ value = this.to_seccao_id;
+ break;
+ case AnalisesAcidentes.RH_FASE4_INDEX:
+ value = this.rh_fase4;
+ break;
+ case AnalisesAcidentes.APAGADA_INDEX:
+ value = this.apagada;
+ break;
+ case AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ value = this.concluido_por_desactivacao;
+ break;
+ case AnalisesAcidentes.DATA_DESACTIVACAO_INDEX:
+ value = this.data_desactivacao;
+ break;
+ case AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX:
+ value = this.comentario_desactivacao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AnalisesAcidentes.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.DATA_ACIDENTE_INDEX:
+ setData_acidente( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.ACIDENTADO_ID_INDEX:
+ setAcidentado_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.TO_ACIDENTADO_ID_INDEX:
+ setToAcidentado_id( ( db.data.siprp.outer.AcidentadosData ) value );
+ break;
+ case AnalisesAcidentes.ESTADO_INDEX:
+ setEstado( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.HORAS_TURNO_INDEX:
+ setHoras_turno( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.SECCAO_INDEX:
+ setSeccao( ( String ) value );
+ break;
+ case AnalisesAcidentes.LOCAL_TRABALHO_INDEX:
+ setLocal_trabalho( ( String ) value );
+ break;
+ case AnalisesAcidentes.TAREFA_INDEX:
+ setTarefa( ( String ) value );
+ break;
+ case AnalisesAcidentes.SUBSTANCIAS_INDEX:
+ setSubstancias( ( String ) value );
+ break;
+ case AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX:
+ setSuperior_hierarquico( ( String ) value );
+ break;
+ case AnalisesAcidentes.CONDICOES_INDEX:
+ setCondicoes( ( String ) value );
+ break;
+ case AnalisesAcidentes.TESTEMUNHAS_INDEX:
+ setTestemunhas( ( String ) value );
+ break;
+ case AnalisesAcidentes.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case AnalisesAcidentes.CONCLUSOES_INDEX:
+ setConclusoes( ( String ) value );
+ break;
+ case AnalisesAcidentes.ACCOES_INDEX:
+ setAccoes( ( String ) value );
+ break;
+ case AnalisesAcidentes.HORA_ACIDENTE_INDEX:
+ setHora_acidente( ( java.sql.Time ) value );
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_INDEX:
+ setFormacao_shst( ( String ) value );
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX:
+ setFormacao_shst_nao_porque( ( String ) value );
+ break;
+ case AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX:
+ setOutros_acidentes_com_colaborador( ( String ) value );
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX:
+ setNr_acidentes_com_colaborador( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX:
+ setNr_relatorio_acidente_colaborador1( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX:
+ setNr_relatorio_acidente_colaborador2( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX:
+ setNr_relatorio_acidente_colaborador3( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX:
+ setNr_relatorio_acidente_colaborador4( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ setAcidentes_outros_colaboradores( ( String ) value );
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ setNr_acidentes_outros_colaboradores( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX:
+ setNr_relatorio_acidente_outros_colaboradores1( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX:
+ setNr_relatorio_acidente_outros_colaboradores2( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX:
+ setNr_relatorio_acidente_outros_colaboradores3( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX:
+ setNr_relatorio_acidente_outros_colaboradores4( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.LESAO_CABECA_INDEX:
+ setLesao_cabeca( ( String ) value );
+ break;
+ case AnalisesAcidentes.LESAO_PESCOCO_INDEX:
+ setLesao_pescoco( ( String ) value );
+ break;
+ case AnalisesAcidentes.LESAO_TRONCO_INDEX:
+ setLesao_tronco( ( String ) value );
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX:
+ setLesao_membro_sup_dir( ( String ) value );
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX:
+ setLesao_membro_sup_esq( ( String ) value );
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX:
+ setLesao_membro_inf_dir( ( String ) value );
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX:
+ setLesao_membro_inf_esq( ( String ) value );
+ break;
+ case AnalisesAcidentes.ESPECIF1_INDEX:
+ setEspecif1( ( String ) value );
+ break;
+ case AnalisesAcidentes.ESPECIF2_INDEX:
+ setEspecif2( ( String ) value );
+ break;
+ case AnalisesAcidentes.ESPECIF3_INDEX:
+ setEspecif3( ( String ) value );
+ break;
+ case AnalisesAcidentes.ESPECIF4_INDEX:
+ setEspecif4( ( String ) value );
+ break;
+ case AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX:
+ setTipo_incapacidade( ( String ) value );
+ break;
+ case AnalisesAcidentes.COEF_INCAPACIDADE_INDEX:
+ setCoef_incapacidade( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX:
+ setData_aval_incapacidade( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX:
+ setData_rev_incapacidade( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX:
+ setPeriodo_incapacidade_de( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX:
+ setPeriodo_incapacidade_a( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.IMG_FLEXAO_INDEX:
+ setImg_flexao( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_EXT1_INDEX:
+ setImg_ext1( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_EXT2_INDEX:
+ setImg_ext2( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_CAB2_INDEX:
+ setImg_cab2( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_CAB3_INDEX:
+ setImg_cab3( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA2_INDEX:
+ setImg_ma2( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA3_INDEX:
+ setImg_ma3( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA5_INDEX:
+ setImg_ma5( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA6_INDEX:
+ setImg_ma6( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA8_INDEX:
+ setImg_ma8( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA10_INDEX:
+ setImg_ma10( ( String ) value );
+ break;
+ case AnalisesAcidentes.RESTRICAO_CARGA_INDEX:
+ setRestricao_carga( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX:
+ setRestricao_motricidade( ( String ) value );
+ break;
+ case AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX:
+ setRestricao_conducao( ( String ) value );
+ break;
+ case AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX:
+ setRestricao_vibracoes( ( String ) value );
+ break;
+ case AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX:
+ setRestricao_outras( ( String ) value );
+ break;
+ case AnalisesAcidentes.MED_OBSERV_INDEX:
+ setMed_observ( ( String ) value );
+ break;
+ case AnalisesAcidentes.TIPO_LESAO_INDEX:
+ setTipo_lesao( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_ROT1_INDEX:
+ setImg_rot1( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_ROT2_INDEX:
+ setImg_rot2( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_CAB1_INDEX:
+ setImg_cab1( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_CAB4_INDEX:
+ setImg_cab4( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA1_INDEX:
+ setImg_ma1( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA4_INDEX:
+ setImg_ma4( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA7_INDEX:
+ setImg_ma7( ( String ) value );
+ break;
+ case AnalisesAcidentes.IMG_MA9_INDEX:
+ setImg_ma9( ( String ) value );
+ break;
+ case AnalisesAcidentes.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.MEDICO_ID_INDEX:
+ setMedico_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX:
+ setTecnico_saude_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.ANALISE_NR_INDEX:
+ setAnalise_nr( ( String ) value );
+ break;
+ case AnalisesAcidentes.ESTADO_ASSINATURA_INDEX:
+ setEstado_assinatura( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.ASS_RESP_SEG_INDEX:
+ setAss_resp_seg( ( String ) value );
+ break;
+ case AnalisesAcidentes.ASS_RESP_RH_INDEX:
+ setAss_resp_rh( ( String ) value );
+ break;
+ case AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX:
+ setData_consolidacao( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX:
+ setData_assinatura_seg( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX:
+ setData_assinatura_rh( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX:
+ setAss_consolidacao( ( String ) value );
+ break;
+ case AnalisesAcidentes.NOME_RESP_SEG_INDEX:
+ setNome_resp_seg( ( String ) value );
+ break;
+ case AnalisesAcidentes.NOME_RESP_RH_INDEX:
+ setNome_resp_rh( ( String ) value );
+ break;
+ case AnalisesAcidentes.CAUSAS_INDEX:
+ setCausas( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX:
+ setEstado_antes_correcao( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX:
+ setObservacoes_correcao( ( String ) value );
+ break;
+ case AnalisesAcidentes.CORRECAO_INDEX:
+ setCorrecao( ( String ) value );
+ break;
+ case AnalisesAcidentes.ASS_SUPERIOR_INDEX:
+ setAss_superior( ( String ) value );
+ break;
+ case AnalisesAcidentes.NOME_SUPERIOR_INDEX:
+ setNome_superior( ( String ) value );
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX:
+ setData_assinatura_superior( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.AVERIGUADOR_INDEX:
+ setAveriguador( ( String ) value );
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX:
+ setAveriguacao_posterior( ( String ) value );
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_OBS_INDEX:
+ setAveriguacao_obs( ( String ) value );
+ break;
+ case AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX:
+ setNome_resp_consolidacao( ( String ) value );
+ break;
+ case AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX:
+ setData_inicio_processo( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.DEPARTAMENTO_ID_INDEX:
+ setDepartamento_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.TO_DEPARTAMENTO_ID_INDEX:
+ setToDepartamento_id( ( db.data.siprp.outer.DepartamentosData ) value );
+ break;
+ case AnalisesAcidentes.SECCAO_ID_INDEX:
+ setSeccao_id( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.TO_SECCAO_ID_INDEX:
+ setToSeccao_id( ( db.data.siprp.outer.SeccoesData ) value );
+ break;
+ case AnalisesAcidentes.RH_FASE4_INDEX:
+ setRh_fase4( ( Integer ) value );
+ break;
+ case AnalisesAcidentes.APAGADA_INDEX:
+ setApagada( ( String ) value );
+ break;
+ case AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ setConcluido_por_desactivacao( ( Boolean ) value );
+ break;
+ case AnalisesAcidentes.DATA_DESACTIVACAO_INDEX:
+ setData_desactivacao( ( java.util.Date ) value );
+ break;
+ case AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX:
+ setComentario_desactivacao( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AnalisesAcidentes.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.DATA_ACIDENTE_INDEX:
+ this.data_acidente = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.ACIDENTADO_ID_INDEX:
+ this.acidentado_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.TO_ACIDENTADO_ID_INDEX:
+ this.to_acidentado_id = ( db.data.siprp.outer.AcidentadosData ) value;
+ break;
+ case AnalisesAcidentes.ESTADO_INDEX:
+ this.estado = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.HORAS_TURNO_INDEX:
+ this.horas_turno = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.SECCAO_INDEX:
+ this.seccao = ( String ) value;
+ break;
+ case AnalisesAcidentes.LOCAL_TRABALHO_INDEX:
+ this.local_trabalho = ( String ) value;
+ break;
+ case AnalisesAcidentes.TAREFA_INDEX:
+ this.tarefa = ( String ) value;
+ break;
+ case AnalisesAcidentes.SUBSTANCIAS_INDEX:
+ this.substancias = ( String ) value;
+ break;
+ case AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX:
+ this.superior_hierarquico = ( String ) value;
+ break;
+ case AnalisesAcidentes.CONDICOES_INDEX:
+ this.condicoes = ( String ) value;
+ break;
+ case AnalisesAcidentes.TESTEMUNHAS_INDEX:
+ this.testemunhas = ( String ) value;
+ break;
+ case AnalisesAcidentes.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case AnalisesAcidentes.CONCLUSOES_INDEX:
+ this.conclusoes = ( String ) value;
+ break;
+ case AnalisesAcidentes.ACCOES_INDEX:
+ this.accoes = ( String ) value;
+ break;
+ case AnalisesAcidentes.HORA_ACIDENTE_INDEX:
+ this.hora_acidente = ( java.sql.Time ) value;
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_INDEX:
+ this.formacao_shst = ( String ) value;
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX:
+ this.formacao_shst_nao_porque = ( String ) value;
+ break;
+ case AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX:
+ this.outros_acidentes_com_colaborador = ( String ) value;
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX:
+ this.nr_acidentes_com_colaborador = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX:
+ this.nr_relatorio_acidente_colaborador1 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX:
+ this.nr_relatorio_acidente_colaborador2 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX:
+ this.nr_relatorio_acidente_colaborador3 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX:
+ this.nr_relatorio_acidente_colaborador4 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ this.acidentes_outros_colaboradores = ( String ) value;
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ this.nr_acidentes_outros_colaboradores = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX:
+ this.nr_relatorio_acidente_outros_colaboradores1 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX:
+ this.nr_relatorio_acidente_outros_colaboradores2 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX:
+ this.nr_relatorio_acidente_outros_colaboradores3 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX:
+ this.nr_relatorio_acidente_outros_colaboradores4 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.LESAO_CABECA_INDEX:
+ this.lesao_cabeca = ( String ) value;
+ break;
+ case AnalisesAcidentes.LESAO_PESCOCO_INDEX:
+ this.lesao_pescoco = ( String ) value;
+ break;
+ case AnalisesAcidentes.LESAO_TRONCO_INDEX:
+ this.lesao_tronco = ( String ) value;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX:
+ this.lesao_membro_sup_dir = ( String ) value;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX:
+ this.lesao_membro_sup_esq = ( String ) value;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX:
+ this.lesao_membro_inf_dir = ( String ) value;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX:
+ this.lesao_membro_inf_esq = ( String ) value;
+ break;
+ case AnalisesAcidentes.ESPECIF1_INDEX:
+ this.especif1 = ( String ) value;
+ break;
+ case AnalisesAcidentes.ESPECIF2_INDEX:
+ this.especif2 = ( String ) value;
+ break;
+ case AnalisesAcidentes.ESPECIF3_INDEX:
+ this.especif3 = ( String ) value;
+ break;
+ case AnalisesAcidentes.ESPECIF4_INDEX:
+ this.especif4 = ( String ) value;
+ break;
+ case AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX:
+ this.tipo_incapacidade = ( String ) value;
+ break;
+ case AnalisesAcidentes.COEF_INCAPACIDADE_INDEX:
+ this.coef_incapacidade = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX:
+ this.data_aval_incapacidade = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX:
+ this.data_rev_incapacidade = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX:
+ this.periodo_incapacidade_de = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX:
+ this.periodo_incapacidade_a = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.IMG_FLEXAO_INDEX:
+ this.img_flexao = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_EXT1_INDEX:
+ this.img_ext1 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_EXT2_INDEX:
+ this.img_ext2 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_CAB2_INDEX:
+ this.img_cab2 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_CAB3_INDEX:
+ this.img_cab3 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA2_INDEX:
+ this.img_ma2 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA3_INDEX:
+ this.img_ma3 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA5_INDEX:
+ this.img_ma5 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA6_INDEX:
+ this.img_ma6 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA8_INDEX:
+ this.img_ma8 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA10_INDEX:
+ this.img_ma10 = ( String ) value;
+ break;
+ case AnalisesAcidentes.RESTRICAO_CARGA_INDEX:
+ this.restricao_carga = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX:
+ this.restricao_motricidade = ( String ) value;
+ break;
+ case AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX:
+ this.restricao_conducao = ( String ) value;
+ break;
+ case AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX:
+ this.restricao_vibracoes = ( String ) value;
+ break;
+ case AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX:
+ this.restricao_outras = ( String ) value;
+ break;
+ case AnalisesAcidentes.MED_OBSERV_INDEX:
+ this.med_observ = ( String ) value;
+ break;
+ case AnalisesAcidentes.TIPO_LESAO_INDEX:
+ this.tipo_lesao = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_ROT1_INDEX:
+ this.img_rot1 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_ROT2_INDEX:
+ this.img_rot2 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_CAB1_INDEX:
+ this.img_cab1 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_CAB4_INDEX:
+ this.img_cab4 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA1_INDEX:
+ this.img_ma1 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA4_INDEX:
+ this.img_ma4 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA7_INDEX:
+ this.img_ma7 = ( String ) value;
+ break;
+ case AnalisesAcidentes.IMG_MA9_INDEX:
+ this.img_ma9 = ( String ) value;
+ break;
+ case AnalisesAcidentes.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.MEDICO_ID_INDEX:
+ this.medico_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX:
+ this.tecnico_saude_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.ANALISE_NR_INDEX:
+ this.analise_nr = ( String ) value;
+ break;
+ case AnalisesAcidentes.ESTADO_ASSINATURA_INDEX:
+ this.estado_assinatura = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.ASS_RESP_SEG_INDEX:
+ this.ass_resp_seg = ( String ) value;
+ break;
+ case AnalisesAcidentes.ASS_RESP_RH_INDEX:
+ this.ass_resp_rh = ( String ) value;
+ break;
+ case AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX:
+ this.data_consolidacao = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX:
+ this.data_assinatura_seg = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX:
+ this.data_assinatura_rh = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX:
+ this.ass_consolidacao = ( String ) value;
+ break;
+ case AnalisesAcidentes.NOME_RESP_SEG_INDEX:
+ this.nome_resp_seg = ( String ) value;
+ break;
+ case AnalisesAcidentes.NOME_RESP_RH_INDEX:
+ this.nome_resp_rh = ( String ) value;
+ break;
+ case AnalisesAcidentes.CAUSAS_INDEX:
+ this.causas = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX:
+ this.estado_antes_correcao = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX:
+ this.observacoes_correcao = ( String ) value;
+ break;
+ case AnalisesAcidentes.CORRECAO_INDEX:
+ this.correcao = ( String ) value;
+ break;
+ case AnalisesAcidentes.ASS_SUPERIOR_INDEX:
+ this.ass_superior = ( String ) value;
+ break;
+ case AnalisesAcidentes.NOME_SUPERIOR_INDEX:
+ this.nome_superior = ( String ) value;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX:
+ this.data_assinatura_superior = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.AVERIGUADOR_INDEX:
+ this.averiguador = ( String ) value;
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX:
+ this.averiguacao_posterior = ( String ) value;
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_OBS_INDEX:
+ this.averiguacao_obs = ( String ) value;
+ break;
+ case AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX:
+ this.nome_resp_consolidacao = ( String ) value;
+ break;
+ case AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX:
+ this.data_inicio_processo = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.DEPARTAMENTO_ID_INDEX:
+ this.departamento_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.TO_DEPARTAMENTO_ID_INDEX:
+ this.to_departamento_id = ( db.data.siprp.outer.DepartamentosData ) value;
+ break;
+ case AnalisesAcidentes.SECCAO_ID_INDEX:
+ this.seccao_id = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.TO_SECCAO_ID_INDEX:
+ this.to_seccao_id = ( db.data.siprp.outer.SeccoesData ) value;
+ break;
+ case AnalisesAcidentes.RH_FASE4_INDEX:
+ this.rh_fase4 = ( Integer ) value;
+ break;
+ case AnalisesAcidentes.APAGADA_INDEX:
+ this.apagada = ( String ) value;
+ break;
+ case AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ this.concluido_por_desactivacao = ( Boolean ) value;
+ break;
+ case AnalisesAcidentes.DATA_DESACTIVACAO_INDEX:
+ this.data_desactivacao = ( java.util.Date ) value;
+ break;
+ case AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX:
+ this.comentario_desactivacao = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case AnalisesAcidentes.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.DATA_ACIDENTE_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.ACIDENTADO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.TO_ACIDENTADO_ID_INDEX:
+ theClass = db.data.siprp.outer.AcidentadosData.class;
+ break;
+ case AnalisesAcidentes.ESTADO_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.HORAS_TURNO_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.SECCAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LOCAL_TRABALHO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.TAREFA_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.SUBSTANCIAS_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.SUPERIOR_HIERARQUICO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.CONDICOES_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.TESTEMUNHAS_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.CONCLUSOES_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ACCOES_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.HORA_ACIDENTE_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.FORMACAO_SHST_NAO_PORQUE_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.OUTROS_ACIDENTES_COM_COLABORADOR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_COM_COLABORADOR_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR1_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR2_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR3_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_COLABORADOR4_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.NR_ACIDENTES_OUTROS_COLABORADORES_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES1_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES2_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES3_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.NR_RELATORIO_ACIDENTE_OUTROS_COLABORADORES4_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.LESAO_CABECA_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LESAO_PESCOCO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LESAO_TRONCO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_DIR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_SUP_ESQ_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_DIR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.LESAO_MEMBRO_INF_ESQ_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ESPECIF1_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ESPECIF2_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ESPECIF3_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ESPECIF4_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.TIPO_INCAPACIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.COEF_INCAPACIDADE_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.DATA_AVAL_INCAPACIDADE_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.DATA_REV_INCAPACIDADE_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_DE_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.PERIODO_INCAPACIDADE_A_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.IMG_FLEXAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_EXT1_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_EXT2_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_CAB2_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_CAB3_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA2_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA3_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA5_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA6_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA8_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA10_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.RESTRICAO_CARGA_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.RESTRICAO_MOTRICIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.RESTRICAO_CONDUCAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.RESTRICAO_VIBRACOES_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.RESTRICAO_OUTRAS_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.MED_OBSERV_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.TIPO_LESAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_ROT1_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_ROT2_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_CAB1_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_CAB4_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA1_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA4_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA7_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.IMG_MA9_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.MEDICO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.TECNICO_SAUDE_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.ANALISE_NR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ESTADO_ASSINATURA_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.ASS_RESP_SEG_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ASS_RESP_RH_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.DATA_CONSOLIDACAO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SEG_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_RH_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.ASS_CONSOLIDACAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.NOME_RESP_SEG_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.NOME_RESP_RH_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.CAUSAS_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.ESTADO_ANTES_CORRECAO_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.OBSERVACOES_CORRECAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.CORRECAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.ASS_SUPERIOR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.NOME_SUPERIOR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.DATA_ASSINATURA_SUPERIOR_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.AVERIGUADOR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_POSTERIOR_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.AVERIGUACAO_OBS_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.NOME_RESP_CONSOLIDACAO_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.DATA_INICIO_PROCESSO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.DEPARTAMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.TO_DEPARTAMENTO_ID_INDEX:
+ theClass = db.data.siprp.outer.DepartamentosData.class;
+ break;
+ case AnalisesAcidentes.SECCAO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.TO_SECCAO_ID_INDEX:
+ theClass = db.data.siprp.outer.SeccoesData.class;
+ break;
+ case AnalisesAcidentes.RH_FASE4_INDEX:
+ theClass = Integer.class;
+ break;
+ case AnalisesAcidentes.APAGADA_INDEX:
+ theClass = String.class;
+ break;
+ case AnalisesAcidentes.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ theClass = Boolean.class;
+ break;
+ case AnalisesAcidentes.DATA_DESACTIVACAO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AnalisesAcidentes.COMENTARIO_DESACTIVACAO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : AnalisesAcidentes._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, AnalisesAcidentes.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Avisos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Avisos.java
new file mode 100644
index 00000000..3a068632
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Avisos.java
@@ -0,0 +1,785 @@
+/*
+* Avisos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Avisos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Avisos.ID, Avisos.ID_INDEX );
+ FIELD_INDEXES.put( Avisos.ID_FULL, Avisos.ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TIPO, Avisos.TIPO_INDEX );
+ FIELD_INDEXES.put( Avisos.TIPO_FULL, Avisos.TIPO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.EMPRESA_ID, Avisos.TO_EMPRESA_ID );
+ FIELD_INDEXES.put( Avisos.EMPRESA_ID, Avisos.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.EMPRESA_ID_FULL, Avisos.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TO_EMPRESA_ID, Avisos.TO_EMPRESA_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.ESTABELECIMENTO_ID, Avisos.TO_ESTABELECIMENTO_ID );
+ FIELD_INDEXES.put( Avisos.ESTABELECIMENTO_ID, Avisos.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.ESTABELECIMENTO_ID_FULL, Avisos.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TO_ESTABELECIMENTO_ID, Avisos.TO_ESTABELECIMENTO_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.TRABALHADOR_ID, Avisos.TO_TRABALHADOR_ID );
+ FIELD_INDEXES.put( Avisos.TRABALHADOR_ID, Avisos.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TRABALHADOR_ID_FULL, Avisos.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TO_TRABALHADOR_ID, Avisos.TO_TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.EVENTO_ID, Avisos.EVENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.EVENTO_ID_FULL, Avisos.EVENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_AVISO, Avisos.DATA_AVISO_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_AVISO_FULL, Avisos.DATA_AVISO_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_EVENTO, Avisos.DATA_EVENTO_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_EVENTO_FULL, Avisos.DATA_EVENTO_INDEX );
+ FIELD_INDEXES.put( Avisos.DESCRICAO, Avisos.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( Avisos.DESCRICAO_FULL, Avisos.DESCRICAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
+ new com.evolute.entity.ForeignKey( Avisos.class, Avisos.EMPRESA_ID, db.data.siprp.outer.EmpresasData.class, db.data.siprp.outer.EmpresasData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
+ new com.evolute.entity.ForeignKey( Avisos.class, Avisos.ESTABELECIMENTO_ID, db.data.siprp.outer.EstabelecimentosData.class, db.data.siprp.outer.EstabelecimentosData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
+ new com.evolute.entity.ForeignKey( Avisos.class, Avisos.TRABALHADOR_ID, db.data.siprp.outer.TrabalhadoresData.class, db.data.siprp.outer.TrabalhadoresData.ID );
+
+ public static final String TABLENAME = "avisos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.avisos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "avisos.id";
+ public static final int ID_INDEX = 0;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "avisos.tipo";
+ public static final int TIPO_INDEX = 1;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "avisos.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 2;
+ public static final String TO_EMPRESA_ID = "to_empresa_id";
+ public static final String TO_EMPRESA_ID_FULL = "avisos.to_empresa_id";
+ public static final int TO_EMPRESA_ID_INDEX = 3;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "avisos.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 4;
+ public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
+ public static final String TO_ESTABELECIMENTO_ID_FULL = "avisos.to_estabelecimento_id";
+ public static final int TO_ESTABELECIMENTO_ID_INDEX = 5;
+ public static final String TRABALHADOR_ID = "trabalhador_id";
+ public static final String TRABALHADOR_ID_FULL = "avisos.trabalhador_id";
+ public static final int TRABALHADOR_ID_INDEX = 6;
+ public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
+ public static final String TO_TRABALHADOR_ID_FULL = "avisos.to_trabalhador_id";
+ public static final int TO_TRABALHADOR_ID_INDEX = 7;
+ public static final String EVENTO_ID = "evento_id";
+ public static final String EVENTO_ID_FULL = "avisos.evento_id";
+ public static final int EVENTO_ID_INDEX = 8;
+ public static final String DATA_AVISO = "data_aviso";
+ public static final String DATA_AVISO_FULL = "avisos.data_aviso";
+ public static final int DATA_AVISO_INDEX = 9;
+ public static final String DATA_EVENTO = "data_evento";
+ public static final String DATA_EVENTO_FULL = "avisos.data_evento";
+ public static final int DATA_EVENTO_INDEX = 10;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "avisos.descricao";
+ public static final int DESCRICAO_INDEX = 11;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ TIPO, EMPRESA_ID, TO_EMPRESA_ID, ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID,
+ TRABALHADOR_ID, TO_TRABALHADOR_ID, EVENTO_ID, DATA_AVISO, DATA_EVENTO, DESCRICAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + TIPO, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID,
+ TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + EVENTO_ID, TABLENAME + "." + DATA_AVISO, TABLENAME + "." + DATA_EVENTO, TABLENAME + "." + DESCRICAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, TIPO, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, EVENTO_ID, DATA_AVISO,
+ DATA_EVENTO, DESCRICAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, TIPO, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, EVENTO_ID, DATA_AVISO,
+ DATA_EVENTO, DESCRICAO, };
+
+ private Integer id;
+ private Integer tipo;
+ private Integer empresa_id;
+ private db.data.siprp.outer.EmpresasData to_empresa_id;
+ private Integer estabelecimento_id;
+ private db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id;
+ private Integer trabalhador_id;
+ private db.data.siprp.outer.TrabalhadoresData to_trabalhador_id;
+ private Integer evento_id;
+ private java.util.Date data_aviso;
+ private java.util.Date data_evento;
+ private String descricao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Avisos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false, false, false, false, false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EmpresasData toEmpresa_id()
+ {
+ try
+ {
+ prepare( TO_EMPRESA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_empresa_id;
+ }
+
+ public void setToEmpresa_id( db.data.siprp.outer.EmpresasData to_empresa_id )
+ {
+ try
+ {
+ preProcess( TO_EMPRESA_ID, to_empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_empresa_id = to_empresa_id;
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EstabelecimentosData toEstabelecimento_id()
+ {
+ try
+ {
+ prepare( TO_ESTABELECIMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_estabelecimento_id;
+ }
+
+ public void setToEstabelecimento_id( db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id )
+ {
+ try
+ {
+ preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_estabelecimento_id = to_estabelecimento_id;
+ }
+
+ public Integer getTrabalhador_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TRABALHADOR_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.trabalhador_id;
+ }
+
+ public void setTrabalhador_id( Integer trabalhador_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TRABALHADOR_ID, trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.trabalhador_id = trabalhador_id;
+ LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.TrabalhadoresData toTrabalhador_id()
+ {
+ try
+ {
+ prepare( TO_TRABALHADOR_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_trabalhador_id;
+ }
+
+ public void setToTrabalhador_id( db.data.siprp.outer.TrabalhadoresData to_trabalhador_id )
+ {
+ try
+ {
+ preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_trabalhador_id = to_trabalhador_id;
+ }
+
+ public Integer getEvento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EVENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.evento_id;
+ }
+
+ public void setEvento_id( Integer evento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EVENTO_ID, evento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.evento_id = evento_id;
+ LAZY_LOADED_OBJECTS.put( EVENTO_ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_aviso()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_AVISO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_aviso;
+ }
+
+ public void setData_aviso( java.util.Date data_aviso )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_AVISO, data_aviso );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_aviso = data_aviso;
+ LAZY_LOADED_OBJECTS.put( DATA_AVISO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_evento()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_EVENTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_evento;
+ }
+
+ public void setData_evento( java.util.Date data_evento )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_EVENTO, data_evento );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_evento = data_evento;
+ LAZY_LOADED_OBJECTS.put( DATA_EVENTO, Boolean.TRUE );
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ value = getId();
+ break;
+ case Avisos.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ value = toEmpresa_id();
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ value = toEstabelecimento_id();
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ value = getTrabalhador_id();
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ value = toTrabalhador_id();
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ value = getEvento_id();
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ value = getData_aviso();
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ value = getData_evento();
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ value = this.id;
+ break;
+ case Avisos.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ value = this.to_empresa_id;
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ value = this.to_estabelecimento_id;
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ value = this.trabalhador_id;
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ value = this.to_trabalhador_id;
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ value = this.evento_id;
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ value = this.data_aviso;
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ value = this.data_evento;
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Avisos.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ setToEmpresa_id( ( db.data.siprp.outer.EmpresasData ) value );
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ setToEstabelecimento_id( ( db.data.siprp.outer.EstabelecimentosData ) value );
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ setTrabalhador_id( ( Integer ) value );
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ setToTrabalhador_id( ( db.data.siprp.outer.TrabalhadoresData ) value );
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ setEvento_id( ( Integer ) value );
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ setData_aviso( ( java.util.Date ) value );
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ setData_evento( ( java.util.Date ) value );
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Avisos.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ this.to_empresa_id = ( db.data.siprp.outer.EmpresasData ) value;
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ this.to_estabelecimento_id = ( db.data.siprp.outer.EstabelecimentosData ) value;
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ this.trabalhador_id = ( Integer ) value;
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ this.to_trabalhador_id = ( db.data.siprp.outer.TrabalhadoresData ) value;
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ this.evento_id = ( Integer ) value;
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ this.data_aviso = ( java.util.Date ) value;
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ this.data_evento = ( java.util.Date ) value;
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ theClass = db.data.siprp.outer.EmpresasData.class;
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ theClass = db.data.siprp.outer.EstabelecimentosData.class;
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ theClass = db.data.siprp.outer.TrabalhadoresData.class;
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Avisos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Avisos.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Causas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Causas.java
new file mode 100644
index 00000000..0a5db08d
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Causas.java
@@ -0,0 +1,330 @@
+/*
+* Causas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Causas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Causas.ID, Causas.ID_INDEX );
+ FIELD_INDEXES.put( Causas.ID_FULL, Causas.ID_INDEX );
+ FIELD_INDEXES.put( Causas.CAUSA, Causas.CAUSA_INDEX );
+ FIELD_INDEXES.put( Causas.CAUSA_FULL, Causas.CAUSA_INDEX );
+ FIELD_INDEXES.put( Causas.ACTIVA, Causas.ACTIVA_INDEX );
+ FIELD_INDEXES.put( Causas.ACTIVA_FULL, Causas.ACTIVA_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "causas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.causas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "causas.id";
+ public static final int ID_INDEX = 0;
+ public static final String CAUSA = "causa";
+ public static final String CAUSA_FULL = "causas.causa";
+ public static final int CAUSA_INDEX = 1;
+ public static final String ACTIVA = "activa";
+ public static final String ACTIVA_FULL = "causas.activa";
+ public static final int ACTIVA_INDEX = 2;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ CAUSA, ACTIVA, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + CAUSA, TABLENAME + "." + ACTIVA, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, CAUSA, ACTIVA, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, CAUSA, ACTIVA, };
+
+ private Integer id;
+ private String causa;
+ private String activa;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Causas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public String getCausa()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CAUSA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.causa;
+ }
+
+ public void setCausa( String causa )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CAUSA, causa );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.causa = causa;
+ LAZY_LOADED_OBJECTS.put( CAUSA, Boolean.TRUE );
+ }
+
+ public String getActiva()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activa;
+ }
+
+ public void setActiva( String activa )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVA, activa );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activa = activa;
+ LAZY_LOADED_OBJECTS.put( ACTIVA, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Causas.ID_INDEX:
+ value = getId();
+ break;
+ case Causas.CAUSA_INDEX:
+ value = getCausa();
+ break;
+ case Causas.ACTIVA_INDEX:
+ value = getActiva();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Causas.ID_INDEX:
+ value = this.id;
+ break;
+ case Causas.CAUSA_INDEX:
+ value = this.causa;
+ break;
+ case Causas.ACTIVA_INDEX:
+ value = this.activa;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Causas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Causas.CAUSA_INDEX:
+ setCausa( ( String ) value );
+ break;
+ case Causas.ACTIVA_INDEX:
+ setActiva( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Causas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Causas.CAUSA_INDEX:
+ this.causa = ( String ) value;
+ break;
+ case Causas.ACTIVA_INDEX:
+ this.activa = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Causas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Causas.CAUSA_INDEX:
+ theClass = String.class;
+ break;
+ case Causas.ACTIVA_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Causas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Causas.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Contactos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Contactos.java
new file mode 100644
index 00000000..4f16629d
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Contactos.java
@@ -0,0 +1,530 @@
+/*
+* Contactos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Contactos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Contactos.ID, Contactos.ID_INDEX );
+ FIELD_INDEXES.put( Contactos.ID_FULL, Contactos.ID_INDEX );
+ FIELD_INDEXES.put( Contactos.NOME, Contactos.NOME_INDEX );
+ FIELD_INDEXES.put( Contactos.NOME_FULL, Contactos.NOME_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEFONE, Contactos.TELEFONE_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEFONE_FULL, Contactos.TELEFONE_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEMOVEL, Contactos.TELEMOVEL_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEMOVEL_FULL, Contactos.TELEMOVEL_INDEX );
+ FIELD_INDEXES.put( Contactos.FAX, Contactos.FAX_INDEX );
+ FIELD_INDEXES.put( Contactos.FAX_FULL, Contactos.FAX_INDEX );
+ FIELD_INDEXES.put( Contactos.EMAIL, Contactos.EMAIL_INDEX );
+ FIELD_INDEXES.put( Contactos.EMAIL_FULL, Contactos.EMAIL_INDEX );
+ FIELD_INDEXES.put( Contactos.CARGO, Contactos.CARGO_INDEX );
+ FIELD_INDEXES.put( Contactos.CARGO_FULL, Contactos.CARGO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "contactos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.contactos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "contactos.id";
+ public static final int ID_INDEX = 0;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "contactos.nome";
+ public static final int NOME_INDEX = 1;
+ public static final String TELEFONE = "telefone";
+ public static final String TELEFONE_FULL = "contactos.telefone";
+ public static final int TELEFONE_INDEX = 2;
+ public static final String TELEMOVEL = "telemovel";
+ public static final String TELEMOVEL_FULL = "contactos.telemovel";
+ public static final int TELEMOVEL_INDEX = 3;
+ public static final String FAX = "fax";
+ public static final String FAX_FULL = "contactos.fax";
+ public static final int FAX_INDEX = 4;
+ public static final String EMAIL = "email";
+ public static final String EMAIL_FULL = "contactos.email";
+ public static final int EMAIL_INDEX = 5;
+ public static final String CARGO = "cargo";
+ public static final String CARGO_FULL = "contactos.cargo";
+ public static final int CARGO_INDEX = 6;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + NOME, TABLENAME + "." + TELEFONE, TABLENAME + "." + TELEMOVEL, TABLENAME + "." + FAX, TABLENAME + "." + EMAIL, TABLENAME + "." + CARGO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
+
+ private Integer id;
+ private String nome;
+ private String telefone;
+ private String telemovel;
+ private String fax;
+ private String email;
+ private String cargo;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Contactos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public String getTelefone()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TELEFONE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.telefone;
+ }
+
+ public void setTelefone( String telefone )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TELEFONE, telefone );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.telefone = telefone;
+ LAZY_LOADED_OBJECTS.put( TELEFONE, Boolean.TRUE );
+ }
+
+ public String getTelemovel()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TELEMOVEL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.telemovel;
+ }
+
+ public void setTelemovel( String telemovel )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TELEMOVEL, telemovel );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.telemovel = telemovel;
+ LAZY_LOADED_OBJECTS.put( TELEMOVEL, Boolean.TRUE );
+ }
+
+ public String getFax()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FAX );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.fax;
+ }
+
+ public void setFax( String fax )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FAX, fax );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.fax = fax;
+ LAZY_LOADED_OBJECTS.put( FAX, Boolean.TRUE );
+ }
+
+ public String getEmail()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMAIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.email;
+ }
+
+ public void setEmail( String email )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMAIL, email );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.email = email;
+ LAZY_LOADED_OBJECTS.put( EMAIL, Boolean.TRUE );
+ }
+
+ public String getCargo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CARGO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cargo;
+ }
+
+ public void setCargo( String cargo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CARGO, cargo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cargo = cargo;
+ LAZY_LOADED_OBJECTS.put( CARGO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ value = getId();
+ break;
+ case Contactos.NOME_INDEX:
+ value = getNome();
+ break;
+ case Contactos.TELEFONE_INDEX:
+ value = getTelefone();
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ value = getTelemovel();
+ break;
+ case Contactos.FAX_INDEX:
+ value = getFax();
+ break;
+ case Contactos.EMAIL_INDEX:
+ value = getEmail();
+ break;
+ case Contactos.CARGO_INDEX:
+ value = getCargo();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ value = this.id;
+ break;
+ case Contactos.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Contactos.TELEFONE_INDEX:
+ value = this.telefone;
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ value = this.telemovel;
+ break;
+ case Contactos.FAX_INDEX:
+ value = this.fax;
+ break;
+ case Contactos.EMAIL_INDEX:
+ value = this.email;
+ break;
+ case Contactos.CARGO_INDEX:
+ value = this.cargo;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Contactos.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Contactos.TELEFONE_INDEX:
+ setTelefone( ( String ) value );
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ setTelemovel( ( String ) value );
+ break;
+ case Contactos.FAX_INDEX:
+ setFax( ( String ) value );
+ break;
+ case Contactos.EMAIL_INDEX:
+ setEmail( ( String ) value );
+ break;
+ case Contactos.CARGO_INDEX:
+ setCargo( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Contactos.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Contactos.TELEFONE_INDEX:
+ this.telefone = ( String ) value;
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ this.telemovel = ( String ) value;
+ break;
+ case Contactos.FAX_INDEX:
+ this.fax = ( String ) value;
+ break;
+ case Contactos.EMAIL_INDEX:
+ this.email = ( String ) value;
+ break;
+ case Contactos.CARGO_INDEX:
+ this.cargo = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Contactos.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.TELEFONE_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.FAX_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.EMAIL_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.CARGO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Contactos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Contactos.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Controle.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Controle.java
new file mode 100644
index 00000000..a4904c80
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Controle.java
@@ -0,0 +1,330 @@
+/*
+* Controle.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Controle extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Controle.ID, Controle.ID_INDEX );
+ FIELD_INDEXES.put( Controle.ID_FULL, Controle.ID_INDEX );
+ FIELD_INDEXES.put( Controle.ANALISE_YEAR, Controle.ANALISE_YEAR_INDEX );
+ FIELD_INDEXES.put( Controle.ANALISE_YEAR_FULL, Controle.ANALISE_YEAR_INDEX );
+ FIELD_INDEXES.put( Controle.LAST_ANALISE_NR, Controle.LAST_ANALISE_NR_INDEX );
+ FIELD_INDEXES.put( Controle.LAST_ANALISE_NR_FULL, Controle.LAST_ANALISE_NR_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "controle";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.controle";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "controle.id";
+ public static final int ID_INDEX = 0;
+ public static final String ANALISE_YEAR = "analise_year";
+ public static final String ANALISE_YEAR_FULL = "controle.analise_year";
+ public static final int ANALISE_YEAR_INDEX = 1;
+ public static final String LAST_ANALISE_NR = "last_analise_nr";
+ public static final String LAST_ANALISE_NR_FULL = "controle.last_analise_nr";
+ public static final int LAST_ANALISE_NR_INDEX = 2;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ ANALISE_YEAR, LAST_ANALISE_NR, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + ANALISE_YEAR, TABLENAME + "." + LAST_ANALISE_NR, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, ANALISE_YEAR, LAST_ANALISE_NR, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, ANALISE_YEAR, LAST_ANALISE_NR, };
+
+ private Integer id;
+ private Integer analise_year;
+ private Integer last_analise_nr;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Controle()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getAnalise_year()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ANALISE_YEAR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.analise_year;
+ }
+
+ public void setAnalise_year( Integer analise_year )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ANALISE_YEAR, analise_year );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.analise_year = analise_year;
+ LAZY_LOADED_OBJECTS.put( ANALISE_YEAR, Boolean.TRUE );
+ }
+
+ public Integer getLast_analise_nr()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LAST_ANALISE_NR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.last_analise_nr;
+ }
+
+ public void setLast_analise_nr( Integer last_analise_nr )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LAST_ANALISE_NR, last_analise_nr );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.last_analise_nr = last_analise_nr;
+ LAZY_LOADED_OBJECTS.put( LAST_ANALISE_NR, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Controle.ID_INDEX:
+ value = getId();
+ break;
+ case Controle.ANALISE_YEAR_INDEX:
+ value = getAnalise_year();
+ break;
+ case Controle.LAST_ANALISE_NR_INDEX:
+ value = getLast_analise_nr();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Controle.ID_INDEX:
+ value = this.id;
+ break;
+ case Controle.ANALISE_YEAR_INDEX:
+ value = this.analise_year;
+ break;
+ case Controle.LAST_ANALISE_NR_INDEX:
+ value = this.last_analise_nr;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Controle.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Controle.ANALISE_YEAR_INDEX:
+ setAnalise_year( ( Integer ) value );
+ break;
+ case Controle.LAST_ANALISE_NR_INDEX:
+ setLast_analise_nr( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Controle.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Controle.ANALISE_YEAR_INDEX:
+ this.analise_year = ( Integer ) value;
+ break;
+ case Controle.LAST_ANALISE_NR_INDEX:
+ this.last_analise_nr = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Controle.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Controle.ANALISE_YEAR_INDEX:
+ theClass = Integer.class;
+ break;
+ case Controle.LAST_ANALISE_NR_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Controle._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Controle.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Departamentos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Departamentos.java
new file mode 100644
index 00000000..187c19e2
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Departamentos.java
@@ -0,0 +1,358 @@
+/*
+* Departamentos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Departamentos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Departamentos.ID, Departamentos.ID_INDEX );
+ FIELD_INDEXES.put( Departamentos.ID_FULL, Departamentos.ID_INDEX );
+ FIELD_INDEXES.put( Departamentos.DESCRICAO, Departamentos.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( Departamentos.DESCRICAO_FULL, Departamentos.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( Departamentos.ACTIVO, Departamentos.ACTIVO_INDEX );
+ FIELD_INDEXES.put( Departamentos.ACTIVO_FULL, Departamentos.ACTIVO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "departamentos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.departamentos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "departamentos.id";
+ public static final int ID_INDEX = 0;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "departamentos.descricao";
+ public static final int DESCRICAO_INDEX = 1;
+ public static final String ACTIVO = "activo";
+ public static final String ACTIVO_FULL = "departamentos.activo";
+ public static final int ACTIVO_INDEX = 2;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, ACTIVO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + ACTIVO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DESCRICAO, ACTIVO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DESCRICAO, ACTIVO, };
+
+ private Integer id;
+ private String descricao;
+ private String activo;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Departamentos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAnalisesAcidentes_departamento_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.AnalisesAcidentesData.class , getPrimaryKey().getMap().get("id"), "departamento_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromSeccoes_departamento_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.SeccoesData.class , getPrimaryKey().getMap().get("id"), "departamento_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public String getActivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activo;
+ }
+
+ public void setActivo( String activo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVO, activo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activo = activo;
+ LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Departamentos.ID_INDEX:
+ value = getId();
+ break;
+ case Departamentos.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case Departamentos.ACTIVO_INDEX:
+ value = getActivo();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Departamentos.ID_INDEX:
+ value = this.id;
+ break;
+ case Departamentos.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case Departamentos.ACTIVO_INDEX:
+ value = this.activo;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Departamentos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Departamentos.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case Departamentos.ACTIVO_INDEX:
+ setActivo( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Departamentos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Departamentos.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case Departamentos.ACTIVO_INDEX:
+ this.activo = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Departamentos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Departamentos.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case Departamentos.ACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Departamentos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Departamentos.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Empresas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Empresas.java
new file mode 100644
index 00000000..db903c06
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Empresas.java
@@ -0,0 +1,1029 @@
+/*
+* Empresas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Empresas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Empresas.ID, Empresas.ID_INDEX );
+ FIELD_INDEXES.put( Empresas.ID_FULL, Empresas.ID_INDEX );
+ FIELD_INDEXES.put( Empresas.MORADA, Empresas.MORADA_INDEX );
+ FIELD_INDEXES.put( Empresas.MORADA_FULL, Empresas.MORADA_INDEX );
+ FIELD_INDEXES.put( Empresas.CODIGO_POSTAL, Empresas.CODIGO_POSTAL_INDEX );
+ FIELD_INDEXES.put( Empresas.CODIGO_POSTAL_FULL, Empresas.CODIGO_POSTAL_INDEX );
+ FIELD_INDEXES.put( Empresas.LOCALIDADE, Empresas.LOCALIDADE_INDEX );
+ FIELD_INDEXES.put( Empresas.LOCALIDADE_FULL, Empresas.LOCALIDADE_INDEX );
+ FIELD_INDEXES.put( Empresas.DISTRITO, Empresas.DISTRITO_INDEX );
+ FIELD_INDEXES.put( Empresas.DISTRITO_FULL, Empresas.DISTRITO_INDEX );
+ FIELD_INDEXES.put( Empresas.CONCELHO, Empresas.CONCELHO_INDEX );
+ FIELD_INDEXES.put( Empresas.CONCELHO_FULL, Empresas.CONCELHO_INDEX );
+ FIELD_INDEXES.put( Empresas.PERFIL_1, Empresas.PERFIL_1_INDEX );
+ FIELD_INDEXES.put( Empresas.PERFIL_1_FULL, Empresas.PERFIL_1_INDEX );
+ FIELD_INDEXES.put( Empresas.PERFIL_2, Empresas.PERFIL_2_INDEX );
+ FIELD_INDEXES.put( Empresas.PERFIL_2_FULL, Empresas.PERFIL_2_INDEX );
+ FIELD_INDEXES.put( Empresas.CODIGO, Empresas.CODIGO_INDEX );
+ FIELD_INDEXES.put( Empresas.CODIGO_FULL, Empresas.CODIGO_INDEX );
+ FIELD_INDEXES.put( Empresas.CAE, Empresas.CAE_INDEX );
+ FIELD_INDEXES.put( Empresas.CAE_FULL, Empresas.CAE_INDEX );
+ FIELD_INDEXES.put( Empresas.CONTRIBUINTE, Empresas.CONTRIBUINTE_INDEX );
+ FIELD_INDEXES.put( Empresas.CONTRIBUINTE_FULL, Empresas.CONTRIBUINTE_INDEX );
+ FIELD_INDEXES.put( Empresas.SEGURANCA_SOCIAL, Empresas.SEGURANCA_SOCIAL_INDEX );
+ FIELD_INDEXES.put( Empresas.SEGURANCA_SOCIAL_FULL, Empresas.SEGURANCA_SOCIAL_INDEX );
+ FIELD_INDEXES.put( Empresas.ACTIVIDADE, Empresas.ACTIVIDADE_INDEX );
+ FIELD_INDEXES.put( Empresas.ACTIVIDADE_FULL, Empresas.ACTIVIDADE_INDEX );
+ FIELD_INDEXES.put( Empresas.SERVICOS, Empresas.SERVICOS_INDEX );
+ FIELD_INDEXES.put( Empresas.SERVICOS_FULL, Empresas.SERVICOS_INDEX );
+ FIELD_INDEXES.put( Empresas.DESIGNACAO_SOCIAL, Empresas.DESIGNACAO_SOCIAL_INDEX );
+ FIELD_INDEXES.put( Empresas.DESIGNACAO_SOCIAL_FULL, Empresas.DESIGNACAO_SOCIAL_INDEX );
+ FIELD_INDEXES.put( Empresas.EMAIL, Empresas.EMAIL_INDEX );
+ FIELD_INDEXES.put( Empresas.EMAIL_FULL, Empresas.EMAIL_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "empresas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.empresas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "empresas.id";
+ public static final int ID_INDEX = 0;
+ public static final String MORADA = "morada";
+ public static final String MORADA_FULL = "empresas.morada";
+ public static final int MORADA_INDEX = 1;
+ public static final String CODIGO_POSTAL = "codigo_postal";
+ public static final String CODIGO_POSTAL_FULL = "empresas.codigo_postal";
+ public static final int CODIGO_POSTAL_INDEX = 2;
+ public static final String LOCALIDADE = "localidade";
+ public static final String LOCALIDADE_FULL = "empresas.localidade";
+ public static final int LOCALIDADE_INDEX = 3;
+ public static final String DISTRITO = "distrito";
+ public static final String DISTRITO_FULL = "empresas.distrito";
+ public static final int DISTRITO_INDEX = 4;
+ public static final String CONCELHO = "concelho";
+ public static final String CONCELHO_FULL = "empresas.concelho";
+ public static final int CONCELHO_INDEX = 5;
+ public static final String PERFIL_1 = "perfil_1";
+ public static final String PERFIL_1_FULL = "empresas.perfil_1";
+ public static final int PERFIL_1_INDEX = 6;
+ public static final String PERFIL_2 = "perfil_2";
+ public static final String PERFIL_2_FULL = "empresas.perfil_2";
+ public static final int PERFIL_2_INDEX = 7;
+ public static final String CODIGO = "codigo";
+ public static final String CODIGO_FULL = "empresas.codigo";
+ public static final int CODIGO_INDEX = 8;
+ public static final String CAE = "cae";
+ public static final String CAE_FULL = "empresas.cae";
+ public static final int CAE_INDEX = 9;
+ public static final String CONTRIBUINTE = "contribuinte";
+ public static final String CONTRIBUINTE_FULL = "empresas.contribuinte";
+ public static final int CONTRIBUINTE_INDEX = 10;
+ public static final String SEGURANCA_SOCIAL = "seguranca_social";
+ public static final String SEGURANCA_SOCIAL_FULL = "empresas.seguranca_social";
+ public static final int SEGURANCA_SOCIAL_INDEX = 11;
+ public static final String ACTIVIDADE = "actividade";
+ public static final String ACTIVIDADE_FULL = "empresas.actividade";
+ public static final int ACTIVIDADE_INDEX = 12;
+ public static final String SERVICOS = "servicos";
+ public static final String SERVICOS_FULL = "empresas.servicos";
+ public static final int SERVICOS_INDEX = 13;
+ public static final String DESIGNACAO_SOCIAL = "designacao_social";
+ public static final String DESIGNACAO_SOCIAL_FULL = "empresas.designacao_social";
+ public static final int DESIGNACAO_SOCIAL_INDEX = 14;
+ public static final String EMAIL = "email";
+ public static final String EMAIL_FULL = "empresas.email";
+ public static final int EMAIL_INDEX = 15;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ MORADA, CODIGO_POSTAL, LOCALIDADE, DISTRITO, CONCELHO, PERFIL_1, PERFIL_2, CODIGO, CAE,
+ CONTRIBUINTE, SEGURANCA_SOCIAL, ACTIVIDADE, SERVICOS, DESIGNACAO_SOCIAL, EMAIL, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + MORADA, TABLENAME + "." + CODIGO_POSTAL, TABLENAME + "." + LOCALIDADE, TABLENAME + "." + DISTRITO, TABLENAME + "." + CONCELHO, TABLENAME + "." + PERFIL_1, TABLENAME + "." + PERFIL_2, TABLENAME + "." + CODIGO, TABLENAME + "." + CAE,
+ TABLENAME + "." + CONTRIBUINTE, TABLENAME + "." + SEGURANCA_SOCIAL, TABLENAME + "." + ACTIVIDADE, TABLENAME + "." + SERVICOS, TABLENAME + "." + DESIGNACAO_SOCIAL, TABLENAME + "." + EMAIL, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, MORADA, CODIGO_POSTAL, LOCALIDADE, DISTRITO, CONCELHO, PERFIL_1, PERFIL_2, CODIGO,
+ CAE, CONTRIBUINTE, SEGURANCA_SOCIAL, ACTIVIDADE, SERVICOS, DESIGNACAO_SOCIAL,
+ EMAIL, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, MORADA, CODIGO_POSTAL, LOCALIDADE, DISTRITO, CONCELHO, PERFIL_1, PERFIL_2, CODIGO,
+ CAE, CONTRIBUINTE, SEGURANCA_SOCIAL, ACTIVIDADE, SERVICOS, DESIGNACAO_SOCIAL,
+ EMAIL, };
+
+ private Integer id;
+ private String morada;
+ private String codigo_postal;
+ private String localidade;
+ private String distrito;
+ private String concelho;
+ private Integer perfil_1;
+ private Integer perfil_2;
+ private String codigo;
+ private String cae;
+ private String contribuinte;
+ private String seguranca_social;
+ private String actividade;
+ private Integer servicos;
+ private String designacao_social;
+ private String email;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Empresas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAvisos_empresa_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.AvisosData.class , getPrimaryKey().getMap().get("id"), "empresa_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromEstabelecimentos_empresa_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.EstabelecimentosData.class , getPrimaryKey().getMap().get("id"), "empresa_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromMarcacoesEmpresa_empresa_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.MarcacoesEmpresaData.class , getPrimaryKey().getMap().get("id"), "empresa_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getMorada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MORADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.morada;
+ }
+
+ public void setMorada( String morada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MORADA, morada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.morada = morada;
+ LAZY_LOADED_OBJECTS.put( MORADA, Boolean.TRUE );
+ }
+
+ public String getCodigo_postal()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO_POSTAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo_postal;
+ }
+
+ public void setCodigo_postal( String codigo_postal )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO_POSTAL, codigo_postal );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo_postal = codigo_postal;
+ LAZY_LOADED_OBJECTS.put( CODIGO_POSTAL, Boolean.TRUE );
+ }
+
+ public String getLocalidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LOCALIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.localidade;
+ }
+
+ public void setLocalidade( String localidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LOCALIDADE, localidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.localidade = localidade;
+ LAZY_LOADED_OBJECTS.put( LOCALIDADE, Boolean.TRUE );
+ }
+
+ public String getDistrito()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DISTRITO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.distrito;
+ }
+
+ public void setDistrito( String distrito )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DISTRITO, distrito );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.distrito = distrito;
+ LAZY_LOADED_OBJECTS.put( DISTRITO, Boolean.TRUE );
+ }
+
+ public String getConcelho()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONCELHO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.concelho;
+ }
+
+ public void setConcelho( String concelho )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONCELHO, concelho );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.concelho = concelho;
+ LAZY_LOADED_OBJECTS.put( CONCELHO, Boolean.TRUE );
+ }
+
+ public Integer getPerfil_1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PERFIL_1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.perfil_1;
+ }
+
+ public void setPerfil_1( Integer perfil_1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PERFIL_1, perfil_1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.perfil_1 = perfil_1;
+ LAZY_LOADED_OBJECTS.put( PERFIL_1, Boolean.TRUE );
+ }
+
+ public Integer getPerfil_2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PERFIL_2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.perfil_2;
+ }
+
+ public void setPerfil_2( Integer perfil_2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PERFIL_2, perfil_2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.perfil_2 = perfil_2;
+ LAZY_LOADED_OBJECTS.put( PERFIL_2, Boolean.TRUE );
+ }
+
+ public String getCodigo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo;
+ }
+
+ public void setCodigo( String codigo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO, codigo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo = codigo;
+ LAZY_LOADED_OBJECTS.put( CODIGO, Boolean.TRUE );
+ }
+
+ public String getCae()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CAE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cae;
+ }
+
+ public void setCae( String cae )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CAE, cae );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cae = cae;
+ LAZY_LOADED_OBJECTS.put( CAE, Boolean.TRUE );
+ }
+
+ public String getContribuinte()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONTRIBUINTE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.contribuinte;
+ }
+
+ public void setContribuinte( String contribuinte )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONTRIBUINTE, contribuinte );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.contribuinte = contribuinte;
+ LAZY_LOADED_OBJECTS.put( CONTRIBUINTE, Boolean.TRUE );
+ }
+
+ public String getSeguranca_social()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SEGURANCA_SOCIAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.seguranca_social;
+ }
+
+ public void setSeguranca_social( String seguranca_social )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SEGURANCA_SOCIAL, seguranca_social );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.seguranca_social = seguranca_social;
+ LAZY_LOADED_OBJECTS.put( SEGURANCA_SOCIAL, Boolean.TRUE );
+ }
+
+ public String getActividade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.actividade;
+ }
+
+ public void setActividade( String actividade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVIDADE, actividade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.actividade = actividade;
+ LAZY_LOADED_OBJECTS.put( ACTIVIDADE, Boolean.TRUE );
+ }
+
+ public Integer getServicos()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SERVICOS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.servicos;
+ }
+
+ public void setServicos( Integer servicos )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SERVICOS, servicos );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.servicos = servicos;
+ LAZY_LOADED_OBJECTS.put( SERVICOS, Boolean.TRUE );
+ }
+
+ public String getDesignacao_social()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESIGNACAO_SOCIAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.designacao_social;
+ }
+
+ public void setDesignacao_social( String designacao_social )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESIGNACAO_SOCIAL, designacao_social );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.designacao_social = designacao_social;
+ LAZY_LOADED_OBJECTS.put( DESIGNACAO_SOCIAL, Boolean.TRUE );
+ }
+
+ public String getEmail()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMAIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.email;
+ }
+
+ public void setEmail( String email )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMAIL, email );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.email = email;
+ LAZY_LOADED_OBJECTS.put( EMAIL, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Empresas.ID_INDEX:
+ value = getId();
+ break;
+ case Empresas.MORADA_INDEX:
+ value = getMorada();
+ break;
+ case Empresas.CODIGO_POSTAL_INDEX:
+ value = getCodigo_postal();
+ break;
+ case Empresas.LOCALIDADE_INDEX:
+ value = getLocalidade();
+ break;
+ case Empresas.DISTRITO_INDEX:
+ value = getDistrito();
+ break;
+ case Empresas.CONCELHO_INDEX:
+ value = getConcelho();
+ break;
+ case Empresas.PERFIL_1_INDEX:
+ value = getPerfil_1();
+ break;
+ case Empresas.PERFIL_2_INDEX:
+ value = getPerfil_2();
+ break;
+ case Empresas.CODIGO_INDEX:
+ value = getCodigo();
+ break;
+ case Empresas.CAE_INDEX:
+ value = getCae();
+ break;
+ case Empresas.CONTRIBUINTE_INDEX:
+ value = getContribuinte();
+ break;
+ case Empresas.SEGURANCA_SOCIAL_INDEX:
+ value = getSeguranca_social();
+ break;
+ case Empresas.ACTIVIDADE_INDEX:
+ value = getActividade();
+ break;
+ case Empresas.SERVICOS_INDEX:
+ value = getServicos();
+ break;
+ case Empresas.DESIGNACAO_SOCIAL_INDEX:
+ value = getDesignacao_social();
+ break;
+ case Empresas.EMAIL_INDEX:
+ value = getEmail();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Empresas.ID_INDEX:
+ value = this.id;
+ break;
+ case Empresas.MORADA_INDEX:
+ value = this.morada;
+ break;
+ case Empresas.CODIGO_POSTAL_INDEX:
+ value = this.codigo_postal;
+ break;
+ case Empresas.LOCALIDADE_INDEX:
+ value = this.localidade;
+ break;
+ case Empresas.DISTRITO_INDEX:
+ value = this.distrito;
+ break;
+ case Empresas.CONCELHO_INDEX:
+ value = this.concelho;
+ break;
+ case Empresas.PERFIL_1_INDEX:
+ value = this.perfil_1;
+ break;
+ case Empresas.PERFIL_2_INDEX:
+ value = this.perfil_2;
+ break;
+ case Empresas.CODIGO_INDEX:
+ value = this.codigo;
+ break;
+ case Empresas.CAE_INDEX:
+ value = this.cae;
+ break;
+ case Empresas.CONTRIBUINTE_INDEX:
+ value = this.contribuinte;
+ break;
+ case Empresas.SEGURANCA_SOCIAL_INDEX:
+ value = this.seguranca_social;
+ break;
+ case Empresas.ACTIVIDADE_INDEX:
+ value = this.actividade;
+ break;
+ case Empresas.SERVICOS_INDEX:
+ value = this.servicos;
+ break;
+ case Empresas.DESIGNACAO_SOCIAL_INDEX:
+ value = this.designacao_social;
+ break;
+ case Empresas.EMAIL_INDEX:
+ value = this.email;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Empresas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Empresas.MORADA_INDEX:
+ setMorada( ( String ) value );
+ break;
+ case Empresas.CODIGO_POSTAL_INDEX:
+ setCodigo_postal( ( String ) value );
+ break;
+ case Empresas.LOCALIDADE_INDEX:
+ setLocalidade( ( String ) value );
+ break;
+ case Empresas.DISTRITO_INDEX:
+ setDistrito( ( String ) value );
+ break;
+ case Empresas.CONCELHO_INDEX:
+ setConcelho( ( String ) value );
+ break;
+ case Empresas.PERFIL_1_INDEX:
+ setPerfil_1( ( Integer ) value );
+ break;
+ case Empresas.PERFIL_2_INDEX:
+ setPerfil_2( ( Integer ) value );
+ break;
+ case Empresas.CODIGO_INDEX:
+ setCodigo( ( String ) value );
+ break;
+ case Empresas.CAE_INDEX:
+ setCae( ( String ) value );
+ break;
+ case Empresas.CONTRIBUINTE_INDEX:
+ setContribuinte( ( String ) value );
+ break;
+ case Empresas.SEGURANCA_SOCIAL_INDEX:
+ setSeguranca_social( ( String ) value );
+ break;
+ case Empresas.ACTIVIDADE_INDEX:
+ setActividade( ( String ) value );
+ break;
+ case Empresas.SERVICOS_INDEX:
+ setServicos( ( Integer ) value );
+ break;
+ case Empresas.DESIGNACAO_SOCIAL_INDEX:
+ setDesignacao_social( ( String ) value );
+ break;
+ case Empresas.EMAIL_INDEX:
+ setEmail( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Empresas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Empresas.MORADA_INDEX:
+ this.morada = ( String ) value;
+ break;
+ case Empresas.CODIGO_POSTAL_INDEX:
+ this.codigo_postal = ( String ) value;
+ break;
+ case Empresas.LOCALIDADE_INDEX:
+ this.localidade = ( String ) value;
+ break;
+ case Empresas.DISTRITO_INDEX:
+ this.distrito = ( String ) value;
+ break;
+ case Empresas.CONCELHO_INDEX:
+ this.concelho = ( String ) value;
+ break;
+ case Empresas.PERFIL_1_INDEX:
+ this.perfil_1 = ( Integer ) value;
+ break;
+ case Empresas.PERFIL_2_INDEX:
+ this.perfil_2 = ( Integer ) value;
+ break;
+ case Empresas.CODIGO_INDEX:
+ this.codigo = ( String ) value;
+ break;
+ case Empresas.CAE_INDEX:
+ this.cae = ( String ) value;
+ break;
+ case Empresas.CONTRIBUINTE_INDEX:
+ this.contribuinte = ( String ) value;
+ break;
+ case Empresas.SEGURANCA_SOCIAL_INDEX:
+ this.seguranca_social = ( String ) value;
+ break;
+ case Empresas.ACTIVIDADE_INDEX:
+ this.actividade = ( String ) value;
+ break;
+ case Empresas.SERVICOS_INDEX:
+ this.servicos = ( Integer ) value;
+ break;
+ case Empresas.DESIGNACAO_SOCIAL_INDEX:
+ this.designacao_social = ( String ) value;
+ break;
+ case Empresas.EMAIL_INDEX:
+ this.email = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Empresas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Empresas.MORADA_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.CODIGO_POSTAL_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.LOCALIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.DISTRITO_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.CONCELHO_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.PERFIL_1_INDEX:
+ theClass = Integer.class;
+ break;
+ case Empresas.PERFIL_2_INDEX:
+ theClass = Integer.class;
+ break;
+ case Empresas.CODIGO_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.CAE_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.CONTRIBUINTE_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.SEGURANCA_SOCIAL_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.ACTIVIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.SERVICOS_INDEX:
+ theClass = Integer.class;
+ break;
+ case Empresas.DESIGNACAO_SOCIAL_INDEX:
+ theClass = String.class;
+ break;
+ case Empresas.EMAIL_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Empresas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Empresas.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Errors.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Errors.java
new file mode 100644
index 00000000..37c345ff
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Errors.java
@@ -0,0 +1,430 @@
+/*
+* Errors.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Errors extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Errors.ID, Errors.ID_INDEX );
+ FIELD_INDEXES.put( Errors.ID_FULL, Errors.ID_INDEX );
+ FIELD_INDEXES.put( Errors.DATE, Errors.DATE_INDEX );
+ FIELD_INDEXES.put( Errors.DATE_FULL, Errors.DATE_INDEX );
+ FIELD_INDEXES.put( Errors.TYPE, Errors.TYPE_INDEX );
+ FIELD_INDEXES.put( Errors.TYPE_FULL, Errors.TYPE_INDEX );
+ FIELD_INDEXES.put( Errors.ENVIRONMENT, Errors.ENVIRONMENT_INDEX );
+ FIELD_INDEXES.put( Errors.ENVIRONMENT_FULL, Errors.ENVIRONMENT_INDEX );
+ FIELD_INDEXES.put( Errors.DESCRIPTION, Errors.DESCRIPTION_INDEX );
+ FIELD_INDEXES.put( Errors.DESCRIPTION_FULL, Errors.DESCRIPTION_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "errors";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.errors";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "errors.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATE = "date";
+ public static final String DATE_FULL = "errors.date";
+ public static final int DATE_INDEX = 1;
+ public static final String TYPE = "type";
+ public static final String TYPE_FULL = "errors.type";
+ public static final int TYPE_INDEX = 2;
+ public static final String ENVIRONMENT = "environment";
+ public static final String ENVIRONMENT_FULL = "errors.environment";
+ public static final int ENVIRONMENT_INDEX = 3;
+ public static final String DESCRIPTION = "description";
+ public static final String DESCRIPTION_FULL = "errors.description";
+ public static final int DESCRIPTION_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATE, TABLENAME + "." + TYPE, TABLENAME + "." + ENVIRONMENT, TABLENAME + "." + DESCRIPTION, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
+
+ private Integer id;
+ private java.sql.Timestamp date;
+ private String type;
+ private String environment;
+ private String description;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Errors()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getDate()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.date;
+ }
+
+ public void setDate( java.sql.Timestamp date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATE, date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.date = date;
+ LAZY_LOADED_OBJECTS.put( DATE, Boolean.TRUE );
+ }
+
+ public String getType()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TYPE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.type;
+ }
+
+ public void setType( String type )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TYPE, type );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.type = type;
+ LAZY_LOADED_OBJECTS.put( TYPE, Boolean.TRUE );
+ }
+
+ public String getEnvironment()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ENVIRONMENT );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.environment;
+ }
+
+ public void setEnvironment( String environment )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ENVIRONMENT, environment );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.environment = environment;
+ LAZY_LOADED_OBJECTS.put( ENVIRONMENT, Boolean.TRUE );
+ }
+
+ public String getDescription()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRIPTION );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.description;
+ }
+
+ public void setDescription( String description )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRIPTION, description );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.description = description;
+ LAZY_LOADED_OBJECTS.put( DESCRIPTION, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Errors.ID_INDEX:
+ value = getId();
+ break;
+ case Errors.DATE_INDEX:
+ value = getDate();
+ break;
+ case Errors.TYPE_INDEX:
+ value = getType();
+ break;
+ case Errors.ENVIRONMENT_INDEX:
+ value = getEnvironment();
+ break;
+ case Errors.DESCRIPTION_INDEX:
+ value = getDescription();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Errors.ID_INDEX:
+ value = this.id;
+ break;
+ case Errors.DATE_INDEX:
+ value = this.date;
+ break;
+ case Errors.TYPE_INDEX:
+ value = this.type;
+ break;
+ case Errors.ENVIRONMENT_INDEX:
+ value = this.environment;
+ break;
+ case Errors.DESCRIPTION_INDEX:
+ value = this.description;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Errors.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Errors.DATE_INDEX:
+ setDate( ( java.sql.Timestamp ) value );
+ break;
+ case Errors.TYPE_INDEX:
+ setType( ( String ) value );
+ break;
+ case Errors.ENVIRONMENT_INDEX:
+ setEnvironment( ( String ) value );
+ break;
+ case Errors.DESCRIPTION_INDEX:
+ setDescription( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Errors.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Errors.DATE_INDEX:
+ this.date = ( java.sql.Timestamp ) value;
+ break;
+ case Errors.TYPE_INDEX:
+ this.type = ( String ) value;
+ break;
+ case Errors.ENVIRONMENT_INDEX:
+ this.environment = ( String ) value;
+ break;
+ case Errors.DESCRIPTION_INDEX:
+ this.description = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Errors.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Errors.DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case Errors.TYPE_INDEX:
+ theClass = String.class;
+ break;
+ case Errors.ENVIRONMENT_INDEX:
+ theClass = String.class;
+ break;
+ case Errors.DESCRIPTION_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Errors._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Errors.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Estabelecimentos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Estabelecimentos.java
new file mode 100644
index 00000000..b576d642
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Estabelecimentos.java
@@ -0,0 +1,776 @@
+/*
+* Estabelecimentos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Estabelecimentos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Estabelecimentos.ID, Estabelecimentos.ID_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.ID_FULL, Estabelecimentos.ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Estabelecimentos.CLASS_IDENTIFIER, Estabelecimentos.EMPRESA_ID, Estabelecimentos.TO_EMPRESA_ID );
+ FIELD_INDEXES.put( Estabelecimentos.EMPRESA_ID, Estabelecimentos.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.EMPRESA_ID_FULL, Estabelecimentos.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.TO_EMPRESA_ID, Estabelecimentos.TO_EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.MORADA, Estabelecimentos.MORADA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.MORADA_FULL, Estabelecimentos.MORADA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.CODIGO_POSTAL, Estabelecimentos.CODIGO_POSTAL_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.CODIGO_POSTAL_FULL, Estabelecimentos.CODIGO_POSTAL_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.LOCALIDADE, Estabelecimentos.LOCALIDADE_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.LOCALIDADE_FULL, Estabelecimentos.LOCALIDADE_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.ULTIMA_VISITA, Estabelecimentos.ULTIMA_VISITA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.ULTIMA_VISITA_FULL, Estabelecimentos.ULTIMA_VISITA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.REALIZADA, Estabelecimentos.REALIZADA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.REALIZADA_FULL, Estabelecimentos.REALIZADA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.PROXIMA_VISITA, Estabelecimentos.PROXIMA_VISITA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.PROXIMA_VISITA_FULL, Estabelecimentos.PROXIMA_VISITA_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.NOME, Estabelecimentos.NOME_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.NOME_FULL, Estabelecimentos.NOME_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.MEDICO_ID, Estabelecimentos.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( Estabelecimentos.MEDICO_ID_FULL, Estabelecimentos.MEDICO_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
+ new com.evolute.entity.ForeignKey( Estabelecimentos.class, Estabelecimentos.EMPRESA_ID, db.data.siprp.outer.EmpresasData.class, db.data.siprp.outer.EmpresasData.ID );
+
+ public static final String TABLENAME = "estabelecimentos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.estabelecimentos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "estabelecimentos.id";
+ public static final int ID_INDEX = 0;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "estabelecimentos.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 1;
+ public static final String TO_EMPRESA_ID = "to_empresa_id";
+ public static final String TO_EMPRESA_ID_FULL = "estabelecimentos.to_empresa_id";
+ public static final int TO_EMPRESA_ID_INDEX = 2;
+ public static final String MORADA = "morada";
+ public static final String MORADA_FULL = "estabelecimentos.morada";
+ public static final int MORADA_INDEX = 3;
+ public static final String CODIGO_POSTAL = "codigo_postal";
+ public static final String CODIGO_POSTAL_FULL = "estabelecimentos.codigo_postal";
+ public static final int CODIGO_POSTAL_INDEX = 4;
+ public static final String LOCALIDADE = "localidade";
+ public static final String LOCALIDADE_FULL = "estabelecimentos.localidade";
+ public static final int LOCALIDADE_INDEX = 5;
+ public static final String ULTIMA_VISITA = "ultima_visita";
+ public static final String ULTIMA_VISITA_FULL = "estabelecimentos.ultima_visita";
+ public static final int ULTIMA_VISITA_INDEX = 6;
+ public static final String REALIZADA = "realizada";
+ public static final String REALIZADA_FULL = "estabelecimentos.realizada";
+ public static final int REALIZADA_INDEX = 7;
+ public static final String PROXIMA_VISITA = "proxima_visita";
+ public static final String PROXIMA_VISITA_FULL = "estabelecimentos.proxima_visita";
+ public static final int PROXIMA_VISITA_INDEX = 8;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "estabelecimentos.nome";
+ public static final int NOME_INDEX = 9;
+ public static final String MEDICO_ID = "medico_id";
+ public static final String MEDICO_ID_FULL = "estabelecimentos.medico_id";
+ public static final int MEDICO_ID_INDEX = 10;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ EMPRESA_ID, TO_EMPRESA_ID, MORADA, CODIGO_POSTAL, LOCALIDADE, ULTIMA_VISITA,
+ REALIZADA, PROXIMA_VISITA, NOME, MEDICO_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + MORADA, TABLENAME + "." + CODIGO_POSTAL, TABLENAME + "." + LOCALIDADE, TABLENAME + "." + ULTIMA_VISITA,
+ TABLENAME + "." + REALIZADA, TABLENAME + "." + PROXIMA_VISITA, TABLENAME + "." + NOME, TABLENAME + "." + MEDICO_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, EMPRESA_ID, MORADA, CODIGO_POSTAL, LOCALIDADE, ULTIMA_VISITA, REALIZADA,
+ PROXIMA_VISITA, NOME, MEDICO_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, EMPRESA_ID, MORADA, CODIGO_POSTAL, LOCALIDADE, ULTIMA_VISITA, REALIZADA,
+ PROXIMA_VISITA, NOME, MEDICO_ID, };
+
+ private Integer id;
+ private Integer empresa_id;
+ private db.data.siprp.outer.EmpresasData to_empresa_id;
+ private String morada;
+ private String codigo_postal;
+ private String localidade;
+ private java.util.Date ultima_visita;
+ private String realizada;
+ private java.util.Date proxima_visita;
+ private String nome;
+ private Integer medico_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Estabelecimentos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAvisos_estabelecimento_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.AvisosData.class , getPrimaryKey().getMap().get("id"), "estabelecimento_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromHistoricoEstabelecimento_estabelecimento_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.HistoricoEstabelecimentoData.class , getPrimaryKey().getMap().get("id"), "estabelecimento_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromTrabalhadores_estabelecimento_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.TrabalhadoresData.class , getPrimaryKey().getMap().get("id"), "estabelecimento_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EmpresasData toEmpresa_id()
+ {
+ try
+ {
+ prepare( TO_EMPRESA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_empresa_id;
+ }
+
+ public void setToEmpresa_id( db.data.siprp.outer.EmpresasData to_empresa_id )
+ {
+ try
+ {
+ preProcess( TO_EMPRESA_ID, to_empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_empresa_id = to_empresa_id;
+ }
+
+ public String getMorada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MORADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.morada;
+ }
+
+ public void setMorada( String morada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MORADA, morada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.morada = morada;
+ LAZY_LOADED_OBJECTS.put( MORADA, Boolean.TRUE );
+ }
+
+ public String getCodigo_postal()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO_POSTAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo_postal;
+ }
+
+ public void setCodigo_postal( String codigo_postal )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO_POSTAL, codigo_postal );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo_postal = codigo_postal;
+ LAZY_LOADED_OBJECTS.put( CODIGO_POSTAL, Boolean.TRUE );
+ }
+
+ public String getLocalidade()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LOCALIDADE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.localidade;
+ }
+
+ public void setLocalidade( String localidade )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LOCALIDADE, localidade );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.localidade = localidade;
+ LAZY_LOADED_OBJECTS.put( LOCALIDADE, Boolean.TRUE );
+ }
+
+ public java.util.Date getUltima_visita()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ULTIMA_VISITA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ultima_visita;
+ }
+
+ public void setUltima_visita( java.util.Date ultima_visita )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ULTIMA_VISITA, ultima_visita );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ultima_visita = ultima_visita;
+ LAZY_LOADED_OBJECTS.put( ULTIMA_VISITA, Boolean.TRUE );
+ }
+
+ public String getRealizada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( REALIZADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.realizada;
+ }
+
+ public void setRealizada( String realizada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( REALIZADA, realizada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.realizada = realizada;
+ LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
+ }
+
+ public java.util.Date getProxima_visita()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PROXIMA_VISITA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.proxima_visita;
+ }
+
+ public void setProxima_visita( java.util.Date proxima_visita )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PROXIMA_VISITA, proxima_visita );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.proxima_visita = proxima_visita;
+ LAZY_LOADED_OBJECTS.put( PROXIMA_VISITA, Boolean.TRUE );
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public Integer getMedico_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDICO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medico_id;
+ }
+
+ public void setMedico_id( Integer medico_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDICO_ID, medico_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medico_id = medico_id;
+ LAZY_LOADED_OBJECTS.put( MEDICO_ID, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Estabelecimentos.ID_INDEX:
+ value = getId();
+ break;
+ case Estabelecimentos.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case Estabelecimentos.TO_EMPRESA_ID_INDEX:
+ value = toEmpresa_id();
+ break;
+ case Estabelecimentos.MORADA_INDEX:
+ value = getMorada();
+ break;
+ case Estabelecimentos.CODIGO_POSTAL_INDEX:
+ value = getCodigo_postal();
+ break;
+ case Estabelecimentos.LOCALIDADE_INDEX:
+ value = getLocalidade();
+ break;
+ case Estabelecimentos.ULTIMA_VISITA_INDEX:
+ value = getUltima_visita();
+ break;
+ case Estabelecimentos.REALIZADA_INDEX:
+ value = getRealizada();
+ break;
+ case Estabelecimentos.PROXIMA_VISITA_INDEX:
+ value = getProxima_visita();
+ break;
+ case Estabelecimentos.NOME_INDEX:
+ value = getNome();
+ break;
+ case Estabelecimentos.MEDICO_ID_INDEX:
+ value = getMedico_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Estabelecimentos.ID_INDEX:
+ value = this.id;
+ break;
+ case Estabelecimentos.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case Estabelecimentos.TO_EMPRESA_ID_INDEX:
+ value = this.to_empresa_id;
+ break;
+ case Estabelecimentos.MORADA_INDEX:
+ value = this.morada;
+ break;
+ case Estabelecimentos.CODIGO_POSTAL_INDEX:
+ value = this.codigo_postal;
+ break;
+ case Estabelecimentos.LOCALIDADE_INDEX:
+ value = this.localidade;
+ break;
+ case Estabelecimentos.ULTIMA_VISITA_INDEX:
+ value = this.ultima_visita;
+ break;
+ case Estabelecimentos.REALIZADA_INDEX:
+ value = this.realizada;
+ break;
+ case Estabelecimentos.PROXIMA_VISITA_INDEX:
+ value = this.proxima_visita;
+ break;
+ case Estabelecimentos.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Estabelecimentos.MEDICO_ID_INDEX:
+ value = this.medico_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Estabelecimentos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Estabelecimentos.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case Estabelecimentos.TO_EMPRESA_ID_INDEX:
+ setToEmpresa_id( ( db.data.siprp.outer.EmpresasData ) value );
+ break;
+ case Estabelecimentos.MORADA_INDEX:
+ setMorada( ( String ) value );
+ break;
+ case Estabelecimentos.CODIGO_POSTAL_INDEX:
+ setCodigo_postal( ( String ) value );
+ break;
+ case Estabelecimentos.LOCALIDADE_INDEX:
+ setLocalidade( ( String ) value );
+ break;
+ case Estabelecimentos.ULTIMA_VISITA_INDEX:
+ setUltima_visita( ( java.util.Date ) value );
+ break;
+ case Estabelecimentos.REALIZADA_INDEX:
+ setRealizada( ( String ) value );
+ break;
+ case Estabelecimentos.PROXIMA_VISITA_INDEX:
+ setProxima_visita( ( java.util.Date ) value );
+ break;
+ case Estabelecimentos.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Estabelecimentos.MEDICO_ID_INDEX:
+ setMedico_id( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Estabelecimentos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Estabelecimentos.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case Estabelecimentos.TO_EMPRESA_ID_INDEX:
+ this.to_empresa_id = ( db.data.siprp.outer.EmpresasData ) value;
+ break;
+ case Estabelecimentos.MORADA_INDEX:
+ this.morada = ( String ) value;
+ break;
+ case Estabelecimentos.CODIGO_POSTAL_INDEX:
+ this.codigo_postal = ( String ) value;
+ break;
+ case Estabelecimentos.LOCALIDADE_INDEX:
+ this.localidade = ( String ) value;
+ break;
+ case Estabelecimentos.ULTIMA_VISITA_INDEX:
+ this.ultima_visita = ( java.util.Date ) value;
+ break;
+ case Estabelecimentos.REALIZADA_INDEX:
+ this.realizada = ( String ) value;
+ break;
+ case Estabelecimentos.PROXIMA_VISITA_INDEX:
+ this.proxima_visita = ( java.util.Date ) value;
+ break;
+ case Estabelecimentos.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Estabelecimentos.MEDICO_ID_INDEX:
+ this.medico_id = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Estabelecimentos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Estabelecimentos.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Estabelecimentos.TO_EMPRESA_ID_INDEX:
+ theClass = db.data.siprp.outer.EmpresasData.class;
+ break;
+ case Estabelecimentos.MORADA_INDEX:
+ theClass = String.class;
+ break;
+ case Estabelecimentos.CODIGO_POSTAL_INDEX:
+ theClass = String.class;
+ break;
+ case Estabelecimentos.LOCALIDADE_INDEX:
+ theClass = String.class;
+ break;
+ case Estabelecimentos.ULTIMA_VISITA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Estabelecimentos.REALIZADA_INDEX:
+ theClass = String.class;
+ break;
+ case Estabelecimentos.PROXIMA_VISITA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Estabelecimentos.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Estabelecimentos.MEDICO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Estabelecimentos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Estabelecimentos.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/EstadoMedidas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/EstadoMedidas.java
new file mode 100644
index 00000000..2408c8e4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/EstadoMedidas.java
@@ -0,0 +1,395 @@
+/*
+* EstadoMedidas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class EstadoMedidas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( EstadoMedidas.ID, EstadoMedidas.ID_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.ID_FULL, EstadoMedidas.ID_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.DESCRICAO, EstadoMedidas.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.DESCRICAO_FULL, EstadoMedidas.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.ORDEM, EstadoMedidas.ORDEM_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.ORDEM_FULL, EstadoMedidas.ORDEM_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.ACTIVO, EstadoMedidas.ACTIVO_INDEX );
+ FIELD_INDEXES.put( EstadoMedidas.ACTIVO_FULL, EstadoMedidas.ACTIVO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "estado_medidas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.estado_medidas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "estado_medidas.id";
+ public static final int ID_INDEX = 0;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "estado_medidas.descricao";
+ public static final int DESCRICAO_INDEX = 1;
+ public static final String ORDEM = "ordem";
+ public static final String ORDEM_FULL = "estado_medidas.ordem";
+ public static final int ORDEM_INDEX = 2;
+ public static final String ACTIVO = "activo";
+ public static final String ACTIVO_FULL = "estado_medidas.activo";
+ public static final int ACTIVO_INDEX = 3;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, ORDEM, ACTIVO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + ORDEM, TABLENAME + "." + ACTIVO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DESCRICAO, ORDEM, ACTIVO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DESCRICAO, ORDEM, ACTIVO, };
+
+ private Integer id;
+ private String descricao;
+ private Integer ordem;
+ private String activo;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public EstadoMedidas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromPlanoMedidas_estado_medidas_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanoMedidasData.class , getPrimaryKey().getMap().get("id"), "estado_medidas_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Integer getOrdem()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ORDEM );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ordem;
+ }
+
+ public void setOrdem( Integer ordem )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ORDEM, ordem );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ordem = ordem;
+ LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
+ }
+
+ public String getActivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activo;
+ }
+
+ public void setActivo( String activo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVO, activo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activo = activo;
+ LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case EstadoMedidas.ID_INDEX:
+ value = getId();
+ break;
+ case EstadoMedidas.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case EstadoMedidas.ORDEM_INDEX:
+ value = getOrdem();
+ break;
+ case EstadoMedidas.ACTIVO_INDEX:
+ value = getActivo();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case EstadoMedidas.ID_INDEX:
+ value = this.id;
+ break;
+ case EstadoMedidas.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case EstadoMedidas.ORDEM_INDEX:
+ value = this.ordem;
+ break;
+ case EstadoMedidas.ACTIVO_INDEX:
+ value = this.activo;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case EstadoMedidas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case EstadoMedidas.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case EstadoMedidas.ORDEM_INDEX:
+ setOrdem( ( Integer ) value );
+ break;
+ case EstadoMedidas.ACTIVO_INDEX:
+ setActivo( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case EstadoMedidas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case EstadoMedidas.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case EstadoMedidas.ORDEM_INDEX:
+ this.ordem = ( Integer ) value;
+ break;
+ case EstadoMedidas.ACTIVO_INDEX:
+ this.activo = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case EstadoMedidas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case EstadoMedidas.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case EstadoMedidas.ORDEM_INDEX:
+ theClass = Integer.class;
+ break;
+ case EstadoMedidas.ACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : EstadoMedidas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, EstadoMedidas.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Exames.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Exames.java
new file mode 100644
index 00000000..04f0a3fd
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Exames.java
@@ -0,0 +1,1096 @@
+/*
+* Exames.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Exames extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Exames.ID, Exames.ID_INDEX );
+ FIELD_INDEXES.put( Exames.ID_FULL, Exames.ID_INDEX );
+ FIELD_INDEXES.put( Exames.DATA, Exames.DATA_INDEX );
+ FIELD_INDEXES.put( Exames.DATA_FULL, Exames.DATA_INDEX );
+ FIELD_INDEXES.put( Exames.TIPO, Exames.TIPO_INDEX );
+ FIELD_INDEXES.put( Exames.TIPO_FULL, Exames.TIPO_INDEX );
+ FIELD_INDEXES.put( Exames.OCASIONAL, Exames.OCASIONAL_INDEX );
+ FIELD_INDEXES.put( Exames.OCASIONAL_FULL, Exames.OCASIONAL_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRO_TIPO, Exames.OUTRO_TIPO_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRO_TIPO_FULL, Exames.OUTRO_TIPO_INDEX );
+ FIELD_INDEXES.put( Exames.RESULTADO, Exames.RESULTADO_INDEX );
+ FIELD_INDEXES.put( Exames.RESULTADO_FULL, Exames.RESULTADO_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_1, Exames.OUTRA_FUNCAO_1_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_1_FULL, Exames.OUTRA_FUNCAO_1_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_2, Exames.OUTRA_FUNCAO_2_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_2_FULL, Exames.OUTRA_FUNCAO_2_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_3, Exames.OUTRA_FUNCAO_3_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_3_FULL, Exames.OUTRA_FUNCAO_3_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_4, Exames.OUTRA_FUNCAO_4_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRA_FUNCAO_4_FULL, Exames.OUTRA_FUNCAO_4_INDEX );
+ FIELD_INDEXES.put( Exames.PROXIMO_EXAME, Exames.PROXIMO_EXAME_INDEX );
+ FIELD_INDEXES.put( Exames.PROXIMO_EXAME_FULL, Exames.PROXIMO_EXAME_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRAS_RECOMENDACOES, Exames.OUTRAS_RECOMENDACOES_INDEX );
+ FIELD_INDEXES.put( Exames.OUTRAS_RECOMENDACOES_FULL, Exames.OUTRAS_RECOMENDACOES_INDEX );
+ FIELD_INDEXES.put( Exames.INACTIVO, Exames.INACTIVO_INDEX );
+ FIELD_INDEXES.put( Exames.INACTIVO_FULL, Exames.INACTIVO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Exames.CLASS_IDENTIFIER, Exames.TRABALHADOR_ID, Exames.TO_TRABALHADOR_ID );
+ FIELD_INDEXES.put( Exames.TRABALHADOR_ID, Exames.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Exames.TRABALHADOR_ID_FULL, Exames.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Exames.TO_TRABALHADOR_ID, Exames.TO_TRABALHADOR_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Exames.CLASS_IDENTIFIER, Exames.MEDICO_ID, Exames.TO_MEDICO_ID );
+ FIELD_INDEXES.put( Exames.MEDICO_ID, Exames.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( Exames.MEDICO_ID_FULL, Exames.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( Exames.TO_MEDICO_ID, Exames.TO_MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( Exames.PDF, Exames.PDF_INDEX );
+ FIELD_INDEXES.put( Exames.PDF_FULL, Exames.PDF_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
+ new com.evolute.entity.ForeignKey( Exames.class, Exames.TRABALHADOR_ID, db.data.siprp.outer.TrabalhadoresData.class, db.data.siprp.outer.TrabalhadoresData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeymedico_idTomedicos =
+ new com.evolute.entity.ForeignKey( Exames.class, Exames.MEDICO_ID, db.data.siprp.outer.MedicosData.class, db.data.siprp.outer.MedicosData.ID );
+
+ public static final String TABLENAME = "exames";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.exames";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "exames.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "exames.data";
+ public static final int DATA_INDEX = 1;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "exames.tipo";
+ public static final int TIPO_INDEX = 2;
+ public static final String OCASIONAL = "ocasional";
+ public static final String OCASIONAL_FULL = "exames.ocasional";
+ public static final int OCASIONAL_INDEX = 3;
+ public static final String OUTRO_TIPO = "outro_tipo";
+ public static final String OUTRO_TIPO_FULL = "exames.outro_tipo";
+ public static final int OUTRO_TIPO_INDEX = 4;
+ public static final String RESULTADO = "resultado";
+ public static final String RESULTADO_FULL = "exames.resultado";
+ public static final int RESULTADO_INDEX = 5;
+ public static final String OUTRA_FUNCAO_1 = "outra_funcao_1";
+ public static final String OUTRA_FUNCAO_1_FULL = "exames.outra_funcao_1";
+ public static final int OUTRA_FUNCAO_1_INDEX = 6;
+ public static final String OUTRA_FUNCAO_2 = "outra_funcao_2";
+ public static final String OUTRA_FUNCAO_2_FULL = "exames.outra_funcao_2";
+ public static final int OUTRA_FUNCAO_2_INDEX = 7;
+ public static final String OUTRA_FUNCAO_3 = "outra_funcao_3";
+ public static final String OUTRA_FUNCAO_3_FULL = "exames.outra_funcao_3";
+ public static final int OUTRA_FUNCAO_3_INDEX = 8;
+ public static final String OUTRA_FUNCAO_4 = "outra_funcao_4";
+ public static final String OUTRA_FUNCAO_4_FULL = "exames.outra_funcao_4";
+ public static final int OUTRA_FUNCAO_4_INDEX = 9;
+ public static final String PROXIMO_EXAME = "proximo_exame";
+ public static final String PROXIMO_EXAME_FULL = "exames.proximo_exame";
+ public static final int PROXIMO_EXAME_INDEX = 10;
+ public static final String OUTRAS_RECOMENDACOES = "outras_recomendacoes";
+ public static final String OUTRAS_RECOMENDACOES_FULL = "exames.outras_recomendacoes";
+ public static final int OUTRAS_RECOMENDACOES_INDEX = 11;
+ public static final String INACTIVO = "inactivo";
+ public static final String INACTIVO_FULL = "exames.inactivo";
+ public static final int INACTIVO_INDEX = 12;
+ public static final String TRABALHADOR_ID = "trabalhador_id";
+ public static final String TRABALHADOR_ID_FULL = "exames.trabalhador_id";
+ public static final int TRABALHADOR_ID_INDEX = 13;
+ public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
+ public static final String TO_TRABALHADOR_ID_FULL = "exames.to_trabalhador_id";
+ public static final int TO_TRABALHADOR_ID_INDEX = 14;
+ public static final String MEDICO_ID = "medico_id";
+ public static final String MEDICO_ID_FULL = "exames.medico_id";
+ public static final int MEDICO_ID_INDEX = 15;
+ public static final String TO_MEDICO_ID = "to_medico_id";
+ public static final String TO_MEDICO_ID_FULL = "exames.to_medico_id";
+ public static final int TO_MEDICO_ID_INDEX = 16;
+ public static final String PDF = "pdf";
+ public static final String PDF_FULL = "exames.pdf";
+ public static final int PDF_INDEX = 17;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATA, TIPO, OCASIONAL, OUTRO_TIPO, RESULTADO, OUTRA_FUNCAO_1, OUTRA_FUNCAO_2,
+ OUTRA_FUNCAO_3, OUTRA_FUNCAO_4, PROXIMO_EXAME, OUTRAS_RECOMENDACOES, INACTIVO,
+ TRABALHADOR_ID, TO_TRABALHADOR_ID, MEDICO_ID, TO_MEDICO_ID, PDF, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATA, TABLENAME + "." + TIPO, TABLENAME + "." + OCASIONAL, TABLENAME + "." + OUTRO_TIPO, TABLENAME + "." + RESULTADO, TABLENAME + "." + OUTRA_FUNCAO_1, TABLENAME + "." + OUTRA_FUNCAO_2,
+ TABLENAME + "." + OUTRA_FUNCAO_3, TABLENAME + "." + OUTRA_FUNCAO_4, TABLENAME + "." + PROXIMO_EXAME, TABLENAME + "." + OUTRAS_RECOMENDACOES, TABLENAME + "." + INACTIVO,
+ TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + MEDICO_ID, TABLENAME + "." + TO_MEDICO_ID, TABLENAME + "." + PDF, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATA, TIPO, OCASIONAL, OUTRO_TIPO, RESULTADO, OUTRA_FUNCAO_1, OUTRA_FUNCAO_2,
+ OUTRA_FUNCAO_3, OUTRA_FUNCAO_4, PROXIMO_EXAME, OUTRAS_RECOMENDACOES, INACTIVO,
+ TRABALHADOR_ID, MEDICO_ID, PDF, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATA, TIPO, OCASIONAL, OUTRO_TIPO, RESULTADO, OUTRA_FUNCAO_1, OUTRA_FUNCAO_2,
+ OUTRA_FUNCAO_3, OUTRA_FUNCAO_4, PROXIMO_EXAME, OUTRAS_RECOMENDACOES, INACTIVO,
+ TRABALHADOR_ID, MEDICO_ID, };
+
+ private Integer id;
+ private java.util.Date data;
+ private Integer tipo;
+ private Integer ocasional;
+ private String outro_tipo;
+ private Integer resultado;
+ private String outra_funcao_1;
+ private String outra_funcao_2;
+ private String outra_funcao_3;
+ private String outra_funcao_4;
+ private java.util.Date proximo_exame;
+ private String outras_recomendacoes;
+ private String inactivo;
+ private Integer trabalhador_id;
+ private db.data.siprp.outer.TrabalhadoresData to_trabalhador_id;
+ private Integer medico_id;
+ private db.data.siprp.outer.MedicosData to_medico_id;
+ private byte[] pdf;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Exames()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public Integer getOcasional()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OCASIONAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ocasional;
+ }
+
+ public void setOcasional( Integer ocasional )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OCASIONAL, ocasional );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ocasional = ocasional;
+ LAZY_LOADED_OBJECTS.put( OCASIONAL, Boolean.TRUE );
+ }
+
+ public String getOutro_tipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTRO_TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outro_tipo;
+ }
+
+ public void setOutro_tipo( String outro_tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTRO_TIPO, outro_tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outro_tipo = outro_tipo;
+ LAZY_LOADED_OBJECTS.put( OUTRO_TIPO, Boolean.TRUE );
+ }
+
+ public Integer getResultado()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESULTADO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.resultado;
+ }
+
+ public void setResultado( Integer resultado )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESULTADO, resultado );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.resultado = resultado;
+ LAZY_LOADED_OBJECTS.put( RESULTADO, Boolean.TRUE );
+ }
+
+ public String getOutra_funcao_1()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTRA_FUNCAO_1 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outra_funcao_1;
+ }
+
+ public void setOutra_funcao_1( String outra_funcao_1 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTRA_FUNCAO_1, outra_funcao_1 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outra_funcao_1 = outra_funcao_1;
+ LAZY_LOADED_OBJECTS.put( OUTRA_FUNCAO_1, Boolean.TRUE );
+ }
+
+ public String getOutra_funcao_2()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTRA_FUNCAO_2 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outra_funcao_2;
+ }
+
+ public void setOutra_funcao_2( String outra_funcao_2 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTRA_FUNCAO_2, outra_funcao_2 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outra_funcao_2 = outra_funcao_2;
+ LAZY_LOADED_OBJECTS.put( OUTRA_FUNCAO_2, Boolean.TRUE );
+ }
+
+ public String getOutra_funcao_3()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTRA_FUNCAO_3 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outra_funcao_3;
+ }
+
+ public void setOutra_funcao_3( String outra_funcao_3 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTRA_FUNCAO_3, outra_funcao_3 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outra_funcao_3 = outra_funcao_3;
+ LAZY_LOADED_OBJECTS.put( OUTRA_FUNCAO_3, Boolean.TRUE );
+ }
+
+ public String getOutra_funcao_4()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTRA_FUNCAO_4 );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outra_funcao_4;
+ }
+
+ public void setOutra_funcao_4( String outra_funcao_4 )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTRA_FUNCAO_4, outra_funcao_4 );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outra_funcao_4 = outra_funcao_4;
+ LAZY_LOADED_OBJECTS.put( OUTRA_FUNCAO_4, Boolean.TRUE );
+ }
+
+ public java.util.Date getProximo_exame()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PROXIMO_EXAME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.proximo_exame;
+ }
+
+ public void setProximo_exame( java.util.Date proximo_exame )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PROXIMO_EXAME, proximo_exame );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.proximo_exame = proximo_exame;
+ LAZY_LOADED_OBJECTS.put( PROXIMO_EXAME, Boolean.TRUE );
+ }
+
+ public String getOutras_recomendacoes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OUTRAS_RECOMENDACOES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.outras_recomendacoes;
+ }
+
+ public void setOutras_recomendacoes( String outras_recomendacoes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OUTRAS_RECOMENDACOES, outras_recomendacoes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.outras_recomendacoes = outras_recomendacoes;
+ LAZY_LOADED_OBJECTS.put( OUTRAS_RECOMENDACOES, Boolean.TRUE );
+ }
+
+ public String getInactivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( INACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.inactivo;
+ }
+
+ public void setInactivo( String inactivo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( INACTIVO, inactivo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.inactivo = inactivo;
+ LAZY_LOADED_OBJECTS.put( INACTIVO, Boolean.TRUE );
+ }
+
+ public Integer getTrabalhador_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TRABALHADOR_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.trabalhador_id;
+ }
+
+ public void setTrabalhador_id( Integer trabalhador_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TRABALHADOR_ID, trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.trabalhador_id = trabalhador_id;
+ LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.TrabalhadoresData toTrabalhador_id()
+ {
+ try
+ {
+ prepare( TO_TRABALHADOR_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_trabalhador_id;
+ }
+
+ public void setToTrabalhador_id( db.data.siprp.outer.TrabalhadoresData to_trabalhador_id )
+ {
+ try
+ {
+ preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_trabalhador_id = to_trabalhador_id;
+ }
+
+ public Integer getMedico_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDICO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medico_id;
+ }
+
+ public void setMedico_id( Integer medico_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDICO_ID, medico_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medico_id = medico_id;
+ LAZY_LOADED_OBJECTS.put( MEDICO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.MedicosData toMedico_id()
+ {
+ try
+ {
+ prepare( TO_MEDICO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_medico_id;
+ }
+
+ public void setToMedico_id( db.data.siprp.outer.MedicosData to_medico_id )
+ {
+ try
+ {
+ preProcess( TO_MEDICO_ID, to_medico_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_medico_id = to_medico_id;
+ }
+
+ public byte[] getPdf()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PDF );
+ Boolean isLazyLoaded = isPropertyLoaded( PDF );
+ if ( ! isLazyLoaded )
+ {
+ this.pdf = ( byte[] ) getProvider().loadFieldFromDatabase( PDF, this );
+ LAZY_LOADED_OBJECTS.put( PDF, Boolean.TRUE );
+ }
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.pdf;
+ }
+
+ public void setPdf( byte[] pdf )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PDF, pdf );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.pdf = pdf;
+ LAZY_LOADED_OBJECTS.put( PDF, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Exames.ID_INDEX:
+ value = getId();
+ break;
+ case Exames.DATA_INDEX:
+ value = getData();
+ break;
+ case Exames.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case Exames.OCASIONAL_INDEX:
+ value = getOcasional();
+ break;
+ case Exames.OUTRO_TIPO_INDEX:
+ value = getOutro_tipo();
+ break;
+ case Exames.RESULTADO_INDEX:
+ value = getResultado();
+ break;
+ case Exames.OUTRA_FUNCAO_1_INDEX:
+ value = getOutra_funcao_1();
+ break;
+ case Exames.OUTRA_FUNCAO_2_INDEX:
+ value = getOutra_funcao_2();
+ break;
+ case Exames.OUTRA_FUNCAO_3_INDEX:
+ value = getOutra_funcao_3();
+ break;
+ case Exames.OUTRA_FUNCAO_4_INDEX:
+ value = getOutra_funcao_4();
+ break;
+ case Exames.PROXIMO_EXAME_INDEX:
+ value = getProximo_exame();
+ break;
+ case Exames.OUTRAS_RECOMENDACOES_INDEX:
+ value = getOutras_recomendacoes();
+ break;
+ case Exames.INACTIVO_INDEX:
+ value = getInactivo();
+ break;
+ case Exames.TRABALHADOR_ID_INDEX:
+ value = getTrabalhador_id();
+ break;
+ case Exames.TO_TRABALHADOR_ID_INDEX:
+ value = toTrabalhador_id();
+ break;
+ case Exames.MEDICO_ID_INDEX:
+ value = getMedico_id();
+ break;
+ case Exames.TO_MEDICO_ID_INDEX:
+ value = toMedico_id();
+ break;
+ case Exames.PDF_INDEX:
+ value = getPdf();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Exames.ID_INDEX:
+ value = this.id;
+ break;
+ case Exames.DATA_INDEX:
+ value = this.data;
+ break;
+ case Exames.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case Exames.OCASIONAL_INDEX:
+ value = this.ocasional;
+ break;
+ case Exames.OUTRO_TIPO_INDEX:
+ value = this.outro_tipo;
+ break;
+ case Exames.RESULTADO_INDEX:
+ value = this.resultado;
+ break;
+ case Exames.OUTRA_FUNCAO_1_INDEX:
+ value = this.outra_funcao_1;
+ break;
+ case Exames.OUTRA_FUNCAO_2_INDEX:
+ value = this.outra_funcao_2;
+ break;
+ case Exames.OUTRA_FUNCAO_3_INDEX:
+ value = this.outra_funcao_3;
+ break;
+ case Exames.OUTRA_FUNCAO_4_INDEX:
+ value = this.outra_funcao_4;
+ break;
+ case Exames.PROXIMO_EXAME_INDEX:
+ value = this.proximo_exame;
+ break;
+ case Exames.OUTRAS_RECOMENDACOES_INDEX:
+ value = this.outras_recomendacoes;
+ break;
+ case Exames.INACTIVO_INDEX:
+ value = this.inactivo;
+ break;
+ case Exames.TRABALHADOR_ID_INDEX:
+ value = this.trabalhador_id;
+ break;
+ case Exames.TO_TRABALHADOR_ID_INDEX:
+ value = this.to_trabalhador_id;
+ break;
+ case Exames.MEDICO_ID_INDEX:
+ value = this.medico_id;
+ break;
+ case Exames.TO_MEDICO_ID_INDEX:
+ value = this.to_medico_id;
+ break;
+ case Exames.PDF_INDEX:
+ value = this.pdf;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Exames.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Exames.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case Exames.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case Exames.OCASIONAL_INDEX:
+ setOcasional( ( Integer ) value );
+ break;
+ case Exames.OUTRO_TIPO_INDEX:
+ setOutro_tipo( ( String ) value );
+ break;
+ case Exames.RESULTADO_INDEX:
+ setResultado( ( Integer ) value );
+ break;
+ case Exames.OUTRA_FUNCAO_1_INDEX:
+ setOutra_funcao_1( ( String ) value );
+ break;
+ case Exames.OUTRA_FUNCAO_2_INDEX:
+ setOutra_funcao_2( ( String ) value );
+ break;
+ case Exames.OUTRA_FUNCAO_3_INDEX:
+ setOutra_funcao_3( ( String ) value );
+ break;
+ case Exames.OUTRA_FUNCAO_4_INDEX:
+ setOutra_funcao_4( ( String ) value );
+ break;
+ case Exames.PROXIMO_EXAME_INDEX:
+ setProximo_exame( ( java.util.Date ) value );
+ break;
+ case Exames.OUTRAS_RECOMENDACOES_INDEX:
+ setOutras_recomendacoes( ( String ) value );
+ break;
+ case Exames.INACTIVO_INDEX:
+ setInactivo( ( String ) value );
+ break;
+ case Exames.TRABALHADOR_ID_INDEX:
+ setTrabalhador_id( ( Integer ) value );
+ break;
+ case Exames.TO_TRABALHADOR_ID_INDEX:
+ setToTrabalhador_id( ( db.data.siprp.outer.TrabalhadoresData ) value );
+ break;
+ case Exames.MEDICO_ID_INDEX:
+ setMedico_id( ( Integer ) value );
+ break;
+ case Exames.TO_MEDICO_ID_INDEX:
+ setToMedico_id( ( db.data.siprp.outer.MedicosData ) value );
+ break;
+ case Exames.PDF_INDEX:
+ setPdf( ( byte[] ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Exames.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Exames.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case Exames.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case Exames.OCASIONAL_INDEX:
+ this.ocasional = ( Integer ) value;
+ break;
+ case Exames.OUTRO_TIPO_INDEX:
+ this.outro_tipo = ( String ) value;
+ break;
+ case Exames.RESULTADO_INDEX:
+ this.resultado = ( Integer ) value;
+ break;
+ case Exames.OUTRA_FUNCAO_1_INDEX:
+ this.outra_funcao_1 = ( String ) value;
+ break;
+ case Exames.OUTRA_FUNCAO_2_INDEX:
+ this.outra_funcao_2 = ( String ) value;
+ break;
+ case Exames.OUTRA_FUNCAO_3_INDEX:
+ this.outra_funcao_3 = ( String ) value;
+ break;
+ case Exames.OUTRA_FUNCAO_4_INDEX:
+ this.outra_funcao_4 = ( String ) value;
+ break;
+ case Exames.PROXIMO_EXAME_INDEX:
+ this.proximo_exame = ( java.util.Date ) value;
+ break;
+ case Exames.OUTRAS_RECOMENDACOES_INDEX:
+ this.outras_recomendacoes = ( String ) value;
+ break;
+ case Exames.INACTIVO_INDEX:
+ this.inactivo = ( String ) value;
+ break;
+ case Exames.TRABALHADOR_ID_INDEX:
+ this.trabalhador_id = ( Integer ) value;
+ break;
+ case Exames.TO_TRABALHADOR_ID_INDEX:
+ this.to_trabalhador_id = ( db.data.siprp.outer.TrabalhadoresData ) value;
+ break;
+ case Exames.MEDICO_ID_INDEX:
+ this.medico_id = ( Integer ) value;
+ break;
+ case Exames.TO_MEDICO_ID_INDEX:
+ this.to_medico_id = ( db.data.siprp.outer.MedicosData ) value;
+ break;
+ case Exames.PDF_INDEX:
+ this.pdf = ( byte[] ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Exames.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Exames.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Exames.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case Exames.OCASIONAL_INDEX:
+ theClass = Integer.class;
+ break;
+ case Exames.OUTRO_TIPO_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.RESULTADO_INDEX:
+ theClass = Integer.class;
+ break;
+ case Exames.OUTRA_FUNCAO_1_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.OUTRA_FUNCAO_2_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.OUTRA_FUNCAO_3_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.OUTRA_FUNCAO_4_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.PROXIMO_EXAME_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Exames.OUTRAS_RECOMENDACOES_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.INACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ case Exames.TRABALHADOR_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Exames.TO_TRABALHADOR_ID_INDEX:
+ theClass = db.data.siprp.outer.TrabalhadoresData.class;
+ break;
+ case Exames.MEDICO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Exames.TO_MEDICO_ID_INDEX:
+ theClass = db.data.siprp.outer.MedicosData.class;
+ break;
+ case Exames.PDF_INDEX:
+ theClass = byte[].class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Exames._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Exames.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ LAZY_LOADED_OBJECTS.put( PDF, Boolean.FALSE );
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/ExamesPerfis.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/ExamesPerfis.java
new file mode 100644
index 00000000..c81ab08c
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/ExamesPerfis.java
@@ -0,0 +1,430 @@
+/*
+* ExamesPerfis.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class ExamesPerfis extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( ExamesPerfis.ID, ExamesPerfis.ID_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.ID_FULL, ExamesPerfis.ID_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.PERFIL, ExamesPerfis.PERFIL_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.PERFIL_FULL, ExamesPerfis.PERFIL_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( ExamesPerfis.CLASS_IDENTIFIER, ExamesPerfis.TIPO, ExamesPerfis.TO_TIPO );
+ FIELD_INDEXES.put( ExamesPerfis.TIPO, ExamesPerfis.TIPO_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.TIPO_FULL, ExamesPerfis.TIPO_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.TO_TIPO, ExamesPerfis.TO_TIPO_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.MULTIPLICADOR, ExamesPerfis.MULTIPLICADOR_INDEX );
+ FIELD_INDEXES.put( ExamesPerfis.MULTIPLICADOR_FULL, ExamesPerfis.MULTIPLICADOR_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeytipoTotipos_exames_comp =
+ new com.evolute.entity.ForeignKey( ExamesPerfis.class, ExamesPerfis.TIPO, db.data.siprp.outer.TiposExamesCompData.class, db.data.siprp.outer.TiposExamesCompData.ID );
+
+ public static final String TABLENAME = "exames_perfis";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.exames_perfis";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "exames_perfis.id";
+ public static final int ID_INDEX = 0;
+ public static final String PERFIL = "perfil";
+ public static final String PERFIL_FULL = "exames_perfis.perfil";
+ public static final int PERFIL_INDEX = 1;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "exames_perfis.tipo";
+ public static final int TIPO_INDEX = 2;
+ public static final String TO_TIPO = "to_tipo";
+ public static final String TO_TIPO_FULL = "exames_perfis.to_tipo";
+ public static final int TO_TIPO_INDEX = 3;
+ public static final String MULTIPLICADOR = "multiplicador";
+ public static final String MULTIPLICADOR_FULL = "exames_perfis.multiplicador";
+ public static final int MULTIPLICADOR_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ PERFIL, TIPO, TO_TIPO, MULTIPLICADOR, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + PERFIL, TABLENAME + "." + TIPO, TABLENAME + "." + TO_TIPO, TABLENAME + "." + MULTIPLICADOR, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, PERFIL, TIPO, MULTIPLICADOR, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, PERFIL, TIPO, MULTIPLICADOR, };
+
+ private Integer id;
+ private Integer perfil;
+ private Integer tipo;
+ private db.data.siprp.outer.TiposExamesCompData to_tipo;
+ private Integer multiplicador;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public ExamesPerfis()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getPerfil()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PERFIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.perfil;
+ }
+
+ public void setPerfil( Integer perfil )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PERFIL, perfil );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.perfil = perfil;
+ LAZY_LOADED_OBJECTS.put( PERFIL, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.TiposExamesCompData toTipo()
+ {
+ try
+ {
+ prepare( TO_TIPO );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_tipo;
+ }
+
+ public void setToTipo( db.data.siprp.outer.TiposExamesCompData to_tipo )
+ {
+ try
+ {
+ preProcess( TO_TIPO, to_tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_tipo = to_tipo;
+ }
+
+ public Integer getMultiplicador()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MULTIPLICADOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.multiplicador;
+ }
+
+ public void setMultiplicador( Integer multiplicador )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MULTIPLICADOR, multiplicador );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.multiplicador = multiplicador;
+ LAZY_LOADED_OBJECTS.put( MULTIPLICADOR, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case ExamesPerfis.ID_INDEX:
+ value = getId();
+ break;
+ case ExamesPerfis.PERFIL_INDEX:
+ value = getPerfil();
+ break;
+ case ExamesPerfis.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case ExamesPerfis.TO_TIPO_INDEX:
+ value = toTipo();
+ break;
+ case ExamesPerfis.MULTIPLICADOR_INDEX:
+ value = getMultiplicador();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case ExamesPerfis.ID_INDEX:
+ value = this.id;
+ break;
+ case ExamesPerfis.PERFIL_INDEX:
+ value = this.perfil;
+ break;
+ case ExamesPerfis.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case ExamesPerfis.TO_TIPO_INDEX:
+ value = this.to_tipo;
+ break;
+ case ExamesPerfis.MULTIPLICADOR_INDEX:
+ value = this.multiplicador;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case ExamesPerfis.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case ExamesPerfis.PERFIL_INDEX:
+ setPerfil( ( Integer ) value );
+ break;
+ case ExamesPerfis.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case ExamesPerfis.TO_TIPO_INDEX:
+ setToTipo( ( db.data.siprp.outer.TiposExamesCompData ) value );
+ break;
+ case ExamesPerfis.MULTIPLICADOR_INDEX:
+ setMultiplicador( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case ExamesPerfis.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case ExamesPerfis.PERFIL_INDEX:
+ this.perfil = ( Integer ) value;
+ break;
+ case ExamesPerfis.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case ExamesPerfis.TO_TIPO_INDEX:
+ this.to_tipo = ( db.data.siprp.outer.TiposExamesCompData ) value;
+ break;
+ case ExamesPerfis.MULTIPLICADOR_INDEX:
+ this.multiplicador = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case ExamesPerfis.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case ExamesPerfis.PERFIL_INDEX:
+ theClass = Integer.class;
+ break;
+ case ExamesPerfis.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case ExamesPerfis.TO_TIPO_INDEX:
+ theClass = db.data.siprp.outer.TiposExamesCompData.class;
+ break;
+ case ExamesPerfis.MULTIPLICADOR_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : ExamesPerfis._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, ExamesPerfis.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/HistoricoEstabelecimento.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/HistoricoEstabelecimento.java
new file mode 100644
index 00000000..4c876346
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/HistoricoEstabelecimento.java
@@ -0,0 +1,430 @@
+/*
+* HistoricoEstabelecimento.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class HistoricoEstabelecimento extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( HistoricoEstabelecimento.ID, HistoricoEstabelecimento.ID_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.ID_FULL, HistoricoEstabelecimento.ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( HistoricoEstabelecimento.CLASS_IDENTIFIER, HistoricoEstabelecimento.ESTABELECIMENTO_ID, HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.ESTABELECIMENTO_ID, HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.ESTABELECIMENTO_ID_FULL, HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID, HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.DATA, HistoricoEstabelecimento.DATA_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.DATA_FULL, HistoricoEstabelecimento.DATA_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.TEXTO, HistoricoEstabelecimento.TEXTO_INDEX );
+ FIELD_INDEXES.put( HistoricoEstabelecimento.TEXTO_FULL, HistoricoEstabelecimento.TEXTO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
+ new com.evolute.entity.ForeignKey( HistoricoEstabelecimento.class, HistoricoEstabelecimento.ESTABELECIMENTO_ID, db.data.siprp.outer.EstabelecimentosData.class, db.data.siprp.outer.EstabelecimentosData.ID );
+
+ public static final String TABLENAME = "historico_estabelecimento";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.historico_estabelecimento";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "historico_estabelecimento.id";
+ public static final int ID_INDEX = 0;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "historico_estabelecimento.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 1;
+ public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
+ public static final String TO_ESTABELECIMENTO_ID_FULL = "historico_estabelecimento.to_estabelecimento_id";
+ public static final int TO_ESTABELECIMENTO_ID_INDEX = 2;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "historico_estabelecimento.data";
+ public static final int DATA_INDEX = 3;
+ public static final String TEXTO = "texto";
+ public static final String TEXTO_FULL = "historico_estabelecimento.texto";
+ public static final int TEXTO_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID, DATA, TEXTO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID, TABLENAME + "." + DATA, TABLENAME + "." + TEXTO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, ESTABELECIMENTO_ID, DATA, TEXTO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, ESTABELECIMENTO_ID, DATA, TEXTO, };
+
+ private Integer id;
+ private Integer estabelecimento_id;
+ private db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id;
+ private java.util.Date data;
+ private String texto;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public HistoricoEstabelecimento()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EstabelecimentosData toEstabelecimento_id()
+ {
+ try
+ {
+ prepare( TO_ESTABELECIMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_estabelecimento_id;
+ }
+
+ public void setToEstabelecimento_id( db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id )
+ {
+ try
+ {
+ preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_estabelecimento_id = to_estabelecimento_id;
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public String getTexto()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TEXTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.texto;
+ }
+
+ public void setTexto( String texto )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TEXTO, texto );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.texto = texto;
+ LAZY_LOADED_OBJECTS.put( TEXTO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case HistoricoEstabelecimento.ID_INDEX:
+ value = getId();
+ break;
+ case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
+ value = toEstabelecimento_id();
+ break;
+ case HistoricoEstabelecimento.DATA_INDEX:
+ value = getData();
+ break;
+ case HistoricoEstabelecimento.TEXTO_INDEX:
+ value = getTexto();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case HistoricoEstabelecimento.ID_INDEX:
+ value = this.id;
+ break;
+ case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
+ value = this.to_estabelecimento_id;
+ break;
+ case HistoricoEstabelecimento.DATA_INDEX:
+ value = this.data;
+ break;
+ case HistoricoEstabelecimento.TEXTO_INDEX:
+ value = this.texto;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case HistoricoEstabelecimento.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
+ setToEstabelecimento_id( ( db.data.siprp.outer.EstabelecimentosData ) value );
+ break;
+ case HistoricoEstabelecimento.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case HistoricoEstabelecimento.TEXTO_INDEX:
+ setTexto( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case HistoricoEstabelecimento.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
+ this.to_estabelecimento_id = ( db.data.siprp.outer.EstabelecimentosData ) value;
+ break;
+ case HistoricoEstabelecimento.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case HistoricoEstabelecimento.TEXTO_INDEX:
+ this.texto = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case HistoricoEstabelecimento.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
+ theClass = db.data.siprp.outer.EstabelecimentosData.class;
+ break;
+ case HistoricoEstabelecimento.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case HistoricoEstabelecimento.TEXTO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : HistoricoEstabelecimento._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, HistoricoEstabelecimento.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesEmpresa.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesEmpresa.java
new file mode 100644
index 00000000..14a69140
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesEmpresa.java
@@ -0,0 +1,480 @@
+/*
+* MarcacoesEmpresa.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class MarcacoesEmpresa extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( MarcacoesEmpresa.ID, MarcacoesEmpresa.ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.ID_FULL, MarcacoesEmpresa.ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.DATA, MarcacoesEmpresa.DATA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.DATA_FULL, MarcacoesEmpresa.DATA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.TEXTO, MarcacoesEmpresa.TEXTO_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.TEXTO_FULL, MarcacoesEmpresa.TEXTO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( MarcacoesEmpresa.CLASS_IDENTIFIER, MarcacoesEmpresa.EMPRESA_ID, MarcacoesEmpresa.TO_EMPRESA_ID );
+ FIELD_INDEXES.put( MarcacoesEmpresa.EMPRESA_ID, MarcacoesEmpresa.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.EMPRESA_ID_FULL, MarcacoesEmpresa.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.TO_EMPRESA_ID, MarcacoesEmpresa.TO_EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.REALIZADA, MarcacoesEmpresa.REALIZADA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEmpresa.REALIZADA_FULL, MarcacoesEmpresa.REALIZADA_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
+ new com.evolute.entity.ForeignKey( MarcacoesEmpresa.class, MarcacoesEmpresa.EMPRESA_ID, db.data.siprp.outer.EmpresasData.class, db.data.siprp.outer.EmpresasData.ID );
+
+ public static final String TABLENAME = "marcacoes_empresa";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.marcacoes_empresa";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "marcacoes_empresa.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "marcacoes_empresa.data";
+ public static final int DATA_INDEX = 1;
+ public static final String TEXTO = "texto";
+ public static final String TEXTO_FULL = "marcacoes_empresa.texto";
+ public static final int TEXTO_INDEX = 2;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "marcacoes_empresa.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 3;
+ public static final String TO_EMPRESA_ID = "to_empresa_id";
+ public static final String TO_EMPRESA_ID_FULL = "marcacoes_empresa.to_empresa_id";
+ public static final int TO_EMPRESA_ID_INDEX = 4;
+ public static final String REALIZADA = "realizada";
+ public static final String REALIZADA_FULL = "marcacoes_empresa.realizada";
+ public static final int REALIZADA_INDEX = 5;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATA, TEXTO, EMPRESA_ID, TO_EMPRESA_ID, REALIZADA, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATA, TABLENAME + "." + TEXTO, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + REALIZADA, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATA, TEXTO, EMPRESA_ID, REALIZADA, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATA, TEXTO, EMPRESA_ID, REALIZADA, };
+
+ private Integer id;
+ private java.util.Date data;
+ private String texto;
+ private Integer empresa_id;
+ private db.data.siprp.outer.EmpresasData to_empresa_id;
+ private String realizada;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public MarcacoesEmpresa()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public String getTexto()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TEXTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.texto;
+ }
+
+ public void setTexto( String texto )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TEXTO, texto );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.texto = texto;
+ LAZY_LOADED_OBJECTS.put( TEXTO, Boolean.TRUE );
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EmpresasData toEmpresa_id()
+ {
+ try
+ {
+ prepare( TO_EMPRESA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_empresa_id;
+ }
+
+ public void setToEmpresa_id( db.data.siprp.outer.EmpresasData to_empresa_id )
+ {
+ try
+ {
+ preProcess( TO_EMPRESA_ID, to_empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_empresa_id = to_empresa_id;
+ }
+
+ public String getRealizada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( REALIZADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.realizada;
+ }
+
+ public void setRealizada( String realizada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( REALIZADA, realizada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.realizada = realizada;
+ LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEmpresa.ID_INDEX:
+ value = getId();
+ break;
+ case MarcacoesEmpresa.DATA_INDEX:
+ value = getData();
+ break;
+ case MarcacoesEmpresa.TEXTO_INDEX:
+ value = getTexto();
+ break;
+ case MarcacoesEmpresa.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
+ value = toEmpresa_id();
+ break;
+ case MarcacoesEmpresa.REALIZADA_INDEX:
+ value = getRealizada();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEmpresa.ID_INDEX:
+ value = this.id;
+ break;
+ case MarcacoesEmpresa.DATA_INDEX:
+ value = this.data;
+ break;
+ case MarcacoesEmpresa.TEXTO_INDEX:
+ value = this.texto;
+ break;
+ case MarcacoesEmpresa.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
+ value = this.to_empresa_id;
+ break;
+ case MarcacoesEmpresa.REALIZADA_INDEX:
+ value = this.realizada;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEmpresa.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case MarcacoesEmpresa.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case MarcacoesEmpresa.TEXTO_INDEX:
+ setTexto( ( String ) value );
+ break;
+ case MarcacoesEmpresa.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
+ setToEmpresa_id( ( db.data.siprp.outer.EmpresasData ) value );
+ break;
+ case MarcacoesEmpresa.REALIZADA_INDEX:
+ setRealizada( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEmpresa.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case MarcacoesEmpresa.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case MarcacoesEmpresa.TEXTO_INDEX:
+ this.texto = ( String ) value;
+ break;
+ case MarcacoesEmpresa.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
+ this.to_empresa_id = ( db.data.siprp.outer.EmpresasData ) value;
+ break;
+ case MarcacoesEmpresa.REALIZADA_INDEX:
+ this.realizada = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case MarcacoesEmpresa.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case MarcacoesEmpresa.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesEmpresa.TEXTO_INDEX:
+ theClass = String.class;
+ break;
+ case MarcacoesEmpresa.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
+ theClass = db.data.siprp.outer.EmpresasData.class;
+ break;
+ case MarcacoesEmpresa.REALIZADA_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : MarcacoesEmpresa._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesEmpresa.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesEstabelecimento.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesEstabelecimento.java
new file mode 100644
index 00000000..4028cd6c
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesEstabelecimento.java
@@ -0,0 +1,480 @@
+/*
+* MarcacoesEstabelecimento.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class MarcacoesEstabelecimento extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.ID, MarcacoesEstabelecimento.ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.ID_FULL, MarcacoesEstabelecimento.ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA, MarcacoesEstabelecimento.DATA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_FULL, MarcacoesEstabelecimento.DATA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.REALIZADA, MarcacoesEstabelecimento.REALIZADA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.REALIZADA_FULL, MarcacoesEstabelecimento.REALIZADA_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_EMAIL, MarcacoesEstabelecimento.DATA_EMAIL_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_EMAIL_FULL, MarcacoesEstabelecimento.DATA_EMAIL_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_RELATORIO, MarcacoesEstabelecimento.DATA_RELATORIO_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_RELATORIO_FULL, MarcacoesEstabelecimento.DATA_RELATORIO_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.ESTABELECIMENTO_ID, MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesEstabelecimento.ESTABELECIMENTO_ID_FULL, MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "marcacoes_estabelecimento";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.marcacoes_estabelecimento";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "marcacoes_estabelecimento.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "marcacoes_estabelecimento.data";
+ public static final int DATA_INDEX = 1;
+ public static final String REALIZADA = "realizada";
+ public static final String REALIZADA_FULL = "marcacoes_estabelecimento.realizada";
+ public static final int REALIZADA_INDEX = 2;
+ public static final String DATA_EMAIL = "data_email";
+ public static final String DATA_EMAIL_FULL = "marcacoes_estabelecimento.data_email";
+ public static final int DATA_EMAIL_INDEX = 3;
+ public static final String DATA_RELATORIO = "data_relatorio";
+ public static final String DATA_RELATORIO_FULL = "marcacoes_estabelecimento.data_relatorio";
+ public static final int DATA_RELATORIO_INDEX = 4;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "marcacoes_estabelecimento.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 5;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, ESTABELECIMENTO_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATA, TABLENAME + "." + REALIZADA, TABLENAME + "." + DATA_EMAIL, TABLENAME + "." + DATA_RELATORIO, TABLENAME + "." + ESTABELECIMENTO_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, ESTABELECIMENTO_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, ESTABELECIMENTO_ID, };
+
+ private Integer id;
+ private java.util.Date data;
+ private String realizada;
+ private java.util.Date data_email;
+ private java.util.Date data_relatorio;
+ private Integer estabelecimento_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public MarcacoesEstabelecimento()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public String getRealizada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( REALIZADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.realizada;
+ }
+
+ public void setRealizada( String realizada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( REALIZADA, realizada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.realizada = realizada;
+ LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_email()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_EMAIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_email;
+ }
+
+ public void setData_email( java.util.Date data_email )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_EMAIL, data_email );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_email = data_email;
+ LAZY_LOADED_OBJECTS.put( DATA_EMAIL, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_relatorio()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_RELATORIO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_relatorio;
+ }
+
+ public void setData_relatorio( java.util.Date data_relatorio )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_RELATORIO, data_relatorio );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_relatorio = data_relatorio;
+ LAZY_LOADED_OBJECTS.put( DATA_RELATORIO, Boolean.TRUE );
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEstabelecimento.ID_INDEX:
+ value = getId();
+ break;
+ case MarcacoesEstabelecimento.DATA_INDEX:
+ value = getData();
+ break;
+ case MarcacoesEstabelecimento.REALIZADA_INDEX:
+ value = getRealizada();
+ break;
+ case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
+ value = getData_email();
+ break;
+ case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
+ value = getData_relatorio();
+ break;
+ case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEstabelecimento.ID_INDEX:
+ value = this.id;
+ break;
+ case MarcacoesEstabelecimento.DATA_INDEX:
+ value = this.data;
+ break;
+ case MarcacoesEstabelecimento.REALIZADA_INDEX:
+ value = this.realizada;
+ break;
+ case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
+ value = this.data_email;
+ break;
+ case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
+ value = this.data_relatorio;
+ break;
+ case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEstabelecimento.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case MarcacoesEstabelecimento.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case MarcacoesEstabelecimento.REALIZADA_INDEX:
+ setRealizada( ( String ) value );
+ break;
+ case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
+ setData_email( ( java.util.Date ) value );
+ break;
+ case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
+ setData_relatorio( ( java.util.Date ) value );
+ break;
+ case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesEstabelecimento.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case MarcacoesEstabelecimento.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case MarcacoesEstabelecimento.REALIZADA_INDEX:
+ this.realizada = ( String ) value;
+ break;
+ case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
+ this.data_email = ( java.util.Date ) value;
+ break;
+ case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
+ this.data_relatorio = ( java.util.Date ) value;
+ break;
+ case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case MarcacoesEstabelecimento.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case MarcacoesEstabelecimento.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesEstabelecimento.REALIZADA_INDEX:
+ theClass = String.class;
+ break;
+ case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : MarcacoesEstabelecimento._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesEstabelecimento.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesTrabalhador.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesTrabalhador.java
new file mode 100644
index 00000000..b45dc69a
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/MarcacoesTrabalhador.java
@@ -0,0 +1,582 @@
+/*
+* MarcacoesTrabalhador.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class MarcacoesTrabalhador extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( MarcacoesTrabalhador.ID, MarcacoesTrabalhador.ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.ID_FULL, MarcacoesTrabalhador.ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.DATA, MarcacoesTrabalhador.DATA_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_FULL, MarcacoesTrabalhador.DATA_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.REALIZADA, MarcacoesTrabalhador.REALIZADA_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.REALIZADA_FULL, MarcacoesTrabalhador.REALIZADA_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_EMAIL, MarcacoesTrabalhador.DATA_EMAIL_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_EMAIL_FULL, MarcacoesTrabalhador.DATA_EMAIL_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_RELATORIO, MarcacoesTrabalhador.DATA_RELATORIO_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_RELATORIO_FULL, MarcacoesTrabalhador.DATA_RELATORIO_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.TIPO, MarcacoesTrabalhador.TIPO_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.TIPO_FULL, MarcacoesTrabalhador.TIPO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( MarcacoesTrabalhador.CLASS_IDENTIFIER, MarcacoesTrabalhador.TRABALHADOR_ID, MarcacoesTrabalhador.TO_TRABALHADOR_ID );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.TRABALHADOR_ID, MarcacoesTrabalhador.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.TRABALHADOR_ID_FULL, MarcacoesTrabalhador.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( MarcacoesTrabalhador.TO_TRABALHADOR_ID, MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
+ new com.evolute.entity.ForeignKey( MarcacoesTrabalhador.class, MarcacoesTrabalhador.TRABALHADOR_ID, db.data.siprp.outer.TrabalhadoresData.class, db.data.siprp.outer.TrabalhadoresData.ID );
+
+ public static final String TABLENAME = "marcacoes_trabalhador";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.marcacoes_trabalhador";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "marcacoes_trabalhador.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "marcacoes_trabalhador.data";
+ public static final int DATA_INDEX = 1;
+ public static final String REALIZADA = "realizada";
+ public static final String REALIZADA_FULL = "marcacoes_trabalhador.realizada";
+ public static final int REALIZADA_INDEX = 2;
+ public static final String DATA_EMAIL = "data_email";
+ public static final String DATA_EMAIL_FULL = "marcacoes_trabalhador.data_email";
+ public static final int DATA_EMAIL_INDEX = 3;
+ public static final String DATA_RELATORIO = "data_relatorio";
+ public static final String DATA_RELATORIO_FULL = "marcacoes_trabalhador.data_relatorio";
+ public static final int DATA_RELATORIO_INDEX = 4;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "marcacoes_trabalhador.tipo";
+ public static final int TIPO_INDEX = 5;
+ public static final String TRABALHADOR_ID = "trabalhador_id";
+ public static final String TRABALHADOR_ID_FULL = "marcacoes_trabalhador.trabalhador_id";
+ public static final int TRABALHADOR_ID_INDEX = 6;
+ public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
+ public static final String TO_TRABALHADOR_ID_FULL = "marcacoes_trabalhador.to_trabalhador_id";
+ public static final int TO_TRABALHADOR_ID_INDEX = 7;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID,
+ TO_TRABALHADOR_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATA, TABLENAME + "." + REALIZADA, TABLENAME + "." + DATA_EMAIL, TABLENAME + "." + DATA_RELATORIO, TABLENAME + "." + TIPO, TABLENAME + "." + TRABALHADOR_ID,
+ TABLENAME + "." + TO_TRABALHADOR_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID, };
+
+ private Integer id;
+ private java.util.Date data;
+ private String realizada;
+ private java.util.Date data_email;
+ private java.util.Date data_relatorio;
+ private Integer tipo;
+ private Integer trabalhador_id;
+ private db.data.siprp.outer.TrabalhadoresData to_trabalhador_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public MarcacoesTrabalhador()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public String getRealizada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( REALIZADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.realizada;
+ }
+
+ public void setRealizada( String realizada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( REALIZADA, realizada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.realizada = realizada;
+ LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_email()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_EMAIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_email;
+ }
+
+ public void setData_email( java.util.Date data_email )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_EMAIL, data_email );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_email = data_email;
+ LAZY_LOADED_OBJECTS.put( DATA_EMAIL, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_relatorio()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_RELATORIO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_relatorio;
+ }
+
+ public void setData_relatorio( java.util.Date data_relatorio )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_RELATORIO, data_relatorio );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_relatorio = data_relatorio;
+ LAZY_LOADED_OBJECTS.put( DATA_RELATORIO, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public Integer getTrabalhador_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TRABALHADOR_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.trabalhador_id;
+ }
+
+ public void setTrabalhador_id( Integer trabalhador_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TRABALHADOR_ID, trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.trabalhador_id = trabalhador_id;
+ LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.TrabalhadoresData toTrabalhador_id()
+ {
+ try
+ {
+ prepare( TO_TRABALHADOR_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_trabalhador_id;
+ }
+
+ public void setToTrabalhador_id( db.data.siprp.outer.TrabalhadoresData to_trabalhador_id )
+ {
+ try
+ {
+ preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_trabalhador_id = to_trabalhador_id;
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesTrabalhador.ID_INDEX:
+ value = getId();
+ break;
+ case MarcacoesTrabalhador.DATA_INDEX:
+ value = getData();
+ break;
+ case MarcacoesTrabalhador.REALIZADA_INDEX:
+ value = getRealizada();
+ break;
+ case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
+ value = getData_email();
+ break;
+ case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
+ value = getData_relatorio();
+ break;
+ case MarcacoesTrabalhador.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
+ value = getTrabalhador_id();
+ break;
+ case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
+ value = toTrabalhador_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesTrabalhador.ID_INDEX:
+ value = this.id;
+ break;
+ case MarcacoesTrabalhador.DATA_INDEX:
+ value = this.data;
+ break;
+ case MarcacoesTrabalhador.REALIZADA_INDEX:
+ value = this.realizada;
+ break;
+ case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
+ value = this.data_email;
+ break;
+ case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
+ value = this.data_relatorio;
+ break;
+ case MarcacoesTrabalhador.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
+ value = this.trabalhador_id;
+ break;
+ case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
+ value = this.to_trabalhador_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesTrabalhador.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case MarcacoesTrabalhador.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case MarcacoesTrabalhador.REALIZADA_INDEX:
+ setRealizada( ( String ) value );
+ break;
+ case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
+ setData_email( ( java.util.Date ) value );
+ break;
+ case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
+ setData_relatorio( ( java.util.Date ) value );
+ break;
+ case MarcacoesTrabalhador.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
+ setTrabalhador_id( ( Integer ) value );
+ break;
+ case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
+ setToTrabalhador_id( ( db.data.siprp.outer.TrabalhadoresData ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case MarcacoesTrabalhador.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case MarcacoesTrabalhador.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case MarcacoesTrabalhador.REALIZADA_INDEX:
+ this.realizada = ( String ) value;
+ break;
+ case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
+ this.data_email = ( java.util.Date ) value;
+ break;
+ case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
+ this.data_relatorio = ( java.util.Date ) value;
+ break;
+ case MarcacoesTrabalhador.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
+ this.trabalhador_id = ( Integer ) value;
+ break;
+ case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
+ this.to_trabalhador_id = ( db.data.siprp.outer.TrabalhadoresData ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case MarcacoesTrabalhador.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case MarcacoesTrabalhador.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesTrabalhador.REALIZADA_INDEX:
+ theClass = String.class;
+ break;
+ case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case MarcacoesTrabalhador.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
+ theClass = db.data.siprp.outer.TrabalhadoresData.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : MarcacoesTrabalhador._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesTrabalhador.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Medicos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Medicos.java
new file mode 100644
index 00000000..944d99da
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Medicos.java
@@ -0,0 +1,394 @@
+/*
+* Medicos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Medicos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Medicos.ID, Medicos.ID_INDEX );
+ FIELD_INDEXES.put( Medicos.ID_FULL, Medicos.ID_INDEX );
+ FIELD_INDEXES.put( Medicos.NOME, Medicos.NOME_INDEX );
+ FIELD_INDEXES.put( Medicos.NOME_FULL, Medicos.NOME_INDEX );
+ FIELD_INDEXES.put( Medicos.NUMERO_CEDULA, Medicos.NUMERO_CEDULA_INDEX );
+ FIELD_INDEXES.put( Medicos.NUMERO_CEDULA_FULL, Medicos.NUMERO_CEDULA_INDEX );
+ FIELD_INDEXES.put( Medicos.INACTIVO, Medicos.INACTIVO_INDEX );
+ FIELD_INDEXES.put( Medicos.INACTIVO_FULL, Medicos.INACTIVO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "medicos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.medicos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "medicos.id";
+ public static final int ID_INDEX = 0;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "medicos.nome";
+ public static final int NOME_INDEX = 1;
+ public static final String NUMERO_CEDULA = "numero_cedula";
+ public static final String NUMERO_CEDULA_FULL = "medicos.numero_cedula";
+ public static final int NUMERO_CEDULA_INDEX = 2;
+ public static final String INACTIVO = "inactivo";
+ public static final String INACTIVO_FULL = "medicos.inactivo";
+ public static final int INACTIVO_INDEX = 3;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ NOME, NUMERO_CEDULA, INACTIVO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + NOME, TABLENAME + "." + NUMERO_CEDULA, TABLENAME + "." + INACTIVO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, NOME, NUMERO_CEDULA, INACTIVO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, NOME, NUMERO_CEDULA, INACTIVO, };
+
+ private Integer id;
+ private String nome;
+ private String numero_cedula;
+ private String inactivo;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Medicos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromExames_medico_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.ExamesData.class , getPrimaryKey().getMap().get("id"), "medico_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public String getNumero_cedula()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NUMERO_CEDULA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.numero_cedula;
+ }
+
+ public void setNumero_cedula( String numero_cedula )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NUMERO_CEDULA, numero_cedula );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.numero_cedula = numero_cedula;
+ LAZY_LOADED_OBJECTS.put( NUMERO_CEDULA, Boolean.TRUE );
+ }
+
+ public String getInactivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( INACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.inactivo;
+ }
+
+ public void setInactivo( String inactivo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( INACTIVO, inactivo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.inactivo = inactivo;
+ LAZY_LOADED_OBJECTS.put( INACTIVO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medicos.ID_INDEX:
+ value = getId();
+ break;
+ case Medicos.NOME_INDEX:
+ value = getNome();
+ break;
+ case Medicos.NUMERO_CEDULA_INDEX:
+ value = getNumero_cedula();
+ break;
+ case Medicos.INACTIVO_INDEX:
+ value = getInactivo();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medicos.ID_INDEX:
+ value = this.id;
+ break;
+ case Medicos.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Medicos.NUMERO_CEDULA_INDEX:
+ value = this.numero_cedula;
+ break;
+ case Medicos.INACTIVO_INDEX:
+ value = this.inactivo;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medicos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Medicos.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Medicos.NUMERO_CEDULA_INDEX:
+ setNumero_cedula( ( String ) value );
+ break;
+ case Medicos.INACTIVO_INDEX:
+ setInactivo( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medicos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Medicos.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Medicos.NUMERO_CEDULA_INDEX:
+ this.numero_cedula = ( String ) value;
+ break;
+ case Medicos.INACTIVO_INDEX:
+ this.inactivo = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Medicos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Medicos.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Medicos.NUMERO_CEDULA_INDEX:
+ theClass = String.class;
+ break;
+ case Medicos.INACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Medicos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Medicos.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Medidas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Medidas.java
new file mode 100644
index 00000000..bbc281d0
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Medidas.java
@@ -0,0 +1,381 @@
+/*
+* Medidas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Medidas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Medidas.ID, Medidas.ID_INDEX );
+ FIELD_INDEXES.put( Medidas.ID_FULL, Medidas.ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Medidas.CLASS_IDENTIFIER, Medidas.ANALISE_ID, Medidas.TO_ANALISE_ID );
+ FIELD_INDEXES.put( Medidas.ANALISE_ID, Medidas.ANALISE_ID_INDEX );
+ FIELD_INDEXES.put( Medidas.ANALISE_ID_FULL, Medidas.ANALISE_ID_INDEX );
+ FIELD_INDEXES.put( Medidas.TO_ANALISE_ID, Medidas.TO_ANALISE_ID_INDEX );
+ FIELD_INDEXES.put( Medidas.MEDIDA, Medidas.MEDIDA_INDEX );
+ FIELD_INDEXES.put( Medidas.MEDIDA_FULL, Medidas.MEDIDA_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyanalise_idToanalises_acidentes =
+ new com.evolute.entity.ForeignKey( Medidas.class, Medidas.ANALISE_ID, db.data.siprp.outer.AnalisesAcidentesData.class, db.data.siprp.outer.AnalisesAcidentesData.ID );
+
+ public static final String TABLENAME = "medidas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.medidas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "medidas.id";
+ public static final int ID_INDEX = 0;
+ public static final String ANALISE_ID = "analise_id";
+ public static final String ANALISE_ID_FULL = "medidas.analise_id";
+ public static final int ANALISE_ID_INDEX = 1;
+ public static final String TO_ANALISE_ID = "to_analise_id";
+ public static final String TO_ANALISE_ID_FULL = "medidas.to_analise_id";
+ public static final int TO_ANALISE_ID_INDEX = 2;
+ public static final String MEDIDA = "medida";
+ public static final String MEDIDA_FULL = "medidas.medida";
+ public static final int MEDIDA_INDEX = 3;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ ANALISE_ID, TO_ANALISE_ID, MEDIDA, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + ANALISE_ID, TABLENAME + "." + TO_ANALISE_ID, TABLENAME + "." + MEDIDA, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, ANALISE_ID, MEDIDA, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, ANALISE_ID, MEDIDA, };
+
+ private Integer id;
+ private Integer analise_id;
+ private db.data.siprp.outer.AnalisesAcidentesData to_analise_id;
+ private String medida;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Medidas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getAnalise_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ANALISE_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.analise_id;
+ }
+
+ public void setAnalise_id( Integer analise_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ANALISE_ID, analise_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.analise_id = analise_id;
+ LAZY_LOADED_OBJECTS.put( ANALISE_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.AnalisesAcidentesData toAnalise_id()
+ {
+ try
+ {
+ prepare( TO_ANALISE_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_analise_id;
+ }
+
+ public void setToAnalise_id( db.data.siprp.outer.AnalisesAcidentesData to_analise_id )
+ {
+ try
+ {
+ preProcess( TO_ANALISE_ID, to_analise_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_analise_id = to_analise_id;
+ }
+
+ public String getMedida()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDIDA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medida;
+ }
+
+ public void setMedida( String medida )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDIDA, medida );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medida = medida;
+ LAZY_LOADED_OBJECTS.put( MEDIDA, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medidas.ID_INDEX:
+ value = getId();
+ break;
+ case Medidas.ANALISE_ID_INDEX:
+ value = getAnalise_id();
+ break;
+ case Medidas.TO_ANALISE_ID_INDEX:
+ value = toAnalise_id();
+ break;
+ case Medidas.MEDIDA_INDEX:
+ value = getMedida();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medidas.ID_INDEX:
+ value = this.id;
+ break;
+ case Medidas.ANALISE_ID_INDEX:
+ value = this.analise_id;
+ break;
+ case Medidas.TO_ANALISE_ID_INDEX:
+ value = this.to_analise_id;
+ break;
+ case Medidas.MEDIDA_INDEX:
+ value = this.medida;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medidas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Medidas.ANALISE_ID_INDEX:
+ setAnalise_id( ( Integer ) value );
+ break;
+ case Medidas.TO_ANALISE_ID_INDEX:
+ setToAnalise_id( ( db.data.siprp.outer.AnalisesAcidentesData ) value );
+ break;
+ case Medidas.MEDIDA_INDEX:
+ setMedida( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Medidas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Medidas.ANALISE_ID_INDEX:
+ this.analise_id = ( Integer ) value;
+ break;
+ case Medidas.TO_ANALISE_ID_INDEX:
+ this.to_analise_id = ( db.data.siprp.outer.AnalisesAcidentesData ) value;
+ break;
+ case Medidas.MEDIDA_INDEX:
+ this.medida = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Medidas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Medidas.ANALISE_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Medidas.TO_ANALISE_ID_INDEX:
+ theClass = db.data.siprp.outer.AnalisesAcidentesData.class;
+ break;
+ case Medidas.MEDIDA_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Medidas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Medidas.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/NotNoticias.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/NotNoticias.java
new file mode 100644
index 00000000..74589834
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/NotNoticias.java
@@ -0,0 +1,431 @@
+/*
+* NotNoticias.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class NotNoticias extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( NotNoticias.ID, NotNoticias.ID_INDEX );
+ FIELD_INDEXES.put( NotNoticias.ID_FULL, NotNoticias.ID_INDEX );
+ FIELD_INDEXES.put( NotNoticias.DATA, NotNoticias.DATA_INDEX );
+ FIELD_INDEXES.put( NotNoticias.DATA_FULL, NotNoticias.DATA_INDEX );
+ FIELD_INDEXES.put( NotNoticias.STAMP, NotNoticias.STAMP_INDEX );
+ FIELD_INDEXES.put( NotNoticias.STAMP_FULL, NotNoticias.STAMP_INDEX );
+ FIELD_INDEXES.put( NotNoticias.UTILIZADOR, NotNoticias.UTILIZADOR_INDEX );
+ FIELD_INDEXES.put( NotNoticias.UTILIZADOR_FULL, NotNoticias.UTILIZADOR_INDEX );
+ FIELD_INDEXES.put( NotNoticias.NOTICIA, NotNoticias.NOTICIA_INDEX );
+ FIELD_INDEXES.put( NotNoticias.NOTICIA_FULL, NotNoticias.NOTICIA_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "not_noticias";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.not_noticias";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "not_noticias.id";
+ public static final int ID_INDEX = 0;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "not_noticias.data";
+ public static final int DATA_INDEX = 1;
+ public static final String STAMP = "stamp";
+ public static final String STAMP_FULL = "not_noticias.stamp";
+ public static final int STAMP_INDEX = 2;
+ public static final String UTILIZADOR = "utilizador";
+ public static final String UTILIZADOR_FULL = "not_noticias.utilizador";
+ public static final int UTILIZADOR_INDEX = 3;
+ public static final String NOTICIA = "noticia";
+ public static final String NOTICIA_FULL = "not_noticias.noticia";
+ public static final int NOTICIA_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DATA, STAMP, UTILIZADOR, NOTICIA, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DATA, TABLENAME + "." + STAMP, TABLENAME + "." + UTILIZADOR, TABLENAME + "." + NOTICIA, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DATA, STAMP, UTILIZADOR, NOTICIA, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DATA, STAMP, UTILIZADOR, NOTICIA, };
+
+ private Integer id;
+ private java.util.Date data;
+ private java.sql.Timestamp stamp;
+ private String utilizador;
+ private String noticia;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public NotNoticias()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getStamp()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( STAMP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.stamp;
+ }
+
+ public void setStamp( java.sql.Timestamp stamp )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( STAMP, stamp );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.stamp = stamp;
+ LAZY_LOADED_OBJECTS.put( STAMP, Boolean.TRUE );
+ }
+
+ public String getUtilizador()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( UTILIZADOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.utilizador;
+ }
+
+ public void setUtilizador( String utilizador )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( UTILIZADOR, utilizador );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.utilizador = utilizador;
+ LAZY_LOADED_OBJECTS.put( UTILIZADOR, Boolean.TRUE );
+ }
+
+ public String getNoticia()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOTICIA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.noticia;
+ }
+
+ public void setNoticia( String noticia )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOTICIA, noticia );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.noticia = noticia;
+ LAZY_LOADED_OBJECTS.put( NOTICIA, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case NotNoticias.ID_INDEX:
+ value = getId();
+ break;
+ case NotNoticias.DATA_INDEX:
+ value = getData();
+ break;
+ case NotNoticias.STAMP_INDEX:
+ value = getStamp();
+ break;
+ case NotNoticias.UTILIZADOR_INDEX:
+ value = getUtilizador();
+ break;
+ case NotNoticias.NOTICIA_INDEX:
+ value = getNoticia();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case NotNoticias.ID_INDEX:
+ value = this.id;
+ break;
+ case NotNoticias.DATA_INDEX:
+ value = this.data;
+ break;
+ case NotNoticias.STAMP_INDEX:
+ value = this.stamp;
+ break;
+ case NotNoticias.UTILIZADOR_INDEX:
+ value = this.utilizador;
+ break;
+ case NotNoticias.NOTICIA_INDEX:
+ value = this.noticia;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case NotNoticias.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case NotNoticias.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case NotNoticias.STAMP_INDEX:
+ setStamp( ( java.sql.Timestamp ) value );
+ break;
+ case NotNoticias.UTILIZADOR_INDEX:
+ setUtilizador( ( String ) value );
+ break;
+ case NotNoticias.NOTICIA_INDEX:
+ setNoticia( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case NotNoticias.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case NotNoticias.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case NotNoticias.STAMP_INDEX:
+ this.stamp = ( java.sql.Timestamp ) value;
+ break;
+ case NotNoticias.UTILIZADOR_INDEX:
+ this.utilizador = ( String ) value;
+ break;
+ case NotNoticias.NOTICIA_INDEX:
+ this.noticia = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case NotNoticias.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case NotNoticias.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case NotNoticias.STAMP_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case NotNoticias.UTILIZADOR_INDEX:
+ theClass = String.class;
+ break;
+ case NotNoticias.NOTICIA_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : NotNoticias._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, NotNoticias.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Permissoes.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Permissoes.java
new file mode 100644
index 00000000..c1b739cd
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Permissoes.java
@@ -0,0 +1,330 @@
+/*
+* Permissoes.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Permissoes extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Permissoes.ID, Permissoes.ID_INDEX );
+ FIELD_INDEXES.put( Permissoes.ID_FULL, Permissoes.ID_INDEX );
+ FIELD_INDEXES.put( Permissoes.USER_ID, Permissoes.USER_ID_INDEX );
+ FIELD_INDEXES.put( Permissoes.USER_ID_FULL, Permissoes.USER_ID_INDEX );
+ FIELD_INDEXES.put( Permissoes.CODIGO_PERMISSAO, Permissoes.CODIGO_PERMISSAO_INDEX );
+ FIELD_INDEXES.put( Permissoes.CODIGO_PERMISSAO_FULL, Permissoes.CODIGO_PERMISSAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "permissoes";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.permissoes";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "permissoes.id";
+ public static final int ID_INDEX = 0;
+ public static final String USER_ID = "user_id";
+ public static final String USER_ID_FULL = "permissoes.user_id";
+ public static final int USER_ID_INDEX = 1;
+ public static final String CODIGO_PERMISSAO = "codigo_permissao";
+ public static final String CODIGO_PERMISSAO_FULL = "permissoes.codigo_permissao";
+ public static final int CODIGO_PERMISSAO_INDEX = 2;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ USER_ID, CODIGO_PERMISSAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + USER_ID, TABLENAME + "." + CODIGO_PERMISSAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, USER_ID, CODIGO_PERMISSAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, USER_ID, CODIGO_PERMISSAO, };
+
+ private Integer id;
+ private Integer user_id;
+ private Integer codigo_permissao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Permissoes()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getUser_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( USER_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.user_id;
+ }
+
+ public void setUser_id( Integer user_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( USER_ID, user_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.user_id = user_id;
+ LAZY_LOADED_OBJECTS.put( USER_ID, Boolean.TRUE );
+ }
+
+ public Integer getCodigo_permissao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO_PERMISSAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo_permissao;
+ }
+
+ public void setCodigo_permissao( Integer codigo_permissao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO_PERMISSAO, codigo_permissao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo_permissao = codigo_permissao;
+ LAZY_LOADED_OBJECTS.put( CODIGO_PERMISSAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Permissoes.ID_INDEX:
+ value = getId();
+ break;
+ case Permissoes.USER_ID_INDEX:
+ value = getUser_id();
+ break;
+ case Permissoes.CODIGO_PERMISSAO_INDEX:
+ value = getCodigo_permissao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Permissoes.ID_INDEX:
+ value = this.id;
+ break;
+ case Permissoes.USER_ID_INDEX:
+ value = this.user_id;
+ break;
+ case Permissoes.CODIGO_PERMISSAO_INDEX:
+ value = this.codigo_permissao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Permissoes.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Permissoes.USER_ID_INDEX:
+ setUser_id( ( Integer ) value );
+ break;
+ case Permissoes.CODIGO_PERMISSAO_INDEX:
+ setCodigo_permissao( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Permissoes.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Permissoes.USER_ID_INDEX:
+ this.user_id = ( Integer ) value;
+ break;
+ case Permissoes.CODIGO_PERMISSAO_INDEX:
+ this.codigo_permissao = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Permissoes.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Permissoes.USER_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Permissoes.CODIGO_PERMISSAO_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Permissoes._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Permissoes.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoAreas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoAreas.java
new file mode 100644
index 00000000..f00dbb55
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoAreas.java
@@ -0,0 +1,445 @@
+/*
+* PlanoAreas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class PlanoAreas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( PlanoAreas.DESCRICAO, PlanoAreas.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.DESCRICAO_FULL, PlanoAreas.DESCRICAO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanoAreas.CLASS_IDENTIFIER, PlanoAreas.PLANO_ID, PlanoAreas.TO_PLANO_ID );
+ FIELD_INDEXES.put( PlanoAreas.PLANO_ID, PlanoAreas.PLANO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.PLANO_ID_FULL, PlanoAreas.PLANO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.TO_PLANO_ID, PlanoAreas.TO_PLANO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.ID, PlanoAreas.ID_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.ID_FULL, PlanoAreas.ID_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.AREA_ID, PlanoAreas.AREA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoAreas.AREA_ID_FULL, PlanoAreas.AREA_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyplano_idToplanos_actuacao =
+ new com.evolute.entity.ForeignKey( PlanoAreas.class, PlanoAreas.PLANO_ID, db.data.siprp.outer.PlanosActuacaoData.class, db.data.siprp.outer.PlanosActuacaoData.ID );
+
+ public static final String TABLENAME = "plano_areas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_areas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "plano_areas.descricao";
+ public static final int DESCRICAO_INDEX = 0;
+ public static final String PLANO_ID = "plano_id";
+ public static final String PLANO_ID_FULL = "plano_areas.plano_id";
+ public static final int PLANO_ID_INDEX = 1;
+ public static final String TO_PLANO_ID = "to_plano_id";
+ public static final String TO_PLANO_ID_FULL = "plano_areas.to_plano_id";
+ public static final int TO_PLANO_ID_INDEX = 2;
+ public static final String ID = "id";
+ public static final String ID_FULL = "plano_areas.id";
+ public static final int ID_INDEX = 3;
+ public static final String AREA_ID = "area_id";
+ public static final String AREA_ID_FULL = "plano_areas.area_id";
+ public static final int AREA_ID_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, PLANO_ID, TO_PLANO_ID, AREA_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + PLANO_ID, TABLENAME + "." + TO_PLANO_ID, TABLENAME + "." + AREA_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ DESCRICAO, PLANO_ID, ID, AREA_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ DESCRICAO, PLANO_ID, ID, AREA_ID, };
+
+ private String descricao;
+ private Integer plano_id;
+ private db.data.siprp.outer.PlanosActuacaoData to_plano_id;
+ private Integer id;
+ private Integer area_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public PlanoAreas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false };
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Integer getPlano_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PLANO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.plano_id;
+ }
+
+ public void setPlano_id( Integer plano_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PLANO_ID, plano_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.plano_id = plano_id;
+ LAZY_LOADED_OBJECTS.put( PLANO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.PlanosActuacaoData toPlano_id()
+ {
+ try
+ {
+ prepare( TO_PLANO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_plano_id;
+ }
+
+ public void setToPlano_id( db.data.siprp.outer.PlanosActuacaoData to_plano_id )
+ {
+ try
+ {
+ preProcess( TO_PLANO_ID, to_plano_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_plano_id = to_plano_id;
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromPlanoRiscos_area_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanoRiscosData.class , getPrimaryKey().getMap().get("id"), "area_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public Integer getArea_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AREA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.area_id;
+ }
+
+ public void setArea_id( Integer area_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AREA_ID, area_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.area_id = area_id;
+ LAZY_LOADED_OBJECTS.put( AREA_ID, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoAreas.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case PlanoAreas.PLANO_ID_INDEX:
+ value = getPlano_id();
+ break;
+ case PlanoAreas.TO_PLANO_ID_INDEX:
+ value = toPlano_id();
+ break;
+ case PlanoAreas.ID_INDEX:
+ value = getId();
+ break;
+ case PlanoAreas.AREA_ID_INDEX:
+ value = getArea_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoAreas.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case PlanoAreas.PLANO_ID_INDEX:
+ value = this.plano_id;
+ break;
+ case PlanoAreas.TO_PLANO_ID_INDEX:
+ value = this.to_plano_id;
+ break;
+ case PlanoAreas.ID_INDEX:
+ value = this.id;
+ break;
+ case PlanoAreas.AREA_ID_INDEX:
+ value = this.area_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoAreas.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case PlanoAreas.PLANO_ID_INDEX:
+ setPlano_id( ( Integer ) value );
+ break;
+ case PlanoAreas.TO_PLANO_ID_INDEX:
+ setToPlano_id( ( db.data.siprp.outer.PlanosActuacaoData ) value );
+ break;
+ case PlanoAreas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case PlanoAreas.AREA_ID_INDEX:
+ setArea_id( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoAreas.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case PlanoAreas.PLANO_ID_INDEX:
+ this.plano_id = ( Integer ) value;
+ break;
+ case PlanoAreas.TO_PLANO_ID_INDEX:
+ this.to_plano_id = ( db.data.siprp.outer.PlanosActuacaoData ) value;
+ break;
+ case PlanoAreas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case PlanoAreas.AREA_ID_INDEX:
+ this.area_id = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case PlanoAreas.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoAreas.PLANO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoAreas.TO_PLANO_ID_INDEX:
+ theClass = db.data.siprp.outer.PlanosActuacaoData.class;
+ break;
+ case PlanoAreas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoAreas.AREA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : PlanoAreas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PlanoAreas.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoMedidas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoMedidas.java
new file mode 100644
index 00000000..edcfc121
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoMedidas.java
@@ -0,0 +1,547 @@
+/*
+* PlanoMedidas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class PlanoMedidas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( PlanoMedidas.DESCRICAO, PlanoMedidas.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.DESCRICAO_FULL, PlanoMedidas.DESCRICAO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanoMedidas.CLASS_IDENTIFIER, PlanoMedidas.RISCO_ID, PlanoMedidas.TO_RISCO_ID );
+ FIELD_INDEXES.put( PlanoMedidas.RISCO_ID, PlanoMedidas.RISCO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.RISCO_ID_FULL, PlanoMedidas.RISCO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.TO_RISCO_ID, PlanoMedidas.TO_RISCO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.ID, PlanoMedidas.ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.ID_FULL, PlanoMedidas.ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.MEDIDA_ID, PlanoMedidas.MEDIDA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.MEDIDA_ID_FULL, PlanoMedidas.MEDIDA_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanoMedidas.CLASS_IDENTIFIER, PlanoMedidas.ESTADO_MEDIDAS_ID, PlanoMedidas.TO_ESTADO_MEDIDAS_ID );
+ FIELD_INDEXES.put( PlanoMedidas.ESTADO_MEDIDAS_ID, PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.ESTADO_MEDIDAS_ID_FULL, PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX );
+ FIELD_INDEXES.put( PlanoMedidas.TO_ESTADO_MEDIDAS_ID, PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyrisco_idToplano_riscos =
+ new com.evolute.entity.ForeignKey( PlanoMedidas.class, PlanoMedidas.RISCO_ID, db.data.siprp.outer.PlanoRiscosData.class, db.data.siprp.outer.PlanoRiscosData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyestado_medidas_idToestado_medidas =
+ new com.evolute.entity.ForeignKey( PlanoMedidas.class, PlanoMedidas.ESTADO_MEDIDAS_ID, db.data.siprp.outer.EstadoMedidasData.class, db.data.siprp.outer.EstadoMedidasData.ID );
+
+ public static final String TABLENAME = "plano_medidas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_medidas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "plano_medidas.descricao";
+ public static final int DESCRICAO_INDEX = 0;
+ public static final String RISCO_ID = "risco_id";
+ public static final String RISCO_ID_FULL = "plano_medidas.risco_id";
+ public static final int RISCO_ID_INDEX = 1;
+ public static final String TO_RISCO_ID = "to_risco_id";
+ public static final String TO_RISCO_ID_FULL = "plano_medidas.to_risco_id";
+ public static final int TO_RISCO_ID_INDEX = 2;
+ public static final String ID = "id";
+ public static final String ID_FULL = "plano_medidas.id";
+ public static final int ID_INDEX = 3;
+ public static final String MEDIDA_ID = "medida_id";
+ public static final String MEDIDA_ID_FULL = "plano_medidas.medida_id";
+ public static final int MEDIDA_ID_INDEX = 4;
+ public static final String ESTADO_MEDIDAS_ID = "estado_medidas_id";
+ public static final String ESTADO_MEDIDAS_ID_FULL = "plano_medidas.estado_medidas_id";
+ public static final int ESTADO_MEDIDAS_ID_INDEX = 5;
+ public static final String TO_ESTADO_MEDIDAS_ID = "to_estado_medidas_id";
+ public static final String TO_ESTADO_MEDIDAS_ID_FULL = "plano_medidas.to_estado_medidas_id";
+ public static final int TO_ESTADO_MEDIDAS_ID_INDEX = 6;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, RISCO_ID, TO_RISCO_ID, MEDIDA_ID, ESTADO_MEDIDAS_ID,
+ TO_ESTADO_MEDIDAS_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + RISCO_ID, TABLENAME + "." + TO_RISCO_ID, TABLENAME + "." + MEDIDA_ID, TABLENAME + "." + ESTADO_MEDIDAS_ID,
+ TABLENAME + "." + TO_ESTADO_MEDIDAS_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ DESCRICAO, RISCO_ID, ID, MEDIDA_ID, ESTADO_MEDIDAS_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ DESCRICAO, RISCO_ID, ID, MEDIDA_ID, ESTADO_MEDIDAS_ID, };
+
+ private String descricao;
+ private Integer risco_id;
+ private db.data.siprp.outer.PlanoRiscosData to_risco_id;
+ private Integer id;
+ private Integer medida_id;
+ private Integer estado_medidas_id;
+ private db.data.siprp.outer.EstadoMedidasData to_estado_medidas_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public PlanoMedidas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false };
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Integer getRisco_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RISCO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.risco_id;
+ }
+
+ public void setRisco_id( Integer risco_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RISCO_ID, risco_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.risco_id = risco_id;
+ LAZY_LOADED_OBJECTS.put( RISCO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.PlanoRiscosData toRisco_id()
+ {
+ try
+ {
+ prepare( TO_RISCO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_risco_id;
+ }
+
+ public void setToRisco_id( db.data.siprp.outer.PlanoRiscosData to_risco_id )
+ {
+ try
+ {
+ preProcess( TO_RISCO_ID, to_risco_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_risco_id = to_risco_id;
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromPlanoPostosTrabalho_medida_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanoPostosTrabalhoData.class , getPrimaryKey().getMap().get("id"), "medida_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public Integer getMedida_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDIDA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medida_id;
+ }
+
+ public void setMedida_id( Integer medida_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDIDA_ID, medida_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medida_id = medida_id;
+ LAZY_LOADED_OBJECTS.put( MEDIDA_ID, Boolean.TRUE );
+ }
+
+ public Integer getEstado_medidas_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTADO_MEDIDAS_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estado_medidas_id;
+ }
+
+ public void setEstado_medidas_id( Integer estado_medidas_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTADO_MEDIDAS_ID, estado_medidas_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estado_medidas_id = estado_medidas_id;
+ LAZY_LOADED_OBJECTS.put( ESTADO_MEDIDAS_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EstadoMedidasData toEstado_medidas_id()
+ {
+ try
+ {
+ prepare( TO_ESTADO_MEDIDAS_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_estado_medidas_id;
+ }
+
+ public void setToEstado_medidas_id( db.data.siprp.outer.EstadoMedidasData to_estado_medidas_id )
+ {
+ try
+ {
+ preProcess( TO_ESTADO_MEDIDAS_ID, to_estado_medidas_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_estado_medidas_id = to_estado_medidas_id;
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoMedidas.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case PlanoMedidas.RISCO_ID_INDEX:
+ value = getRisco_id();
+ break;
+ case PlanoMedidas.TO_RISCO_ID_INDEX:
+ value = toRisco_id();
+ break;
+ case PlanoMedidas.ID_INDEX:
+ value = getId();
+ break;
+ case PlanoMedidas.MEDIDA_ID_INDEX:
+ value = getMedida_id();
+ break;
+ case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
+ value = getEstado_medidas_id();
+ break;
+ case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
+ value = toEstado_medidas_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoMedidas.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case PlanoMedidas.RISCO_ID_INDEX:
+ value = this.risco_id;
+ break;
+ case PlanoMedidas.TO_RISCO_ID_INDEX:
+ value = this.to_risco_id;
+ break;
+ case PlanoMedidas.ID_INDEX:
+ value = this.id;
+ break;
+ case PlanoMedidas.MEDIDA_ID_INDEX:
+ value = this.medida_id;
+ break;
+ case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
+ value = this.estado_medidas_id;
+ break;
+ case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
+ value = this.to_estado_medidas_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoMedidas.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case PlanoMedidas.RISCO_ID_INDEX:
+ setRisco_id( ( Integer ) value );
+ break;
+ case PlanoMedidas.TO_RISCO_ID_INDEX:
+ setToRisco_id( ( db.data.siprp.outer.PlanoRiscosData ) value );
+ break;
+ case PlanoMedidas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case PlanoMedidas.MEDIDA_ID_INDEX:
+ setMedida_id( ( Integer ) value );
+ break;
+ case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
+ setEstado_medidas_id( ( Integer ) value );
+ break;
+ case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
+ setToEstado_medidas_id( ( db.data.siprp.outer.EstadoMedidasData ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoMedidas.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case PlanoMedidas.RISCO_ID_INDEX:
+ this.risco_id = ( Integer ) value;
+ break;
+ case PlanoMedidas.TO_RISCO_ID_INDEX:
+ this.to_risco_id = ( db.data.siprp.outer.PlanoRiscosData ) value;
+ break;
+ case PlanoMedidas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case PlanoMedidas.MEDIDA_ID_INDEX:
+ this.medida_id = ( Integer ) value;
+ break;
+ case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
+ this.estado_medidas_id = ( Integer ) value;
+ break;
+ case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
+ this.to_estado_medidas_id = ( db.data.siprp.outer.EstadoMedidasData ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case PlanoMedidas.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoMedidas.RISCO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoMedidas.TO_RISCO_ID_INDEX:
+ theClass = db.data.siprp.outer.PlanoRiscosData.class;
+ break;
+ case PlanoMedidas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoMedidas.MEDIDA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
+ theClass = db.data.siprp.outer.EstadoMedidasData.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : PlanoMedidas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PlanoMedidas.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoPostosTrabalho.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoPostosTrabalho.java
new file mode 100644
index 00000000..5de651e4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoPostosTrabalho.java
@@ -0,0 +1,431 @@
+/*
+* PlanoPostosTrabalho.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class PlanoPostosTrabalho extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( PlanoPostosTrabalho.DESCRICAO, PlanoPostosTrabalho.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.DESCRICAO_FULL, PlanoPostosTrabalho.DESCRICAO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanoPostosTrabalho.CLASS_IDENTIFIER, PlanoPostosTrabalho.MEDIDA_ID, PlanoPostosTrabalho.TO_MEDIDA_ID );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.MEDIDA_ID, PlanoPostosTrabalho.MEDIDA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.MEDIDA_ID_FULL, PlanoPostosTrabalho.MEDIDA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.TO_MEDIDA_ID, PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.ID, PlanoPostosTrabalho.ID_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.ID_FULL, PlanoPostosTrabalho.ID_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.POSTO_ID, PlanoPostosTrabalho.POSTO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoPostosTrabalho.POSTO_ID_FULL, PlanoPostosTrabalho.POSTO_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeymedida_idToplano_medidas =
+ new com.evolute.entity.ForeignKey( PlanoPostosTrabalho.class, PlanoPostosTrabalho.MEDIDA_ID, db.data.siprp.outer.PlanoMedidasData.class, db.data.siprp.outer.PlanoMedidasData.ID );
+
+ public static final String TABLENAME = "plano_postos_trabalho";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_postos_trabalho";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "plano_postos_trabalho.descricao";
+ public static final int DESCRICAO_INDEX = 0;
+ public static final String MEDIDA_ID = "medida_id";
+ public static final String MEDIDA_ID_FULL = "plano_postos_trabalho.medida_id";
+ public static final int MEDIDA_ID_INDEX = 1;
+ public static final String TO_MEDIDA_ID = "to_medida_id";
+ public static final String TO_MEDIDA_ID_FULL = "plano_postos_trabalho.to_medida_id";
+ public static final int TO_MEDIDA_ID_INDEX = 2;
+ public static final String ID = "id";
+ public static final String ID_FULL = "plano_postos_trabalho.id";
+ public static final int ID_INDEX = 3;
+ public static final String POSTO_ID = "posto_id";
+ public static final String POSTO_ID_FULL = "plano_postos_trabalho.posto_id";
+ public static final int POSTO_ID_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, MEDIDA_ID, TO_MEDIDA_ID, POSTO_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + MEDIDA_ID, TABLENAME + "." + TO_MEDIDA_ID, TABLENAME + "." + POSTO_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ DESCRICAO, MEDIDA_ID, ID, POSTO_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ DESCRICAO, MEDIDA_ID, ID, POSTO_ID, };
+
+ private String descricao;
+ private Integer medida_id;
+ private db.data.siprp.outer.PlanoMedidasData to_medida_id;
+ private Integer id;
+ private Integer posto_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public PlanoPostosTrabalho()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false };
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Integer getMedida_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDIDA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medida_id;
+ }
+
+ public void setMedida_id( Integer medida_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDIDA_ID, medida_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medida_id = medida_id;
+ LAZY_LOADED_OBJECTS.put( MEDIDA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.PlanoMedidasData toMedida_id()
+ {
+ try
+ {
+ prepare( TO_MEDIDA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_medida_id;
+ }
+
+ public void setToMedida_id( db.data.siprp.outer.PlanoMedidasData to_medida_id )
+ {
+ try
+ {
+ preProcess( TO_MEDIDA_ID, to_medida_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_medida_id = to_medida_id;
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getPosto_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( POSTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.posto_id;
+ }
+
+ public void setPosto_id( Integer posto_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( POSTO_ID, posto_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.posto_id = posto_id;
+ LAZY_LOADED_OBJECTS.put( POSTO_ID, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoPostosTrabalho.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
+ value = getMedida_id();
+ break;
+ case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
+ value = toMedida_id();
+ break;
+ case PlanoPostosTrabalho.ID_INDEX:
+ value = getId();
+ break;
+ case PlanoPostosTrabalho.POSTO_ID_INDEX:
+ value = getPosto_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoPostosTrabalho.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
+ value = this.medida_id;
+ break;
+ case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
+ value = this.to_medida_id;
+ break;
+ case PlanoPostosTrabalho.ID_INDEX:
+ value = this.id;
+ break;
+ case PlanoPostosTrabalho.POSTO_ID_INDEX:
+ value = this.posto_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoPostosTrabalho.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
+ setMedida_id( ( Integer ) value );
+ break;
+ case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
+ setToMedida_id( ( db.data.siprp.outer.PlanoMedidasData ) value );
+ break;
+ case PlanoPostosTrabalho.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case PlanoPostosTrabalho.POSTO_ID_INDEX:
+ setPosto_id( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoPostosTrabalho.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
+ this.medida_id = ( Integer ) value;
+ break;
+ case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
+ this.to_medida_id = ( db.data.siprp.outer.PlanoMedidasData ) value;
+ break;
+ case PlanoPostosTrabalho.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case PlanoPostosTrabalho.POSTO_ID_INDEX:
+ this.posto_id = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case PlanoPostosTrabalho.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
+ theClass = db.data.siprp.outer.PlanoMedidasData.class;
+ break;
+ case PlanoPostosTrabalho.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoPostosTrabalho.POSTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : PlanoPostosTrabalho._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PlanoPostosTrabalho.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoRiscos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoRiscos.java
new file mode 100644
index 00000000..a13ad77b
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanoRiscos.java
@@ -0,0 +1,952 @@
+/*
+* PlanoRiscos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class PlanoRiscos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( PlanoRiscos.DESCRICAO, PlanoRiscos.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.DESCRICAO_FULL, PlanoRiscos.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.ACTIVO, PlanoRiscos.ACTIVO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.ACTIVO_FULL, PlanoRiscos.ACTIVO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanoRiscos.CLASS_IDENTIFIER, PlanoRiscos.AREA_ID, PlanoRiscos.TO_AREA_ID );
+ FIELD_INDEXES.put( PlanoRiscos.AREA_ID, PlanoRiscos.AREA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.AREA_ID_FULL, PlanoRiscos.AREA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.TO_AREA_ID, PlanoRiscos.TO_AREA_ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.ID, PlanoRiscos.ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.ID_FULL, PlanoRiscos.ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.VALOR, PlanoRiscos.VALOR_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.VALOR_FULL, PlanoRiscos.VALOR_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.RESPONSAVEL_EXECUCAO, PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.RESPONSAVEL_EXECUCAO_FULL, PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.RECURSOS_NECESSARIOS, PlanoRiscos.RECURSOS_NECESSARIOS_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.RECURSOS_NECESSARIOS_FULL, PlanoRiscos.RECURSOS_NECESSARIOS_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.DATA_INICIO, PlanoRiscos.DATA_INICIO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.DATA_INICIO_FULL, PlanoRiscos.DATA_INICIO_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.DATA_FIM, PlanoRiscos.DATA_FIM_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.DATA_FIM_FULL, PlanoRiscos.DATA_FIM_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.PARECER_DL, PlanoRiscos.PARECER_DL_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.PARECER_DL_FULL, PlanoRiscos.PARECER_DL_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.PARECER_DNS, PlanoRiscos.PARECER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.PARECER_DNS_FULL, PlanoRiscos.PARECER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.VERIFICACAO_SIPRP, PlanoRiscos.VERIFICACAO_SIPRP_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.VERIFICACAO_SIPRP_FULL, PlanoRiscos.VERIFICACAO_SIPRP_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.RISCO_ID, PlanoRiscos.RISCO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.RISCO_ID_FULL, PlanoRiscos.RISCO_ID_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.POR, PlanoRiscos.POR_INDEX );
+ FIELD_INDEXES.put( PlanoRiscos.POR_FULL, PlanoRiscos.POR_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyarea_idToplano_areas =
+ new com.evolute.entity.ForeignKey( PlanoRiscos.class, PlanoRiscos.AREA_ID, db.data.siprp.outer.PlanoAreasData.class, db.data.siprp.outer.PlanoAreasData.ID );
+
+ public static final String TABLENAME = "plano_riscos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_riscos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "plano_riscos.descricao";
+ public static final int DESCRICAO_INDEX = 0;
+ public static final String ACTIVO = "activo";
+ public static final String ACTIVO_FULL = "plano_riscos.activo";
+ public static final int ACTIVO_INDEX = 1;
+ public static final String AREA_ID = "area_id";
+ public static final String AREA_ID_FULL = "plano_riscos.area_id";
+ public static final int AREA_ID_INDEX = 2;
+ public static final String TO_AREA_ID = "to_area_id";
+ public static final String TO_AREA_ID_FULL = "plano_riscos.to_area_id";
+ public static final int TO_AREA_ID_INDEX = 3;
+ public static final String ID = "id";
+ public static final String ID_FULL = "plano_riscos.id";
+ public static final int ID_INDEX = 4;
+ public static final String VALOR = "valor";
+ public static final String VALOR_FULL = "plano_riscos.valor";
+ public static final int VALOR_INDEX = 5;
+ public static final String RESPONSAVEL_EXECUCAO = "responsavel_execucao";
+ public static final String RESPONSAVEL_EXECUCAO_FULL = "plano_riscos.responsavel_execucao";
+ public static final int RESPONSAVEL_EXECUCAO_INDEX = 6;
+ public static final String RECURSOS_NECESSARIOS = "recursos_necessarios";
+ public static final String RECURSOS_NECESSARIOS_FULL = "plano_riscos.recursos_necessarios";
+ public static final int RECURSOS_NECESSARIOS_INDEX = 7;
+ public static final String DATA_INICIO = "data_inicio";
+ public static final String DATA_INICIO_FULL = "plano_riscos.data_inicio";
+ public static final int DATA_INICIO_INDEX = 8;
+ public static final String DATA_FIM = "data_fim";
+ public static final String DATA_FIM_FULL = "plano_riscos.data_fim";
+ public static final int DATA_FIM_INDEX = 9;
+ public static final String PARECER_DL = "parecer_dl";
+ public static final String PARECER_DL_FULL = "plano_riscos.parecer_dl";
+ public static final int PARECER_DL_INDEX = 10;
+ public static final String PARECER_DNS = "parecer_dns";
+ public static final String PARECER_DNS_FULL = "plano_riscos.parecer_dns";
+ public static final int PARECER_DNS_INDEX = 11;
+ public static final String VERIFICACAO_SIPRP = "verificacao_siprp";
+ public static final String VERIFICACAO_SIPRP_FULL = "plano_riscos.verificacao_siprp";
+ public static final int VERIFICACAO_SIPRP_INDEX = 12;
+ public static final String RISCO_ID = "risco_id";
+ public static final String RISCO_ID_FULL = "plano_riscos.risco_id";
+ public static final int RISCO_ID_INDEX = 13;
+ public static final String POR = "por";
+ public static final String POR_FULL = "plano_riscos.por";
+ public static final int POR_INDEX = 14;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, ACTIVO, AREA_ID, TO_AREA_ID, VALOR, RESPONSAVEL_EXECUCAO,
+ RECURSOS_NECESSARIOS, DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS,
+ VERIFICACAO_SIPRP, RISCO_ID, POR, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + ACTIVO, TABLENAME + "." + AREA_ID, TABLENAME + "." + TO_AREA_ID, TABLENAME + "." + VALOR, TABLENAME + "." + RESPONSAVEL_EXECUCAO,
+ TABLENAME + "." + RECURSOS_NECESSARIOS, TABLENAME + "." + DATA_INICIO, TABLENAME + "." + DATA_FIM, TABLENAME + "." + PARECER_DL, TABLENAME + "." + PARECER_DNS,
+ TABLENAME + "." + VERIFICACAO_SIPRP, TABLENAME + "." + RISCO_ID, TABLENAME + "." + POR, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ DESCRICAO, ACTIVO, AREA_ID, ID, VALOR, RESPONSAVEL_EXECUCAO, RECURSOS_NECESSARIOS,
+ DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS, VERIFICACAO_SIPRP, RISCO_ID, POR, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ DESCRICAO, ACTIVO, AREA_ID, ID, VALOR, RESPONSAVEL_EXECUCAO, RECURSOS_NECESSARIOS,
+ DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS, VERIFICACAO_SIPRP, RISCO_ID, POR, };
+
+ private String descricao;
+ private String activo;
+ private Integer area_id;
+ private db.data.siprp.outer.PlanoAreasData to_area_id;
+ private Integer id;
+ private Integer valor;
+ private String responsavel_execucao;
+ private String recursos_necessarios;
+ private java.util.Date data_inicio;
+ private java.util.Date data_fim;
+ private String parecer_dl;
+ private String parecer_dns;
+ private String verificacao_siprp;
+ private Integer risco_id;
+ private String por;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public PlanoRiscos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false, false, false, false, false, false, false,
+ false, false, false, false };
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public String getActivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activo;
+ }
+
+ public void setActivo( String activo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVO, activo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activo = activo;
+ LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
+ }
+
+ public Integer getArea_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AREA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.area_id;
+ }
+
+ public void setArea_id( Integer area_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AREA_ID, area_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.area_id = area_id;
+ LAZY_LOADED_OBJECTS.put( AREA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.PlanoAreasData toArea_id()
+ {
+ try
+ {
+ prepare( TO_AREA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_area_id;
+ }
+
+ public void setToArea_id( db.data.siprp.outer.PlanoAreasData to_area_id )
+ {
+ try
+ {
+ preProcess( TO_AREA_ID, to_area_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_area_id = to_area_id;
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromPlanoMedidas_risco_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanoMedidasData.class , getPrimaryKey().getMap().get("id"), "risco_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public Integer getValor()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VALOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.valor;
+ }
+
+ public void setValor( Integer valor )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VALOR, valor );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.valor = valor;
+ LAZY_LOADED_OBJECTS.put( VALOR, Boolean.TRUE );
+ }
+
+ public String getResponsavel_execucao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESPONSAVEL_EXECUCAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.responsavel_execucao;
+ }
+
+ public void setResponsavel_execucao( String responsavel_execucao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESPONSAVEL_EXECUCAO, responsavel_execucao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.responsavel_execucao = responsavel_execucao;
+ LAZY_LOADED_OBJECTS.put( RESPONSAVEL_EXECUCAO, Boolean.TRUE );
+ }
+
+ public String getRecursos_necessarios()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RECURSOS_NECESSARIOS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.recursos_necessarios;
+ }
+
+ public void setRecursos_necessarios( String recursos_necessarios )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RECURSOS_NECESSARIOS, recursos_necessarios );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.recursos_necessarios = recursos_necessarios;
+ LAZY_LOADED_OBJECTS.put( RECURSOS_NECESSARIOS, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_inicio()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_INICIO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_inicio;
+ }
+
+ public void setData_inicio( java.util.Date data_inicio )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_INICIO, data_inicio );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_inicio = data_inicio;
+ LAZY_LOADED_OBJECTS.put( DATA_INICIO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_fim()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_FIM );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_fim;
+ }
+
+ public void setData_fim( java.util.Date data_fim )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_FIM, data_fim );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_fim = data_fim;
+ LAZY_LOADED_OBJECTS.put( DATA_FIM, Boolean.TRUE );
+ }
+
+ public String getParecer_dl()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PARECER_DL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.parecer_dl;
+ }
+
+ public void setParecer_dl( String parecer_dl )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PARECER_DL, parecer_dl );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.parecer_dl = parecer_dl;
+ LAZY_LOADED_OBJECTS.put( PARECER_DL, Boolean.TRUE );
+ }
+
+ public String getParecer_dns()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PARECER_DNS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.parecer_dns;
+ }
+
+ public void setParecer_dns( String parecer_dns )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PARECER_DNS, parecer_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.parecer_dns = parecer_dns;
+ LAZY_LOADED_OBJECTS.put( PARECER_DNS, Boolean.TRUE );
+ }
+
+ public String getVerificacao_siprp()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VERIFICACAO_SIPRP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.verificacao_siprp;
+ }
+
+ public void setVerificacao_siprp( String verificacao_siprp )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VERIFICACAO_SIPRP, verificacao_siprp );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.verificacao_siprp = verificacao_siprp;
+ LAZY_LOADED_OBJECTS.put( VERIFICACAO_SIPRP, Boolean.TRUE );
+ }
+
+ public Integer getRisco_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RISCO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.risco_id;
+ }
+
+ public void setRisco_id( Integer risco_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RISCO_ID, risco_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.risco_id = risco_id;
+ LAZY_LOADED_OBJECTS.put( RISCO_ID, Boolean.TRUE );
+ }
+
+ public String getPor()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( POR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.por;
+ }
+
+ public void setPor( String por )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( POR, por );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.por = por;
+ LAZY_LOADED_OBJECTS.put( POR, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoRiscos.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case PlanoRiscos.ACTIVO_INDEX:
+ value = getActivo();
+ break;
+ case PlanoRiscos.AREA_ID_INDEX:
+ value = getArea_id();
+ break;
+ case PlanoRiscos.TO_AREA_ID_INDEX:
+ value = toArea_id();
+ break;
+ case PlanoRiscos.ID_INDEX:
+ value = getId();
+ break;
+ case PlanoRiscos.VALOR_INDEX:
+ value = getValor();
+ break;
+ case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
+ value = getResponsavel_execucao();
+ break;
+ case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
+ value = getRecursos_necessarios();
+ break;
+ case PlanoRiscos.DATA_INICIO_INDEX:
+ value = getData_inicio();
+ break;
+ case PlanoRiscos.DATA_FIM_INDEX:
+ value = getData_fim();
+ break;
+ case PlanoRiscos.PARECER_DL_INDEX:
+ value = getParecer_dl();
+ break;
+ case PlanoRiscos.PARECER_DNS_INDEX:
+ value = getParecer_dns();
+ break;
+ case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
+ value = getVerificacao_siprp();
+ break;
+ case PlanoRiscos.RISCO_ID_INDEX:
+ value = getRisco_id();
+ break;
+ case PlanoRiscos.POR_INDEX:
+ value = getPor();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoRiscos.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case PlanoRiscos.ACTIVO_INDEX:
+ value = this.activo;
+ break;
+ case PlanoRiscos.AREA_ID_INDEX:
+ value = this.area_id;
+ break;
+ case PlanoRiscos.TO_AREA_ID_INDEX:
+ value = this.to_area_id;
+ break;
+ case PlanoRiscos.ID_INDEX:
+ value = this.id;
+ break;
+ case PlanoRiscos.VALOR_INDEX:
+ value = this.valor;
+ break;
+ case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
+ value = this.responsavel_execucao;
+ break;
+ case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
+ value = this.recursos_necessarios;
+ break;
+ case PlanoRiscos.DATA_INICIO_INDEX:
+ value = this.data_inicio;
+ break;
+ case PlanoRiscos.DATA_FIM_INDEX:
+ value = this.data_fim;
+ break;
+ case PlanoRiscos.PARECER_DL_INDEX:
+ value = this.parecer_dl;
+ break;
+ case PlanoRiscos.PARECER_DNS_INDEX:
+ value = this.parecer_dns;
+ break;
+ case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
+ value = this.verificacao_siprp;
+ break;
+ case PlanoRiscos.RISCO_ID_INDEX:
+ value = this.risco_id;
+ break;
+ case PlanoRiscos.POR_INDEX:
+ value = this.por;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoRiscos.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case PlanoRiscos.ACTIVO_INDEX:
+ setActivo( ( String ) value );
+ break;
+ case PlanoRiscos.AREA_ID_INDEX:
+ setArea_id( ( Integer ) value );
+ break;
+ case PlanoRiscos.TO_AREA_ID_INDEX:
+ setToArea_id( ( db.data.siprp.outer.PlanoAreasData ) value );
+ break;
+ case PlanoRiscos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case PlanoRiscos.VALOR_INDEX:
+ setValor( ( Integer ) value );
+ break;
+ case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
+ setResponsavel_execucao( ( String ) value );
+ break;
+ case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
+ setRecursos_necessarios( ( String ) value );
+ break;
+ case PlanoRiscos.DATA_INICIO_INDEX:
+ setData_inicio( ( java.util.Date ) value );
+ break;
+ case PlanoRiscos.DATA_FIM_INDEX:
+ setData_fim( ( java.util.Date ) value );
+ break;
+ case PlanoRiscos.PARECER_DL_INDEX:
+ setParecer_dl( ( String ) value );
+ break;
+ case PlanoRiscos.PARECER_DNS_INDEX:
+ setParecer_dns( ( String ) value );
+ break;
+ case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
+ setVerificacao_siprp( ( String ) value );
+ break;
+ case PlanoRiscos.RISCO_ID_INDEX:
+ setRisco_id( ( Integer ) value );
+ break;
+ case PlanoRiscos.POR_INDEX:
+ setPor( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanoRiscos.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case PlanoRiscos.ACTIVO_INDEX:
+ this.activo = ( String ) value;
+ break;
+ case PlanoRiscos.AREA_ID_INDEX:
+ this.area_id = ( Integer ) value;
+ break;
+ case PlanoRiscos.TO_AREA_ID_INDEX:
+ this.to_area_id = ( db.data.siprp.outer.PlanoAreasData ) value;
+ break;
+ case PlanoRiscos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case PlanoRiscos.VALOR_INDEX:
+ this.valor = ( Integer ) value;
+ break;
+ case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
+ this.responsavel_execucao = ( String ) value;
+ break;
+ case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
+ this.recursos_necessarios = ( String ) value;
+ break;
+ case PlanoRiscos.DATA_INICIO_INDEX:
+ this.data_inicio = ( java.util.Date ) value;
+ break;
+ case PlanoRiscos.DATA_FIM_INDEX:
+ this.data_fim = ( java.util.Date ) value;
+ break;
+ case PlanoRiscos.PARECER_DL_INDEX:
+ this.parecer_dl = ( String ) value;
+ break;
+ case PlanoRiscos.PARECER_DNS_INDEX:
+ this.parecer_dns = ( String ) value;
+ break;
+ case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
+ this.verificacao_siprp = ( String ) value;
+ break;
+ case PlanoRiscos.RISCO_ID_INDEX:
+ this.risco_id = ( Integer ) value;
+ break;
+ case PlanoRiscos.POR_INDEX:
+ this.por = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case PlanoRiscos.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.ACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.AREA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoRiscos.TO_AREA_ID_INDEX:
+ theClass = db.data.siprp.outer.PlanoAreasData.class;
+ break;
+ case PlanoRiscos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoRiscos.VALOR_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.DATA_INICIO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanoRiscos.DATA_FIM_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanoRiscos.PARECER_DL_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.PARECER_DNS_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
+ theClass = String.class;
+ break;
+ case PlanoRiscos.RISCO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanoRiscos.POR_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : PlanoRiscos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PlanoRiscos.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanosActuacao.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanosActuacao.java
new file mode 100644
index 00000000..1955fc7b
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/PlanosActuacao.java
@@ -0,0 +1,2029 @@
+/*
+* PlanosActuacao.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class PlanosActuacao extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( PlanosActuacao.ESTABELECIMENTO_ID, PlanosActuacao.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.ESTABELECIMENTO_ID_FULL, PlanosActuacao.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.FASE, PlanosActuacao.FASE_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.FASE_FULL, PlanosActuacao.FASE_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VISITA, PlanosActuacao.DATA_VISITA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VISITA_FULL, PlanosActuacao.DATA_VISITA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.NOME_ESTABELECIMENTO, PlanosActuacao.NOME_ESTABELECIMENTO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.NOME_ESTABELECIMENTO_FULL, PlanosActuacao.NOME_ESTABELECIMENTO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VALIDACAO_DIRECTOR_LOJA, PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_FULL, PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VALIDACAO_DNS, PlanosActuacao.VALIDACAO_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VALIDACAO_DNS_FULL, PlanosActuacao.VALIDACAO_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VALIDACAO_HS, PlanosActuacao.VALIDACAO_HS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VALIDACAO_HS_FULL, PlanosActuacao.VALIDACAO_HS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.PARECER_DNS, PlanosActuacao.PARECER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.PARECER_DNS_FULL, PlanosActuacao.PARECER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.OBS_CORRECAO, PlanosActuacao.OBS_CORRECAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.OBS_CORRECAO_FULL, PlanosActuacao.OBS_CORRECAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VALIDACAO_DIR_LOJA, PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_FULL, PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanosActuacao.CLASS_IDENTIFIER, PlanosActuacao.USER_DIR_LOJA, PlanosActuacao.TO_USER_DIR_LOJA );
+ FIELD_INDEXES.put( PlanosActuacao.USER_DIR_LOJA, PlanosActuacao.USER_DIR_LOJA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.USER_DIR_LOJA_FULL, PlanosActuacao.USER_DIR_LOJA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TO_USER_DIR_LOJA, PlanosActuacao.TO_USER_DIR_LOJA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VALIDACAO_DNS, PlanosActuacao.DATA_VALIDACAO_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VALIDACAO_DNS_FULL, PlanosActuacao.DATA_VALIDACAO_DNS_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanosActuacao.CLASS_IDENTIFIER, PlanosActuacao.USER_DNS, PlanosActuacao.TO_USER_DNS );
+ FIELD_INDEXES.put( PlanosActuacao.USER_DNS, PlanosActuacao.USER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.USER_DNS_FULL, PlanosActuacao.USER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TO_USER_DNS, PlanosActuacao.TO_USER_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VALIDACAO_HS, PlanosActuacao.DATA_VALIDACAO_HS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_VALIDACAO_HS_FULL, PlanosActuacao.DATA_VALIDACAO_HS_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( PlanosActuacao.CLASS_IDENTIFIER, PlanosActuacao.USER_HS, PlanosActuacao.TO_USER_HS );
+ FIELD_INDEXES.put( PlanosActuacao.USER_HS, PlanosActuacao.USER_HS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.USER_HS_FULL, PlanosActuacao.USER_HS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TO_USER_HS, PlanosActuacao.TO_USER_HS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.FASE_ANTES_CORRECAO, PlanosActuacao.FASE_ANTES_CORRECAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.FASE_ANTES_CORRECAO_FULL, PlanosActuacao.FASE_ANTES_CORRECAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.CORRECAO, PlanosActuacao.CORRECAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.CORRECAO_FULL, PlanosActuacao.CORRECAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.OBSERVACOES_DL, PlanosActuacao.OBSERVACOES_DL_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.OBSERVACOES_DL_FULL, PlanosActuacao.OBSERVACOES_DL_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.OBSERVACOES_DNS, PlanosActuacao.OBSERVACOES_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.OBSERVACOES_DNS_FULL, PlanosActuacao.OBSERVACOES_DNS_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VERIFICACAO_SIPRP, PlanosActuacao.VERIFICACAO_SIPRP_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.VERIFICACAO_SIPRP_FULL, PlanosActuacao.VERIFICACAO_SIPRP_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_CONTROLO, PlanosActuacao.DATA_CONTROLO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_CONTROLO_FULL, PlanosActuacao.DATA_CONTROLO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_EMAIL_CONTROLO, PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_EMAIL_CONTROLO_FULL, PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.EMPRESA_ID, PlanosActuacao.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.EMPRESA_ID_FULL, PlanosActuacao.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.NOME_EMPRESA, PlanosActuacao.NOME_EMPRESA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.NOME_EMPRESA_FULL, PlanosActuacao.NOME_EMPRESA_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_HS_ID, PlanosActuacao.TECNICO_HS_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_HS_ID_FULL, PlanosActuacao.TECNICO_HS_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_HS_NOME, PlanosActuacao.TECNICO_HS_NOME_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_HS_NOME_FULL, PlanosActuacao.TECNICO_HS_NOME_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.ID, PlanosActuacao.ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.ID_FULL, PlanosActuacao.ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_RELATORIO, PlanosActuacao.DATA_RELATORIO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_RELATORIO_FULL, PlanosActuacao.DATA_RELATORIO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DELETED_DATE, PlanosActuacao.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DELETED_DATE_FULL, PlanosActuacao.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO, PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_FULL, PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_SUPERIOR_HS_ID, PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_SUPERIOR_HS_ID_FULL, PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_SUPERIOR_HS_NOME, PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_FULL, PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_DESACTIVACAO, PlanosActuacao.DATA_DESACTIVACAO_INDEX );
+ FIELD_INDEXES.put( PlanosActuacao.DATA_DESACTIVACAO_FULL, PlanosActuacao.DATA_DESACTIVACAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyuser_dir_lojaToutilizadores =
+ new com.evolute.entity.ForeignKey( PlanosActuacao.class, PlanosActuacao.USER_DIR_LOJA, db.data.siprp.outer.UtilizadoresData.class, db.data.siprp.outer.UtilizadoresData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyuser_dnsToutilizadores =
+ new com.evolute.entity.ForeignKey( PlanosActuacao.class, PlanosActuacao.USER_DNS, db.data.siprp.outer.UtilizadoresData.class, db.data.siprp.outer.UtilizadoresData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyuser_hsToutilizadores =
+ new com.evolute.entity.ForeignKey( PlanosActuacao.class, PlanosActuacao.USER_HS, db.data.siprp.outer.UtilizadoresData.class, db.data.siprp.outer.UtilizadoresData.ID );
+
+ public static final String TABLENAME = "planos_actuacao";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.planos_actuacao";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "planos_actuacao.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 0;
+ public static final String FASE = "fase";
+ public static final String FASE_FULL = "planos_actuacao.fase";
+ public static final int FASE_INDEX = 1;
+ public static final String DATA_VISITA = "data_visita";
+ public static final String DATA_VISITA_FULL = "planos_actuacao.data_visita";
+ public static final int DATA_VISITA_INDEX = 2;
+ public static final String NOME_ESTABELECIMENTO = "nome_estabelecimento";
+ public static final String NOME_ESTABELECIMENTO_FULL = "planos_actuacao.nome_estabelecimento";
+ public static final int NOME_ESTABELECIMENTO_INDEX = 3;
+ public static final String VALIDACAO_DIRECTOR_LOJA = "validacao_director_loja";
+ public static final String VALIDACAO_DIRECTOR_LOJA_FULL = "planos_actuacao.validacao_director_loja";
+ public static final int VALIDACAO_DIRECTOR_LOJA_INDEX = 4;
+ public static final String VALIDACAO_DNS = "validacao_dns";
+ public static final String VALIDACAO_DNS_FULL = "planos_actuacao.validacao_dns";
+ public static final int VALIDACAO_DNS_INDEX = 5;
+ public static final String VALIDACAO_HS = "validacao_hs";
+ public static final String VALIDACAO_HS_FULL = "planos_actuacao.validacao_hs";
+ public static final int VALIDACAO_HS_INDEX = 6;
+ public static final String PARECER_DNS = "parecer_dns";
+ public static final String PARECER_DNS_FULL = "planos_actuacao.parecer_dns";
+ public static final int PARECER_DNS_INDEX = 7;
+ public static final String OBS_CORRECAO = "obs_correcao";
+ public static final String OBS_CORRECAO_FULL = "planos_actuacao.obs_correcao";
+ public static final int OBS_CORRECAO_INDEX = 8;
+ public static final String DATA_VALIDACAO_DIR_LOJA = "data_validacao_dir_loja";
+ public static final String DATA_VALIDACAO_DIR_LOJA_FULL = "planos_actuacao.data_validacao_dir_loja";
+ public static final int DATA_VALIDACAO_DIR_LOJA_INDEX = 9;
+ public static final String USER_DIR_LOJA = "user_dir_loja";
+ public static final String USER_DIR_LOJA_FULL = "planos_actuacao.user_dir_loja";
+ public static final int USER_DIR_LOJA_INDEX = 10;
+ public static final String TO_USER_DIR_LOJA = "to_user_dir_loja";
+ public static final String TO_USER_DIR_LOJA_FULL = "planos_actuacao.to_user_dir_loja";
+ public static final int TO_USER_DIR_LOJA_INDEX = 11;
+ public static final String DATA_VALIDACAO_DNS = "data_validacao_dns";
+ public static final String DATA_VALIDACAO_DNS_FULL = "planos_actuacao.data_validacao_dns";
+ public static final int DATA_VALIDACAO_DNS_INDEX = 12;
+ public static final String USER_DNS = "user_dns";
+ public static final String USER_DNS_FULL = "planos_actuacao.user_dns";
+ public static final int USER_DNS_INDEX = 13;
+ public static final String TO_USER_DNS = "to_user_dns";
+ public static final String TO_USER_DNS_FULL = "planos_actuacao.to_user_dns";
+ public static final int TO_USER_DNS_INDEX = 14;
+ public static final String DATA_VALIDACAO_HS = "data_validacao_hs";
+ public static final String DATA_VALIDACAO_HS_FULL = "planos_actuacao.data_validacao_hs";
+ public static final int DATA_VALIDACAO_HS_INDEX = 15;
+ public static final String USER_HS = "user_hs";
+ public static final String USER_HS_FULL = "planos_actuacao.user_hs";
+ public static final int USER_HS_INDEX = 16;
+ public static final String TO_USER_HS = "to_user_hs";
+ public static final String TO_USER_HS_FULL = "planos_actuacao.to_user_hs";
+ public static final int TO_USER_HS_INDEX = 17;
+ public static final String FASE_ANTES_CORRECAO = "fase_antes_correcao";
+ public static final String FASE_ANTES_CORRECAO_FULL = "planos_actuacao.fase_antes_correcao";
+ public static final int FASE_ANTES_CORRECAO_INDEX = 18;
+ public static final String CORRECAO = "correcao";
+ public static final String CORRECAO_FULL = "planos_actuacao.correcao";
+ public static final int CORRECAO_INDEX = 19;
+ public static final String OBSERVACOES_DL = "observacoes_dl";
+ public static final String OBSERVACOES_DL_FULL = "planos_actuacao.observacoes_dl";
+ public static final int OBSERVACOES_DL_INDEX = 20;
+ public static final String OBSERVACOES_DNS = "observacoes_dns";
+ public static final String OBSERVACOES_DNS_FULL = "planos_actuacao.observacoes_dns";
+ public static final int OBSERVACOES_DNS_INDEX = 21;
+ public static final String VERIFICACAO_SIPRP = "verificacao_siprp";
+ public static final String VERIFICACAO_SIPRP_FULL = "planos_actuacao.verificacao_siprp";
+ public static final int VERIFICACAO_SIPRP_INDEX = 22;
+ public static final String DATA_CONTROLO = "data_controlo";
+ public static final String DATA_CONTROLO_FULL = "planos_actuacao.data_controlo";
+ public static final int DATA_CONTROLO_INDEX = 23;
+ public static final String DATA_EMAIL_CONTROLO = "data_email_controlo";
+ public static final String DATA_EMAIL_CONTROLO_FULL = "planos_actuacao.data_email_controlo";
+ public static final int DATA_EMAIL_CONTROLO_INDEX = 24;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "planos_actuacao.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 25;
+ public static final String NOME_EMPRESA = "nome_empresa";
+ public static final String NOME_EMPRESA_FULL = "planos_actuacao.nome_empresa";
+ public static final int NOME_EMPRESA_INDEX = 26;
+ public static final String TECNICO_HS_ID = "tecnico_hs_id";
+ public static final String TECNICO_HS_ID_FULL = "planos_actuacao.tecnico_hs_id";
+ public static final int TECNICO_HS_ID_INDEX = 27;
+ public static final String TECNICO_HS_NOME = "tecnico_hs_nome";
+ public static final String TECNICO_HS_NOME_FULL = "planos_actuacao.tecnico_hs_nome";
+ public static final int TECNICO_HS_NOME_INDEX = 28;
+ public static final String ID = "id";
+ public static final String ID_FULL = "planos_actuacao.id";
+ public static final int ID_INDEX = 29;
+ public static final String DATA_RELATORIO = "data_relatorio";
+ public static final String DATA_RELATORIO_FULL = "planos_actuacao.data_relatorio";
+ public static final int DATA_RELATORIO_INDEX = 30;
+ public static final String DELETED_DATE = "deleted_date";
+ public static final String DELETED_DATE_FULL = "planos_actuacao.deleted_date";
+ public static final int DELETED_DATE_INDEX = 31;
+ public static final String CONCLUIDO_POR_DESACTIVACAO = "concluido_por_desactivacao";
+ public static final String CONCLUIDO_POR_DESACTIVACAO_FULL = "planos_actuacao.concluido_por_desactivacao";
+ public static final int CONCLUIDO_POR_DESACTIVACAO_INDEX = 32;
+ public static final String TECNICO_SUPERIOR_HS_ID = "tecnico_superior_hs_id";
+ public static final String TECNICO_SUPERIOR_HS_ID_FULL = "planos_actuacao.tecnico_superior_hs_id";
+ public static final int TECNICO_SUPERIOR_HS_ID_INDEX = 33;
+ public static final String TECNICO_SUPERIOR_HS_NOME = "tecnico_superior_hs_nome";
+ public static final String TECNICO_SUPERIOR_HS_NOME_FULL = "planos_actuacao.tecnico_superior_hs_nome";
+ public static final int TECNICO_SUPERIOR_HS_NOME_INDEX = 34;
+ public static final String DATA_DESACTIVACAO = "data_desactivacao";
+ public static final String DATA_DESACTIVACAO_FULL = "planos_actuacao.data_desactivacao";
+ public static final int DATA_DESACTIVACAO_INDEX = 35;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ ESTABELECIMENTO_ID, FASE, DATA_VISITA, NOME_ESTABELECIMENTO,
+ VALIDACAO_DIRECTOR_LOJA, VALIDACAO_DNS, VALIDACAO_HS, PARECER_DNS,
+ OBS_CORRECAO, DATA_VALIDACAO_DIR_LOJA, USER_DIR_LOJA, TO_USER_DIR_LOJA,
+ DATA_VALIDACAO_DNS, USER_DNS, TO_USER_DNS, DATA_VALIDACAO_HS, USER_HS,
+ TO_USER_HS, FASE_ANTES_CORRECAO, CORRECAO, OBSERVACOES_DL, OBSERVACOES_DNS,
+ VERIFICACAO_SIPRP, DATA_CONTROLO, DATA_EMAIL_CONTROLO, EMPRESA_ID,
+ NOME_EMPRESA, TECNICO_HS_ID, TECNICO_HS_NOME, DATA_RELATORIO, DELETED_DATE,
+ CONCLUIDO_POR_DESACTIVACAO, TECNICO_SUPERIOR_HS_ID,
+ TECNICO_SUPERIOR_HS_NOME, DATA_DESACTIVACAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + FASE, TABLENAME + "." + DATA_VISITA, TABLENAME + "." + NOME_ESTABELECIMENTO,
+ TABLENAME + "." + VALIDACAO_DIRECTOR_LOJA, TABLENAME + "." + VALIDACAO_DNS, TABLENAME + "." + VALIDACAO_HS, TABLENAME + "." + PARECER_DNS,
+ TABLENAME + "." + OBS_CORRECAO, TABLENAME + "." + DATA_VALIDACAO_DIR_LOJA, TABLENAME + "." + USER_DIR_LOJA, TABLENAME + "." + TO_USER_DIR_LOJA,
+ TABLENAME + "." + DATA_VALIDACAO_DNS, TABLENAME + "." + USER_DNS, TABLENAME + "." + TO_USER_DNS, TABLENAME + "." + DATA_VALIDACAO_HS, TABLENAME + "." + USER_HS,
+ TABLENAME + "." + TO_USER_HS, TABLENAME + "." + FASE_ANTES_CORRECAO, TABLENAME + "." + CORRECAO, TABLENAME + "." + OBSERVACOES_DL, TABLENAME + "." + OBSERVACOES_DNS,
+ TABLENAME + "." + VERIFICACAO_SIPRP, TABLENAME + "." + DATA_CONTROLO, TABLENAME + "." + DATA_EMAIL_CONTROLO, TABLENAME + "." + EMPRESA_ID,
+ TABLENAME + "." + NOME_EMPRESA, TABLENAME + "." + TECNICO_HS_ID, TABLENAME + "." + TECNICO_HS_NOME, TABLENAME + "." + DATA_RELATORIO, TABLENAME + "." + DELETED_DATE,
+ TABLENAME + "." + CONCLUIDO_POR_DESACTIVACAO, TABLENAME + "." + TECNICO_SUPERIOR_HS_ID,
+ TABLENAME + "." + TECNICO_SUPERIOR_HS_NOME, TABLENAME + "." + DATA_DESACTIVACAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ESTABELECIMENTO_ID, FASE, DATA_VISITA, NOME_ESTABELECIMENTO,
+ VALIDACAO_DIRECTOR_LOJA, VALIDACAO_DNS, VALIDACAO_HS, PARECER_DNS,
+ OBS_CORRECAO, DATA_VALIDACAO_DIR_LOJA, USER_DIR_LOJA, DATA_VALIDACAO_DNS,
+ USER_DNS, DATA_VALIDACAO_HS, USER_HS, FASE_ANTES_CORRECAO, CORRECAO,
+ OBSERVACOES_DL, OBSERVACOES_DNS, VERIFICACAO_SIPRP, DATA_CONTROLO,
+ DATA_EMAIL_CONTROLO, EMPRESA_ID, NOME_EMPRESA, TECNICO_HS_ID, TECNICO_HS_NOME,
+ ID, DATA_RELATORIO, DELETED_DATE, CONCLUIDO_POR_DESACTIVACAO,
+ TECNICO_SUPERIOR_HS_ID, TECNICO_SUPERIOR_HS_NOME, DATA_DESACTIVACAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ESTABELECIMENTO_ID, FASE, DATA_VISITA, NOME_ESTABELECIMENTO,
+ VALIDACAO_DIRECTOR_LOJA, VALIDACAO_DNS, VALIDACAO_HS, PARECER_DNS,
+ OBS_CORRECAO, DATA_VALIDACAO_DIR_LOJA, USER_DIR_LOJA, DATA_VALIDACAO_DNS,
+ USER_DNS, DATA_VALIDACAO_HS, USER_HS, FASE_ANTES_CORRECAO, CORRECAO,
+ OBSERVACOES_DL, OBSERVACOES_DNS, VERIFICACAO_SIPRP, DATA_CONTROLO,
+ DATA_EMAIL_CONTROLO, EMPRESA_ID, NOME_EMPRESA, TECNICO_HS_ID, TECNICO_HS_NOME,
+ ID, DATA_RELATORIO, DELETED_DATE, CONCLUIDO_POR_DESACTIVACAO,
+ TECNICO_SUPERIOR_HS_ID, TECNICO_SUPERIOR_HS_NOME, DATA_DESACTIVACAO, };
+
+ private Integer estabelecimento_id;
+ private Integer fase;
+ private java.util.Date data_visita;
+ private String nome_estabelecimento;
+ private Boolean validacao_director_loja;
+ private Boolean validacao_dns;
+ private Boolean validacao_hs;
+ private String parecer_dns;
+ private String obs_correcao;
+ private java.util.Date data_validacao_dir_loja;
+ private Integer user_dir_loja;
+ private db.data.siprp.outer.UtilizadoresData to_user_dir_loja;
+ private java.util.Date data_validacao_dns;
+ private Integer user_dns;
+ private db.data.siprp.outer.UtilizadoresData to_user_dns;
+ private java.util.Date data_validacao_hs;
+ private Integer user_hs;
+ private db.data.siprp.outer.UtilizadoresData to_user_hs;
+ private Integer fase_antes_correcao;
+ private String correcao;
+ private String observacoes_dl;
+ private String observacoes_dns;
+ private String verificacao_siprp;
+ private java.util.Date data_controlo;
+ private java.util.Date data_email_controlo;
+ private Integer empresa_id;
+ private String nome_empresa;
+ private Integer tecnico_hs_id;
+ private String tecnico_hs_nome;
+ private Integer id;
+ private java.util.Date data_relatorio;
+ private java.sql.Timestamp deleted_date;
+ private Boolean concluido_por_desactivacao;
+ private Integer tecnico_superior_hs_id;
+ private String tecnico_superior_hs_nome;
+ private java.util.Date data_desactivacao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public PlanosActuacao()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false
+ , false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false };
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public Integer getFase()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FASE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.fase;
+ }
+
+ public void setFase( Integer fase )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FASE, fase );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.fase = fase;
+ LAZY_LOADED_OBJECTS.put( FASE, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_visita()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_VISITA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_visita;
+ }
+
+ public void setData_visita( java.util.Date data_visita )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_VISITA, data_visita );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_visita = data_visita;
+ LAZY_LOADED_OBJECTS.put( DATA_VISITA, Boolean.TRUE );
+ }
+
+ public String getNome_estabelecimento()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_ESTABELECIMENTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_estabelecimento;
+ }
+
+ public void setNome_estabelecimento( String nome_estabelecimento )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_ESTABELECIMENTO, nome_estabelecimento );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_estabelecimento = nome_estabelecimento;
+ LAZY_LOADED_OBJECTS.put( NOME_ESTABELECIMENTO, Boolean.TRUE );
+ }
+
+ public Boolean getValidacao_director_loja()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VALIDACAO_DIRECTOR_LOJA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.validacao_director_loja;
+ }
+
+ public void setValidacao_director_loja( Boolean validacao_director_loja )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VALIDACAO_DIRECTOR_LOJA, validacao_director_loja );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.validacao_director_loja = validacao_director_loja;
+ LAZY_LOADED_OBJECTS.put( VALIDACAO_DIRECTOR_LOJA, Boolean.TRUE );
+ }
+
+ public Boolean getValidacao_dns()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VALIDACAO_DNS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.validacao_dns;
+ }
+
+ public void setValidacao_dns( Boolean validacao_dns )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VALIDACAO_DNS, validacao_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.validacao_dns = validacao_dns;
+ LAZY_LOADED_OBJECTS.put( VALIDACAO_DNS, Boolean.TRUE );
+ }
+
+ public Boolean getValidacao_hs()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VALIDACAO_HS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.validacao_hs;
+ }
+
+ public void setValidacao_hs( Boolean validacao_hs )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VALIDACAO_HS, validacao_hs );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.validacao_hs = validacao_hs;
+ LAZY_LOADED_OBJECTS.put( VALIDACAO_HS, Boolean.TRUE );
+ }
+
+ public String getParecer_dns()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PARECER_DNS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.parecer_dns;
+ }
+
+ public void setParecer_dns( String parecer_dns )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PARECER_DNS, parecer_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.parecer_dns = parecer_dns;
+ LAZY_LOADED_OBJECTS.put( PARECER_DNS, Boolean.TRUE );
+ }
+
+ public String getObs_correcao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OBS_CORRECAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.obs_correcao;
+ }
+
+ public void setObs_correcao( String obs_correcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OBS_CORRECAO, obs_correcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.obs_correcao = obs_correcao;
+ LAZY_LOADED_OBJECTS.put( OBS_CORRECAO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_validacao_dir_loja()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_VALIDACAO_DIR_LOJA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_validacao_dir_loja;
+ }
+
+ public void setData_validacao_dir_loja( java.util.Date data_validacao_dir_loja )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_VALIDACAO_DIR_LOJA, data_validacao_dir_loja );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_validacao_dir_loja = data_validacao_dir_loja;
+ LAZY_LOADED_OBJECTS.put( DATA_VALIDACAO_DIR_LOJA, Boolean.TRUE );
+ }
+
+ public Integer getUser_dir_loja()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( USER_DIR_LOJA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.user_dir_loja;
+ }
+
+ public void setUser_dir_loja( Integer user_dir_loja )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( USER_DIR_LOJA, user_dir_loja );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.user_dir_loja = user_dir_loja;
+ LAZY_LOADED_OBJECTS.put( USER_DIR_LOJA, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.UtilizadoresData toUser_dir_loja()
+ {
+ try
+ {
+ prepare( TO_USER_DIR_LOJA );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_user_dir_loja;
+ }
+
+ public void setToUser_dir_loja( db.data.siprp.outer.UtilizadoresData to_user_dir_loja )
+ {
+ try
+ {
+ preProcess( TO_USER_DIR_LOJA, to_user_dir_loja );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_user_dir_loja = to_user_dir_loja;
+ }
+
+ public java.util.Date getData_validacao_dns()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_VALIDACAO_DNS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_validacao_dns;
+ }
+
+ public void setData_validacao_dns( java.util.Date data_validacao_dns )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_VALIDACAO_DNS, data_validacao_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_validacao_dns = data_validacao_dns;
+ LAZY_LOADED_OBJECTS.put( DATA_VALIDACAO_DNS, Boolean.TRUE );
+ }
+
+ public Integer getUser_dns()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( USER_DNS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.user_dns;
+ }
+
+ public void setUser_dns( Integer user_dns )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( USER_DNS, user_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.user_dns = user_dns;
+ LAZY_LOADED_OBJECTS.put( USER_DNS, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.UtilizadoresData toUser_dns()
+ {
+ try
+ {
+ prepare( TO_USER_DNS );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_user_dns;
+ }
+
+ public void setToUser_dns( db.data.siprp.outer.UtilizadoresData to_user_dns )
+ {
+ try
+ {
+ preProcess( TO_USER_DNS, to_user_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_user_dns = to_user_dns;
+ }
+
+ public java.util.Date getData_validacao_hs()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_VALIDACAO_HS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_validacao_hs;
+ }
+
+ public void setData_validacao_hs( java.util.Date data_validacao_hs )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_VALIDACAO_HS, data_validacao_hs );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_validacao_hs = data_validacao_hs;
+ LAZY_LOADED_OBJECTS.put( DATA_VALIDACAO_HS, Boolean.TRUE );
+ }
+
+ public Integer getUser_hs()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( USER_HS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.user_hs;
+ }
+
+ public void setUser_hs( Integer user_hs )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( USER_HS, user_hs );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.user_hs = user_hs;
+ LAZY_LOADED_OBJECTS.put( USER_HS, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.UtilizadoresData toUser_hs()
+ {
+ try
+ {
+ prepare( TO_USER_HS );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_user_hs;
+ }
+
+ public void setToUser_hs( db.data.siprp.outer.UtilizadoresData to_user_hs )
+ {
+ try
+ {
+ preProcess( TO_USER_HS, to_user_hs );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_user_hs = to_user_hs;
+ }
+
+ public Integer getFase_antes_correcao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FASE_ANTES_CORRECAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.fase_antes_correcao;
+ }
+
+ public void setFase_antes_correcao( Integer fase_antes_correcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FASE_ANTES_CORRECAO, fase_antes_correcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.fase_antes_correcao = fase_antes_correcao;
+ LAZY_LOADED_OBJECTS.put( FASE_ANTES_CORRECAO, Boolean.TRUE );
+ }
+
+ public String getCorrecao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CORRECAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.correcao;
+ }
+
+ public void setCorrecao( String correcao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CORRECAO, correcao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.correcao = correcao;
+ LAZY_LOADED_OBJECTS.put( CORRECAO, Boolean.TRUE );
+ }
+
+ public String getObservacoes_dl()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OBSERVACOES_DL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.observacoes_dl;
+ }
+
+ public void setObservacoes_dl( String observacoes_dl )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OBSERVACOES_DL, observacoes_dl );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.observacoes_dl = observacoes_dl;
+ LAZY_LOADED_OBJECTS.put( OBSERVACOES_DL, Boolean.TRUE );
+ }
+
+ public String getObservacoes_dns()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( OBSERVACOES_DNS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.observacoes_dns;
+ }
+
+ public void setObservacoes_dns( String observacoes_dns )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( OBSERVACOES_DNS, observacoes_dns );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.observacoes_dns = observacoes_dns;
+ LAZY_LOADED_OBJECTS.put( OBSERVACOES_DNS, Boolean.TRUE );
+ }
+
+ public String getVerificacao_siprp()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VERIFICACAO_SIPRP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.verificacao_siprp;
+ }
+
+ public void setVerificacao_siprp( String verificacao_siprp )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VERIFICACAO_SIPRP, verificacao_siprp );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.verificacao_siprp = verificacao_siprp;
+ LAZY_LOADED_OBJECTS.put( VERIFICACAO_SIPRP, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_controlo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_CONTROLO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_controlo;
+ }
+
+ public void setData_controlo( java.util.Date data_controlo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_CONTROLO, data_controlo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_controlo = data_controlo;
+ LAZY_LOADED_OBJECTS.put( DATA_CONTROLO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_email_controlo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_EMAIL_CONTROLO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_email_controlo;
+ }
+
+ public void setData_email_controlo( java.util.Date data_email_controlo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_EMAIL_CONTROLO, data_email_controlo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_email_controlo = data_email_controlo;
+ LAZY_LOADED_OBJECTS.put( DATA_EMAIL_CONTROLO, Boolean.TRUE );
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public String getNome_empresa()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_EMPRESA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_empresa;
+ }
+
+ public void setNome_empresa( String nome_empresa )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_EMPRESA, nome_empresa );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_empresa = nome_empresa;
+ LAZY_LOADED_OBJECTS.put( NOME_EMPRESA, Boolean.TRUE );
+ }
+
+ public Integer getTecnico_hs_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TECNICO_HS_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tecnico_hs_id;
+ }
+
+ public void setTecnico_hs_id( Integer tecnico_hs_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TECNICO_HS_ID, tecnico_hs_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tecnico_hs_id = tecnico_hs_id;
+ LAZY_LOADED_OBJECTS.put( TECNICO_HS_ID, Boolean.TRUE );
+ }
+
+ public String getTecnico_hs_nome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TECNICO_HS_NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tecnico_hs_nome;
+ }
+
+ public void setTecnico_hs_nome( String tecnico_hs_nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TECNICO_HS_NOME, tecnico_hs_nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tecnico_hs_nome = tecnico_hs_nome;
+ LAZY_LOADED_OBJECTS.put( TECNICO_HS_NOME, Boolean.TRUE );
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromPlanoAreas_plano_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanoAreasData.class , getPrimaryKey().getMap().get("id"), "plano_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.Date getData_relatorio()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_RELATORIO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_relatorio;
+ }
+
+ public void setData_relatorio( java.util.Date data_relatorio )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_RELATORIO, data_relatorio );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_relatorio = data_relatorio;
+ LAZY_LOADED_OBJECTS.put( DATA_RELATORIO, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getDeleted_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_date;
+ }
+
+ public void setDeleted_date( java.sql.Timestamp deleted_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_DATE, deleted_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_date = deleted_date;
+ LAZY_LOADED_OBJECTS.put( DELETED_DATE, Boolean.TRUE );
+ }
+
+ public Boolean getConcluido_por_desactivacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CONCLUIDO_POR_DESACTIVACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.concluido_por_desactivacao;
+ }
+
+ public void setConcluido_por_desactivacao( Boolean concluido_por_desactivacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CONCLUIDO_POR_DESACTIVACAO, concluido_por_desactivacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.concluido_por_desactivacao = concluido_por_desactivacao;
+ LAZY_LOADED_OBJECTS.put( CONCLUIDO_POR_DESACTIVACAO, Boolean.TRUE );
+ }
+
+ public Integer getTecnico_superior_hs_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TECNICO_SUPERIOR_HS_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tecnico_superior_hs_id;
+ }
+
+ public void setTecnico_superior_hs_id( Integer tecnico_superior_hs_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TECNICO_SUPERIOR_HS_ID, tecnico_superior_hs_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tecnico_superior_hs_id = tecnico_superior_hs_id;
+ LAZY_LOADED_OBJECTS.put( TECNICO_SUPERIOR_HS_ID, Boolean.TRUE );
+ }
+
+ public String getTecnico_superior_hs_nome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TECNICO_SUPERIOR_HS_NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tecnico_superior_hs_nome;
+ }
+
+ public void setTecnico_superior_hs_nome( String tecnico_superior_hs_nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TECNICO_SUPERIOR_HS_NOME, tecnico_superior_hs_nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tecnico_superior_hs_nome = tecnico_superior_hs_nome;
+ LAZY_LOADED_OBJECTS.put( TECNICO_SUPERIOR_HS_NOME, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_desactivacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_DESACTIVACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_desactivacao;
+ }
+
+ public void setData_desactivacao( java.util.Date data_desactivacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_DESACTIVACAO, data_desactivacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_desactivacao = data_desactivacao;
+ LAZY_LOADED_OBJECTS.put( DATA_DESACTIVACAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanosActuacao.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case PlanosActuacao.FASE_INDEX:
+ value = getFase();
+ break;
+ case PlanosActuacao.DATA_VISITA_INDEX:
+ value = getData_visita();
+ break;
+ case PlanosActuacao.NOME_ESTABELECIMENTO_INDEX:
+ value = getNome_estabelecimento();
+ break;
+ case PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX:
+ value = getValidacao_director_loja();
+ break;
+ case PlanosActuacao.VALIDACAO_DNS_INDEX:
+ value = getValidacao_dns();
+ break;
+ case PlanosActuacao.VALIDACAO_HS_INDEX:
+ value = getValidacao_hs();
+ break;
+ case PlanosActuacao.PARECER_DNS_INDEX:
+ value = getParecer_dns();
+ break;
+ case PlanosActuacao.OBS_CORRECAO_INDEX:
+ value = getObs_correcao();
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX:
+ value = getData_validacao_dir_loja();
+ break;
+ case PlanosActuacao.USER_DIR_LOJA_INDEX:
+ value = getUser_dir_loja();
+ break;
+ case PlanosActuacao.TO_USER_DIR_LOJA_INDEX:
+ value = toUser_dir_loja();
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DNS_INDEX:
+ value = getData_validacao_dns();
+ break;
+ case PlanosActuacao.USER_DNS_INDEX:
+ value = getUser_dns();
+ break;
+ case PlanosActuacao.TO_USER_DNS_INDEX:
+ value = toUser_dns();
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_HS_INDEX:
+ value = getData_validacao_hs();
+ break;
+ case PlanosActuacao.USER_HS_INDEX:
+ value = getUser_hs();
+ break;
+ case PlanosActuacao.TO_USER_HS_INDEX:
+ value = toUser_hs();
+ break;
+ case PlanosActuacao.FASE_ANTES_CORRECAO_INDEX:
+ value = getFase_antes_correcao();
+ break;
+ case PlanosActuacao.CORRECAO_INDEX:
+ value = getCorrecao();
+ break;
+ case PlanosActuacao.OBSERVACOES_DL_INDEX:
+ value = getObservacoes_dl();
+ break;
+ case PlanosActuacao.OBSERVACOES_DNS_INDEX:
+ value = getObservacoes_dns();
+ break;
+ case PlanosActuacao.VERIFICACAO_SIPRP_INDEX:
+ value = getVerificacao_siprp();
+ break;
+ case PlanosActuacao.DATA_CONTROLO_INDEX:
+ value = getData_controlo();
+ break;
+ case PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX:
+ value = getData_email_controlo();
+ break;
+ case PlanosActuacao.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case PlanosActuacao.NOME_EMPRESA_INDEX:
+ value = getNome_empresa();
+ break;
+ case PlanosActuacao.TECNICO_HS_ID_INDEX:
+ value = getTecnico_hs_id();
+ break;
+ case PlanosActuacao.TECNICO_HS_NOME_INDEX:
+ value = getTecnico_hs_nome();
+ break;
+ case PlanosActuacao.ID_INDEX:
+ value = getId();
+ break;
+ case PlanosActuacao.DATA_RELATORIO_INDEX:
+ value = getData_relatorio();
+ break;
+ case PlanosActuacao.DELETED_DATE_INDEX:
+ value = getDeleted_date();
+ break;
+ case PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ value = getConcluido_por_desactivacao();
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX:
+ value = getTecnico_superior_hs_id();
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX:
+ value = getTecnico_superior_hs_nome();
+ break;
+ case PlanosActuacao.DATA_DESACTIVACAO_INDEX:
+ value = getData_desactivacao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanosActuacao.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case PlanosActuacao.FASE_INDEX:
+ value = this.fase;
+ break;
+ case PlanosActuacao.DATA_VISITA_INDEX:
+ value = this.data_visita;
+ break;
+ case PlanosActuacao.NOME_ESTABELECIMENTO_INDEX:
+ value = this.nome_estabelecimento;
+ break;
+ case PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX:
+ value = this.validacao_director_loja;
+ break;
+ case PlanosActuacao.VALIDACAO_DNS_INDEX:
+ value = this.validacao_dns;
+ break;
+ case PlanosActuacao.VALIDACAO_HS_INDEX:
+ value = this.validacao_hs;
+ break;
+ case PlanosActuacao.PARECER_DNS_INDEX:
+ value = this.parecer_dns;
+ break;
+ case PlanosActuacao.OBS_CORRECAO_INDEX:
+ value = this.obs_correcao;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX:
+ value = this.data_validacao_dir_loja;
+ break;
+ case PlanosActuacao.USER_DIR_LOJA_INDEX:
+ value = this.user_dir_loja;
+ break;
+ case PlanosActuacao.TO_USER_DIR_LOJA_INDEX:
+ value = this.to_user_dir_loja;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DNS_INDEX:
+ value = this.data_validacao_dns;
+ break;
+ case PlanosActuacao.USER_DNS_INDEX:
+ value = this.user_dns;
+ break;
+ case PlanosActuacao.TO_USER_DNS_INDEX:
+ value = this.to_user_dns;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_HS_INDEX:
+ value = this.data_validacao_hs;
+ break;
+ case PlanosActuacao.USER_HS_INDEX:
+ value = this.user_hs;
+ break;
+ case PlanosActuacao.TO_USER_HS_INDEX:
+ value = this.to_user_hs;
+ break;
+ case PlanosActuacao.FASE_ANTES_CORRECAO_INDEX:
+ value = this.fase_antes_correcao;
+ break;
+ case PlanosActuacao.CORRECAO_INDEX:
+ value = this.correcao;
+ break;
+ case PlanosActuacao.OBSERVACOES_DL_INDEX:
+ value = this.observacoes_dl;
+ break;
+ case PlanosActuacao.OBSERVACOES_DNS_INDEX:
+ value = this.observacoes_dns;
+ break;
+ case PlanosActuacao.VERIFICACAO_SIPRP_INDEX:
+ value = this.verificacao_siprp;
+ break;
+ case PlanosActuacao.DATA_CONTROLO_INDEX:
+ value = this.data_controlo;
+ break;
+ case PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX:
+ value = this.data_email_controlo;
+ break;
+ case PlanosActuacao.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case PlanosActuacao.NOME_EMPRESA_INDEX:
+ value = this.nome_empresa;
+ break;
+ case PlanosActuacao.TECNICO_HS_ID_INDEX:
+ value = this.tecnico_hs_id;
+ break;
+ case PlanosActuacao.TECNICO_HS_NOME_INDEX:
+ value = this.tecnico_hs_nome;
+ break;
+ case PlanosActuacao.ID_INDEX:
+ value = this.id;
+ break;
+ case PlanosActuacao.DATA_RELATORIO_INDEX:
+ value = this.data_relatorio;
+ break;
+ case PlanosActuacao.DELETED_DATE_INDEX:
+ value = this.deleted_date;
+ break;
+ case PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ value = this.concluido_por_desactivacao;
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX:
+ value = this.tecnico_superior_hs_id;
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX:
+ value = this.tecnico_superior_hs_nome;
+ break;
+ case PlanosActuacao.DATA_DESACTIVACAO_INDEX:
+ value = this.data_desactivacao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanosActuacao.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case PlanosActuacao.FASE_INDEX:
+ setFase( ( Integer ) value );
+ break;
+ case PlanosActuacao.DATA_VISITA_INDEX:
+ setData_visita( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.NOME_ESTABELECIMENTO_INDEX:
+ setNome_estabelecimento( ( String ) value );
+ break;
+ case PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX:
+ setValidacao_director_loja( ( Boolean ) value );
+ break;
+ case PlanosActuacao.VALIDACAO_DNS_INDEX:
+ setValidacao_dns( ( Boolean ) value );
+ break;
+ case PlanosActuacao.VALIDACAO_HS_INDEX:
+ setValidacao_hs( ( Boolean ) value );
+ break;
+ case PlanosActuacao.PARECER_DNS_INDEX:
+ setParecer_dns( ( String ) value );
+ break;
+ case PlanosActuacao.OBS_CORRECAO_INDEX:
+ setObs_correcao( ( String ) value );
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX:
+ setData_validacao_dir_loja( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.USER_DIR_LOJA_INDEX:
+ setUser_dir_loja( ( Integer ) value );
+ break;
+ case PlanosActuacao.TO_USER_DIR_LOJA_INDEX:
+ setToUser_dir_loja( ( db.data.siprp.outer.UtilizadoresData ) value );
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DNS_INDEX:
+ setData_validacao_dns( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.USER_DNS_INDEX:
+ setUser_dns( ( Integer ) value );
+ break;
+ case PlanosActuacao.TO_USER_DNS_INDEX:
+ setToUser_dns( ( db.data.siprp.outer.UtilizadoresData ) value );
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_HS_INDEX:
+ setData_validacao_hs( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.USER_HS_INDEX:
+ setUser_hs( ( Integer ) value );
+ break;
+ case PlanosActuacao.TO_USER_HS_INDEX:
+ setToUser_hs( ( db.data.siprp.outer.UtilizadoresData ) value );
+ break;
+ case PlanosActuacao.FASE_ANTES_CORRECAO_INDEX:
+ setFase_antes_correcao( ( Integer ) value );
+ break;
+ case PlanosActuacao.CORRECAO_INDEX:
+ setCorrecao( ( String ) value );
+ break;
+ case PlanosActuacao.OBSERVACOES_DL_INDEX:
+ setObservacoes_dl( ( String ) value );
+ break;
+ case PlanosActuacao.OBSERVACOES_DNS_INDEX:
+ setObservacoes_dns( ( String ) value );
+ break;
+ case PlanosActuacao.VERIFICACAO_SIPRP_INDEX:
+ setVerificacao_siprp( ( String ) value );
+ break;
+ case PlanosActuacao.DATA_CONTROLO_INDEX:
+ setData_controlo( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX:
+ setData_email_controlo( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case PlanosActuacao.NOME_EMPRESA_INDEX:
+ setNome_empresa( ( String ) value );
+ break;
+ case PlanosActuacao.TECNICO_HS_ID_INDEX:
+ setTecnico_hs_id( ( Integer ) value );
+ break;
+ case PlanosActuacao.TECNICO_HS_NOME_INDEX:
+ setTecnico_hs_nome( ( String ) value );
+ break;
+ case PlanosActuacao.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case PlanosActuacao.DATA_RELATORIO_INDEX:
+ setData_relatorio( ( java.util.Date ) value );
+ break;
+ case PlanosActuacao.DELETED_DATE_INDEX:
+ setDeleted_date( ( java.sql.Timestamp ) value );
+ break;
+ case PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ setConcluido_por_desactivacao( ( Boolean ) value );
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX:
+ setTecnico_superior_hs_id( ( Integer ) value );
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX:
+ setTecnico_superior_hs_nome( ( String ) value );
+ break;
+ case PlanosActuacao.DATA_DESACTIVACAO_INDEX:
+ setData_desactivacao( ( java.util.Date ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case PlanosActuacao.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case PlanosActuacao.FASE_INDEX:
+ this.fase = ( Integer ) value;
+ break;
+ case PlanosActuacao.DATA_VISITA_INDEX:
+ this.data_visita = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.NOME_ESTABELECIMENTO_INDEX:
+ this.nome_estabelecimento = ( String ) value;
+ break;
+ case PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX:
+ this.validacao_director_loja = ( Boolean ) value;
+ break;
+ case PlanosActuacao.VALIDACAO_DNS_INDEX:
+ this.validacao_dns = ( Boolean ) value;
+ break;
+ case PlanosActuacao.VALIDACAO_HS_INDEX:
+ this.validacao_hs = ( Boolean ) value;
+ break;
+ case PlanosActuacao.PARECER_DNS_INDEX:
+ this.parecer_dns = ( String ) value;
+ break;
+ case PlanosActuacao.OBS_CORRECAO_INDEX:
+ this.obs_correcao = ( String ) value;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX:
+ this.data_validacao_dir_loja = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.USER_DIR_LOJA_INDEX:
+ this.user_dir_loja = ( Integer ) value;
+ break;
+ case PlanosActuacao.TO_USER_DIR_LOJA_INDEX:
+ this.to_user_dir_loja = ( db.data.siprp.outer.UtilizadoresData ) value;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DNS_INDEX:
+ this.data_validacao_dns = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.USER_DNS_INDEX:
+ this.user_dns = ( Integer ) value;
+ break;
+ case PlanosActuacao.TO_USER_DNS_INDEX:
+ this.to_user_dns = ( db.data.siprp.outer.UtilizadoresData ) value;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_HS_INDEX:
+ this.data_validacao_hs = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.USER_HS_INDEX:
+ this.user_hs = ( Integer ) value;
+ break;
+ case PlanosActuacao.TO_USER_HS_INDEX:
+ this.to_user_hs = ( db.data.siprp.outer.UtilizadoresData ) value;
+ break;
+ case PlanosActuacao.FASE_ANTES_CORRECAO_INDEX:
+ this.fase_antes_correcao = ( Integer ) value;
+ break;
+ case PlanosActuacao.CORRECAO_INDEX:
+ this.correcao = ( String ) value;
+ break;
+ case PlanosActuacao.OBSERVACOES_DL_INDEX:
+ this.observacoes_dl = ( String ) value;
+ break;
+ case PlanosActuacao.OBSERVACOES_DNS_INDEX:
+ this.observacoes_dns = ( String ) value;
+ break;
+ case PlanosActuacao.VERIFICACAO_SIPRP_INDEX:
+ this.verificacao_siprp = ( String ) value;
+ break;
+ case PlanosActuacao.DATA_CONTROLO_INDEX:
+ this.data_controlo = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX:
+ this.data_email_controlo = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case PlanosActuacao.NOME_EMPRESA_INDEX:
+ this.nome_empresa = ( String ) value;
+ break;
+ case PlanosActuacao.TECNICO_HS_ID_INDEX:
+ this.tecnico_hs_id = ( Integer ) value;
+ break;
+ case PlanosActuacao.TECNICO_HS_NOME_INDEX:
+ this.tecnico_hs_nome = ( String ) value;
+ break;
+ case PlanosActuacao.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case PlanosActuacao.DATA_RELATORIO_INDEX:
+ this.data_relatorio = ( java.util.Date ) value;
+ break;
+ case PlanosActuacao.DELETED_DATE_INDEX:
+ this.deleted_date = ( java.sql.Timestamp ) value;
+ break;
+ case PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ this.concluido_por_desactivacao = ( Boolean ) value;
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX:
+ this.tecnico_superior_hs_id = ( Integer ) value;
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX:
+ this.tecnico_superior_hs_nome = ( String ) value;
+ break;
+ case PlanosActuacao.DATA_DESACTIVACAO_INDEX:
+ this.data_desactivacao = ( java.util.Date ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case PlanosActuacao.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.FASE_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.DATA_VISITA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.NOME_ESTABELECIMENTO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.VALIDACAO_DIRECTOR_LOJA_INDEX:
+ theClass = Boolean.class;
+ break;
+ case PlanosActuacao.VALIDACAO_DNS_INDEX:
+ theClass = Boolean.class;
+ break;
+ case PlanosActuacao.VALIDACAO_HS_INDEX:
+ theClass = Boolean.class;
+ break;
+ case PlanosActuacao.PARECER_DNS_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.OBS_CORRECAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DIR_LOJA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.USER_DIR_LOJA_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.TO_USER_DIR_LOJA_INDEX:
+ theClass = db.data.siprp.outer.UtilizadoresData.class;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_DNS_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.USER_DNS_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.TO_USER_DNS_INDEX:
+ theClass = db.data.siprp.outer.UtilizadoresData.class;
+ break;
+ case PlanosActuacao.DATA_VALIDACAO_HS_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.USER_HS_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.TO_USER_HS_INDEX:
+ theClass = db.data.siprp.outer.UtilizadoresData.class;
+ break;
+ case PlanosActuacao.FASE_ANTES_CORRECAO_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.CORRECAO_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.OBSERVACOES_DL_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.OBSERVACOES_DNS_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.VERIFICACAO_SIPRP_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.DATA_CONTROLO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.DATA_EMAIL_CONTROLO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.NOME_EMPRESA_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.TECNICO_HS_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.TECNICO_HS_NOME_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.DATA_RELATORIO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case PlanosActuacao.DELETED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case PlanosActuacao.CONCLUIDO_POR_DESACTIVACAO_INDEX:
+ theClass = Boolean.class;
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case PlanosActuacao.TECNICO_SUPERIOR_HS_NOME_INDEX:
+ theClass = String.class;
+ break;
+ case PlanosActuacao.DATA_DESACTIVACAO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : PlanosActuacao._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PlanosActuacao.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Properties.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Properties.java
new file mode 100644
index 00000000..987f8cf7
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Properties.java
@@ -0,0 +1,178 @@
+/*
+* Properties.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Properties extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "properties";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.properties";
+
+ public static final int _INVALID__INDEX = -1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ };
+
+
+ protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
+
+ public Properties()
+ {
+ super();
+ dirtyProperties = new boolean[]{ };
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ throw new RuntimeException( "getPrimaryKeyName on Properties is invalid" );
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Properties._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.ObjectPrimaryKey( TABLENAME, Properties.PK_FIELD_NAMES );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Recomendacoes.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Recomendacoes.java
new file mode 100644
index 00000000..0e9d7531
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Recomendacoes.java
@@ -0,0 +1,381 @@
+/*
+* Recomendacoes.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Recomendacoes extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Recomendacoes.ID, Recomendacoes.ID_INDEX );
+ FIELD_INDEXES.put( Recomendacoes.ID_FULL, Recomendacoes.ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Recomendacoes.CLASS_IDENTIFIER, Recomendacoes.ANALISE_ID, Recomendacoes.TO_ANALISE_ID );
+ FIELD_INDEXES.put( Recomendacoes.ANALISE_ID, Recomendacoes.ANALISE_ID_INDEX );
+ FIELD_INDEXES.put( Recomendacoes.ANALISE_ID_FULL, Recomendacoes.ANALISE_ID_INDEX );
+ FIELD_INDEXES.put( Recomendacoes.TO_ANALISE_ID, Recomendacoes.TO_ANALISE_ID_INDEX );
+ FIELD_INDEXES.put( Recomendacoes.RECOMENDACAO, Recomendacoes.RECOMENDACAO_INDEX );
+ FIELD_INDEXES.put( Recomendacoes.RECOMENDACAO_FULL, Recomendacoes.RECOMENDACAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyanalise_idToanalises_acidentes =
+ new com.evolute.entity.ForeignKey( Recomendacoes.class, Recomendacoes.ANALISE_ID, db.data.siprp.outer.AnalisesAcidentesData.class, db.data.siprp.outer.AnalisesAcidentesData.ID );
+
+ public static final String TABLENAME = "recomendacoes";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.recomendacoes";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "recomendacoes.id";
+ public static final int ID_INDEX = 0;
+ public static final String ANALISE_ID = "analise_id";
+ public static final String ANALISE_ID_FULL = "recomendacoes.analise_id";
+ public static final int ANALISE_ID_INDEX = 1;
+ public static final String TO_ANALISE_ID = "to_analise_id";
+ public static final String TO_ANALISE_ID_FULL = "recomendacoes.to_analise_id";
+ public static final int TO_ANALISE_ID_INDEX = 2;
+ public static final String RECOMENDACAO = "recomendacao";
+ public static final String RECOMENDACAO_FULL = "recomendacoes.recomendacao";
+ public static final int RECOMENDACAO_INDEX = 3;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ ANALISE_ID, TO_ANALISE_ID, RECOMENDACAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + ANALISE_ID, TABLENAME + "." + TO_ANALISE_ID, TABLENAME + "." + RECOMENDACAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, ANALISE_ID, RECOMENDACAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, ANALISE_ID, RECOMENDACAO, };
+
+ private Integer id;
+ private Integer analise_id;
+ private db.data.siprp.outer.AnalisesAcidentesData to_analise_id;
+ private String recomendacao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Recomendacoes()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getAnalise_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ANALISE_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.analise_id;
+ }
+
+ public void setAnalise_id( Integer analise_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ANALISE_ID, analise_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.analise_id = analise_id;
+ LAZY_LOADED_OBJECTS.put( ANALISE_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.AnalisesAcidentesData toAnalise_id()
+ {
+ try
+ {
+ prepare( TO_ANALISE_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_analise_id;
+ }
+
+ public void setToAnalise_id( db.data.siprp.outer.AnalisesAcidentesData to_analise_id )
+ {
+ try
+ {
+ preProcess( TO_ANALISE_ID, to_analise_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_analise_id = to_analise_id;
+ }
+
+ public String getRecomendacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RECOMENDACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.recomendacao;
+ }
+
+ public void setRecomendacao( String recomendacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RECOMENDACAO, recomendacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.recomendacao = recomendacao;
+ LAZY_LOADED_OBJECTS.put( RECOMENDACAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Recomendacoes.ID_INDEX:
+ value = getId();
+ break;
+ case Recomendacoes.ANALISE_ID_INDEX:
+ value = getAnalise_id();
+ break;
+ case Recomendacoes.TO_ANALISE_ID_INDEX:
+ value = toAnalise_id();
+ break;
+ case Recomendacoes.RECOMENDACAO_INDEX:
+ value = getRecomendacao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Recomendacoes.ID_INDEX:
+ value = this.id;
+ break;
+ case Recomendacoes.ANALISE_ID_INDEX:
+ value = this.analise_id;
+ break;
+ case Recomendacoes.TO_ANALISE_ID_INDEX:
+ value = this.to_analise_id;
+ break;
+ case Recomendacoes.RECOMENDACAO_INDEX:
+ value = this.recomendacao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Recomendacoes.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Recomendacoes.ANALISE_ID_INDEX:
+ setAnalise_id( ( Integer ) value );
+ break;
+ case Recomendacoes.TO_ANALISE_ID_INDEX:
+ setToAnalise_id( ( db.data.siprp.outer.AnalisesAcidentesData ) value );
+ break;
+ case Recomendacoes.RECOMENDACAO_INDEX:
+ setRecomendacao( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Recomendacoes.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Recomendacoes.ANALISE_ID_INDEX:
+ this.analise_id = ( Integer ) value;
+ break;
+ case Recomendacoes.TO_ANALISE_ID_INDEX:
+ this.to_analise_id = ( db.data.siprp.outer.AnalisesAcidentesData ) value;
+ break;
+ case Recomendacoes.RECOMENDACAO_INDEX:
+ this.recomendacao = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Recomendacoes.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Recomendacoes.ANALISE_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Recomendacoes.TO_ANALISE_ID_INDEX:
+ theClass = db.data.siprp.outer.AnalisesAcidentesData.class;
+ break;
+ case Recomendacoes.RECOMENDACAO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Recomendacoes._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Recomendacoes.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/RiscoValoresTemp.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/RiscoValoresTemp.java
new file mode 100644
index 00000000..8bf76521
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/RiscoValoresTemp.java
@@ -0,0 +1,178 @@
+/*
+* RiscoValoresTemp.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class RiscoValoresTemp extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "risco_valores_temp";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.risco_valores_temp";
+
+ public static final int _INVALID__INDEX = -1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ };
+
+
+ protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
+
+ public RiscoValoresTemp()
+ {
+ super();
+ dirtyProperties = new boolean[]{ };
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ throw new RuntimeException( "getPrimaryKeyName on RiscoValoresTemp is invalid" );
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : RiscoValoresTemp._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.ObjectPrimaryKey( TABLENAME, RiscoValoresTemp.PK_FIELD_NAMES );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Roles.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Roles.java
new file mode 100644
index 00000000..ac757915
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Roles.java
@@ -0,0 +1,178 @@
+/*
+* Roles.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Roles extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "roles";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.roles";
+
+ public static final int _INVALID__INDEX = -1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ };
+
+
+ protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
+
+ public Roles()
+ {
+ super();
+ dirtyProperties = new boolean[]{ };
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ throw new RuntimeException( "getPrimaryKeyName on Roles is invalid" );
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Roles._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.ObjectPrimaryKey( TABLENAME, Roles.PK_FIELD_NAMES );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Seccoes.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Seccoes.java
new file mode 100644
index 00000000..6e58c53e
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Seccoes.java
@@ -0,0 +1,445 @@
+/*
+* Seccoes.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Seccoes extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Seccoes.ID, Seccoes.ID_INDEX );
+ FIELD_INDEXES.put( Seccoes.ID_FULL, Seccoes.ID_INDEX );
+ FIELD_INDEXES.put( Seccoes.DESCRICAO, Seccoes.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( Seccoes.DESCRICAO_FULL, Seccoes.DESCRICAO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Seccoes.CLASS_IDENTIFIER, Seccoes.DEPARTAMENTO_ID, Seccoes.TO_DEPARTAMENTO_ID );
+ FIELD_INDEXES.put( Seccoes.DEPARTAMENTO_ID, Seccoes.DEPARTAMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Seccoes.DEPARTAMENTO_ID_FULL, Seccoes.DEPARTAMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Seccoes.TO_DEPARTAMENTO_ID, Seccoes.TO_DEPARTAMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Seccoes.ACTIVO, Seccoes.ACTIVO_INDEX );
+ FIELD_INDEXES.put( Seccoes.ACTIVO_FULL, Seccoes.ACTIVO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeydepartamento_idTodepartamentos =
+ new com.evolute.entity.ForeignKey( Seccoes.class, Seccoes.DEPARTAMENTO_ID, db.data.siprp.outer.DepartamentosData.class, db.data.siprp.outer.DepartamentosData.ID );
+
+ public static final String TABLENAME = "seccoes";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.seccoes";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "seccoes.id";
+ public static final int ID_INDEX = 0;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "seccoes.descricao";
+ public static final int DESCRICAO_INDEX = 1;
+ public static final String DEPARTAMENTO_ID = "departamento_id";
+ public static final String DEPARTAMENTO_ID_FULL = "seccoes.departamento_id";
+ public static final int DEPARTAMENTO_ID_INDEX = 2;
+ public static final String TO_DEPARTAMENTO_ID = "to_departamento_id";
+ public static final String TO_DEPARTAMENTO_ID_FULL = "seccoes.to_departamento_id";
+ public static final int TO_DEPARTAMENTO_ID_INDEX = 3;
+ public static final String ACTIVO = "activo";
+ public static final String ACTIVO_FULL = "seccoes.activo";
+ public static final int ACTIVO_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRICAO, DEPARTAMENTO_ID, TO_DEPARTAMENTO_ID, ACTIVO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRICAO, TABLENAME + "." + DEPARTAMENTO_ID, TABLENAME + "." + TO_DEPARTAMENTO_ID, TABLENAME + "." + ACTIVO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DESCRICAO, DEPARTAMENTO_ID, ACTIVO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DESCRICAO, DEPARTAMENTO_ID, ACTIVO, };
+
+ private Integer id;
+ private String descricao;
+ private Integer departamento_id;
+ private db.data.siprp.outer.DepartamentosData to_departamento_id;
+ private String activo;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Seccoes()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAnalisesAcidentes_seccao_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.AnalisesAcidentesData.class , getPrimaryKey().getMap().get("id"), "seccao_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Integer getDepartamento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DEPARTAMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.departamento_id;
+ }
+
+ public void setDepartamento_id( Integer departamento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DEPARTAMENTO_ID, departamento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.departamento_id = departamento_id;
+ LAZY_LOADED_OBJECTS.put( DEPARTAMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.DepartamentosData toDepartamento_id()
+ {
+ try
+ {
+ prepare( TO_DEPARTAMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_departamento_id;
+ }
+
+ public void setToDepartamento_id( db.data.siprp.outer.DepartamentosData to_departamento_id )
+ {
+ try
+ {
+ preProcess( TO_DEPARTAMENTO_ID, to_departamento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_departamento_id = to_departamento_id;
+ }
+
+ public String getActivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activo;
+ }
+
+ public void setActivo( String activo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVO, activo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activo = activo;
+ LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Seccoes.ID_INDEX:
+ value = getId();
+ break;
+ case Seccoes.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case Seccoes.DEPARTAMENTO_ID_INDEX:
+ value = getDepartamento_id();
+ break;
+ case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
+ value = toDepartamento_id();
+ break;
+ case Seccoes.ACTIVO_INDEX:
+ value = getActivo();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Seccoes.ID_INDEX:
+ value = this.id;
+ break;
+ case Seccoes.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case Seccoes.DEPARTAMENTO_ID_INDEX:
+ value = this.departamento_id;
+ break;
+ case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
+ value = this.to_departamento_id;
+ break;
+ case Seccoes.ACTIVO_INDEX:
+ value = this.activo;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Seccoes.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Seccoes.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case Seccoes.DEPARTAMENTO_ID_INDEX:
+ setDepartamento_id( ( Integer ) value );
+ break;
+ case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
+ setToDepartamento_id( ( db.data.siprp.outer.DepartamentosData ) value );
+ break;
+ case Seccoes.ACTIVO_INDEX:
+ setActivo( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Seccoes.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Seccoes.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case Seccoes.DEPARTAMENTO_ID_INDEX:
+ this.departamento_id = ( Integer ) value;
+ break;
+ case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
+ this.to_departamento_id = ( db.data.siprp.outer.DepartamentosData ) value;
+ break;
+ case Seccoes.ACTIVO_INDEX:
+ this.activo = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Seccoes.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Seccoes.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case Seccoes.DEPARTAMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
+ theClass = db.data.siprp.outer.DepartamentosData.class;
+ break;
+ case Seccoes.ACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Seccoes._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Seccoes.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/TiposExamesComp.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/TiposExamesComp.java
new file mode 100644
index 00000000..755f8fcf
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/TiposExamesComp.java
@@ -0,0 +1,343 @@
+/*
+* TiposExamesComp.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class TiposExamesComp extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( TiposExamesComp.ID, TiposExamesComp.ID_INDEX );
+ FIELD_INDEXES.put( TiposExamesComp.ID_FULL, TiposExamesComp.ID_INDEX );
+ FIELD_INDEXES.put( TiposExamesComp.ORDEM, TiposExamesComp.ORDEM_INDEX );
+ FIELD_INDEXES.put( TiposExamesComp.ORDEM_FULL, TiposExamesComp.ORDEM_INDEX );
+ FIELD_INDEXES.put( TiposExamesComp.DESCRICAO, TiposExamesComp.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( TiposExamesComp.DESCRICAO_FULL, TiposExamesComp.DESCRICAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "tipos_exames_comp";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.tipos_exames_comp";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "tipos_exames_comp.id";
+ public static final int ID_INDEX = 0;
+ public static final String ORDEM = "ordem";
+ public static final String ORDEM_FULL = "tipos_exames_comp.ordem";
+ public static final int ORDEM_INDEX = 1;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "tipos_exames_comp.descricao";
+ public static final int DESCRICAO_INDEX = 2;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ ORDEM, DESCRICAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + ORDEM, TABLENAME + "." + DESCRICAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, ORDEM, DESCRICAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, ORDEM, DESCRICAO, };
+
+ private Integer id;
+ private Integer ordem;
+ private String descricao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public TiposExamesComp()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromExamesPerfis_tipo()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.ExamesPerfisData.class , getPrimaryKey().getMap().get("id"), "tipo" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public Integer getOrdem()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ORDEM );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ordem;
+ }
+
+ public void setOrdem( Integer ordem )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ORDEM, ordem );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ordem = ordem;
+ LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposExamesComp.ID_INDEX:
+ value = getId();
+ break;
+ case TiposExamesComp.ORDEM_INDEX:
+ value = getOrdem();
+ break;
+ case TiposExamesComp.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposExamesComp.ID_INDEX:
+ value = this.id;
+ break;
+ case TiposExamesComp.ORDEM_INDEX:
+ value = this.ordem;
+ break;
+ case TiposExamesComp.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposExamesComp.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case TiposExamesComp.ORDEM_INDEX:
+ setOrdem( ( Integer ) value );
+ break;
+ case TiposExamesComp.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposExamesComp.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case TiposExamesComp.ORDEM_INDEX:
+ this.ordem = ( Integer ) value;
+ break;
+ case TiposExamesComp.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case TiposExamesComp.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case TiposExamesComp.ORDEM_INDEX:
+ theClass = Integer.class;
+ break;
+ case TiposExamesComp.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : TiposExamesComp._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, TiposExamesComp.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/TiposUtilizadores.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/TiposUtilizadores.java
new file mode 100644
index 00000000..10608736
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/TiposUtilizadores.java
@@ -0,0 +1,431 @@
+/*
+* TiposUtilizadores.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class TiposUtilizadores extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( TiposUtilizadores.ID, TiposUtilizadores.ID_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.ID_FULL, TiposUtilizadores.ID_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.TIPO, TiposUtilizadores.TIPO_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.TIPO_FULL, TiposUtilizadores.TIPO_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.DESCRICAO, TiposUtilizadores.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.DESCRICAO_FULL, TiposUtilizadores.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.ACTIVO, TiposUtilizadores.ACTIVO_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.ACTIVO_FULL, TiposUtilizadores.ACTIVO_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.ORDEM, TiposUtilizadores.ORDEM_INDEX );
+ FIELD_INDEXES.put( TiposUtilizadores.ORDEM_FULL, TiposUtilizadores.ORDEM_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "tipos_utilizadores";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.tipos_utilizadores";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "tipos_utilizadores.id";
+ public static final int ID_INDEX = 0;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "tipos_utilizadores.tipo";
+ public static final int TIPO_INDEX = 1;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "tipos_utilizadores.descricao";
+ public static final int DESCRICAO_INDEX = 2;
+ public static final String ACTIVO = "activo";
+ public static final String ACTIVO_FULL = "tipos_utilizadores.activo";
+ public static final int ACTIVO_INDEX = 3;
+ public static final String ORDEM = "ordem";
+ public static final String ORDEM_FULL = "tipos_utilizadores.ordem";
+ public static final int ORDEM_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ TIPO, DESCRICAO, ACTIVO, ORDEM, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + TIPO, TABLENAME + "." + DESCRICAO, TABLENAME + "." + ACTIVO, TABLENAME + "." + ORDEM, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, TIPO, DESCRICAO, ACTIVO, ORDEM, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, TIPO, DESCRICAO, ACTIVO, ORDEM, };
+
+ private Integer id;
+ private Integer tipo;
+ private String descricao;
+ private String activo;
+ private Integer ordem;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public TiposUtilizadores()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public String getActivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activo;
+ }
+
+ public void setActivo( String activo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVO, activo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activo = activo;
+ LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
+ }
+
+ public Integer getOrdem()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ORDEM );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ordem;
+ }
+
+ public void setOrdem( Integer ordem )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ORDEM, ordem );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ordem = ordem;
+ LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposUtilizadores.ID_INDEX:
+ value = getId();
+ break;
+ case TiposUtilizadores.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case TiposUtilizadores.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ case TiposUtilizadores.ACTIVO_INDEX:
+ value = getActivo();
+ break;
+ case TiposUtilizadores.ORDEM_INDEX:
+ value = getOrdem();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposUtilizadores.ID_INDEX:
+ value = this.id;
+ break;
+ case TiposUtilizadores.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case TiposUtilizadores.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ case TiposUtilizadores.ACTIVO_INDEX:
+ value = this.activo;
+ break;
+ case TiposUtilizadores.ORDEM_INDEX:
+ value = this.ordem;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposUtilizadores.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case TiposUtilizadores.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case TiposUtilizadores.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ case TiposUtilizadores.ACTIVO_INDEX:
+ setActivo( ( String ) value );
+ break;
+ case TiposUtilizadores.ORDEM_INDEX:
+ setOrdem( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case TiposUtilizadores.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case TiposUtilizadores.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case TiposUtilizadores.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ case TiposUtilizadores.ACTIVO_INDEX:
+ this.activo = ( String ) value;
+ break;
+ case TiposUtilizadores.ORDEM_INDEX:
+ this.ordem = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case TiposUtilizadores.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case TiposUtilizadores.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case TiposUtilizadores.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ case TiposUtilizadores.ACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ case TiposUtilizadores.ORDEM_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : TiposUtilizadores._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, TiposUtilizadores.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Trabalhadores.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Trabalhadores.java
new file mode 100644
index 00000000..c6f581f9
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Trabalhadores.java
@@ -0,0 +1,1083 @@
+/*
+* Trabalhadores.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Trabalhadores extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Trabalhadores.ID, Trabalhadores.ID_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.ID_FULL, Trabalhadores.ID_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.SEXO, Trabalhadores.SEXO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.SEXO_FULL, Trabalhadores.SEXO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.DATA_NASCIMENTO, Trabalhadores.DATA_NASCIMENTO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.DATA_NASCIMENTO_FULL, Trabalhadores.DATA_NASCIMENTO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.NUMERO_MECANOGRAFICO, Trabalhadores.NUMERO_MECANOGRAFICO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.NUMERO_MECANOGRAFICO_FULL, Trabalhadores.NUMERO_MECANOGRAFICO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.CATEGORIA, Trabalhadores.CATEGORIA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.CATEGORIA_FULL, Trabalhadores.CATEGORIA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.ULTIMO_EXAME, Trabalhadores.ULTIMO_EXAME_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.ULTIMO_EXAME_FULL, Trabalhadores.ULTIMO_EXAME_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.REALIZADO, Trabalhadores.REALIZADO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.REALIZADO_FULL, Trabalhadores.REALIZADO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.PROXIMO_EXAME, Trabalhadores.PROXIMO_EXAME_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.PROXIMO_EXAME_FULL, Trabalhadores.PROXIMO_EXAME_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.ULTIMA_CONSULTA, Trabalhadores.ULTIMA_CONSULTA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.ULTIMA_CONSULTA_FULL, Trabalhadores.ULTIMA_CONSULTA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.REALIZADA, Trabalhadores.REALIZADA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.REALIZADA_FULL, Trabalhadores.REALIZADA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.PROXIMA_CONSULTA, Trabalhadores.PROXIMA_CONSULTA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.PROXIMA_CONSULTA_FULL, Trabalhadores.PROXIMA_CONSULTA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.NOME, Trabalhadores.NOME_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.NOME_FULL, Trabalhadores.NOME_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Trabalhadores.CLASS_IDENTIFIER, Trabalhadores.ESTABELECIMENTO_ID, Trabalhadores.TO_ESTABELECIMENTO_ID );
+ FIELD_INDEXES.put( Trabalhadores.ESTABELECIMENTO_ID, Trabalhadores.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.ESTABELECIMENTO_ID_FULL, Trabalhadores.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.TO_ESTABELECIMENTO_ID, Trabalhadores.TO_ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.RESULTADO, Trabalhadores.RESULTADO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.RESULTADO_FULL, Trabalhadores.RESULTADO_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.DATA_ESPERADA, Trabalhadores.DATA_ESPERADA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.DATA_ESPERADA_FULL, Trabalhadores.DATA_ESPERADA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.DATA_FICHA, Trabalhadores.DATA_FICHA_INDEX );
+ FIELD_INDEXES.put( Trabalhadores.DATA_FICHA_FULL, Trabalhadores.DATA_FICHA_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
+ new com.evolute.entity.ForeignKey( Trabalhadores.class, Trabalhadores.ESTABELECIMENTO_ID, db.data.siprp.outer.EstabelecimentosData.class, db.data.siprp.outer.EstabelecimentosData.ID );
+
+ public static final String TABLENAME = "trabalhadores";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.trabalhadores";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "trabalhadores.id";
+ public static final int ID_INDEX = 0;
+ public static final String SEXO = "sexo";
+ public static final String SEXO_FULL = "trabalhadores.sexo";
+ public static final int SEXO_INDEX = 1;
+ public static final String DATA_NASCIMENTO = "data_nascimento";
+ public static final String DATA_NASCIMENTO_FULL = "trabalhadores.data_nascimento";
+ public static final int DATA_NASCIMENTO_INDEX = 2;
+ public static final String NUMERO_MECANOGRAFICO = "numero_mecanografico";
+ public static final String NUMERO_MECANOGRAFICO_FULL = "trabalhadores.numero_mecanografico";
+ public static final int NUMERO_MECANOGRAFICO_INDEX = 3;
+ public static final String CATEGORIA = "categoria";
+ public static final String CATEGORIA_FULL = "trabalhadores.categoria";
+ public static final int CATEGORIA_INDEX = 4;
+ public static final String ULTIMO_EXAME = "ultimo_exame";
+ public static final String ULTIMO_EXAME_FULL = "trabalhadores.ultimo_exame";
+ public static final int ULTIMO_EXAME_INDEX = 5;
+ public static final String REALIZADO = "realizado";
+ public static final String REALIZADO_FULL = "trabalhadores.realizado";
+ public static final int REALIZADO_INDEX = 6;
+ public static final String PROXIMO_EXAME = "proximo_exame";
+ public static final String PROXIMO_EXAME_FULL = "trabalhadores.proximo_exame";
+ public static final int PROXIMO_EXAME_INDEX = 7;
+ public static final String ULTIMA_CONSULTA = "ultima_consulta";
+ public static final String ULTIMA_CONSULTA_FULL = "trabalhadores.ultima_consulta";
+ public static final int ULTIMA_CONSULTA_INDEX = 8;
+ public static final String REALIZADA = "realizada";
+ public static final String REALIZADA_FULL = "trabalhadores.realizada";
+ public static final int REALIZADA_INDEX = 9;
+ public static final String PROXIMA_CONSULTA = "proxima_consulta";
+ public static final String PROXIMA_CONSULTA_FULL = "trabalhadores.proxima_consulta";
+ public static final int PROXIMA_CONSULTA_INDEX = 10;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "trabalhadores.nome";
+ public static final int NOME_INDEX = 11;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "trabalhadores.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 12;
+ public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
+ public static final String TO_ESTABELECIMENTO_ID_FULL = "trabalhadores.to_estabelecimento_id";
+ public static final int TO_ESTABELECIMENTO_ID_INDEX = 13;
+ public static final String RESULTADO = "resultado";
+ public static final String RESULTADO_FULL = "trabalhadores.resultado";
+ public static final int RESULTADO_INDEX = 14;
+ public static final String DATA_ESPERADA = "data_esperada";
+ public static final String DATA_ESPERADA_FULL = "trabalhadores.data_esperada";
+ public static final int DATA_ESPERADA_INDEX = 15;
+ public static final String DATA_FICHA = "data_ficha";
+ public static final String DATA_FICHA_FULL = "trabalhadores.data_ficha";
+ public static final int DATA_FICHA_INDEX = 16;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ SEXO, DATA_NASCIMENTO, NUMERO_MECANOGRAFICO, CATEGORIA, ULTIMO_EXAME, REALIZADO,
+ PROXIMO_EXAME, ULTIMA_CONSULTA, REALIZADA, PROXIMA_CONSULTA, NOME,
+ ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID, RESULTADO, DATA_ESPERADA,
+ DATA_FICHA, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + SEXO, TABLENAME + "." + DATA_NASCIMENTO, TABLENAME + "." + NUMERO_MECANOGRAFICO, TABLENAME + "." + CATEGORIA, TABLENAME + "." + ULTIMO_EXAME, TABLENAME + "." + REALIZADO,
+ TABLENAME + "." + PROXIMO_EXAME, TABLENAME + "." + ULTIMA_CONSULTA, TABLENAME + "." + REALIZADA, TABLENAME + "." + PROXIMA_CONSULTA, TABLENAME + "." + NOME,
+ TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID, TABLENAME + "." + RESULTADO, TABLENAME + "." + DATA_ESPERADA,
+ TABLENAME + "." + DATA_FICHA, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, SEXO, DATA_NASCIMENTO, NUMERO_MECANOGRAFICO, CATEGORIA, ULTIMO_EXAME,
+ REALIZADO, PROXIMO_EXAME, ULTIMA_CONSULTA, REALIZADA, PROXIMA_CONSULTA, NOME,
+ ESTABELECIMENTO_ID, RESULTADO, DATA_ESPERADA, DATA_FICHA, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, SEXO, DATA_NASCIMENTO, NUMERO_MECANOGRAFICO, CATEGORIA, ULTIMO_EXAME,
+ REALIZADO, PROXIMO_EXAME, ULTIMA_CONSULTA, REALIZADA, PROXIMA_CONSULTA, NOME,
+ ESTABELECIMENTO_ID, RESULTADO, DATA_ESPERADA, DATA_FICHA, };
+
+ private Integer id;
+ private String sexo;
+ private java.util.Date data_nascimento;
+ private String numero_mecanografico;
+ private String categoria;
+ private java.util.Date ultimo_exame;
+ private String realizado;
+ private java.util.Date proximo_exame;
+ private java.util.Date ultima_consulta;
+ private String realizada;
+ private java.util.Date proxima_consulta;
+ private String nome;
+ private Integer estabelecimento_id;
+ private db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id;
+ private String resultado;
+ private java.util.Date data_esperada;
+ private java.util.Date data_ficha;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Trabalhadores()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAvisos_trabalhador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.AvisosData.class , getPrimaryKey().getMap().get("id"), "trabalhador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromExames_trabalhador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.ExamesData.class , getPrimaryKey().getMap().get("id"), "trabalhador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromMarcacoesTrabalhador_trabalhador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.MarcacoesTrabalhadorData.class , getPrimaryKey().getMap().get("id"), "trabalhador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getSexo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( SEXO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.sexo;
+ }
+
+ public void setSexo( String sexo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( SEXO, sexo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.sexo = sexo;
+ LAZY_LOADED_OBJECTS.put( SEXO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_nascimento()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_NASCIMENTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_nascimento;
+ }
+
+ public void setData_nascimento( java.util.Date data_nascimento )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_NASCIMENTO, data_nascimento );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_nascimento = data_nascimento;
+ LAZY_LOADED_OBJECTS.put( DATA_NASCIMENTO, Boolean.TRUE );
+ }
+
+ public String getNumero_mecanografico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NUMERO_MECANOGRAFICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.numero_mecanografico;
+ }
+
+ public void setNumero_mecanografico( String numero_mecanografico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NUMERO_MECANOGRAFICO, numero_mecanografico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.numero_mecanografico = numero_mecanografico;
+ LAZY_LOADED_OBJECTS.put( NUMERO_MECANOGRAFICO, Boolean.TRUE );
+ }
+
+ public String getCategoria()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CATEGORIA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.categoria;
+ }
+
+ public void setCategoria( String categoria )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CATEGORIA, categoria );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.categoria = categoria;
+ LAZY_LOADED_OBJECTS.put( CATEGORIA, Boolean.TRUE );
+ }
+
+ public java.util.Date getUltimo_exame()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ULTIMO_EXAME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ultimo_exame;
+ }
+
+ public void setUltimo_exame( java.util.Date ultimo_exame )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ULTIMO_EXAME, ultimo_exame );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ultimo_exame = ultimo_exame;
+ LAZY_LOADED_OBJECTS.put( ULTIMO_EXAME, Boolean.TRUE );
+ }
+
+ public String getRealizado()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( REALIZADO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.realizado;
+ }
+
+ public void setRealizado( String realizado )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( REALIZADO, realizado );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.realizado = realizado;
+ LAZY_LOADED_OBJECTS.put( REALIZADO, Boolean.TRUE );
+ }
+
+ public java.util.Date getProximo_exame()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PROXIMO_EXAME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.proximo_exame;
+ }
+
+ public void setProximo_exame( java.util.Date proximo_exame )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PROXIMO_EXAME, proximo_exame );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.proximo_exame = proximo_exame;
+ LAZY_LOADED_OBJECTS.put( PROXIMO_EXAME, Boolean.TRUE );
+ }
+
+ public java.util.Date getUltima_consulta()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ULTIMA_CONSULTA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.ultima_consulta;
+ }
+
+ public void setUltima_consulta( java.util.Date ultima_consulta )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ULTIMA_CONSULTA, ultima_consulta );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.ultima_consulta = ultima_consulta;
+ LAZY_LOADED_OBJECTS.put( ULTIMA_CONSULTA, Boolean.TRUE );
+ }
+
+ public String getRealizada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( REALIZADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.realizada;
+ }
+
+ public void setRealizada( String realizada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( REALIZADA, realizada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.realizada = realizada;
+ LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
+ }
+
+ public java.util.Date getProxima_consulta()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PROXIMA_CONSULTA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.proxima_consulta;
+ }
+
+ public void setProxima_consulta( java.util.Date proxima_consulta )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PROXIMA_CONSULTA, proxima_consulta );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.proxima_consulta = proxima_consulta;
+ LAZY_LOADED_OBJECTS.put( PROXIMA_CONSULTA, Boolean.TRUE );
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp.outer.EstabelecimentosData toEstabelecimento_id()
+ {
+ try
+ {
+ prepare( TO_ESTABELECIMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_estabelecimento_id;
+ }
+
+ public void setToEstabelecimento_id( db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id )
+ {
+ try
+ {
+ preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_estabelecimento_id = to_estabelecimento_id;
+ }
+
+ public String getResultado()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESULTADO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.resultado;
+ }
+
+ public void setResultado( String resultado )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESULTADO, resultado );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.resultado = resultado;
+ LAZY_LOADED_OBJECTS.put( RESULTADO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_esperada()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_ESPERADA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_esperada;
+ }
+
+ public void setData_esperada( java.util.Date data_esperada )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_ESPERADA, data_esperada );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_esperada = data_esperada;
+ LAZY_LOADED_OBJECTS.put( DATA_ESPERADA, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_ficha()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_FICHA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_ficha;
+ }
+
+ public void setData_ficha( java.util.Date data_ficha )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_FICHA, data_ficha );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_ficha = data_ficha;
+ LAZY_LOADED_OBJECTS.put( DATA_FICHA, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Trabalhadores.ID_INDEX:
+ value = getId();
+ break;
+ case Trabalhadores.SEXO_INDEX:
+ value = getSexo();
+ break;
+ case Trabalhadores.DATA_NASCIMENTO_INDEX:
+ value = getData_nascimento();
+ break;
+ case Trabalhadores.NUMERO_MECANOGRAFICO_INDEX:
+ value = getNumero_mecanografico();
+ break;
+ case Trabalhadores.CATEGORIA_INDEX:
+ value = getCategoria();
+ break;
+ case Trabalhadores.ULTIMO_EXAME_INDEX:
+ value = getUltimo_exame();
+ break;
+ case Trabalhadores.REALIZADO_INDEX:
+ value = getRealizado();
+ break;
+ case Trabalhadores.PROXIMO_EXAME_INDEX:
+ value = getProximo_exame();
+ break;
+ case Trabalhadores.ULTIMA_CONSULTA_INDEX:
+ value = getUltima_consulta();
+ break;
+ case Trabalhadores.REALIZADA_INDEX:
+ value = getRealizada();
+ break;
+ case Trabalhadores.PROXIMA_CONSULTA_INDEX:
+ value = getProxima_consulta();
+ break;
+ case Trabalhadores.NOME_INDEX:
+ value = getNome();
+ break;
+ case Trabalhadores.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case Trabalhadores.TO_ESTABELECIMENTO_ID_INDEX:
+ value = toEstabelecimento_id();
+ break;
+ case Trabalhadores.RESULTADO_INDEX:
+ value = getResultado();
+ break;
+ case Trabalhadores.DATA_ESPERADA_INDEX:
+ value = getData_esperada();
+ break;
+ case Trabalhadores.DATA_FICHA_INDEX:
+ value = getData_ficha();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Trabalhadores.ID_INDEX:
+ value = this.id;
+ break;
+ case Trabalhadores.SEXO_INDEX:
+ value = this.sexo;
+ break;
+ case Trabalhadores.DATA_NASCIMENTO_INDEX:
+ value = this.data_nascimento;
+ break;
+ case Trabalhadores.NUMERO_MECANOGRAFICO_INDEX:
+ value = this.numero_mecanografico;
+ break;
+ case Trabalhadores.CATEGORIA_INDEX:
+ value = this.categoria;
+ break;
+ case Trabalhadores.ULTIMO_EXAME_INDEX:
+ value = this.ultimo_exame;
+ break;
+ case Trabalhadores.REALIZADO_INDEX:
+ value = this.realizado;
+ break;
+ case Trabalhadores.PROXIMO_EXAME_INDEX:
+ value = this.proximo_exame;
+ break;
+ case Trabalhadores.ULTIMA_CONSULTA_INDEX:
+ value = this.ultima_consulta;
+ break;
+ case Trabalhadores.REALIZADA_INDEX:
+ value = this.realizada;
+ break;
+ case Trabalhadores.PROXIMA_CONSULTA_INDEX:
+ value = this.proxima_consulta;
+ break;
+ case Trabalhadores.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Trabalhadores.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case Trabalhadores.TO_ESTABELECIMENTO_ID_INDEX:
+ value = this.to_estabelecimento_id;
+ break;
+ case Trabalhadores.RESULTADO_INDEX:
+ value = this.resultado;
+ break;
+ case Trabalhadores.DATA_ESPERADA_INDEX:
+ value = this.data_esperada;
+ break;
+ case Trabalhadores.DATA_FICHA_INDEX:
+ value = this.data_ficha;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Trabalhadores.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Trabalhadores.SEXO_INDEX:
+ setSexo( ( String ) value );
+ break;
+ case Trabalhadores.DATA_NASCIMENTO_INDEX:
+ setData_nascimento( ( java.util.Date ) value );
+ break;
+ case Trabalhadores.NUMERO_MECANOGRAFICO_INDEX:
+ setNumero_mecanografico( ( String ) value );
+ break;
+ case Trabalhadores.CATEGORIA_INDEX:
+ setCategoria( ( String ) value );
+ break;
+ case Trabalhadores.ULTIMO_EXAME_INDEX:
+ setUltimo_exame( ( java.util.Date ) value );
+ break;
+ case Trabalhadores.REALIZADO_INDEX:
+ setRealizado( ( String ) value );
+ break;
+ case Trabalhadores.PROXIMO_EXAME_INDEX:
+ setProximo_exame( ( java.util.Date ) value );
+ break;
+ case Trabalhadores.ULTIMA_CONSULTA_INDEX:
+ setUltima_consulta( ( java.util.Date ) value );
+ break;
+ case Trabalhadores.REALIZADA_INDEX:
+ setRealizada( ( String ) value );
+ break;
+ case Trabalhadores.PROXIMA_CONSULTA_INDEX:
+ setProxima_consulta( ( java.util.Date ) value );
+ break;
+ case Trabalhadores.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Trabalhadores.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case Trabalhadores.TO_ESTABELECIMENTO_ID_INDEX:
+ setToEstabelecimento_id( ( db.data.siprp.outer.EstabelecimentosData ) value );
+ break;
+ case Trabalhadores.RESULTADO_INDEX:
+ setResultado( ( String ) value );
+ break;
+ case Trabalhadores.DATA_ESPERADA_INDEX:
+ setData_esperada( ( java.util.Date ) value );
+ break;
+ case Trabalhadores.DATA_FICHA_INDEX:
+ setData_ficha( ( java.util.Date ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Trabalhadores.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Trabalhadores.SEXO_INDEX:
+ this.sexo = ( String ) value;
+ break;
+ case Trabalhadores.DATA_NASCIMENTO_INDEX:
+ this.data_nascimento = ( java.util.Date ) value;
+ break;
+ case Trabalhadores.NUMERO_MECANOGRAFICO_INDEX:
+ this.numero_mecanografico = ( String ) value;
+ break;
+ case Trabalhadores.CATEGORIA_INDEX:
+ this.categoria = ( String ) value;
+ break;
+ case Trabalhadores.ULTIMO_EXAME_INDEX:
+ this.ultimo_exame = ( java.util.Date ) value;
+ break;
+ case Trabalhadores.REALIZADO_INDEX:
+ this.realizado = ( String ) value;
+ break;
+ case Trabalhadores.PROXIMO_EXAME_INDEX:
+ this.proximo_exame = ( java.util.Date ) value;
+ break;
+ case Trabalhadores.ULTIMA_CONSULTA_INDEX:
+ this.ultima_consulta = ( java.util.Date ) value;
+ break;
+ case Trabalhadores.REALIZADA_INDEX:
+ this.realizada = ( String ) value;
+ break;
+ case Trabalhadores.PROXIMA_CONSULTA_INDEX:
+ this.proxima_consulta = ( java.util.Date ) value;
+ break;
+ case Trabalhadores.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Trabalhadores.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case Trabalhadores.TO_ESTABELECIMENTO_ID_INDEX:
+ this.to_estabelecimento_id = ( db.data.siprp.outer.EstabelecimentosData ) value;
+ break;
+ case Trabalhadores.RESULTADO_INDEX:
+ this.resultado = ( String ) value;
+ break;
+ case Trabalhadores.DATA_ESPERADA_INDEX:
+ this.data_esperada = ( java.util.Date ) value;
+ break;
+ case Trabalhadores.DATA_FICHA_INDEX:
+ this.data_ficha = ( java.util.Date ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Trabalhadores.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Trabalhadores.SEXO_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.DATA_NASCIMENTO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Trabalhadores.NUMERO_MECANOGRAFICO_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.CATEGORIA_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.ULTIMO_EXAME_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Trabalhadores.REALIZADO_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.PROXIMO_EXAME_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Trabalhadores.ULTIMA_CONSULTA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Trabalhadores.REALIZADA_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.PROXIMA_CONSULTA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Trabalhadores.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Trabalhadores.TO_ESTABELECIMENTO_ID_INDEX:
+ theClass = db.data.siprp.outer.EstabelecimentosData.class;
+ break;
+ case Trabalhadores.RESULTADO_INDEX:
+ theClass = String.class;
+ break;
+ case Trabalhadores.DATA_ESPERADA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Trabalhadores.DATA_FICHA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Trabalhadores._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Trabalhadores.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Users.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Users.java
new file mode 100644
index 00000000..1df6d29e
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Users.java
@@ -0,0 +1,178 @@
+/*
+* Users.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Users extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "users";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.users";
+
+ public static final int _INVALID__INDEX = -1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ };
+
+
+ protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
+
+ public Users()
+ {
+ super();
+ dirtyProperties = new boolean[]{ };
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ throw new RuntimeException( "getPrimaryKeyName on Users is invalid" );
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Users._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.ObjectPrimaryKey( TABLENAME, Users.PK_FIELD_NAMES );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Utilizadores.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Utilizadores.java
new file mode 100644
index 00000000..d067e29c
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Utilizadores.java
@@ -0,0 +1,1233 @@
+/*
+* Utilizadores.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Utilizadores extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Utilizadores.ID, Utilizadores.ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ID_FULL, Utilizadores.ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.LOGIN, Utilizadores.LOGIN_INDEX );
+ FIELD_INDEXES.put( Utilizadores.LOGIN_FULL, Utilizadores.LOGIN_INDEX );
+ FIELD_INDEXES.put( Utilizadores.PASSWORD, Utilizadores.PASSWORD_INDEX );
+ FIELD_INDEXES.put( Utilizadores.PASSWORD_FULL, Utilizadores.PASSWORD_INDEX );
+ FIELD_INDEXES.put( Utilizadores.EMAIL, Utilizadores.EMAIL_INDEX );
+ FIELD_INDEXES.put( Utilizadores.EMAIL_FULL, Utilizadores.EMAIL_INDEX );
+ FIELD_INDEXES.put( Utilizadores.EMPRESA_ID, Utilizadores.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.EMPRESA_ID_FULL, Utilizadores.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ESTABELECIMENTO_ID, Utilizadores.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ESTABELECIMENTO_ID_FULL, Utilizadores.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ADMINISTRADOR, Utilizadores.ADMINISTRADOR_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ADMINISTRADOR_FULL, Utilizadores.ADMINISTRADOR_INDEX );
+ FIELD_INDEXES.put( Utilizadores.MEDICO_ID, Utilizadores.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.MEDICO_ID_FULL, Utilizadores.MEDICO_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.TIPO, Utilizadores.TIPO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.TIPO_FULL, Utilizadores.TIPO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.NUMERO_CEDULA, Utilizadores.NUMERO_CEDULA_INDEX );
+ FIELD_INDEXES.put( Utilizadores.NUMERO_CEDULA_FULL, Utilizadores.NUMERO_CEDULA_INDEX );
+ FIELD_INDEXES.put( Utilizadores.CAP, Utilizadores.CAP_INDEX );
+ FIELD_INDEXES.put( Utilizadores.CAP_FULL, Utilizadores.CAP_INDEX );
+ FIELD_INDEXES.put( Utilizadores.NOME, Utilizadores.NOME_INDEX );
+ FIELD_INDEXES.put( Utilizadores.NOME_FULL, Utilizadores.NOME_INDEX );
+ FIELD_INDEXES.put( Utilizadores.FUNCIONARIO_HST_ID, Utilizadores.FUNCIONARIO_HST_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.FUNCIONARIO_HST_ID_FULL, Utilizadores.FUNCIONARIO_HST_ID_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ACTIVO, Utilizadores.ACTIVO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.ACTIVO_FULL, Utilizadores.ACTIVO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.RESPONSAVEL_LOJA, Utilizadores.RESPONSAVEL_LOJA_INDEX );
+ FIELD_INDEXES.put( Utilizadores.RESPONSAVEL_LOJA_FULL, Utilizadores.RESPONSAVEL_LOJA_INDEX );
+ FIELD_INDEXES.put( Utilizadores.NUMERO_MECANOGRAFICO, Utilizadores.NUMERO_MECANOGRAFICO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.NUMERO_MECANOGRAFICO_FULL, Utilizadores.NUMERO_MECANOGRAFICO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.GESTOR_GERAL, Utilizadores.GESTOR_GERAL_INDEX );
+ FIELD_INDEXES.put( Utilizadores.GESTOR_GERAL_FULL, Utilizadores.GESTOR_GERAL_INDEX );
+ FIELD_INDEXES.put( Utilizadores.PRIMEIRO_LOGIN, Utilizadores.PRIMEIRO_LOGIN_INDEX );
+ FIELD_INDEXES.put( Utilizadores.PRIMEIRO_LOGIN_FULL, Utilizadores.PRIMEIRO_LOGIN_INDEX );
+ FIELD_INDEXES.put( Utilizadores.APAGADO, Utilizadores.APAGADO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.APAGADO_FULL, Utilizadores.APAGADO_INDEX );
+ FIELD_INDEXES.put( Utilizadores.DATA_PASSWORD, Utilizadores.DATA_PASSWORD_INDEX );
+ FIELD_INDEXES.put( Utilizadores.DATA_PASSWORD_FULL, Utilizadores.DATA_PASSWORD_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "utilizadores";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.utilizadores";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "utilizadores.id";
+ public static final int ID_INDEX = 0;
+ public static final String LOGIN = "login";
+ public static final String LOGIN_FULL = "utilizadores.login";
+ public static final int LOGIN_INDEX = 1;
+ public static final String PASSWORD = "password";
+ public static final String PASSWORD_FULL = "utilizadores.password";
+ public static final int PASSWORD_INDEX = 2;
+ public static final String EMAIL = "email";
+ public static final String EMAIL_FULL = "utilizadores.email";
+ public static final int EMAIL_INDEX = 3;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "utilizadores.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 4;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "utilizadores.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 5;
+ public static final String ADMINISTRADOR = "administrador";
+ public static final String ADMINISTRADOR_FULL = "utilizadores.administrador";
+ public static final int ADMINISTRADOR_INDEX = 6;
+ public static final String MEDICO_ID = "medico_id";
+ public static final String MEDICO_ID_FULL = "utilizadores.medico_id";
+ public static final int MEDICO_ID_INDEX = 7;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "utilizadores.tipo";
+ public static final int TIPO_INDEX = 8;
+ public static final String NUMERO_CEDULA = "numero_cedula";
+ public static final String NUMERO_CEDULA_FULL = "utilizadores.numero_cedula";
+ public static final int NUMERO_CEDULA_INDEX = 9;
+ public static final String CAP = "cap";
+ public static final String CAP_FULL = "utilizadores.cap";
+ public static final int CAP_INDEX = 10;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "utilizadores.nome";
+ public static final int NOME_INDEX = 11;
+ public static final String FUNCIONARIO_HST_ID = "funcionario_hst_id";
+ public static final String FUNCIONARIO_HST_ID_FULL = "utilizadores.funcionario_hst_id";
+ public static final int FUNCIONARIO_HST_ID_INDEX = 12;
+ public static final String ACTIVO = "activo";
+ public static final String ACTIVO_FULL = "utilizadores.activo";
+ public static final int ACTIVO_INDEX = 13;
+ public static final String RESPONSAVEL_LOJA = "responsavel_loja";
+ public static final String RESPONSAVEL_LOJA_FULL = "utilizadores.responsavel_loja";
+ public static final int RESPONSAVEL_LOJA_INDEX = 14;
+ public static final String NUMERO_MECANOGRAFICO = "numero_mecanografico";
+ public static final String NUMERO_MECANOGRAFICO_FULL = "utilizadores.numero_mecanografico";
+ public static final int NUMERO_MECANOGRAFICO_INDEX = 15;
+ public static final String GESTOR_GERAL = "gestor_geral";
+ public static final String GESTOR_GERAL_FULL = "utilizadores.gestor_geral";
+ public static final int GESTOR_GERAL_INDEX = 16;
+ public static final String PRIMEIRO_LOGIN = "primeiro_login";
+ public static final String PRIMEIRO_LOGIN_FULL = "utilizadores.primeiro_login";
+ public static final int PRIMEIRO_LOGIN_INDEX = 17;
+ public static final String APAGADO = "apagado";
+ public static final String APAGADO_FULL = "utilizadores.apagado";
+ public static final int APAGADO_INDEX = 18;
+ public static final String DATA_PASSWORD = "data_password";
+ public static final String DATA_PASSWORD_FULL = "utilizadores.data_password";
+ public static final int DATA_PASSWORD_INDEX = 19;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ LOGIN, PASSWORD, EMAIL, EMPRESA_ID, ESTABELECIMENTO_ID, ADMINISTRADOR, MEDICO_ID,
+ TIPO, NUMERO_CEDULA, CAP, NOME, FUNCIONARIO_HST_ID, ACTIVO, RESPONSAVEL_LOJA,
+ NUMERO_MECANOGRAFICO, GESTOR_GERAL, PRIMEIRO_LOGIN, APAGADO, DATA_PASSWORD, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + LOGIN, TABLENAME + "." + PASSWORD, TABLENAME + "." + EMAIL, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + ADMINISTRADOR, TABLENAME + "." + MEDICO_ID,
+ TABLENAME + "." + TIPO, TABLENAME + "." + NUMERO_CEDULA, TABLENAME + "." + CAP, TABLENAME + "." + NOME, TABLENAME + "." + FUNCIONARIO_HST_ID, TABLENAME + "." + ACTIVO, TABLENAME + "." + RESPONSAVEL_LOJA,
+ TABLENAME + "." + NUMERO_MECANOGRAFICO, TABLENAME + "." + GESTOR_GERAL, TABLENAME + "." + PRIMEIRO_LOGIN, TABLENAME + "." + APAGADO, TABLENAME + "." + DATA_PASSWORD, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, LOGIN, PASSWORD, EMAIL, EMPRESA_ID, ESTABELECIMENTO_ID, ADMINISTRADOR, MEDICO_ID,
+ TIPO, NUMERO_CEDULA, CAP, NOME, FUNCIONARIO_HST_ID, ACTIVO, RESPONSAVEL_LOJA,
+ NUMERO_MECANOGRAFICO, GESTOR_GERAL, PRIMEIRO_LOGIN, APAGADO, DATA_PASSWORD, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, LOGIN, PASSWORD, EMAIL, EMPRESA_ID, ESTABELECIMENTO_ID, ADMINISTRADOR, MEDICO_ID,
+ TIPO, NUMERO_CEDULA, CAP, NOME, FUNCIONARIO_HST_ID, ACTIVO, RESPONSAVEL_LOJA,
+ NUMERO_MECANOGRAFICO, GESTOR_GERAL, PRIMEIRO_LOGIN, APAGADO, DATA_PASSWORD, };
+
+ private Integer id;
+ private String login;
+ private String password;
+ private String email;
+ private Integer empresa_id;
+ private Integer estabelecimento_id;
+ private String administrador;
+ private Integer medico_id;
+ private Integer tipo;
+ private String numero_cedula;
+ private String cap;
+ private String nome;
+ private Integer funcionario_hst_id;
+ private String activo;
+ private String responsavel_loja;
+ private String numero_mecanografico;
+ private String gestor_geral;
+ private String primeiro_login;
+ private String apagado;
+ private java.util.Date data_password;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Utilizadores()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromPlanosActuacao_user_dir_loja()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanosActuacaoData.class , getPrimaryKey().getMap().get("id"), "user_dir_loja" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromPlanosActuacao_user_dns()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanosActuacaoData.class , getPrimaryKey().getMap().get("id"), "user_dns" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromPlanosActuacao_user_hs()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp.outer.PlanosActuacaoData.class , getPrimaryKey().getMap().get("id"), "user_hs" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getLogin()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LOGIN );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.login;
+ }
+
+ public void setLogin( String login )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LOGIN, login );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.login = login;
+ LAZY_LOADED_OBJECTS.put( LOGIN, Boolean.TRUE );
+ }
+
+ public String getPassword()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PASSWORD );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.password;
+ }
+
+ public void setPassword( String password )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PASSWORD, password );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.password = password;
+ LAZY_LOADED_OBJECTS.put( PASSWORD, Boolean.TRUE );
+ }
+
+ public String getEmail()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMAIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.email;
+ }
+
+ public void setEmail( String email )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMAIL, email );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.email = email;
+ LAZY_LOADED_OBJECTS.put( EMAIL, Boolean.TRUE );
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public String getAdministrador()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ADMINISTRADOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.administrador;
+ }
+
+ public void setAdministrador( String administrador )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ADMINISTRADOR, administrador );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.administrador = administrador;
+ LAZY_LOADED_OBJECTS.put( ADMINISTRADOR, Boolean.TRUE );
+ }
+
+ public Integer getMedico_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MEDICO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.medico_id;
+ }
+
+ public void setMedico_id( Integer medico_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MEDICO_ID, medico_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.medico_id = medico_id;
+ LAZY_LOADED_OBJECTS.put( MEDICO_ID, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public String getNumero_cedula()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NUMERO_CEDULA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.numero_cedula;
+ }
+
+ public void setNumero_cedula( String numero_cedula )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NUMERO_CEDULA, numero_cedula );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.numero_cedula = numero_cedula;
+ LAZY_LOADED_OBJECTS.put( NUMERO_CEDULA, Boolean.TRUE );
+ }
+
+ public String getCap()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CAP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cap;
+ }
+
+ public void setCap( String cap )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CAP, cap );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cap = cap;
+ LAZY_LOADED_OBJECTS.put( CAP, Boolean.TRUE );
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public Integer getFuncionario_hst_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FUNCIONARIO_HST_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.funcionario_hst_id;
+ }
+
+ public void setFuncionario_hst_id( Integer funcionario_hst_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FUNCIONARIO_HST_ID, funcionario_hst_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.funcionario_hst_id = funcionario_hst_id;
+ LAZY_LOADED_OBJECTS.put( FUNCIONARIO_HST_ID, Boolean.TRUE );
+ }
+
+ public String getActivo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ACTIVO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.activo;
+ }
+
+ public void setActivo( String activo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ACTIVO, activo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.activo = activo;
+ LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
+ }
+
+ public String getResponsavel_loja()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESPONSAVEL_LOJA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.responsavel_loja;
+ }
+
+ public void setResponsavel_loja( String responsavel_loja )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESPONSAVEL_LOJA, responsavel_loja );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.responsavel_loja = responsavel_loja;
+ LAZY_LOADED_OBJECTS.put( RESPONSAVEL_LOJA, Boolean.TRUE );
+ }
+
+ public String getNumero_mecanografico()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NUMERO_MECANOGRAFICO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.numero_mecanografico;
+ }
+
+ public void setNumero_mecanografico( String numero_mecanografico )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NUMERO_MECANOGRAFICO, numero_mecanografico );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.numero_mecanografico = numero_mecanografico;
+ LAZY_LOADED_OBJECTS.put( NUMERO_MECANOGRAFICO, Boolean.TRUE );
+ }
+
+ public String getGestor_geral()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( GESTOR_GERAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.gestor_geral;
+ }
+
+ public void setGestor_geral( String gestor_geral )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( GESTOR_GERAL, gestor_geral );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.gestor_geral = gestor_geral;
+ LAZY_LOADED_OBJECTS.put( GESTOR_GERAL, Boolean.TRUE );
+ }
+
+ public String getPrimeiro_login()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PRIMEIRO_LOGIN );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.primeiro_login;
+ }
+
+ public void setPrimeiro_login( String primeiro_login )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PRIMEIRO_LOGIN, primeiro_login );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.primeiro_login = primeiro_login;
+ LAZY_LOADED_OBJECTS.put( PRIMEIRO_LOGIN, Boolean.TRUE );
+ }
+
+ public String getApagado()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( APAGADO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.apagado;
+ }
+
+ public void setApagado( String apagado )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( APAGADO, apagado );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.apagado = apagado;
+ LAZY_LOADED_OBJECTS.put( APAGADO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_password()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_PASSWORD );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_password;
+ }
+
+ public void setData_password( java.util.Date data_password )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_PASSWORD, data_password );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_password = data_password;
+ LAZY_LOADED_OBJECTS.put( DATA_PASSWORD, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Utilizadores.ID_INDEX:
+ value = getId();
+ break;
+ case Utilizadores.LOGIN_INDEX:
+ value = getLogin();
+ break;
+ case Utilizadores.PASSWORD_INDEX:
+ value = getPassword();
+ break;
+ case Utilizadores.EMAIL_INDEX:
+ value = getEmail();
+ break;
+ case Utilizadores.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case Utilizadores.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case Utilizadores.ADMINISTRADOR_INDEX:
+ value = getAdministrador();
+ break;
+ case Utilizadores.MEDICO_ID_INDEX:
+ value = getMedico_id();
+ break;
+ case Utilizadores.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case Utilizadores.NUMERO_CEDULA_INDEX:
+ value = getNumero_cedula();
+ break;
+ case Utilizadores.CAP_INDEX:
+ value = getCap();
+ break;
+ case Utilizadores.NOME_INDEX:
+ value = getNome();
+ break;
+ case Utilizadores.FUNCIONARIO_HST_ID_INDEX:
+ value = getFuncionario_hst_id();
+ break;
+ case Utilizadores.ACTIVO_INDEX:
+ value = getActivo();
+ break;
+ case Utilizadores.RESPONSAVEL_LOJA_INDEX:
+ value = getResponsavel_loja();
+ break;
+ case Utilizadores.NUMERO_MECANOGRAFICO_INDEX:
+ value = getNumero_mecanografico();
+ break;
+ case Utilizadores.GESTOR_GERAL_INDEX:
+ value = getGestor_geral();
+ break;
+ case Utilizadores.PRIMEIRO_LOGIN_INDEX:
+ value = getPrimeiro_login();
+ break;
+ case Utilizadores.APAGADO_INDEX:
+ value = getApagado();
+ break;
+ case Utilizadores.DATA_PASSWORD_INDEX:
+ value = getData_password();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Utilizadores.ID_INDEX:
+ value = this.id;
+ break;
+ case Utilizadores.LOGIN_INDEX:
+ value = this.login;
+ break;
+ case Utilizadores.PASSWORD_INDEX:
+ value = this.password;
+ break;
+ case Utilizadores.EMAIL_INDEX:
+ value = this.email;
+ break;
+ case Utilizadores.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case Utilizadores.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case Utilizadores.ADMINISTRADOR_INDEX:
+ value = this.administrador;
+ break;
+ case Utilizadores.MEDICO_ID_INDEX:
+ value = this.medico_id;
+ break;
+ case Utilizadores.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case Utilizadores.NUMERO_CEDULA_INDEX:
+ value = this.numero_cedula;
+ break;
+ case Utilizadores.CAP_INDEX:
+ value = this.cap;
+ break;
+ case Utilizadores.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Utilizadores.FUNCIONARIO_HST_ID_INDEX:
+ value = this.funcionario_hst_id;
+ break;
+ case Utilizadores.ACTIVO_INDEX:
+ value = this.activo;
+ break;
+ case Utilizadores.RESPONSAVEL_LOJA_INDEX:
+ value = this.responsavel_loja;
+ break;
+ case Utilizadores.NUMERO_MECANOGRAFICO_INDEX:
+ value = this.numero_mecanografico;
+ break;
+ case Utilizadores.GESTOR_GERAL_INDEX:
+ value = this.gestor_geral;
+ break;
+ case Utilizadores.PRIMEIRO_LOGIN_INDEX:
+ value = this.primeiro_login;
+ break;
+ case Utilizadores.APAGADO_INDEX:
+ value = this.apagado;
+ break;
+ case Utilizadores.DATA_PASSWORD_INDEX:
+ value = this.data_password;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Utilizadores.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Utilizadores.LOGIN_INDEX:
+ setLogin( ( String ) value );
+ break;
+ case Utilizadores.PASSWORD_INDEX:
+ setPassword( ( String ) value );
+ break;
+ case Utilizadores.EMAIL_INDEX:
+ setEmail( ( String ) value );
+ break;
+ case Utilizadores.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case Utilizadores.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case Utilizadores.ADMINISTRADOR_INDEX:
+ setAdministrador( ( String ) value );
+ break;
+ case Utilizadores.MEDICO_ID_INDEX:
+ setMedico_id( ( Integer ) value );
+ break;
+ case Utilizadores.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case Utilizadores.NUMERO_CEDULA_INDEX:
+ setNumero_cedula( ( String ) value );
+ break;
+ case Utilizadores.CAP_INDEX:
+ setCap( ( String ) value );
+ break;
+ case Utilizadores.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Utilizadores.FUNCIONARIO_HST_ID_INDEX:
+ setFuncionario_hst_id( ( Integer ) value );
+ break;
+ case Utilizadores.ACTIVO_INDEX:
+ setActivo( ( String ) value );
+ break;
+ case Utilizadores.RESPONSAVEL_LOJA_INDEX:
+ setResponsavel_loja( ( String ) value );
+ break;
+ case Utilizadores.NUMERO_MECANOGRAFICO_INDEX:
+ setNumero_mecanografico( ( String ) value );
+ break;
+ case Utilizadores.GESTOR_GERAL_INDEX:
+ setGestor_geral( ( String ) value );
+ break;
+ case Utilizadores.PRIMEIRO_LOGIN_INDEX:
+ setPrimeiro_login( ( String ) value );
+ break;
+ case Utilizadores.APAGADO_INDEX:
+ setApagado( ( String ) value );
+ break;
+ case Utilizadores.DATA_PASSWORD_INDEX:
+ setData_password( ( java.util.Date ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Utilizadores.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Utilizadores.LOGIN_INDEX:
+ this.login = ( String ) value;
+ break;
+ case Utilizadores.PASSWORD_INDEX:
+ this.password = ( String ) value;
+ break;
+ case Utilizadores.EMAIL_INDEX:
+ this.email = ( String ) value;
+ break;
+ case Utilizadores.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case Utilizadores.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case Utilizadores.ADMINISTRADOR_INDEX:
+ this.administrador = ( String ) value;
+ break;
+ case Utilizadores.MEDICO_ID_INDEX:
+ this.medico_id = ( Integer ) value;
+ break;
+ case Utilizadores.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case Utilizadores.NUMERO_CEDULA_INDEX:
+ this.numero_cedula = ( String ) value;
+ break;
+ case Utilizadores.CAP_INDEX:
+ this.cap = ( String ) value;
+ break;
+ case Utilizadores.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Utilizadores.FUNCIONARIO_HST_ID_INDEX:
+ this.funcionario_hst_id = ( Integer ) value;
+ break;
+ case Utilizadores.ACTIVO_INDEX:
+ this.activo = ( String ) value;
+ break;
+ case Utilizadores.RESPONSAVEL_LOJA_INDEX:
+ this.responsavel_loja = ( String ) value;
+ break;
+ case Utilizadores.NUMERO_MECANOGRAFICO_INDEX:
+ this.numero_mecanografico = ( String ) value;
+ break;
+ case Utilizadores.GESTOR_GERAL_INDEX:
+ this.gestor_geral = ( String ) value;
+ break;
+ case Utilizadores.PRIMEIRO_LOGIN_INDEX:
+ this.primeiro_login = ( String ) value;
+ break;
+ case Utilizadores.APAGADO_INDEX:
+ this.apagado = ( String ) value;
+ break;
+ case Utilizadores.DATA_PASSWORD_INDEX:
+ this.data_password = ( java.util.Date ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Utilizadores.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Utilizadores.LOGIN_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.PASSWORD_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.EMAIL_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Utilizadores.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Utilizadores.ADMINISTRADOR_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.MEDICO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Utilizadores.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case Utilizadores.NUMERO_CEDULA_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.CAP_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.FUNCIONARIO_HST_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Utilizadores.ACTIVO_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.RESPONSAVEL_LOJA_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.NUMERO_MECANOGRAFICO_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.GESTOR_GERAL_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.PRIMEIRO_LOGIN_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.APAGADO_INDEX:
+ theClass = String.class;
+ break;
+ case Utilizadores.DATA_PASSWORD_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Utilizadores._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Utilizadores.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Version.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Version.java
new file mode 100644
index 00000000..dd071228
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/Version.java
@@ -0,0 +1,330 @@
+/*
+* Version.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp.inner;
+
+
+public class Version extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Version.CURRENT_VERSION, Version.CURRENT_VERSION_INDEX );
+ FIELD_INDEXES.put( Version.CURRENT_VERSION_FULL, Version.CURRENT_VERSION_INDEX );
+ FIELD_INDEXES.put( Version.ID, Version.ID_INDEX );
+ FIELD_INDEXES.put( Version.ID_FULL, Version.ID_INDEX );
+ FIELD_INDEXES.put( Version.MODULE_NAME, Version.MODULE_NAME_INDEX );
+ FIELD_INDEXES.put( Version.MODULE_NAME_FULL, Version.MODULE_NAME_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "version";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.version";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String CURRENT_VERSION = "current_version";
+ public static final String CURRENT_VERSION_FULL = "version.current_version";
+ public static final int CURRENT_VERSION_INDEX = 0;
+ public static final String ID = "id";
+ public static final String ID_FULL = "version.id";
+ public static final int ID_INDEX = 1;
+ public static final String MODULE_NAME = "module_name";
+ public static final String MODULE_NAME_FULL = "version.module_name";
+ public static final int MODULE_NAME_INDEX = 2;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ CURRENT_VERSION, MODULE_NAME, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + CURRENT_VERSION, TABLENAME + "." + MODULE_NAME, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ CURRENT_VERSION, ID, MODULE_NAME, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ CURRENT_VERSION, ID, MODULE_NAME, };
+
+ private Double current_version;
+ private Integer id;
+ private String module_name;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Version()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false };
+ }
+
+ public Double getCurrent_version()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CURRENT_VERSION );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.current_version;
+ }
+
+ public void setCurrent_version( Double current_version )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CURRENT_VERSION, current_version );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.current_version = current_version;
+ LAZY_LOADED_OBJECTS.put( CURRENT_VERSION, Boolean.TRUE );
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public String getModule_name()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( MODULE_NAME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.module_name;
+ }
+
+ public void setModule_name( String module_name )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( MODULE_NAME, module_name );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.module_name = module_name;
+ LAZY_LOADED_OBJECTS.put( MODULE_NAME, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Version.CURRENT_VERSION_INDEX:
+ value = getCurrent_version();
+ break;
+ case Version.ID_INDEX:
+ value = getId();
+ break;
+ case Version.MODULE_NAME_INDEX:
+ value = getModule_name();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Version.CURRENT_VERSION_INDEX:
+ value = this.current_version;
+ break;
+ case Version.ID_INDEX:
+ value = this.id;
+ break;
+ case Version.MODULE_NAME_INDEX:
+ value = this.module_name;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Version.CURRENT_VERSION_INDEX:
+ setCurrent_version( ( Double ) value );
+ break;
+ case Version.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Version.MODULE_NAME_INDEX:
+ setModule_name( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Version.CURRENT_VERSION_INDEX:
+ this.current_version = ( Double ) value;
+ break;
+ case Version.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Version.MODULE_NAME_INDEX:
+ this.module_name = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Version.CURRENT_VERSION_INDEX:
+ theClass = Double.class;
+ break;
+ case Version.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Version.MODULE_NAME_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Version._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Version.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/package.xml b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/package.xml
new file mode 100644
index 00000000..2c9dc712
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/inner/package.xml
@@ -0,0 +1,1572 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AcidentadosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AcidentadosData.java
new file mode 100644
index 00000000..2713cd49
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AcidentadosData.java
@@ -0,0 +1,18 @@
+/*
+* AcidentadosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class AcidentadosData extends db.data.siprp.inner.Acidentados
+{
+
+ public AcidentadosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ActualizacaoData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ActualizacaoData.java
new file mode 100644
index 00000000..316c102d
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ActualizacaoData.java
@@ -0,0 +1,18 @@
+/*
+* ActualizacaoData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class ActualizacaoData extends db.data.siprp.inner.Actualizacao
+{
+
+ public ActualizacaoData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AnalisesAcidentesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AnalisesAcidentesData.java
new file mode 100644
index 00000000..5177c7f2
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AnalisesAcidentesData.java
@@ -0,0 +1,18 @@
+/*
+* AnalisesAcidentesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class AnalisesAcidentesData extends db.data.siprp.inner.AnalisesAcidentes
+{
+
+ public AnalisesAcidentesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AvisosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AvisosData.java
new file mode 100644
index 00000000..580bbe07
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/AvisosData.java
@@ -0,0 +1,18 @@
+/*
+* AvisosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class AvisosData extends db.data.siprp.inner.Avisos
+{
+
+ public AvisosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/CausasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/CausasData.java
new file mode 100644
index 00000000..0d0ff4a4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/CausasData.java
@@ -0,0 +1,18 @@
+/*
+* CausasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class CausasData extends db.data.siprp.inner.Causas
+{
+
+ public CausasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ContactosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ContactosData.java
new file mode 100644
index 00000000..d841d28a
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ContactosData.java
@@ -0,0 +1,18 @@
+/*
+* ContactosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class ContactosData extends db.data.siprp.inner.Contactos
+{
+
+ public ContactosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ControleData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ControleData.java
new file mode 100644
index 00000000..8f919bb0
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ControleData.java
@@ -0,0 +1,18 @@
+/*
+* ControleData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class ControleData extends db.data.siprp.inner.Controle
+{
+
+ public ControleData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/DepartamentosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/DepartamentosData.java
new file mode 100644
index 00000000..197c5982
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/DepartamentosData.java
@@ -0,0 +1,18 @@
+/*
+* DepartamentosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class DepartamentosData extends db.data.siprp.inner.Departamentos
+{
+
+ public DepartamentosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EmpresasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EmpresasData.java
new file mode 100644
index 00000000..7b7b34ca
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EmpresasData.java
@@ -0,0 +1,18 @@
+/*
+* EmpresasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class EmpresasData extends db.data.siprp.inner.Empresas
+{
+
+ public EmpresasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ErrorsData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ErrorsData.java
new file mode 100644
index 00000000..2752eb49
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ErrorsData.java
@@ -0,0 +1,18 @@
+/*
+* ErrorsData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class ErrorsData extends db.data.siprp.inner.Errors
+{
+
+ public ErrorsData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EstabelecimentosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EstabelecimentosData.java
new file mode 100644
index 00000000..61ee1210
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EstabelecimentosData.java
@@ -0,0 +1,18 @@
+/*
+* EstabelecimentosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class EstabelecimentosData extends db.data.siprp.inner.Estabelecimentos
+{
+
+ public EstabelecimentosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EstadoMedidasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EstadoMedidasData.java
new file mode 100644
index 00000000..12d62136
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/EstadoMedidasData.java
@@ -0,0 +1,18 @@
+/*
+* EstadoMedidasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class EstadoMedidasData extends db.data.siprp.inner.EstadoMedidas
+{
+
+ public EstadoMedidasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ExamesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ExamesData.java
new file mode 100644
index 00000000..5710efe5
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ExamesData.java
@@ -0,0 +1,18 @@
+/*
+* ExamesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class ExamesData extends db.data.siprp.inner.Exames
+{
+
+ public ExamesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ExamesPerfisData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ExamesPerfisData.java
new file mode 100644
index 00000000..3e709b6b
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/ExamesPerfisData.java
@@ -0,0 +1,18 @@
+/*
+* ExamesPerfisData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class ExamesPerfisData extends db.data.siprp.inner.ExamesPerfis
+{
+
+ public ExamesPerfisData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/HistoricoEstabelecimentoData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/HistoricoEstabelecimentoData.java
new file mode 100644
index 00000000..caaafddc
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/HistoricoEstabelecimentoData.java
@@ -0,0 +1,18 @@
+/*
+* HistoricoEstabelecimentoData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class HistoricoEstabelecimentoData extends db.data.siprp.inner.HistoricoEstabelecimento
+{
+
+ public HistoricoEstabelecimentoData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesEmpresaData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesEmpresaData.java
new file mode 100644
index 00000000..79679543
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesEmpresaData.java
@@ -0,0 +1,18 @@
+/*
+* MarcacoesEmpresaData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class MarcacoesEmpresaData extends db.data.siprp.inner.MarcacoesEmpresa
+{
+
+ public MarcacoesEmpresaData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesEstabelecimentoData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesEstabelecimentoData.java
new file mode 100644
index 00000000..a901db91
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesEstabelecimentoData.java
@@ -0,0 +1,18 @@
+/*
+* MarcacoesEstabelecimentoData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class MarcacoesEstabelecimentoData extends db.data.siprp.inner.MarcacoesEstabelecimento
+{
+
+ public MarcacoesEstabelecimentoData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesTrabalhadorData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesTrabalhadorData.java
new file mode 100644
index 00000000..e630fc2e
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MarcacoesTrabalhadorData.java
@@ -0,0 +1,18 @@
+/*
+* MarcacoesTrabalhadorData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class MarcacoesTrabalhadorData extends db.data.siprp.inner.MarcacoesTrabalhador
+{
+
+ public MarcacoesTrabalhadorData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MedicosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MedicosData.java
new file mode 100644
index 00000000..3e2ee281
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MedicosData.java
@@ -0,0 +1,18 @@
+/*
+* MedicosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class MedicosData extends db.data.siprp.inner.Medicos
+{
+
+ public MedicosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MedidasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MedidasData.java
new file mode 100644
index 00000000..30a6c6f3
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/MedidasData.java
@@ -0,0 +1,18 @@
+/*
+* MedidasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class MedidasData extends db.data.siprp.inner.Medidas
+{
+
+ public MedidasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/NotNoticiasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/NotNoticiasData.java
new file mode 100644
index 00000000..b9598074
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/NotNoticiasData.java
@@ -0,0 +1,18 @@
+/*
+* NotNoticiasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class NotNoticiasData extends db.data.siprp.inner.NotNoticias
+{
+
+ public NotNoticiasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PermissoesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PermissoesData.java
new file mode 100644
index 00000000..4b7d3356
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PermissoesData.java
@@ -0,0 +1,18 @@
+/*
+* PermissoesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PermissoesData extends db.data.siprp.inner.Permissoes
+{
+
+ public PermissoesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoAreasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoAreasData.java
new file mode 100644
index 00000000..960a9807
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoAreasData.java
@@ -0,0 +1,18 @@
+/*
+* PlanoAreasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PlanoAreasData extends db.data.siprp.inner.PlanoAreas
+{
+
+ public PlanoAreasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoMedidasData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoMedidasData.java
new file mode 100644
index 00000000..8d105648
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoMedidasData.java
@@ -0,0 +1,18 @@
+/*
+* PlanoMedidasData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PlanoMedidasData extends db.data.siprp.inner.PlanoMedidas
+{
+
+ public PlanoMedidasData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoPostosTrabalhoData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoPostosTrabalhoData.java
new file mode 100644
index 00000000..a594b298
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoPostosTrabalhoData.java
@@ -0,0 +1,18 @@
+/*
+* PlanoPostosTrabalhoData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PlanoPostosTrabalhoData extends db.data.siprp.inner.PlanoPostosTrabalho
+{
+
+ public PlanoPostosTrabalhoData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoRiscosData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoRiscosData.java
new file mode 100644
index 00000000..90b3891f
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanoRiscosData.java
@@ -0,0 +1,18 @@
+/*
+* PlanoRiscosData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PlanoRiscosData extends db.data.siprp.inner.PlanoRiscos
+{
+
+ public PlanoRiscosData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanosActuacaoData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanosActuacaoData.java
new file mode 100644
index 00000000..23804955
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PlanosActuacaoData.java
@@ -0,0 +1,18 @@
+/*
+* PlanosActuacaoData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PlanosActuacaoData extends db.data.siprp.inner.PlanosActuacao
+{
+
+ public PlanosActuacaoData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PropertiesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PropertiesData.java
new file mode 100644
index 00000000..7f93b5b5
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/PropertiesData.java
@@ -0,0 +1,18 @@
+/*
+* PropertiesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class PropertiesData extends db.data.siprp.inner.Properties
+{
+
+ public PropertiesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RecomendacoesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RecomendacoesData.java
new file mode 100644
index 00000000..8a951078
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RecomendacoesData.java
@@ -0,0 +1,18 @@
+/*
+* RecomendacoesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class RecomendacoesData extends db.data.siprp.inner.Recomendacoes
+{
+
+ public RecomendacoesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RiscoValoresTempData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RiscoValoresTempData.java
new file mode 100644
index 00000000..1756a8b0
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RiscoValoresTempData.java
@@ -0,0 +1,18 @@
+/*
+* RiscoValoresTempData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class RiscoValoresTempData extends db.data.siprp.inner.RiscoValoresTemp
+{
+
+ public RiscoValoresTempData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RolesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RolesData.java
new file mode 100644
index 00000000..2ac92c55
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/RolesData.java
@@ -0,0 +1,18 @@
+/*
+* RolesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class RolesData extends db.data.siprp.inner.Roles
+{
+
+ public RolesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/SeccoesData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/SeccoesData.java
new file mode 100644
index 00000000..5b6b39bc
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/SeccoesData.java
@@ -0,0 +1,18 @@
+/*
+* SeccoesData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class SeccoesData extends db.data.siprp.inner.Seccoes
+{
+
+ public SeccoesData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TiposExamesCompData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TiposExamesCompData.java
new file mode 100644
index 00000000..f7c0a8f4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TiposExamesCompData.java
@@ -0,0 +1,18 @@
+/*
+* TiposExamesCompData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class TiposExamesCompData extends db.data.siprp.inner.TiposExamesComp
+{
+
+ public TiposExamesCompData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TiposUtilizadoresData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TiposUtilizadoresData.java
new file mode 100644
index 00000000..56f478b7
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TiposUtilizadoresData.java
@@ -0,0 +1,18 @@
+/*
+* TiposUtilizadoresData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class TiposUtilizadoresData extends db.data.siprp.inner.TiposUtilizadores
+{
+
+ public TiposUtilizadoresData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TrabalhadoresData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TrabalhadoresData.java
new file mode 100644
index 00000000..81950266
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/TrabalhadoresData.java
@@ -0,0 +1,18 @@
+/*
+* TrabalhadoresData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class TrabalhadoresData extends db.data.siprp.inner.Trabalhadores
+{
+
+ public TrabalhadoresData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/UsersData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/UsersData.java
new file mode 100644
index 00000000..5a661b86
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/UsersData.java
@@ -0,0 +1,18 @@
+/*
+* UsersData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class UsersData extends db.data.siprp.inner.Users
+{
+
+ public UsersData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/UtilizadoresData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/UtilizadoresData.java
new file mode 100644
index 00000000..3e5a0425
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/UtilizadoresData.java
@@ -0,0 +1,18 @@
+/*
+* UtilizadoresData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class UtilizadoresData extends db.data.siprp.inner.Utilizadores
+{
+
+ public UtilizadoresData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/VersionData.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/VersionData.java
new file mode 100644
index 00000000..128a7c4b
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp/outer/VersionData.java
@@ -0,0 +1,18 @@
+/*
+* VersionData.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Edit at will
+*/
+package db.data.siprp.outer;
+
+
+public final class VersionData extends db.data.siprp.inner.Version
+{
+
+ public VersionData()
+ {
+ super();
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Actualizacao.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Actualizacao.java
new file mode 100644
index 00000000..aa015d0a
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Actualizacao.java
@@ -0,0 +1,280 @@
+/*
+* Actualizacao.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class Actualizacao extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Actualizacao.HORA, Actualizacao.HORA_INDEX );
+ FIELD_INDEXES.put( Actualizacao.HORA_FULL, Actualizacao.HORA_INDEX );
+ FIELD_INDEXES.put( Actualizacao.ID, Actualizacao.ID_INDEX );
+ FIELD_INDEXES.put( Actualizacao.ID_FULL, Actualizacao.ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "actualizacao";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.actualizacao";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String HORA = "hora";
+ public static final String HORA_FULL = "actualizacao.hora";
+ public static final int HORA_INDEX = 0;
+ public static final String ID = "id";
+ public static final String ID_FULL = "actualizacao.id";
+ public static final int ID_INDEX = 1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ HORA, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + HORA, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ HORA, ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ HORA, ID, };
+
+ private java.sql.Timestamp hora;
+ private Integer id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Actualizacao()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false };
+ }
+
+ public java.sql.Timestamp getHora()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( HORA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.hora;
+ }
+
+ public void setHora( java.sql.Timestamp hora )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( HORA, hora );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.hora = hora;
+ LAZY_LOADED_OBJECTS.put( HORA, Boolean.TRUE );
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Actualizacao.HORA_INDEX:
+ value = getHora();
+ break;
+ case Actualizacao.ID_INDEX:
+ value = getId();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Actualizacao.HORA_INDEX:
+ value = this.hora;
+ break;
+ case Actualizacao.ID_INDEX:
+ value = this.id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Actualizacao.HORA_INDEX:
+ setHora( ( java.sql.Timestamp ) value );
+ break;
+ case Actualizacao.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Actualizacao.HORA_INDEX:
+ this.hora = ( java.sql.Timestamp ) value;
+ break;
+ case Actualizacao.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Actualizacao.HORA_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case Actualizacao.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Actualizacao._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Actualizacao.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptAppointment.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptAppointment.java
new file mode 100644
index 00000000..35d979a4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptAppointment.java
@@ -0,0 +1,609 @@
+/*
+* AptAppointment.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class AptAppointment extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( AptAppointment.ID, AptAppointment.ID_INDEX );
+ FIELD_INDEXES.put( AptAppointment.ID_FULL, AptAppointment.ID_INDEX );
+ FIELD_INDEXES.put( AptAppointment.DAY_DATE, AptAppointment.DAY_DATE_INDEX );
+ FIELD_INDEXES.put( AptAppointment.DAY_DATE_FULL, AptAppointment.DAY_DATE_INDEX );
+ FIELD_INDEXES.put( AptAppointment.START_TIME, AptAppointment.START_TIME_INDEX );
+ FIELD_INDEXES.put( AptAppointment.START_TIME_FULL, AptAppointment.START_TIME_INDEX );
+ FIELD_INDEXES.put( AptAppointment.END_TIME, AptAppointment.END_TIME_INDEX );
+ FIELD_INDEXES.put( AptAppointment.END_TIME_FULL, AptAppointment.END_TIME_INDEX );
+ FIELD_INDEXES.put( AptAppointment.NOTES, AptAppointment.NOTES_INDEX );
+ FIELD_INDEXES.put( AptAppointment.NOTES_FULL, AptAppointment.NOTES_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( AptAppointment.CLASS_IDENTIFIER, AptAppointment.STATE_ID, AptAppointment.TO_STATE_ID );
+ FIELD_INDEXES.put( AptAppointment.STATE_ID, AptAppointment.STATE_ID_INDEX );
+ FIELD_INDEXES.put( AptAppointment.STATE_ID_FULL, AptAppointment.STATE_ID_INDEX );
+ FIELD_INDEXES.put( AptAppointment.TO_STATE_ID, AptAppointment.TO_STATE_ID_INDEX );
+ FIELD_INDEXES.put( AptAppointment.DELETED_STAMP, AptAppointment.DELETED_STAMP_INDEX );
+ FIELD_INDEXES.put( AptAppointment.DELETED_STAMP_FULL, AptAppointment.DELETED_STAMP_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeystate_idToapt_state =
+ new com.evolute.entity.ForeignKey( AptAppointment.class, AptAppointment.STATE_ID, db.data.siprp_local.outer.AptStateData.class, db.data.siprp_local.outer.AptStateData.ID );
+
+ public static final String TABLENAME = "apt_appointment";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.apt_appointment";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "apt_appointment.id";
+ public static final int ID_INDEX = 0;
+ public static final String DAY_DATE = "day_date";
+ public static final String DAY_DATE_FULL = "apt_appointment.day_date";
+ public static final int DAY_DATE_INDEX = 1;
+ public static final String START_TIME = "start_time";
+ public static final String START_TIME_FULL = "apt_appointment.start_time";
+ public static final int START_TIME_INDEX = 2;
+ public static final String END_TIME = "end_time";
+ public static final String END_TIME_FULL = "apt_appointment.end_time";
+ public static final int END_TIME_INDEX = 3;
+ public static final String NOTES = "notes";
+ public static final String NOTES_FULL = "apt_appointment.notes";
+ public static final int NOTES_INDEX = 4;
+ public static final String STATE_ID = "state_id";
+ public static final String STATE_ID_FULL = "apt_appointment.state_id";
+ public static final int STATE_ID_INDEX = 5;
+ public static final String TO_STATE_ID = "to_state_id";
+ public static final String TO_STATE_ID_FULL = "apt_appointment.to_state_id";
+ public static final int TO_STATE_ID_INDEX = 6;
+ public static final String DELETED_STAMP = "deleted_stamp";
+ public static final String DELETED_STAMP_FULL = "apt_appointment.deleted_stamp";
+ public static final int DELETED_STAMP_INDEX = 7;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DAY_DATE, START_TIME, END_TIME, NOTES, STATE_ID, TO_STATE_ID, DELETED_STAMP, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DAY_DATE, TABLENAME + "." + START_TIME, TABLENAME + "." + END_TIME, TABLENAME + "." + NOTES, TABLENAME + "." + STATE_ID, TABLENAME + "." + TO_STATE_ID, TABLENAME + "." + DELETED_STAMP, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DAY_DATE, START_TIME, END_TIME, NOTES, STATE_ID, DELETED_STAMP, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DAY_DATE, START_TIME, END_TIME, NOTES, STATE_ID, DELETED_STAMP, };
+
+ private Integer id;
+ private java.util.Date day_date;
+ private java.sql.Time start_time;
+ private java.sql.Time end_time;
+ private String notes;
+ private Integer state_id;
+ private db.data.siprp_local.outer.AptStateData to_state_id;
+ private java.sql.Timestamp deleted_stamp;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public AptAppointment()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAptSegurancaAlimentar_appointment_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.AptSegurancaAlimentarData.class , getPrimaryKey().getMap().get("id"), "appointment_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromFilFileAppointment_appointment_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.FilFileAppointmentData.class , getPrimaryKey().getMap().get("id"), "appointment_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.Date getDay_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DAY_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.day_date;
+ }
+
+ public void setDay_date( java.util.Date day_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DAY_DATE, day_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.day_date = day_date;
+ LAZY_LOADED_OBJECTS.put( DAY_DATE, Boolean.TRUE );
+ }
+
+ public java.sql.Time getStart_time()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( START_TIME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.start_time;
+ }
+
+ public void setStart_time( java.sql.Time start_time )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( START_TIME, start_time );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.start_time = start_time;
+ LAZY_LOADED_OBJECTS.put( START_TIME, Boolean.TRUE );
+ }
+
+ public java.sql.Time getEnd_time()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( END_TIME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.end_time;
+ }
+
+ public void setEnd_time( java.sql.Time end_time )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( END_TIME, end_time );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.end_time = end_time;
+ LAZY_LOADED_OBJECTS.put( END_TIME, Boolean.TRUE );
+ }
+
+ public String getNotes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOTES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.notes;
+ }
+
+ public void setNotes( String notes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOTES, notes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.notes = notes;
+ LAZY_LOADED_OBJECTS.put( NOTES, Boolean.TRUE );
+ }
+
+ public Integer getState_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( STATE_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.state_id;
+ }
+
+ public void setState_id( Integer state_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( STATE_ID, state_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.state_id = state_id;
+ LAZY_LOADED_OBJECTS.put( STATE_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.AptStateData toState_id()
+ {
+ try
+ {
+ prepare( TO_STATE_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_state_id;
+ }
+
+ public void setToState_id( db.data.siprp_local.outer.AptStateData to_state_id )
+ {
+ try
+ {
+ preProcess( TO_STATE_ID, to_state_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_state_id = to_state_id;
+ }
+
+ public java.sql.Timestamp getDeleted_stamp()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_STAMP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_stamp;
+ }
+
+ public void setDeleted_stamp( java.sql.Timestamp deleted_stamp )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_STAMP, deleted_stamp );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_stamp = deleted_stamp;
+ LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptAppointment.ID_INDEX:
+ value = getId();
+ break;
+ case AptAppointment.DAY_DATE_INDEX:
+ value = getDay_date();
+ break;
+ case AptAppointment.START_TIME_INDEX:
+ value = getStart_time();
+ break;
+ case AptAppointment.END_TIME_INDEX:
+ value = getEnd_time();
+ break;
+ case AptAppointment.NOTES_INDEX:
+ value = getNotes();
+ break;
+ case AptAppointment.STATE_ID_INDEX:
+ value = getState_id();
+ break;
+ case AptAppointment.TO_STATE_ID_INDEX:
+ value = toState_id();
+ break;
+ case AptAppointment.DELETED_STAMP_INDEX:
+ value = getDeleted_stamp();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptAppointment.ID_INDEX:
+ value = this.id;
+ break;
+ case AptAppointment.DAY_DATE_INDEX:
+ value = this.day_date;
+ break;
+ case AptAppointment.START_TIME_INDEX:
+ value = this.start_time;
+ break;
+ case AptAppointment.END_TIME_INDEX:
+ value = this.end_time;
+ break;
+ case AptAppointment.NOTES_INDEX:
+ value = this.notes;
+ break;
+ case AptAppointment.STATE_ID_INDEX:
+ value = this.state_id;
+ break;
+ case AptAppointment.TO_STATE_ID_INDEX:
+ value = this.to_state_id;
+ break;
+ case AptAppointment.DELETED_STAMP_INDEX:
+ value = this.deleted_stamp;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptAppointment.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case AptAppointment.DAY_DATE_INDEX:
+ setDay_date( ( java.util.Date ) value );
+ break;
+ case AptAppointment.START_TIME_INDEX:
+ setStart_time( ( java.sql.Time ) value );
+ break;
+ case AptAppointment.END_TIME_INDEX:
+ setEnd_time( ( java.sql.Time ) value );
+ break;
+ case AptAppointment.NOTES_INDEX:
+ setNotes( ( String ) value );
+ break;
+ case AptAppointment.STATE_ID_INDEX:
+ setState_id( ( Integer ) value );
+ break;
+ case AptAppointment.TO_STATE_ID_INDEX:
+ setToState_id( ( db.data.siprp_local.outer.AptStateData ) value );
+ break;
+ case AptAppointment.DELETED_STAMP_INDEX:
+ setDeleted_stamp( ( java.sql.Timestamp ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptAppointment.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case AptAppointment.DAY_DATE_INDEX:
+ this.day_date = ( java.util.Date ) value;
+ break;
+ case AptAppointment.START_TIME_INDEX:
+ this.start_time = ( java.sql.Time ) value;
+ break;
+ case AptAppointment.END_TIME_INDEX:
+ this.end_time = ( java.sql.Time ) value;
+ break;
+ case AptAppointment.NOTES_INDEX:
+ this.notes = ( String ) value;
+ break;
+ case AptAppointment.STATE_ID_INDEX:
+ this.state_id = ( Integer ) value;
+ break;
+ case AptAppointment.TO_STATE_ID_INDEX:
+ this.to_state_id = ( db.data.siprp_local.outer.AptStateData ) value;
+ break;
+ case AptAppointment.DELETED_STAMP_INDEX:
+ this.deleted_stamp = ( java.sql.Timestamp ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case AptAppointment.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AptAppointment.DAY_DATE_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case AptAppointment.START_TIME_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case AptAppointment.END_TIME_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case AptAppointment.NOTES_INDEX:
+ theClass = String.class;
+ break;
+ case AptAppointment.STATE_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AptAppointment.TO_STATE_ID_INDEX:
+ theClass = db.data.siprp_local.outer.AptStateData.class;
+ break;
+ case AptAppointment.DELETED_STAMP_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : AptAppointment._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, AptAppointment.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptSegurancaAlimentar.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptSegurancaAlimentar.java
new file mode 100644
index 00000000..2ed5f8e7
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptSegurancaAlimentar.java
@@ -0,0 +1,483 @@
+/*
+* AptSegurancaAlimentar.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class AptSegurancaAlimentar extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( AptSegurancaAlimentar.ID, AptSegurancaAlimentar.ID_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.ID_FULL, AptSegurancaAlimentar.ID_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.DELETED_STAMP, AptSegurancaAlimentar.DELETED_STAMP_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.DELETED_STAMP_FULL, AptSegurancaAlimentar.DELETED_STAMP_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( AptSegurancaAlimentar.CLASS_IDENTIFIER, AptSegurancaAlimentar.APPOINTMENT_ID, AptSegurancaAlimentar.TO_APPOINTMENT_ID );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.APPOINTMENT_ID, AptSegurancaAlimentar.APPOINTMENT_ID_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.APPOINTMENT_ID_FULL, AptSegurancaAlimentar.APPOINTMENT_ID_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.TO_APPOINTMENT_ID, AptSegurancaAlimentar.TO_APPOINTMENT_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( AptSegurancaAlimentar.CLASS_IDENTIFIER, AptSegurancaAlimentar.ESTABELECIMENTO_ID, AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.ESTABELECIMENTO_ID, AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.ESTABELECIMENTO_ID_FULL, AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID, AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyappointment_idToapt_appointment =
+ new com.evolute.entity.ForeignKey( AptSegurancaAlimentar.class, AptSegurancaAlimentar.APPOINTMENT_ID, db.data.siprp_local.outer.AptAppointmentData.class, db.data.siprp_local.outer.AptAppointmentData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
+ new com.evolute.entity.ForeignKey( AptSegurancaAlimentar.class, AptSegurancaAlimentar.ESTABELECIMENTO_ID, db.data.siprp_local.outer.EstabelecimentosData.class, db.data.siprp_local.outer.EstabelecimentosData.ID );
+
+ public static final String TABLENAME = "apt_seguranca_alimentar";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.apt_seguranca_alimentar";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "apt_seguranca_alimentar.id";
+ public static final int ID_INDEX = 0;
+ public static final String DELETED_STAMP = "deleted_stamp";
+ public static final String DELETED_STAMP_FULL = "apt_seguranca_alimentar.deleted_stamp";
+ public static final int DELETED_STAMP_INDEX = 1;
+ public static final String APPOINTMENT_ID = "appointment_id";
+ public static final String APPOINTMENT_ID_FULL = "apt_seguranca_alimentar.appointment_id";
+ public static final int APPOINTMENT_ID_INDEX = 2;
+ public static final String TO_APPOINTMENT_ID = "to_appointment_id";
+ public static final String TO_APPOINTMENT_ID_FULL = "apt_seguranca_alimentar.to_appointment_id";
+ public static final int TO_APPOINTMENT_ID_INDEX = 3;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "apt_seguranca_alimentar.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 4;
+ public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
+ public static final String TO_ESTABELECIMENTO_ID_FULL = "apt_seguranca_alimentar.to_estabelecimento_id";
+ public static final int TO_ESTABELECIMENTO_ID_INDEX = 5;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DELETED_STAMP, APPOINTMENT_ID, TO_APPOINTMENT_ID, ESTABELECIMENTO_ID,
+ TO_ESTABELECIMENTO_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + APPOINTMENT_ID, TABLENAME + "." + TO_APPOINTMENT_ID, TABLENAME + "." + ESTABELECIMENTO_ID,
+ TABLENAME + "." + TO_ESTABELECIMENTO_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DELETED_STAMP, APPOINTMENT_ID, ESTABELECIMENTO_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DELETED_STAMP, APPOINTMENT_ID, ESTABELECIMENTO_ID, };
+
+ private Integer id;
+ private java.sql.Timestamp deleted_stamp;
+ private Integer appointment_id;
+ private db.data.siprp_local.outer.AptAppointmentData to_appointment_id;
+ private Integer estabelecimento_id;
+ private db.data.siprp_local.outer.EstabelecimentosData to_estabelecimento_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public AptSegurancaAlimentar()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getDeleted_stamp()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_STAMP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_stamp;
+ }
+
+ public void setDeleted_stamp( java.sql.Timestamp deleted_stamp )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_STAMP, deleted_stamp );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_stamp = deleted_stamp;
+ LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
+ }
+
+ public Integer getAppointment_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( APPOINTMENT_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.appointment_id;
+ }
+
+ public void setAppointment_id( Integer appointment_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( APPOINTMENT_ID, appointment_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.appointment_id = appointment_id;
+ LAZY_LOADED_OBJECTS.put( APPOINTMENT_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.AptAppointmentData toAppointment_id()
+ {
+ try
+ {
+ prepare( TO_APPOINTMENT_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_appointment_id;
+ }
+
+ public void setToAppointment_id( db.data.siprp_local.outer.AptAppointmentData to_appointment_id )
+ {
+ try
+ {
+ preProcess( TO_APPOINTMENT_ID, to_appointment_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_appointment_id = to_appointment_id;
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.EstabelecimentosData toEstabelecimento_id()
+ {
+ try
+ {
+ prepare( TO_ESTABELECIMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_estabelecimento_id;
+ }
+
+ public void setToEstabelecimento_id( db.data.siprp_local.outer.EstabelecimentosData to_estabelecimento_id )
+ {
+ try
+ {
+ preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_estabelecimento_id = to_estabelecimento_id;
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptSegurancaAlimentar.ID_INDEX:
+ value = getId();
+ break;
+ case AptSegurancaAlimentar.DELETED_STAMP_INDEX:
+ value = getDeleted_stamp();
+ break;
+ case AptSegurancaAlimentar.APPOINTMENT_ID_INDEX:
+ value = getAppointment_id();
+ break;
+ case AptSegurancaAlimentar.TO_APPOINTMENT_ID_INDEX:
+ value = toAppointment_id();
+ break;
+ case AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID_INDEX:
+ value = toEstabelecimento_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptSegurancaAlimentar.ID_INDEX:
+ value = this.id;
+ break;
+ case AptSegurancaAlimentar.DELETED_STAMP_INDEX:
+ value = this.deleted_stamp;
+ break;
+ case AptSegurancaAlimentar.APPOINTMENT_ID_INDEX:
+ value = this.appointment_id;
+ break;
+ case AptSegurancaAlimentar.TO_APPOINTMENT_ID_INDEX:
+ value = this.to_appointment_id;
+ break;
+ case AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID_INDEX:
+ value = this.to_estabelecimento_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptSegurancaAlimentar.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case AptSegurancaAlimentar.DELETED_STAMP_INDEX:
+ setDeleted_stamp( ( java.sql.Timestamp ) value );
+ break;
+ case AptSegurancaAlimentar.APPOINTMENT_ID_INDEX:
+ setAppointment_id( ( Integer ) value );
+ break;
+ case AptSegurancaAlimentar.TO_APPOINTMENT_ID_INDEX:
+ setToAppointment_id( ( db.data.siprp_local.outer.AptAppointmentData ) value );
+ break;
+ case AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID_INDEX:
+ setToEstabelecimento_id( ( db.data.siprp_local.outer.EstabelecimentosData ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptSegurancaAlimentar.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case AptSegurancaAlimentar.DELETED_STAMP_INDEX:
+ this.deleted_stamp = ( java.sql.Timestamp ) value;
+ break;
+ case AptSegurancaAlimentar.APPOINTMENT_ID_INDEX:
+ this.appointment_id = ( Integer ) value;
+ break;
+ case AptSegurancaAlimentar.TO_APPOINTMENT_ID_INDEX:
+ this.to_appointment_id = ( db.data.siprp_local.outer.AptAppointmentData ) value;
+ break;
+ case AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID_INDEX:
+ this.to_estabelecimento_id = ( db.data.siprp_local.outer.EstabelecimentosData ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case AptSegurancaAlimentar.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AptSegurancaAlimentar.DELETED_STAMP_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case AptSegurancaAlimentar.APPOINTMENT_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AptSegurancaAlimentar.TO_APPOINTMENT_ID_INDEX:
+ theClass = db.data.siprp_local.outer.AptAppointmentData.class;
+ break;
+ case AptSegurancaAlimentar.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AptSegurancaAlimentar.TO_ESTABELECIMENTO_ID_INDEX:
+ theClass = db.data.siprp_local.outer.EstabelecimentosData.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : AptSegurancaAlimentar._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, AptSegurancaAlimentar.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptState.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptState.java
new file mode 100644
index 00000000..3bb24cb4
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/AptState.java
@@ -0,0 +1,293 @@
+/*
+* AptState.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class AptState extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( AptState.ID, AptState.ID_INDEX );
+ FIELD_INDEXES.put( AptState.ID_FULL, AptState.ID_INDEX );
+ FIELD_INDEXES.put( AptState.DESCRIPTION, AptState.DESCRIPTION_INDEX );
+ FIELD_INDEXES.put( AptState.DESCRIPTION_FULL, AptState.DESCRIPTION_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "apt_state";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.apt_state";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "apt_state.id";
+ public static final int ID_INDEX = 0;
+ public static final String DESCRIPTION = "description";
+ public static final String DESCRIPTION_FULL = "apt_state.description";
+ public static final int DESCRIPTION_INDEX = 1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DESCRIPTION, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DESCRIPTION, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DESCRIPTION, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DESCRIPTION, };
+
+ private Integer id;
+ private String description;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public AptState()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromAptAppointment_state_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.AptAppointmentData.class , getPrimaryKey().getMap().get("id"), "state_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getDescription()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRIPTION );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.description;
+ }
+
+ public void setDescription( String description )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRIPTION, description );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.description = description;
+ LAZY_LOADED_OBJECTS.put( DESCRIPTION, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptState.ID_INDEX:
+ value = getId();
+ break;
+ case AptState.DESCRIPTION_INDEX:
+ value = getDescription();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptState.ID_INDEX:
+ value = this.id;
+ break;
+ case AptState.DESCRIPTION_INDEX:
+ value = this.description;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptState.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case AptState.DESCRIPTION_INDEX:
+ setDescription( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case AptState.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case AptState.DESCRIPTION_INDEX:
+ this.description = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case AptState.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case AptState.DESCRIPTION_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : AptState._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, AptState.PK_FIELD_NAMES );
+ primaryKey.set( 0, getId() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Avisos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Avisos.java
new file mode 100644
index 00000000..86793d5c
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Avisos.java
@@ -0,0 +1,786 @@
+/*
+* Avisos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class Avisos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Avisos.ID, Avisos.ID_INDEX );
+ FIELD_INDEXES.put( Avisos.ID_FULL, Avisos.ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TIPO, Avisos.TIPO_INDEX );
+ FIELD_INDEXES.put( Avisos.TIPO_FULL, Avisos.TIPO_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.EMPRESA_ID, Avisos.TO_EMPRESA_ID );
+ FIELD_INDEXES.put( Avisos.EMPRESA_ID, Avisos.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.EMPRESA_ID_FULL, Avisos.EMPRESA_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TO_EMPRESA_ID, Avisos.TO_EMPRESA_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.ESTABELECIMENTO_ID, Avisos.TO_ESTABELECIMENTO_ID );
+ FIELD_INDEXES.put( Avisos.ESTABELECIMENTO_ID, Avisos.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.ESTABELECIMENTO_ID_FULL, Avisos.ESTABELECIMENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TO_ESTABELECIMENTO_ID, Avisos.TO_ESTABELECIMENTO_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.TRABALHADOR_ID, Avisos.TO_TRABALHADOR_ID );
+ FIELD_INDEXES.put( Avisos.TRABALHADOR_ID, Avisos.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TRABALHADOR_ID_FULL, Avisos.TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.TO_TRABALHADOR_ID, Avisos.TO_TRABALHADOR_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.EVENTO_ID, Avisos.EVENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.EVENTO_ID_FULL, Avisos.EVENTO_ID_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_AVISO, Avisos.DATA_AVISO_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_AVISO_FULL, Avisos.DATA_AVISO_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_EVENTO, Avisos.DATA_EVENTO_INDEX );
+ FIELD_INDEXES.put( Avisos.DATA_EVENTO_FULL, Avisos.DATA_EVENTO_INDEX );
+ FIELD_INDEXES.put( Avisos.DESCRICAO, Avisos.DESCRICAO_INDEX );
+ FIELD_INDEXES.put( Avisos.DESCRICAO_FULL, Avisos.DESCRICAO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
+ new com.evolute.entity.ForeignKey( Avisos.class, Avisos.EMPRESA_ID, db.data.siprp_local.outer.EmpresasData.class, db.data.siprp_local.outer.EmpresasData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
+ new com.evolute.entity.ForeignKey( Avisos.class, Avisos.ESTABELECIMENTO_ID, db.data.siprp_local.outer.EstabelecimentosData.class, db.data.siprp_local.outer.EstabelecimentosData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
+ new com.evolute.entity.ForeignKey( Avisos.class, Avisos.TRABALHADOR_ID, db.data.siprp_local.outer.TrabalhadoresData.class, db.data.siprp_local.outer.TrabalhadoresData.ID );
+
+ public static final String TABLENAME = "avisos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.avisos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "avisos.id";
+ public static final int ID_INDEX = 0;
+ public static final String TIPO = "tipo";
+ public static final String TIPO_FULL = "avisos.tipo";
+ public static final int TIPO_INDEX = 1;
+ public static final String EMPRESA_ID = "empresa_id";
+ public static final String EMPRESA_ID_FULL = "avisos.empresa_id";
+ public static final int EMPRESA_ID_INDEX = 2;
+ public static final String TO_EMPRESA_ID = "to_empresa_id";
+ public static final String TO_EMPRESA_ID_FULL = "avisos.to_empresa_id";
+ public static final int TO_EMPRESA_ID_INDEX = 3;
+ public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
+ public static final String ESTABELECIMENTO_ID_FULL = "avisos.estabelecimento_id";
+ public static final int ESTABELECIMENTO_ID_INDEX = 4;
+ public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
+ public static final String TO_ESTABELECIMENTO_ID_FULL = "avisos.to_estabelecimento_id";
+ public static final int TO_ESTABELECIMENTO_ID_INDEX = 5;
+ public static final String TRABALHADOR_ID = "trabalhador_id";
+ public static final String TRABALHADOR_ID_FULL = "avisos.trabalhador_id";
+ public static final int TRABALHADOR_ID_INDEX = 6;
+ public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
+ public static final String TO_TRABALHADOR_ID_FULL = "avisos.to_trabalhador_id";
+ public static final int TO_TRABALHADOR_ID_INDEX = 7;
+ public static final String EVENTO_ID = "evento_id";
+ public static final String EVENTO_ID_FULL = "avisos.evento_id";
+ public static final int EVENTO_ID_INDEX = 8;
+ public static final String DATA_AVISO = "data_aviso";
+ public static final String DATA_AVISO_FULL = "avisos.data_aviso";
+ public static final int DATA_AVISO_INDEX = 9;
+ public static final String DATA_EVENTO = "data_evento";
+ public static final String DATA_EVENTO_FULL = "avisos.data_evento";
+ public static final int DATA_EVENTO_INDEX = 10;
+ public static final String DESCRICAO = "descricao";
+ public static final String DESCRICAO_FULL = "avisos.descricao";
+ public static final int DESCRICAO_INDEX = 11;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ TIPO, EMPRESA_ID, TO_EMPRESA_ID, ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID,
+ TRABALHADOR_ID, TO_TRABALHADOR_ID, EVENTO_ID, DATA_AVISO, DATA_EVENTO, DESCRICAO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + TIPO, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID,
+ TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + EVENTO_ID, TABLENAME + "." + DATA_AVISO, TABLENAME + "." + DATA_EVENTO, TABLENAME + "." + DESCRICAO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, TIPO, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, EVENTO_ID, DATA_AVISO,
+ DATA_EVENTO, DESCRICAO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, TIPO, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, EVENTO_ID, DATA_AVISO,
+ DATA_EVENTO, DESCRICAO, };
+
+ private Integer id;
+ private Integer tipo;
+ private Integer empresa_id;
+ private db.data.siprp_local.outer.EmpresasData to_empresa_id;
+ private Integer estabelecimento_id;
+ private db.data.siprp_local.outer.EstabelecimentosData to_estabelecimento_id;
+ private Integer trabalhador_id;
+ private db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id;
+ private Integer evento_id;
+ private java.util.Date data_aviso;
+ private java.util.Date data_evento;
+ private String descricao;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Avisos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false, false, false, false, false, false, false,
+ false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public Integer getTipo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TIPO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.tipo;
+ }
+
+ public void setTipo( Integer tipo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TIPO, tipo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.tipo = tipo;
+ LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
+ }
+
+ public Integer getEmpresa_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMPRESA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.empresa_id;
+ }
+
+ public void setEmpresa_id( Integer empresa_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMPRESA_ID, empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.empresa_id = empresa_id;
+ LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.EmpresasData toEmpresa_id()
+ {
+ try
+ {
+ prepare( TO_EMPRESA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_empresa_id;
+ }
+
+ public void setToEmpresa_id( db.data.siprp_local.outer.EmpresasData to_empresa_id )
+ {
+ try
+ {
+ preProcess( TO_EMPRESA_ID, to_empresa_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_empresa_id = to_empresa_id;
+ }
+
+ public Integer getEstabelecimento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ESTABELECIMENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.estabelecimento_id;
+ }
+
+ public void setEstabelecimento_id( Integer estabelecimento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.estabelecimento_id = estabelecimento_id;
+ LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.EstabelecimentosData toEstabelecimento_id()
+ {
+ try
+ {
+ prepare( TO_ESTABELECIMENTO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_estabelecimento_id;
+ }
+
+ public void setToEstabelecimento_id( db.data.siprp_local.outer.EstabelecimentosData to_estabelecimento_id )
+ {
+ try
+ {
+ preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_estabelecimento_id = to_estabelecimento_id;
+ }
+
+ public Integer getTrabalhador_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TRABALHADOR_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.trabalhador_id;
+ }
+
+ public void setTrabalhador_id( Integer trabalhador_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TRABALHADOR_ID, trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.trabalhador_id = trabalhador_id;
+ LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.TrabalhadoresData toTrabalhador_id()
+ {
+ try
+ {
+ prepare( TO_TRABALHADOR_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_trabalhador_id;
+ }
+
+ public void setToTrabalhador_id( db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id )
+ {
+ try
+ {
+ preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_trabalhador_id = to_trabalhador_id;
+ }
+
+ public Integer getEvento_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EVENTO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.evento_id;
+ }
+
+ public void setEvento_id( Integer evento_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EVENTO_ID, evento_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.evento_id = evento_id;
+ LAZY_LOADED_OBJECTS.put( EVENTO_ID, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_aviso()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_AVISO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_aviso;
+ }
+
+ public void setData_aviso( java.util.Date data_aviso )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_AVISO, data_aviso );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_aviso = data_aviso;
+ LAZY_LOADED_OBJECTS.put( DATA_AVISO, Boolean.TRUE );
+ }
+
+ public java.util.Date getData_evento()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA_EVENTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data_evento;
+ }
+
+ public void setData_evento( java.util.Date data_evento )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA_EVENTO, data_evento );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data_evento = data_evento;
+ LAZY_LOADED_OBJECTS.put( DATA_EVENTO, Boolean.TRUE );
+ }
+
+ public String getDescricao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DESCRICAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.descricao;
+ }
+
+ public void setDescricao( String descricao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DESCRICAO, descricao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.descricao = descricao;
+ LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ value = getId();
+ break;
+ case Avisos.TIPO_INDEX:
+ value = getTipo();
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ value = getEmpresa_id();
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ value = toEmpresa_id();
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ value = getEstabelecimento_id();
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ value = toEstabelecimento_id();
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ value = getTrabalhador_id();
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ value = toTrabalhador_id();
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ value = getEvento_id();
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ value = getData_aviso();
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ value = getData_evento();
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ value = getDescricao();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ value = this.id;
+ break;
+ case Avisos.TIPO_INDEX:
+ value = this.tipo;
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ value = this.empresa_id;
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ value = this.to_empresa_id;
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ value = this.estabelecimento_id;
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ value = this.to_estabelecimento_id;
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ value = this.trabalhador_id;
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ value = this.to_trabalhador_id;
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ value = this.evento_id;
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ value = this.data_aviso;
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ value = this.data_evento;
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ value = this.descricao;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Avisos.TIPO_INDEX:
+ setTipo( ( Integer ) value );
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ setEmpresa_id( ( Integer ) value );
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ setToEmpresa_id( ( db.data.siprp_local.outer.EmpresasData ) value );
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ setEstabelecimento_id( ( Integer ) value );
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ setToEstabelecimento_id( ( db.data.siprp_local.outer.EstabelecimentosData ) value );
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ setTrabalhador_id( ( Integer ) value );
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ setToTrabalhador_id( ( db.data.siprp_local.outer.TrabalhadoresData ) value );
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ setEvento_id( ( Integer ) value );
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ setData_aviso( ( java.util.Date ) value );
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ setData_evento( ( java.util.Date ) value );
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ setDescricao( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Avisos.TIPO_INDEX:
+ this.tipo = ( Integer ) value;
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ this.empresa_id = ( Integer ) value;
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ this.to_empresa_id = ( db.data.siprp_local.outer.EmpresasData ) value;
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ this.estabelecimento_id = ( Integer ) value;
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ this.to_estabelecimento_id = ( db.data.siprp_local.outer.EstabelecimentosData ) value;
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ this.trabalhador_id = ( Integer ) value;
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ this.to_trabalhador_id = ( db.data.siprp_local.outer.TrabalhadoresData ) value;
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ this.evento_id = ( Integer ) value;
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ this.data_aviso = ( java.util.Date ) value;
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ this.data_evento = ( java.util.Date ) value;
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ this.descricao = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Avisos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TIPO_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.EMPRESA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TO_EMPRESA_ID_INDEX:
+ theClass = db.data.siprp_local.outer.EmpresasData.class;
+ break;
+ case Avisos.ESTABELECIMENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
+ theClass = db.data.siprp_local.outer.EstabelecimentosData.class;
+ break;
+ case Avisos.TRABALHADOR_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.TO_TRABALHADOR_ID_INDEX:
+ theClass = db.data.siprp_local.outer.TrabalhadoresData.class;
+ break;
+ case Avisos.EVENTO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Avisos.DATA_AVISO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Avisos.DATA_EVENTO_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case Avisos.DESCRICAO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Avisos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Avisos.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Contactos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Contactos.java
new file mode 100644
index 00000000..ca51c0dd
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/Contactos.java
@@ -0,0 +1,637 @@
+/*
+* Contactos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class Contactos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( Contactos.ID, Contactos.ID_INDEX );
+ FIELD_INDEXES.put( Contactos.ID_FULL, Contactos.ID_INDEX );
+ FIELD_INDEXES.put( Contactos.NOME, Contactos.NOME_INDEX );
+ FIELD_INDEXES.put( Contactos.NOME_FULL, Contactos.NOME_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEFONE, Contactos.TELEFONE_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEFONE_FULL, Contactos.TELEFONE_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEMOVEL, Contactos.TELEMOVEL_INDEX );
+ FIELD_INDEXES.put( Contactos.TELEMOVEL_FULL, Contactos.TELEMOVEL_INDEX );
+ FIELD_INDEXES.put( Contactos.FAX, Contactos.FAX_INDEX );
+ FIELD_INDEXES.put( Contactos.FAX_FULL, Contactos.FAX_INDEX );
+ FIELD_INDEXES.put( Contactos.EMAIL, Contactos.EMAIL_INDEX );
+ FIELD_INDEXES.put( Contactos.EMAIL_FULL, Contactos.EMAIL_INDEX );
+ FIELD_INDEXES.put( Contactos.CARGO, Contactos.CARGO_INDEX );
+ FIELD_INDEXES.put( Contactos.CARGO_FULL, Contactos.CARGO_INDEX );
+ FIELD_INDEXES.put( Contactos.DEPARTAMENTO, Contactos.DEPARTAMENTO_INDEX );
+ FIELD_INDEXES.put( Contactos.DEPARTAMENTO_FULL, Contactos.DEPARTAMENTO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "contactos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.contactos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "contactos.id";
+ public static final int ID_INDEX = 0;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "contactos.nome";
+ public static final int NOME_INDEX = 1;
+ public static final String TELEFONE = "telefone";
+ public static final String TELEFONE_FULL = "contactos.telefone";
+ public static final int TELEFONE_INDEX = 2;
+ public static final String TELEMOVEL = "telemovel";
+ public static final String TELEMOVEL_FULL = "contactos.telemovel";
+ public static final int TELEMOVEL_INDEX = 3;
+ public static final String FAX = "fax";
+ public static final String FAX_FULL = "contactos.fax";
+ public static final int FAX_INDEX = 4;
+ public static final String EMAIL = "email";
+ public static final String EMAIL_FULL = "contactos.email";
+ public static final int EMAIL_INDEX = 5;
+ public static final String CARGO = "cargo";
+ public static final String CARGO_FULL = "contactos.cargo";
+ public static final int CARGO_INDEX = 6;
+ public static final String DEPARTAMENTO = "departamento";
+ public static final String DEPARTAMENTO_FULL = "contactos.departamento";
+ public static final int DEPARTAMENTO_INDEX = 7;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, DEPARTAMENTO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + NOME, TABLENAME + "." + TELEFONE, TABLENAME + "." + TELEMOVEL, TABLENAME + "." + FAX, TABLENAME + "." + EMAIL, TABLENAME + "." + CARGO, TABLENAME + "." + DEPARTAMENTO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, DEPARTAMENTO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, DEPARTAMENTO, };
+
+ private Integer id;
+ private String nome;
+ private String telefone;
+ private String telemovel;
+ private String fax;
+ private String email;
+ private String cargo;
+ private String departamento;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public Contactos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromEmpresas_contacto_1()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.EmpresasData.class , getPrimaryKey().getMap().get("id"), "contacto_1" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromEmpresas_contacto_2()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.EmpresasData.class , getPrimaryKey().getMap().get("id"), "contacto_2" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromEstabelecimentos_contacto_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.EstabelecimentosData.class , getPrimaryKey().getMap().get("id"), "contacto_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromPrestadores_contacto_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.PrestadoresData.class , getPrimaryKey().getMap().get("id"), "contacto_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public String getTelefone()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TELEFONE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.telefone;
+ }
+
+ public void setTelefone( String telefone )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TELEFONE, telefone );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.telefone = telefone;
+ LAZY_LOADED_OBJECTS.put( TELEFONE, Boolean.TRUE );
+ }
+
+ public String getTelemovel()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( TELEMOVEL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.telemovel;
+ }
+
+ public void setTelemovel( String telemovel )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( TELEMOVEL, telemovel );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.telemovel = telemovel;
+ LAZY_LOADED_OBJECTS.put( TELEMOVEL, Boolean.TRUE );
+ }
+
+ public String getFax()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FAX );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.fax;
+ }
+
+ public void setFax( String fax )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FAX, fax );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.fax = fax;
+ LAZY_LOADED_OBJECTS.put( FAX, Boolean.TRUE );
+ }
+
+ public String getEmail()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( EMAIL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.email;
+ }
+
+ public void setEmail( String email )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( EMAIL, email );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.email = email;
+ LAZY_LOADED_OBJECTS.put( EMAIL, Boolean.TRUE );
+ }
+
+ public String getCargo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CARGO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cargo;
+ }
+
+ public void setCargo( String cargo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CARGO, cargo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cargo = cargo;
+ LAZY_LOADED_OBJECTS.put( CARGO, Boolean.TRUE );
+ }
+
+ public String getDepartamento()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DEPARTAMENTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.departamento;
+ }
+
+ public void setDepartamento( String departamento )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DEPARTAMENTO, departamento );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.departamento = departamento;
+ LAZY_LOADED_OBJECTS.put( DEPARTAMENTO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ value = getId();
+ break;
+ case Contactos.NOME_INDEX:
+ value = getNome();
+ break;
+ case Contactos.TELEFONE_INDEX:
+ value = getTelefone();
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ value = getTelemovel();
+ break;
+ case Contactos.FAX_INDEX:
+ value = getFax();
+ break;
+ case Contactos.EMAIL_INDEX:
+ value = getEmail();
+ break;
+ case Contactos.CARGO_INDEX:
+ value = getCargo();
+ break;
+ case Contactos.DEPARTAMENTO_INDEX:
+ value = getDepartamento();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ value = this.id;
+ break;
+ case Contactos.NOME_INDEX:
+ value = this.nome;
+ break;
+ case Contactos.TELEFONE_INDEX:
+ value = this.telefone;
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ value = this.telemovel;
+ break;
+ case Contactos.FAX_INDEX:
+ value = this.fax;
+ break;
+ case Contactos.EMAIL_INDEX:
+ value = this.email;
+ break;
+ case Contactos.CARGO_INDEX:
+ value = this.cargo;
+ break;
+ case Contactos.DEPARTAMENTO_INDEX:
+ value = this.departamento;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case Contactos.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case Contactos.TELEFONE_INDEX:
+ setTelefone( ( String ) value );
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ setTelemovel( ( String ) value );
+ break;
+ case Contactos.FAX_INDEX:
+ setFax( ( String ) value );
+ break;
+ case Contactos.EMAIL_INDEX:
+ setEmail( ( String ) value );
+ break;
+ case Contactos.CARGO_INDEX:
+ setCargo( ( String ) value );
+ break;
+ case Contactos.DEPARTAMENTO_INDEX:
+ setDepartamento( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case Contactos.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case Contactos.TELEFONE_INDEX:
+ this.telefone = ( String ) value;
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ this.telemovel = ( String ) value;
+ break;
+ case Contactos.FAX_INDEX:
+ this.fax = ( String ) value;
+ break;
+ case Contactos.EMAIL_INDEX:
+ this.email = ( String ) value;
+ break;
+ case Contactos.CARGO_INDEX:
+ this.cargo = ( String ) value;
+ break;
+ case Contactos.DEPARTAMENTO_INDEX:
+ this.departamento = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case Contactos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case Contactos.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.TELEFONE_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.TELEMOVEL_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.FAX_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.EMAIL_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.CARGO_INDEX:
+ theClass = String.class;
+ break;
+ case Contactos.DEPARTAMENTO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : Contactos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Contactos.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurArs.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurArs.java
new file mode 100644
index 00000000..cc307e7c
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurArs.java
@@ -0,0 +1,294 @@
+/*
+* CurArs.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurArs extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( CurArs.ID, CurArs.ID_INDEX );
+ FIELD_INDEXES.put( CurArs.ID_FULL, CurArs.ID_INDEX );
+ FIELD_INDEXES.put( CurArs.NOME, CurArs.NOME_INDEX );
+ FIELD_INDEXES.put( CurArs.NOME_FULL, CurArs.NOME_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "cur_ars";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_ars";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "cur_ars.id";
+ public static final int ID_INDEX = 0;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "cur_ars.nome";
+ public static final int NOME_INDEX = 1;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ NOME, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + NOME, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, NOME, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, NOME, };
+
+ private Integer id;
+ private String nome;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public CurArs()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromCurFormandos_ars_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurFormandosData.class , getPrimaryKey().getMap().get("id"), "ars_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurArs.ID_INDEX:
+ value = getId();
+ break;
+ case CurArs.NOME_INDEX:
+ value = getNome();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurArs.ID_INDEX:
+ value = this.id;
+ break;
+ case CurArs.NOME_INDEX:
+ value = this.nome;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurArs.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case CurArs.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurArs.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case CurArs.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case CurArs.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurArs.NOME_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : CurArs._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, CurArs.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurAulas.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurAulas.java
new file mode 100644
index 00000000..ad28b2e8
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurAulas.java
@@ -0,0 +1,509 @@
+/*
+* CurAulas.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurAulas extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( CurAulas.ID, CurAulas.ID_INDEX );
+ FIELD_INDEXES.put( CurAulas.ID_FULL, CurAulas.ID_INDEX );
+ FIELD_INDEXES.put( CurAulas.INICIO_DATE, CurAulas.INICIO_DATE_INDEX );
+ FIELD_INDEXES.put( CurAulas.INICIO_DATE_FULL, CurAulas.INICIO_DATE_INDEX );
+ FIELD_INDEXES.put( CurAulas.FIM_DATE, CurAulas.FIM_DATE_INDEX );
+ FIELD_INDEXES.put( CurAulas.FIM_DATE_FULL, CurAulas.FIM_DATE_INDEX );
+ FIELD_INDEXES.put( CurAulas.DELETED_DATE, CurAulas.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurAulas.DELETED_DATE_FULL, CurAulas.DELETED_DATE_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( CurAulas.CLASS_IDENTIFIER, CurAulas.CUR_DIA_ID, CurAulas.TO_CUR_DIA_ID );
+ FIELD_INDEXES.put( CurAulas.CUR_DIA_ID, CurAulas.CUR_DIA_ID_INDEX );
+ FIELD_INDEXES.put( CurAulas.CUR_DIA_ID_FULL, CurAulas.CUR_DIA_ID_INDEX );
+ FIELD_INDEXES.put( CurAulas.TO_CUR_DIA_ID, CurAulas.TO_CUR_DIA_ID_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeycur_dia_idTocur_dias =
+ new com.evolute.entity.ForeignKey( CurAulas.class, CurAulas.CUR_DIA_ID, db.data.siprp_local.outer.CurDiasData.class, db.data.siprp_local.outer.CurDiasData.ID );
+
+ public static final String TABLENAME = "cur_aulas";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_aulas";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "cur_aulas.id";
+ public static final int ID_INDEX = 0;
+ public static final String INICIO_DATE = "inicio_date";
+ public static final String INICIO_DATE_FULL = "cur_aulas.inicio_date";
+ public static final int INICIO_DATE_INDEX = 1;
+ public static final String FIM_DATE = "fim_date";
+ public static final String FIM_DATE_FULL = "cur_aulas.fim_date";
+ public static final int FIM_DATE_INDEX = 2;
+ public static final String DELETED_DATE = "deleted_date";
+ public static final String DELETED_DATE_FULL = "cur_aulas.deleted_date";
+ public static final int DELETED_DATE_INDEX = 3;
+ public static final String CUR_DIA_ID = "cur_dia_id";
+ public static final String CUR_DIA_ID_FULL = "cur_aulas.cur_dia_id";
+ public static final int CUR_DIA_ID_INDEX = 4;
+ public static final String TO_CUR_DIA_ID = "to_cur_dia_id";
+ public static final String TO_CUR_DIA_ID_FULL = "cur_aulas.to_cur_dia_id";
+ public static final int TO_CUR_DIA_ID_INDEX = 5;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ INICIO_DATE, FIM_DATE, DELETED_DATE, CUR_DIA_ID, TO_CUR_DIA_ID, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + INICIO_DATE, TABLENAME + "." + FIM_DATE, TABLENAME + "." + DELETED_DATE, TABLENAME + "." + CUR_DIA_ID, TABLENAME + "." + TO_CUR_DIA_ID, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, INICIO_DATE, FIM_DATE, DELETED_DATE, CUR_DIA_ID, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, INICIO_DATE, FIM_DATE, DELETED_DATE, CUR_DIA_ID, };
+
+ private Integer id;
+ private java.sql.Time inicio_date;
+ private java.sql.Time fim_date;
+ private java.sql.Timestamp deleted_date;
+ private Integer cur_dia_id;
+ private db.data.siprp_local.outer.CurDiasData to_cur_dia_id;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public CurAulas()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromCurAulasFormadores_aula_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurAulasFormadoresData.class , getPrimaryKey().getMap().get("id"), "aula_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurTopicosAulas_aula_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurTopicosAulasData.class , getPrimaryKey().getMap().get("id"), "aula_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.sql.Time getInicio_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( INICIO_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.inicio_date;
+ }
+
+ public void setInicio_date( java.sql.Time inicio_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( INICIO_DATE, inicio_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.inicio_date = inicio_date;
+ LAZY_LOADED_OBJECTS.put( INICIO_DATE, Boolean.TRUE );
+ }
+
+ public java.sql.Time getFim_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FIM_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.fim_date;
+ }
+
+ public void setFim_date( java.sql.Time fim_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FIM_DATE, fim_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.fim_date = fim_date;
+ LAZY_LOADED_OBJECTS.put( FIM_DATE, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getDeleted_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_date;
+ }
+
+ public void setDeleted_date( java.sql.Timestamp deleted_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_DATE, deleted_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_date = deleted_date;
+ LAZY_LOADED_OBJECTS.put( DELETED_DATE, Boolean.TRUE );
+ }
+
+ public Integer getCur_dia_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CUR_DIA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cur_dia_id;
+ }
+
+ public void setCur_dia_id( Integer cur_dia_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CUR_DIA_ID, cur_dia_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cur_dia_id = cur_dia_id;
+ LAZY_LOADED_OBJECTS.put( CUR_DIA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.CurDiasData toCur_dia_id()
+ {
+ try
+ {
+ prepare( TO_CUR_DIA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_cur_dia_id;
+ }
+
+ public void setToCur_dia_id( db.data.siprp_local.outer.CurDiasData to_cur_dia_id )
+ {
+ try
+ {
+ preProcess( TO_CUR_DIA_ID, to_cur_dia_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_cur_dia_id = to_cur_dia_id;
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulas.ID_INDEX:
+ value = getId();
+ break;
+ case CurAulas.INICIO_DATE_INDEX:
+ value = getInicio_date();
+ break;
+ case CurAulas.FIM_DATE_INDEX:
+ value = getFim_date();
+ break;
+ case CurAulas.DELETED_DATE_INDEX:
+ value = getDeleted_date();
+ break;
+ case CurAulas.CUR_DIA_ID_INDEX:
+ value = getCur_dia_id();
+ break;
+ case CurAulas.TO_CUR_DIA_ID_INDEX:
+ value = toCur_dia_id();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulas.ID_INDEX:
+ value = this.id;
+ break;
+ case CurAulas.INICIO_DATE_INDEX:
+ value = this.inicio_date;
+ break;
+ case CurAulas.FIM_DATE_INDEX:
+ value = this.fim_date;
+ break;
+ case CurAulas.DELETED_DATE_INDEX:
+ value = this.deleted_date;
+ break;
+ case CurAulas.CUR_DIA_ID_INDEX:
+ value = this.cur_dia_id;
+ break;
+ case CurAulas.TO_CUR_DIA_ID_INDEX:
+ value = this.to_cur_dia_id;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulas.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case CurAulas.INICIO_DATE_INDEX:
+ setInicio_date( ( java.sql.Time ) value );
+ break;
+ case CurAulas.FIM_DATE_INDEX:
+ setFim_date( ( java.sql.Time ) value );
+ break;
+ case CurAulas.DELETED_DATE_INDEX:
+ setDeleted_date( ( java.sql.Timestamp ) value );
+ break;
+ case CurAulas.CUR_DIA_ID_INDEX:
+ setCur_dia_id( ( Integer ) value );
+ break;
+ case CurAulas.TO_CUR_DIA_ID_INDEX:
+ setToCur_dia_id( ( db.data.siprp_local.outer.CurDiasData ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulas.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case CurAulas.INICIO_DATE_INDEX:
+ this.inicio_date = ( java.sql.Time ) value;
+ break;
+ case CurAulas.FIM_DATE_INDEX:
+ this.fim_date = ( java.sql.Time ) value;
+ break;
+ case CurAulas.DELETED_DATE_INDEX:
+ this.deleted_date = ( java.sql.Timestamp ) value;
+ break;
+ case CurAulas.CUR_DIA_ID_INDEX:
+ this.cur_dia_id = ( Integer ) value;
+ break;
+ case CurAulas.TO_CUR_DIA_ID_INDEX:
+ this.to_cur_dia_id = ( db.data.siprp_local.outer.CurDiasData ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case CurAulas.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurAulas.INICIO_DATE_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case CurAulas.FIM_DATE_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case CurAulas.DELETED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case CurAulas.CUR_DIA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurAulas.TO_CUR_DIA_ID_INDEX:
+ theClass = db.data.siprp_local.outer.CurDiasData.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : CurAulas._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, CurAulas.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurAulasFormadores.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurAulasFormadores.java
new file mode 100644
index 00000000..a1ed0aae
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurAulasFormadores.java
@@ -0,0 +1,431 @@
+/*
+* CurAulasFormadores.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurAulasFormadores extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ com.evolute.entity.evo.EvoDataObject.register( CurAulasFormadores.CLASS_IDENTIFIER, CurAulasFormadores.AULA_ID, CurAulasFormadores.TO_AULA_ID );
+ FIELD_INDEXES.put( CurAulasFormadores.AULA_ID, CurAulasFormadores.AULA_ID_INDEX );
+ FIELD_INDEXES.put( CurAulasFormadores.AULA_ID_FULL, CurAulasFormadores.AULA_ID_INDEX );
+ FIELD_INDEXES.put( CurAulasFormadores.TO_AULA_ID, CurAulasFormadores.TO_AULA_ID_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( CurAulasFormadores.CLASS_IDENTIFIER, CurAulasFormadores.FORMADOR_ID, CurAulasFormadores.TO_FORMADOR_ID );
+ FIELD_INDEXES.put( CurAulasFormadores.FORMADOR_ID, CurAulasFormadores.FORMADOR_ID_INDEX );
+ FIELD_INDEXES.put( CurAulasFormadores.FORMADOR_ID_FULL, CurAulasFormadores.FORMADOR_ID_INDEX );
+ FIELD_INDEXES.put( CurAulasFormadores.TO_FORMADOR_ID, CurAulasFormadores.TO_FORMADOR_ID_INDEX );
+ FIELD_INDEXES.put( CurAulasFormadores.DELETED_DATE, CurAulasFormadores.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurAulasFormadores.DELETED_DATE_FULL, CurAulasFormadores.DELETED_DATE_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyaula_idTocur_aulas =
+ new com.evolute.entity.ForeignKey( CurAulasFormadores.class, CurAulasFormadores.AULA_ID, db.data.siprp_local.outer.CurAulasData.class, db.data.siprp_local.outer.CurAulasData.ID );
+
+ public static final com.evolute.entity.ForeignKey ForeignKeyformador_idTocur_formadores =
+ new com.evolute.entity.ForeignKey( CurAulasFormadores.class, CurAulasFormadores.FORMADOR_ID, db.data.siprp_local.outer.CurFormadoresData.class, db.data.siprp_local.outer.CurFormadoresData.ID );
+
+ public static final String TABLENAME = "cur_aulas_formadores";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_aulas_formadores";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String AULA_ID = "aula_id";
+ public static final String AULA_ID_FULL = "cur_aulas_formadores.aula_id";
+ public static final int AULA_ID_INDEX = 0;
+ public static final String TO_AULA_ID = "to_aula_id";
+ public static final String TO_AULA_ID_FULL = "cur_aulas_formadores.to_aula_id";
+ public static final int TO_AULA_ID_INDEX = 1;
+ public static final String FORMADOR_ID = "formador_id";
+ public static final String FORMADOR_ID_FULL = "cur_aulas_formadores.formador_id";
+ public static final int FORMADOR_ID_INDEX = 2;
+ public static final String TO_FORMADOR_ID = "to_formador_id";
+ public static final String TO_FORMADOR_ID_FULL = "cur_aulas_formadores.to_formador_id";
+ public static final int TO_FORMADOR_ID_INDEX = 3;
+ public static final String DELETED_DATE = "deleted_date";
+ public static final String DELETED_DATE_FULL = "cur_aulas_formadores.deleted_date";
+ public static final int DELETED_DATE_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DELETED_DATE, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DELETED_DATE, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ AULA_ID, FORMADOR_ID, DELETED_DATE, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ AULA_ID, FORMADOR_ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ AULA_ID, FORMADOR_ID, DELETED_DATE, };
+
+ private Integer aula_id;
+ private db.data.siprp_local.outer.CurAulasData to_aula_id;
+ private Integer formador_id;
+ private db.data.siprp_local.outer.CurFormadoresData to_formador_id;
+ private java.sql.Timestamp deleted_date;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public CurAulasFormadores()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false };
+ }
+
+ public Integer getAula_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AULA_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.aula_id;
+ }
+
+ public void setAula_id( Integer aula_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AULA_ID, aula_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.aula_id = aula_id;
+ LAZY_LOADED_OBJECTS.put( AULA_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.CurAulasData toAula_id()
+ {
+ try
+ {
+ prepare( TO_AULA_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_aula_id;
+ }
+
+ public void setToAula_id( db.data.siprp_local.outer.CurAulasData to_aula_id )
+ {
+ try
+ {
+ preProcess( TO_AULA_ID, to_aula_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_aula_id = to_aula_id;
+ }
+
+ public Integer getFormador_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FORMADOR_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.formador_id;
+ }
+
+ public void setFormador_id( Integer formador_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FORMADOR_ID, formador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.formador_id = formador_id;
+ LAZY_LOADED_OBJECTS.put( FORMADOR_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.CurFormadoresData toFormador_id()
+ {
+ try
+ {
+ prepare( TO_FORMADOR_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_formador_id;
+ }
+
+ public void setToFormador_id( db.data.siprp_local.outer.CurFormadoresData to_formador_id )
+ {
+ try
+ {
+ preProcess( TO_FORMADOR_ID, to_formador_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_formador_id = to_formador_id;
+ }
+
+ public java.sql.Timestamp getDeleted_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_date;
+ }
+
+ public void setDeleted_date( java.sql.Timestamp deleted_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_DATE, deleted_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_date = deleted_date;
+ LAZY_LOADED_OBJECTS.put( DELETED_DATE, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulasFormadores.AULA_ID_INDEX:
+ value = getAula_id();
+ break;
+ case CurAulasFormadores.TO_AULA_ID_INDEX:
+ value = toAula_id();
+ break;
+ case CurAulasFormadores.FORMADOR_ID_INDEX:
+ value = getFormador_id();
+ break;
+ case CurAulasFormadores.TO_FORMADOR_ID_INDEX:
+ value = toFormador_id();
+ break;
+ case CurAulasFormadores.DELETED_DATE_INDEX:
+ value = getDeleted_date();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulasFormadores.AULA_ID_INDEX:
+ value = this.aula_id;
+ break;
+ case CurAulasFormadores.TO_AULA_ID_INDEX:
+ value = this.to_aula_id;
+ break;
+ case CurAulasFormadores.FORMADOR_ID_INDEX:
+ value = this.formador_id;
+ break;
+ case CurAulasFormadores.TO_FORMADOR_ID_INDEX:
+ value = this.to_formador_id;
+ break;
+ case CurAulasFormadores.DELETED_DATE_INDEX:
+ value = this.deleted_date;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulasFormadores.AULA_ID_INDEX:
+ setAula_id( ( Integer ) value );
+ break;
+ case CurAulasFormadores.TO_AULA_ID_INDEX:
+ setToAula_id( ( db.data.siprp_local.outer.CurAulasData ) value );
+ break;
+ case CurAulasFormadores.FORMADOR_ID_INDEX:
+ setFormador_id( ( Integer ) value );
+ break;
+ case CurAulasFormadores.TO_FORMADOR_ID_INDEX:
+ setToFormador_id( ( db.data.siprp_local.outer.CurFormadoresData ) value );
+ break;
+ case CurAulasFormadores.DELETED_DATE_INDEX:
+ setDeleted_date( ( java.sql.Timestamp ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurAulasFormadores.AULA_ID_INDEX:
+ this.aula_id = ( Integer ) value;
+ break;
+ case CurAulasFormadores.TO_AULA_ID_INDEX:
+ this.to_aula_id = ( db.data.siprp_local.outer.CurAulasData ) value;
+ break;
+ case CurAulasFormadores.FORMADOR_ID_INDEX:
+ this.formador_id = ( Integer ) value;
+ break;
+ case CurAulasFormadores.TO_FORMADOR_ID_INDEX:
+ this.to_formador_id = ( db.data.siprp_local.outer.CurFormadoresData ) value;
+ break;
+ case CurAulasFormadores.DELETED_DATE_INDEX:
+ this.deleted_date = ( java.sql.Timestamp ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ throw new RuntimeException( "getPrimaryKeyName on CurAulasFormadores is invalid" );
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case CurAulasFormadores.AULA_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurAulasFormadores.TO_AULA_ID_INDEX:
+ theClass = db.data.siprp_local.outer.CurAulasData.class;
+ break;
+ case CurAulasFormadores.FORMADOR_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurAulasFormadores.TO_FORMADOR_ID_INDEX:
+ theClass = db.data.siprp_local.outer.CurFormadoresData.class;
+ break;
+ case CurAulasFormadores.DELETED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : CurAulasFormadores._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, CurAulasFormadores.PK_FIELD_NAMES );
+ primaryKey.set( 0, getAula_id() );
+ primaryKey.set( 1, getFormador_id() );
+ }
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurCursos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurCursos.java
new file mode 100644
index 00000000..6968bddb
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurCursos.java
@@ -0,0 +1,1232 @@
+/*
+* CurCursos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurCursos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( CurCursos.ID, CurCursos.ID_INDEX );
+ FIELD_INDEXES.put( CurCursos.ID_FULL, CurCursos.ID_INDEX );
+ FIELD_INDEXES.put( CurCursos.NOME, CurCursos.NOME_INDEX );
+ FIELD_INDEXES.put( CurCursos.NOME_FULL, CurCursos.NOME_INDEX );
+ FIELD_INDEXES.put( CurCursos.DATA, CurCursos.DATA_INDEX );
+ FIELD_INDEXES.put( CurCursos.DATA_FULL, CurCursos.DATA_INDEX );
+ FIELD_INDEXES.put( CurCursos.INICIO_HORA, CurCursos.INICIO_HORA_INDEX );
+ FIELD_INDEXES.put( CurCursos.INICIO_HORA_FULL, CurCursos.INICIO_HORA_INDEX );
+ FIELD_INDEXES.put( CurCursos.FIM_HORA, CurCursos.FIM_HORA_INDEX );
+ FIELD_INDEXES.put( CurCursos.FIM_HORA_FULL, CurCursos.FIM_HORA_INDEX );
+ FIELD_INDEXES.put( CurCursos.LIMITE_INSCRICOES, CurCursos.LIMITE_INSCRICOES_INDEX );
+ FIELD_INDEXES.put( CurCursos.LIMITE_INSCRICOES_FULL, CurCursos.LIMITE_INSCRICOES_INDEX );
+ FIELD_INDEXES.put( CurCursos.DELETED_DATE, CurCursos.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurCursos.DELETED_DATE_FULL, CurCursos.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurCursos.CODIGO_QUESTIONARIO_ANTES, CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX );
+ FIELD_INDEXES.put( CurCursos.CODIGO_QUESTIONARIO_ANTES_FULL, CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX );
+ FIELD_INDEXES.put( CurCursos.CODIGO_QUESTIONARIO_DURANTE, CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX );
+ FIELD_INDEXES.put( CurCursos.CODIGO_QUESTIONARIO_DURANTE_FULL, CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX );
+ FIELD_INDEXES.put( CurCursos.CODIGO_QUESTIONARIO_DEPOIS, CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX );
+ FIELD_INDEXES.put( CurCursos.CODIGO_QUESTIONARIO_DEPOIS_FULL, CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX );
+ FIELD_INDEXES.put( CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID, CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX );
+ FIELD_INDEXES.put( CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_FULL, CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX );
+ FIELD_INDEXES.put( CurCursos.ARCHIVED_DATE, CurCursos.ARCHIVED_DATE_INDEX );
+ FIELD_INDEXES.put( CurCursos.ARCHIVED_DATE_FULL, CurCursos.ARCHIVED_DATE_INDEX );
+ FIELD_INDEXES.put( CurCursos.PROFISSIONAL, CurCursos.PROFISSIONAL_INDEX );
+ FIELD_INDEXES.put( CurCursos.PROFISSIONAL_FULL, CurCursos.PROFISSIONAL_INDEX );
+ FIELD_INDEXES.put( CurCursos.FINANCIADO, CurCursos.FINANCIADO_INDEX );
+ FIELD_INDEXES.put( CurCursos.FINANCIADO_FULL, CurCursos.FINANCIADO_INDEX );
+ FIELD_INDEXES.put( CurCursos.VALOR, CurCursos.VALOR_INDEX );
+ FIELD_INDEXES.put( CurCursos.VALOR_FULL, CurCursos.VALOR_INDEX );
+ FIELD_INDEXES.put( CurCursos.RESPONSAVEL_ID, CurCursos.RESPONSAVEL_ID_INDEX );
+ FIELD_INDEXES.put( CurCursos.RESPONSAVEL_ID_FULL, CurCursos.RESPONSAVEL_ID_INDEX );
+ FIELD_INDEXES.put( CurCursos.DURACAO, CurCursos.DURACAO_INDEX );
+ FIELD_INDEXES.put( CurCursos.DURACAO_FULL, CurCursos.DURACAO_INDEX );
+ FIELD_INDEXES.put( CurCursos.LIVRO_REGISTO, CurCursos.LIVRO_REGISTO_INDEX );
+ FIELD_INDEXES.put( CurCursos.LIVRO_REGISTO_FULL, CurCursos.LIVRO_REGISTO_INDEX );
+ FIELD_INDEXES.put( CurCursos.LIVRO_NUMERO, CurCursos.LIVRO_NUMERO_INDEX );
+ FIELD_INDEXES.put( CurCursos.LIVRO_NUMERO_FULL, CurCursos.LIVRO_NUMERO_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "cur_cursos";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_cursos";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "cur_cursos.id";
+ public static final int ID_INDEX = 0;
+ public static final String NOME = "nome";
+ public static final String NOME_FULL = "cur_cursos.nome";
+ public static final int NOME_INDEX = 1;
+ public static final String DATA = "data";
+ public static final String DATA_FULL = "cur_cursos.data";
+ public static final int DATA_INDEX = 2;
+ public static final String INICIO_HORA = "inicio_hora";
+ public static final String INICIO_HORA_FULL = "cur_cursos.inicio_hora";
+ public static final int INICIO_HORA_INDEX = 3;
+ public static final String FIM_HORA = "fim_hora";
+ public static final String FIM_HORA_FULL = "cur_cursos.fim_hora";
+ public static final int FIM_HORA_INDEX = 4;
+ public static final String LIMITE_INSCRICOES = "limite_inscricoes";
+ public static final String LIMITE_INSCRICOES_FULL = "cur_cursos.limite_inscricoes";
+ public static final int LIMITE_INSCRICOES_INDEX = 5;
+ public static final String DELETED_DATE = "deleted_date";
+ public static final String DELETED_DATE_FULL = "cur_cursos.deleted_date";
+ public static final int DELETED_DATE_INDEX = 6;
+ public static final String CODIGO_QUESTIONARIO_ANTES = "codigo_questionario_antes";
+ public static final String CODIGO_QUESTIONARIO_ANTES_FULL = "cur_cursos.codigo_questionario_antes";
+ public static final int CODIGO_QUESTIONARIO_ANTES_INDEX = 7;
+ public static final String CODIGO_QUESTIONARIO_DURANTE = "codigo_questionario_durante";
+ public static final String CODIGO_QUESTIONARIO_DURANTE_FULL = "cur_cursos.codigo_questionario_durante";
+ public static final int CODIGO_QUESTIONARIO_DURANTE_INDEX = 8;
+ public static final String CODIGO_QUESTIONARIO_DEPOIS = "codigo_questionario_depois";
+ public static final String CODIGO_QUESTIONARIO_DEPOIS_FULL = "cur_cursos.codigo_questionario_depois";
+ public static final int CODIGO_QUESTIONARIO_DEPOIS_INDEX = 9;
+ public static final String AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID = "aut_impressao_pedido_sub_tipo_id";
+ public static final String AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_FULL = "cur_cursos.aut_impressao_pedido_sub_tipo_id";
+ public static final int AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX = 10;
+ public static final String ARCHIVED_DATE = "archived_date";
+ public static final String ARCHIVED_DATE_FULL = "cur_cursos.archived_date";
+ public static final int ARCHIVED_DATE_INDEX = 11;
+ public static final String PROFISSIONAL = "profissional";
+ public static final String PROFISSIONAL_FULL = "cur_cursos.profissional";
+ public static final int PROFISSIONAL_INDEX = 12;
+ public static final String FINANCIADO = "financiado";
+ public static final String FINANCIADO_FULL = "cur_cursos.financiado";
+ public static final int FINANCIADO_INDEX = 13;
+ public static final String VALOR = "valor";
+ public static final String VALOR_FULL = "cur_cursos.valor";
+ public static final int VALOR_INDEX = 14;
+ public static final String RESPONSAVEL_ID = "responsavel_id";
+ public static final String RESPONSAVEL_ID_FULL = "cur_cursos.responsavel_id";
+ public static final int RESPONSAVEL_ID_INDEX = 15;
+ public static final String DURACAO = "duracao";
+ public static final String DURACAO_FULL = "cur_cursos.duracao";
+ public static final int DURACAO_INDEX = 16;
+ public static final String LIVRO_REGISTO = "livro_registo";
+ public static final String LIVRO_REGISTO_FULL = "cur_cursos.livro_registo";
+ public static final int LIVRO_REGISTO_INDEX = 17;
+ public static final String LIVRO_NUMERO = "livro_numero";
+ public static final String LIVRO_NUMERO_FULL = "cur_cursos.livro_numero";
+ public static final int LIVRO_NUMERO_INDEX = 18;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ NOME, DATA, INICIO_HORA, FIM_HORA, LIMITE_INSCRICOES, DELETED_DATE,
+ CODIGO_QUESTIONARIO_ANTES, CODIGO_QUESTIONARIO_DURANTE,
+ CODIGO_QUESTIONARIO_DEPOIS, AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID,
+ ARCHIVED_DATE, PROFISSIONAL, FINANCIADO, VALOR, RESPONSAVEL_ID, DURACAO,
+ LIVRO_REGISTO, LIVRO_NUMERO, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + NOME, TABLENAME + "." + DATA, TABLENAME + "." + INICIO_HORA, TABLENAME + "." + FIM_HORA, TABLENAME + "." + LIMITE_INSCRICOES, TABLENAME + "." + DELETED_DATE,
+ TABLENAME + "." + CODIGO_QUESTIONARIO_ANTES, TABLENAME + "." + CODIGO_QUESTIONARIO_DURANTE,
+ TABLENAME + "." + CODIGO_QUESTIONARIO_DEPOIS, TABLENAME + "." + AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID,
+ TABLENAME + "." + ARCHIVED_DATE, TABLENAME + "." + PROFISSIONAL, TABLENAME + "." + FINANCIADO, TABLENAME + "." + VALOR, TABLENAME + "." + RESPONSAVEL_ID, TABLENAME + "." + DURACAO,
+ TABLENAME + "." + LIVRO_REGISTO, TABLENAME + "." + LIVRO_NUMERO, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, NOME, DATA, INICIO_HORA, FIM_HORA, LIMITE_INSCRICOES, DELETED_DATE,
+ CODIGO_QUESTIONARIO_ANTES, CODIGO_QUESTIONARIO_DURANTE,
+ CODIGO_QUESTIONARIO_DEPOIS, AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID,
+ ARCHIVED_DATE, PROFISSIONAL, FINANCIADO, VALOR, RESPONSAVEL_ID, DURACAO,
+ LIVRO_REGISTO, LIVRO_NUMERO, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, NOME, DATA, INICIO_HORA, FIM_HORA, LIMITE_INSCRICOES, DELETED_DATE,
+ CODIGO_QUESTIONARIO_ANTES, CODIGO_QUESTIONARIO_DURANTE,
+ CODIGO_QUESTIONARIO_DEPOIS, AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID,
+ ARCHIVED_DATE, PROFISSIONAL, FINANCIADO, VALOR, RESPONSAVEL_ID, DURACAO,
+ LIVRO_REGISTO, LIVRO_NUMERO, };
+
+ private Integer id;
+ private String nome;
+ private java.util.Date data;
+ private java.sql.Time inicio_hora;
+ private java.sql.Time fim_hora;
+ private Integer limite_inscricoes;
+ private java.sql.Timestamp deleted_date;
+ private String codigo_questionario_antes;
+ private String codigo_questionario_durante;
+ private String codigo_questionario_depois;
+ private Integer aut_impressao_pedido_sub_tipo_id;
+ private java.sql.Timestamp archived_date;
+ private Boolean profissional;
+ private Boolean financiado;
+ private Double valor;
+ private Integer responsavel_id;
+ private String duracao;
+ private String livro_registo;
+ private String livro_numero;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public CurCursos()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false, false, false, false, false,
+ false, false, false, false, false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromCurDias_curso_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurDiasData.class , getPrimaryKey().getMap().get("id"), "curso_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurFormadoresCursos_curso_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurFormadoresCursosData.class , getPrimaryKey().getMap().get("id"), "curso_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurFormandosCursos_curso_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurFormandosCursosData.class , getPrimaryKey().getMap().get("id"), "curso_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurPagamentos_curso_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurPagamentosData.class , getPrimaryKey().getMap().get("id"), "curso_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurPresencas_curso_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurPresencasData.class , getPrimaryKey().getMap().get("id"), "curso_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurTopicos_curso_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurTopicosData.class , getPrimaryKey().getMap().get("id"), "curso_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public String getNome()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome;
+ }
+
+ public void setNome( String nome )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME, nome );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome = nome;
+ LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
+ }
+
+ public java.util.Date getData()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DATA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.data;
+ }
+
+ public void setData( java.util.Date data )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DATA, data );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.data = data;
+ LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
+ }
+
+ public java.sql.Time getInicio_hora()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( INICIO_HORA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.inicio_hora;
+ }
+
+ public void setInicio_hora( java.sql.Time inicio_hora )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( INICIO_HORA, inicio_hora );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.inicio_hora = inicio_hora;
+ LAZY_LOADED_OBJECTS.put( INICIO_HORA, Boolean.TRUE );
+ }
+
+ public java.sql.Time getFim_hora()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FIM_HORA );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.fim_hora;
+ }
+
+ public void setFim_hora( java.sql.Time fim_hora )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FIM_HORA, fim_hora );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.fim_hora = fim_hora;
+ LAZY_LOADED_OBJECTS.put( FIM_HORA, Boolean.TRUE );
+ }
+
+ public Integer getLimite_inscricoes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LIMITE_INSCRICOES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.limite_inscricoes;
+ }
+
+ public void setLimite_inscricoes( Integer limite_inscricoes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LIMITE_INSCRICOES, limite_inscricoes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.limite_inscricoes = limite_inscricoes;
+ LAZY_LOADED_OBJECTS.put( LIMITE_INSCRICOES, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getDeleted_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_date;
+ }
+
+ public void setDeleted_date( java.sql.Timestamp deleted_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_DATE, deleted_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_date = deleted_date;
+ LAZY_LOADED_OBJECTS.put( DELETED_DATE, Boolean.TRUE );
+ }
+
+ public String getCodigo_questionario_antes()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO_QUESTIONARIO_ANTES );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo_questionario_antes;
+ }
+
+ public void setCodigo_questionario_antes( String codigo_questionario_antes )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO_QUESTIONARIO_ANTES, codigo_questionario_antes );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo_questionario_antes = codigo_questionario_antes;
+ LAZY_LOADED_OBJECTS.put( CODIGO_QUESTIONARIO_ANTES, Boolean.TRUE );
+ }
+
+ public String getCodigo_questionario_durante()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO_QUESTIONARIO_DURANTE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo_questionario_durante;
+ }
+
+ public void setCodigo_questionario_durante( String codigo_questionario_durante )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO_QUESTIONARIO_DURANTE, codigo_questionario_durante );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo_questionario_durante = codigo_questionario_durante;
+ LAZY_LOADED_OBJECTS.put( CODIGO_QUESTIONARIO_DURANTE, Boolean.TRUE );
+ }
+
+ public String getCodigo_questionario_depois()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CODIGO_QUESTIONARIO_DEPOIS );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.codigo_questionario_depois;
+ }
+
+ public void setCodigo_questionario_depois( String codigo_questionario_depois )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CODIGO_QUESTIONARIO_DEPOIS, codigo_questionario_depois );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.codigo_questionario_depois = codigo_questionario_depois;
+ LAZY_LOADED_OBJECTS.put( CODIGO_QUESTIONARIO_DEPOIS, Boolean.TRUE );
+ }
+
+ public Integer getAut_impressao_pedido_sub_tipo_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.aut_impressao_pedido_sub_tipo_id;
+ }
+
+ public void setAut_impressao_pedido_sub_tipo_id( Integer aut_impressao_pedido_sub_tipo_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID, aut_impressao_pedido_sub_tipo_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.aut_impressao_pedido_sub_tipo_id = aut_impressao_pedido_sub_tipo_id;
+ LAZY_LOADED_OBJECTS.put( AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getArchived_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ARCHIVED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.archived_date;
+ }
+
+ public void setArchived_date( java.sql.Timestamp archived_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ARCHIVED_DATE, archived_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.archived_date = archived_date;
+ LAZY_LOADED_OBJECTS.put( ARCHIVED_DATE, Boolean.TRUE );
+ }
+
+ public Boolean getProfissional()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( PROFISSIONAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.profissional;
+ }
+
+ public void setProfissional( Boolean profissional )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( PROFISSIONAL, profissional );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.profissional = profissional;
+ LAZY_LOADED_OBJECTS.put( PROFISSIONAL, Boolean.TRUE );
+ }
+
+ public Boolean getFinanciado()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( FINANCIADO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.financiado;
+ }
+
+ public void setFinanciado( Boolean financiado )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( FINANCIADO, financiado );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.financiado = financiado;
+ LAZY_LOADED_OBJECTS.put( FINANCIADO, Boolean.TRUE );
+ }
+
+ public Double getValor()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( VALOR );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.valor;
+ }
+
+ public void setValor( Double valor )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( VALOR, valor );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.valor = valor;
+ LAZY_LOADED_OBJECTS.put( VALOR, Boolean.TRUE );
+ }
+
+ public Integer getResponsavel_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( RESPONSAVEL_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.responsavel_id;
+ }
+
+ public void setResponsavel_id( Integer responsavel_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( RESPONSAVEL_ID, responsavel_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.responsavel_id = responsavel_id;
+ LAZY_LOADED_OBJECTS.put( RESPONSAVEL_ID, Boolean.TRUE );
+ }
+
+ public String getDuracao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DURACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.duracao;
+ }
+
+ public void setDuracao( String duracao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DURACAO, duracao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.duracao = duracao;
+ LAZY_LOADED_OBJECTS.put( DURACAO, Boolean.TRUE );
+ }
+
+ public String getLivro_registo()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LIVRO_REGISTO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.livro_registo;
+ }
+
+ public void setLivro_registo( String livro_registo )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LIVRO_REGISTO, livro_registo );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.livro_registo = livro_registo;
+ LAZY_LOADED_OBJECTS.put( LIVRO_REGISTO, Boolean.TRUE );
+ }
+
+ public String getLivro_numero()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( LIVRO_NUMERO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.livro_numero;
+ }
+
+ public void setLivro_numero( String livro_numero )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( LIVRO_NUMERO, livro_numero );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.livro_numero = livro_numero;
+ LAZY_LOADED_OBJECTS.put( LIVRO_NUMERO, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurCursos.ID_INDEX:
+ value = getId();
+ break;
+ case CurCursos.NOME_INDEX:
+ value = getNome();
+ break;
+ case CurCursos.DATA_INDEX:
+ value = getData();
+ break;
+ case CurCursos.INICIO_HORA_INDEX:
+ value = getInicio_hora();
+ break;
+ case CurCursos.FIM_HORA_INDEX:
+ value = getFim_hora();
+ break;
+ case CurCursos.LIMITE_INSCRICOES_INDEX:
+ value = getLimite_inscricoes();
+ break;
+ case CurCursos.DELETED_DATE_INDEX:
+ value = getDeleted_date();
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX:
+ value = getCodigo_questionario_antes();
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX:
+ value = getCodigo_questionario_durante();
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX:
+ value = getCodigo_questionario_depois();
+ break;
+ case CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX:
+ value = getAut_impressao_pedido_sub_tipo_id();
+ break;
+ case CurCursos.ARCHIVED_DATE_INDEX:
+ value = getArchived_date();
+ break;
+ case CurCursos.PROFISSIONAL_INDEX:
+ value = getProfissional();
+ break;
+ case CurCursos.FINANCIADO_INDEX:
+ value = getFinanciado();
+ break;
+ case CurCursos.VALOR_INDEX:
+ value = getValor();
+ break;
+ case CurCursos.RESPONSAVEL_ID_INDEX:
+ value = getResponsavel_id();
+ break;
+ case CurCursos.DURACAO_INDEX:
+ value = getDuracao();
+ break;
+ case CurCursos.LIVRO_REGISTO_INDEX:
+ value = getLivro_registo();
+ break;
+ case CurCursos.LIVRO_NUMERO_INDEX:
+ value = getLivro_numero();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurCursos.ID_INDEX:
+ value = this.id;
+ break;
+ case CurCursos.NOME_INDEX:
+ value = this.nome;
+ break;
+ case CurCursos.DATA_INDEX:
+ value = this.data;
+ break;
+ case CurCursos.INICIO_HORA_INDEX:
+ value = this.inicio_hora;
+ break;
+ case CurCursos.FIM_HORA_INDEX:
+ value = this.fim_hora;
+ break;
+ case CurCursos.LIMITE_INSCRICOES_INDEX:
+ value = this.limite_inscricoes;
+ break;
+ case CurCursos.DELETED_DATE_INDEX:
+ value = this.deleted_date;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX:
+ value = this.codigo_questionario_antes;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX:
+ value = this.codigo_questionario_durante;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX:
+ value = this.codigo_questionario_depois;
+ break;
+ case CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX:
+ value = this.aut_impressao_pedido_sub_tipo_id;
+ break;
+ case CurCursos.ARCHIVED_DATE_INDEX:
+ value = this.archived_date;
+ break;
+ case CurCursos.PROFISSIONAL_INDEX:
+ value = this.profissional;
+ break;
+ case CurCursos.FINANCIADO_INDEX:
+ value = this.financiado;
+ break;
+ case CurCursos.VALOR_INDEX:
+ value = this.valor;
+ break;
+ case CurCursos.RESPONSAVEL_ID_INDEX:
+ value = this.responsavel_id;
+ break;
+ case CurCursos.DURACAO_INDEX:
+ value = this.duracao;
+ break;
+ case CurCursos.LIVRO_REGISTO_INDEX:
+ value = this.livro_registo;
+ break;
+ case CurCursos.LIVRO_NUMERO_INDEX:
+ value = this.livro_numero;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurCursos.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case CurCursos.NOME_INDEX:
+ setNome( ( String ) value );
+ break;
+ case CurCursos.DATA_INDEX:
+ setData( ( java.util.Date ) value );
+ break;
+ case CurCursos.INICIO_HORA_INDEX:
+ setInicio_hora( ( java.sql.Time ) value );
+ break;
+ case CurCursos.FIM_HORA_INDEX:
+ setFim_hora( ( java.sql.Time ) value );
+ break;
+ case CurCursos.LIMITE_INSCRICOES_INDEX:
+ setLimite_inscricoes( ( Integer ) value );
+ break;
+ case CurCursos.DELETED_DATE_INDEX:
+ setDeleted_date( ( java.sql.Timestamp ) value );
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX:
+ setCodigo_questionario_antes( ( String ) value );
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX:
+ setCodigo_questionario_durante( ( String ) value );
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX:
+ setCodigo_questionario_depois( ( String ) value );
+ break;
+ case CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX:
+ setAut_impressao_pedido_sub_tipo_id( ( Integer ) value );
+ break;
+ case CurCursos.ARCHIVED_DATE_INDEX:
+ setArchived_date( ( java.sql.Timestamp ) value );
+ break;
+ case CurCursos.PROFISSIONAL_INDEX:
+ setProfissional( ( Boolean ) value );
+ break;
+ case CurCursos.FINANCIADO_INDEX:
+ setFinanciado( ( Boolean ) value );
+ break;
+ case CurCursos.VALOR_INDEX:
+ setValor( ( Double ) value );
+ break;
+ case CurCursos.RESPONSAVEL_ID_INDEX:
+ setResponsavel_id( ( Integer ) value );
+ break;
+ case CurCursos.DURACAO_INDEX:
+ setDuracao( ( String ) value );
+ break;
+ case CurCursos.LIVRO_REGISTO_INDEX:
+ setLivro_registo( ( String ) value );
+ break;
+ case CurCursos.LIVRO_NUMERO_INDEX:
+ setLivro_numero( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurCursos.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case CurCursos.NOME_INDEX:
+ this.nome = ( String ) value;
+ break;
+ case CurCursos.DATA_INDEX:
+ this.data = ( java.util.Date ) value;
+ break;
+ case CurCursos.INICIO_HORA_INDEX:
+ this.inicio_hora = ( java.sql.Time ) value;
+ break;
+ case CurCursos.FIM_HORA_INDEX:
+ this.fim_hora = ( java.sql.Time ) value;
+ break;
+ case CurCursos.LIMITE_INSCRICOES_INDEX:
+ this.limite_inscricoes = ( Integer ) value;
+ break;
+ case CurCursos.DELETED_DATE_INDEX:
+ this.deleted_date = ( java.sql.Timestamp ) value;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX:
+ this.codigo_questionario_antes = ( String ) value;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX:
+ this.codigo_questionario_durante = ( String ) value;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX:
+ this.codigo_questionario_depois = ( String ) value;
+ break;
+ case CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX:
+ this.aut_impressao_pedido_sub_tipo_id = ( Integer ) value;
+ break;
+ case CurCursos.ARCHIVED_DATE_INDEX:
+ this.archived_date = ( java.sql.Timestamp ) value;
+ break;
+ case CurCursos.PROFISSIONAL_INDEX:
+ this.profissional = ( Boolean ) value;
+ break;
+ case CurCursos.FINANCIADO_INDEX:
+ this.financiado = ( Boolean ) value;
+ break;
+ case CurCursos.VALOR_INDEX:
+ this.valor = ( Double ) value;
+ break;
+ case CurCursos.RESPONSAVEL_ID_INDEX:
+ this.responsavel_id = ( Integer ) value;
+ break;
+ case CurCursos.DURACAO_INDEX:
+ this.duracao = ( String ) value;
+ break;
+ case CurCursos.LIVRO_REGISTO_INDEX:
+ this.livro_registo = ( String ) value;
+ break;
+ case CurCursos.LIVRO_NUMERO_INDEX:
+ this.livro_numero = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case CurCursos.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurCursos.NOME_INDEX:
+ theClass = String.class;
+ break;
+ case CurCursos.DATA_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case CurCursos.INICIO_HORA_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case CurCursos.FIM_HORA_INDEX:
+ theClass = java.sql.Time.class;
+ break;
+ case CurCursos.LIMITE_INSCRICOES_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurCursos.DELETED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_ANTES_INDEX:
+ theClass = String.class;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DURANTE_INDEX:
+ theClass = String.class;
+ break;
+ case CurCursos.CODIGO_QUESTIONARIO_DEPOIS_INDEX:
+ theClass = String.class;
+ break;
+ case CurCursos.AUT_IMPRESSAO_PEDIDO_SUB_TIPO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurCursos.ARCHIVED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case CurCursos.PROFISSIONAL_INDEX:
+ theClass = Boolean.class;
+ break;
+ case CurCursos.FINANCIADO_INDEX:
+ theClass = Boolean.class;
+ break;
+ case CurCursos.VALOR_INDEX:
+ theClass = Double.class;
+ break;
+ case CurCursos.RESPONSAVEL_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurCursos.DURACAO_INDEX:
+ theClass = String.class;
+ break;
+ case CurCursos.LIVRO_REGISTO_INDEX:
+ theClass = String.class;
+ break;
+ case CurCursos.LIVRO_NUMERO_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : CurCursos._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, CurCursos.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurDias.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurDias.java
new file mode 100644
index 00000000..c7198d9a
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurDias.java
@@ -0,0 +1,445 @@
+/*
+* CurDias.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurDias extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( CurDias.ID, CurDias.ID_INDEX );
+ FIELD_INDEXES.put( CurDias.ID_FULL, CurDias.ID_INDEX );
+ FIELD_INDEXES.put( CurDias.DIA_DATE, CurDias.DIA_DATE_INDEX );
+ FIELD_INDEXES.put( CurDias.DIA_DATE_FULL, CurDias.DIA_DATE_INDEX );
+ com.evolute.entity.evo.EvoDataObject.register( CurDias.CLASS_IDENTIFIER, CurDias.CURSO_ID, CurDias.TO_CURSO_ID );
+ FIELD_INDEXES.put( CurDias.CURSO_ID, CurDias.CURSO_ID_INDEX );
+ FIELD_INDEXES.put( CurDias.CURSO_ID_FULL, CurDias.CURSO_ID_INDEX );
+ FIELD_INDEXES.put( CurDias.TO_CURSO_ID, CurDias.TO_CURSO_ID_INDEX );
+ FIELD_INDEXES.put( CurDias.DELETED_DATE, CurDias.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurDias.DELETED_DATE_FULL, CurDias.DELETED_DATE_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final com.evolute.entity.ForeignKey ForeignKeycurso_idTocur_cursos =
+ new com.evolute.entity.ForeignKey( CurDias.class, CurDias.CURSO_ID, db.data.siprp_local.outer.CurCursosData.class, db.data.siprp_local.outer.CurCursosData.ID );
+
+ public static final String TABLENAME = "cur_dias";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_dias";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "cur_dias.id";
+ public static final int ID_INDEX = 0;
+ public static final String DIA_DATE = "dia_date";
+ public static final String DIA_DATE_FULL = "cur_dias.dia_date";
+ public static final int DIA_DATE_INDEX = 1;
+ public static final String CURSO_ID = "curso_id";
+ public static final String CURSO_ID_FULL = "cur_dias.curso_id";
+ public static final int CURSO_ID_INDEX = 2;
+ public static final String TO_CURSO_ID = "to_curso_id";
+ public static final String TO_CURSO_ID_FULL = "cur_dias.to_curso_id";
+ public static final int TO_CURSO_ID_INDEX = 3;
+ public static final String DELETED_DATE = "deleted_date";
+ public static final String DELETED_DATE_FULL = "cur_dias.deleted_date";
+ public static final int DELETED_DATE_INDEX = 4;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DIA_DATE, CURSO_ID, TO_CURSO_ID, DELETED_DATE, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DIA_DATE, TABLENAME + "." + CURSO_ID, TABLENAME + "." + TO_CURSO_ID, TABLENAME + "." + DELETED_DATE, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DIA_DATE, CURSO_ID, DELETED_DATE, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DIA_DATE, CURSO_ID, DELETED_DATE, };
+
+ private Integer id;
+ private java.util.Date dia_date;
+ private Integer curso_id;
+ private db.data.siprp_local.outer.CurCursosData to_curso_id;
+ private java.sql.Timestamp deleted_date;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public CurDias()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false
+ , false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromCurAulas_cur_dia_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurAulasData.class , getPrimaryKey().getMap().get("id"), "cur_dia_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.Date getDia_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DIA_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.dia_date;
+ }
+
+ public void setDia_date( java.util.Date dia_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DIA_DATE, dia_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.dia_date = dia_date;
+ LAZY_LOADED_OBJECTS.put( DIA_DATE, Boolean.TRUE );
+ }
+
+ public Integer getCurso_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CURSO_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.curso_id;
+ }
+
+ public void setCurso_id( Integer curso_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CURSO_ID, curso_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.curso_id = curso_id;
+ LAZY_LOADED_OBJECTS.put( CURSO_ID, Boolean.TRUE );
+ }
+
+ public db.data.siprp_local.outer.CurCursosData toCurso_id()
+ {
+ try
+ {
+ prepare( TO_CURSO_ID );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return this.to_curso_id;
+ }
+
+ public void setToCurso_id( db.data.siprp_local.outer.CurCursosData to_curso_id )
+ {
+ try
+ {
+ preProcess( TO_CURSO_ID, to_curso_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.to_curso_id = to_curso_id;
+ }
+
+ public java.sql.Timestamp getDeleted_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_date;
+ }
+
+ public void setDeleted_date( java.sql.Timestamp deleted_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_DATE, deleted_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_date = deleted_date;
+ LAZY_LOADED_OBJECTS.put( DELETED_DATE, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurDias.ID_INDEX:
+ value = getId();
+ break;
+ case CurDias.DIA_DATE_INDEX:
+ value = getDia_date();
+ break;
+ case CurDias.CURSO_ID_INDEX:
+ value = getCurso_id();
+ break;
+ case CurDias.TO_CURSO_ID_INDEX:
+ value = toCurso_id();
+ break;
+ case CurDias.DELETED_DATE_INDEX:
+ value = getDeleted_date();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurDias.ID_INDEX:
+ value = this.id;
+ break;
+ case CurDias.DIA_DATE_INDEX:
+ value = this.dia_date;
+ break;
+ case CurDias.CURSO_ID_INDEX:
+ value = this.curso_id;
+ break;
+ case CurDias.TO_CURSO_ID_INDEX:
+ value = this.to_curso_id;
+ break;
+ case CurDias.DELETED_DATE_INDEX:
+ value = this.deleted_date;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurDias.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case CurDias.DIA_DATE_INDEX:
+ setDia_date( ( java.util.Date ) value );
+ break;
+ case CurDias.CURSO_ID_INDEX:
+ setCurso_id( ( Integer ) value );
+ break;
+ case CurDias.TO_CURSO_ID_INDEX:
+ setToCurso_id( ( db.data.siprp_local.outer.CurCursosData ) value );
+ break;
+ case CurDias.DELETED_DATE_INDEX:
+ setDeleted_date( ( java.sql.Timestamp ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurDias.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case CurDias.DIA_DATE_INDEX:
+ this.dia_date = ( java.util.Date ) value;
+ break;
+ case CurDias.CURSO_ID_INDEX:
+ this.curso_id = ( Integer ) value;
+ break;
+ case CurDias.TO_CURSO_ID_INDEX:
+ this.to_curso_id = ( db.data.siprp_local.outer.CurCursosData ) value;
+ break;
+ case CurDias.DELETED_DATE_INDEX:
+ this.deleted_date = ( java.sql.Timestamp ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case CurDias.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurDias.DIA_DATE_INDEX:
+ theClass = java.util.Date.class;
+ break;
+ case CurDias.CURSO_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurDias.TO_CURSO_ID_INDEX:
+ theClass = db.data.siprp_local.outer.CurCursosData.class;
+ break;
+ case CurDias.DELETED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : CurDias._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, CurDias.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurFormadores.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurFormadores.java
new file mode 100644
index 00000000..c629697e
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurFormadores.java
@@ -0,0 +1,587 @@
+/*
+* CurFormadores.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurFormadores extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap();
+
+ static
+ {
+ FIELD_INDEXES.put( CurFormadores.ID, CurFormadores.ID_INDEX );
+ FIELD_INDEXES.put( CurFormadores.ID_FULL, CurFormadores.ID_INDEX );
+ FIELD_INDEXES.put( CurFormadores.DADOS_PESSOAS_ID, CurFormadores.DADOS_PESSOAS_ID_INDEX );
+ FIELD_INDEXES.put( CurFormadores.DADOS_PESSOAS_ID_FULL, CurFormadores.DADOS_PESSOAS_ID_INDEX );
+ FIELD_INDEXES.put( CurFormadores.DELETED_DATE, CurFormadores.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurFormadores.DELETED_DATE_FULL, CurFormadores.DELETED_DATE_INDEX );
+ FIELD_INDEXES.put( CurFormadores.NOME_PROFISSIONAL, CurFormadores.NOME_PROFISSIONAL_INDEX );
+ FIELD_INDEXES.put( CurFormadores.NOME_PROFISSIONAL_FULL, CurFormadores.NOME_PROFISSIONAL_INDEX );
+ FIELD_INDEXES.put( CurFormadores.HABILITACAO, CurFormadores.HABILITACAO_INDEX );
+ FIELD_INDEXES.put( CurFormadores.HABILITACAO_FULL, CurFormadores.HABILITACAO_INDEX );
+ FIELD_INDEXES.put( CurFormadores.CAP, CurFormadores.CAP_INDEX );
+ FIELD_INDEXES.put( CurFormadores.CAP_FULL, CurFormadores.CAP_INDEX );
+ FIELD_INDEXES.put( CurFormadores.CAP_TSHST, CurFormadores.CAP_TSHST_INDEX );
+ FIELD_INDEXES.put( CurFormadores.CAP_TSHST_FULL, CurFormadores.CAP_TSHST_INDEX );
+ }
+
+ private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
+
+
+ public static final String TABLENAME = "cur_formadores";
+
+
+ public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_formadores";
+
+ public static final int _INVALID__INDEX = -1;
+ public static final String ID = "id";
+ public static final String ID_FULL = "cur_formadores.id";
+ public static final int ID_INDEX = 0;
+ public static final String DADOS_PESSOAS_ID = "dados_pessoas_id";
+ public static final String DADOS_PESSOAS_ID_FULL = "cur_formadores.dados_pessoas_id";
+ public static final int DADOS_PESSOAS_ID_INDEX = 1;
+ public static final String DELETED_DATE = "deleted_date";
+ public static final String DELETED_DATE_FULL = "cur_formadores.deleted_date";
+ public static final int DELETED_DATE_INDEX = 2;
+ public static final String NOME_PROFISSIONAL = "nome_profissional";
+ public static final String NOME_PROFISSIONAL_FULL = "cur_formadores.nome_profissional";
+ public static final int NOME_PROFISSIONAL_INDEX = 3;
+ public static final String HABILITACAO = "habilitacao";
+ public static final String HABILITACAO_FULL = "cur_formadores.habilitacao";
+ public static final int HABILITACAO_INDEX = 4;
+ public static final String CAP = "cap";
+ public static final String CAP_FULL = "cur_formadores.cap";
+ public static final int CAP_INDEX = 5;
+ public static final String CAP_TSHST = "cap_tshst";
+ public static final String CAP_TSHST_FULL = "cur_formadores.cap_tshst";
+ public static final int CAP_TSHST_INDEX = 6;
+
+ public static final String FIELD_NAMES[] = new String[]{
+ DADOS_PESSOAS_ID, DELETED_DATE, NOME_PROFISSIONAL, HABILITACAO, CAP, CAP_TSHST, };
+
+ public static final String FIELD_NAMES_FULL[] = new String[]{
+ TABLENAME + "." + DADOS_PESSOAS_ID, TABLENAME + "." + DELETED_DATE, TABLENAME + "." + NOME_PROFISSIONAL, TABLENAME + "." + HABILITACAO, TABLENAME + "." + CAP, TABLENAME + "." + CAP_TSHST, };
+
+ protected static final String DB_FIELD_NAMES[] = new String[]{
+ ID, DADOS_PESSOAS_ID, DELETED_DATE, NOME_PROFISSIONAL, HABILITACAO, CAP, CAP_TSHST, };
+
+
+ protected static final String PK_FIELD_NAMES[] = new String[]{
+ ID, };
+
+
+ public static final String DEFAULT_LOAD_SET[] = new String[] {
+ ID, DADOS_PESSOAS_ID, DELETED_DATE, NOME_PROFISSIONAL, HABILITACAO, CAP, CAP_TSHST, };
+
+ private Integer id;
+ private Integer dados_pessoas_id;
+ private java.sql.Timestamp deleted_date;
+ private String nome_profissional;
+ private String habilitacao;
+ private String cap;
+ private String cap_tshst;
+
+ protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
+
+ public CurFormadores()
+ {
+ super();
+ dirtyProperties = new boolean[]{ false, false, false,
+ false, false, false, false };
+ }
+
+ public Integer getId()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.id;
+ }
+
+ public void setId( Integer id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( ID, id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.id = id;
+ LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
+ }
+
+ public java.util.ListfromCurAulasFormadores_formador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurAulasFormadoresData.class , getPrimaryKey().getMap().get("id"), "formador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurFormadoresCursos_formador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurFormadoresCursosData.class , getPrimaryKey().getMap().get("id"), "formador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurPresencas_formador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurPresencasData.class , getPrimaryKey().getMap().get("id"), "formador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public java.util.ListfromCurTopicos_formador_id()
+ {
+ java.util.List result = null;
+ try
+ {
+ result = fromReference( db.data.siprp_local.outer.CurTopicosData.class , getPrimaryKey().getMap().get("id"), "formador_id" );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ return result;
+ }
+
+ public Integer getDados_pessoas_id()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DADOS_PESSOAS_ID );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.dados_pessoas_id;
+ }
+
+ public void setDados_pessoas_id( Integer dados_pessoas_id )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DADOS_PESSOAS_ID, dados_pessoas_id );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.dados_pessoas_id = dados_pessoas_id;
+ LAZY_LOADED_OBJECTS.put( DADOS_PESSOAS_ID, Boolean.TRUE );
+ }
+
+ public java.sql.Timestamp getDeleted_date()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( DELETED_DATE );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.deleted_date;
+ }
+
+ public void setDeleted_date( java.sql.Timestamp deleted_date )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( DELETED_DATE, deleted_date );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.deleted_date = deleted_date;
+ LAZY_LOADED_OBJECTS.put( DELETED_DATE, Boolean.TRUE );
+ }
+
+ public String getNome_profissional()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( NOME_PROFISSIONAL );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.nome_profissional;
+ }
+
+ public void setNome_profissional( String nome_profissional )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( NOME_PROFISSIONAL, nome_profissional );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.nome_profissional = nome_profissional;
+ LAZY_LOADED_OBJECTS.put( NOME_PROFISSIONAL, Boolean.TRUE );
+ }
+
+ public String getHabilitacao()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( HABILITACAO );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.habilitacao;
+ }
+
+ public void setHabilitacao( String habilitacao )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( HABILITACAO, habilitacao );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.habilitacao = habilitacao;
+ LAZY_LOADED_OBJECTS.put( HABILITACAO, Boolean.TRUE );
+ }
+
+ public String getCap()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CAP );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cap;
+ }
+
+ public void setCap( String cap )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CAP, cap );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cap = cap;
+ LAZY_LOADED_OBJECTS.put( CAP, Boolean.TRUE );
+ }
+
+ public String getCap_tshst()
+ {
+ try
+ {
+ setLastAccess( System.currentTimeMillis() );
+ prepare( CAP_TSHST );
+ }
+ catch( java.lang.Exception ex )
+ {
+ throw new RuntimeException( ex );
+ }
+ return this.cap_tshst;
+ }
+
+ public void setCap_tshst( String cap_tshst )
+ {
+ try
+ {
+ setLockedForRefresh( true );
+ preProcess( CAP_TSHST, cap_tshst );
+ }
+ catch( com.evolute.entity.evo.EvoDataException edex )
+ {
+ throw new RuntimeException( edex );
+ }
+ this.cap_tshst = cap_tshst;
+ LAZY_LOADED_OBJECTS.put( CAP_TSHST, Boolean.TRUE );
+ }
+
+ public Object get( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurFormadores.ID_INDEX:
+ value = getId();
+ break;
+ case CurFormadores.DADOS_PESSOAS_ID_INDEX:
+ value = getDados_pessoas_id();
+ break;
+ case CurFormadores.DELETED_DATE_INDEX:
+ value = getDeleted_date();
+ break;
+ case CurFormadores.NOME_PROFISSIONAL_INDEX:
+ value = getNome_profissional();
+ break;
+ case CurFormadores.HABILITACAO_INDEX:
+ value = getHabilitacao();
+ break;
+ case CurFormadores.CAP_INDEX:
+ value = getCap();
+ break;
+ case CurFormadores.CAP_TSHST_INDEX:
+ value = getCap_tshst();
+ break;
+ }
+ return value;
+ }
+
+ public Object rawGet( String fieldName )
+ {
+ Object value = null;
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurFormadores.ID_INDEX:
+ value = this.id;
+ break;
+ case CurFormadores.DADOS_PESSOAS_ID_INDEX:
+ value = this.dados_pessoas_id;
+ break;
+ case CurFormadores.DELETED_DATE_INDEX:
+ value = this.deleted_date;
+ break;
+ case CurFormadores.NOME_PROFISSIONAL_INDEX:
+ value = this.nome_profissional;
+ break;
+ case CurFormadores.HABILITACAO_INDEX:
+ value = this.habilitacao;
+ break;
+ case CurFormadores.CAP_INDEX:
+ value = this.cap;
+ break;
+ case CurFormadores.CAP_TSHST_INDEX:
+ value = this.cap_tshst;
+ break;
+ }
+ return value;
+ }
+
+ public void set( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurFormadores.ID_INDEX:
+ setId( ( Integer ) value );
+ break;
+ case CurFormadores.DADOS_PESSOAS_ID_INDEX:
+ setDados_pessoas_id( ( Integer ) value );
+ break;
+ case CurFormadores.DELETED_DATE_INDEX:
+ setDeleted_date( ( java.sql.Timestamp ) value );
+ break;
+ case CurFormadores.NOME_PROFISSIONAL_INDEX:
+ setNome_profissional( ( String ) value );
+ break;
+ case CurFormadores.HABILITACAO_INDEX:
+ setHabilitacao( ( String ) value );
+ break;
+ case CurFormadores.CAP_INDEX:
+ setCap( ( String ) value );
+ break;
+ case CurFormadores.CAP_TSHST_INDEX:
+ setCap_tshst( ( String ) value );
+ break;
+ }
+ }
+
+ public void rawSet( String fieldName, Object value )
+ {
+ Integer index = getFieldIndex( fieldName );
+ switch( index )
+ {
+ case CurFormadores.ID_INDEX:
+ this.id = ( Integer ) value;
+ break;
+ case CurFormadores.DADOS_PESSOAS_ID_INDEX:
+ this.dados_pessoas_id = ( Integer ) value;
+ break;
+ case CurFormadores.DELETED_DATE_INDEX:
+ this.deleted_date = ( java.sql.Timestamp ) value;
+ break;
+ case CurFormadores.NOME_PROFISSIONAL_INDEX:
+ this.nome_profissional = ( String ) value;
+ break;
+ case CurFormadores.HABILITACAO_INDEX:
+ this.habilitacao = ( String ) value;
+ break;
+ case CurFormadores.CAP_INDEX:
+ this.cap = ( String ) value;
+ break;
+ case CurFormadores.CAP_TSHST_INDEX:
+ this.cap_tshst = ( String ) value;
+ break;
+ }
+ }
+
+ public String []getFieldNames()
+ {
+ return FIELD_NAMES;
+ }
+
+ public String []getFieldNamesFull()
+ {
+ return FIELD_NAMES_FULL;
+ }
+
+ public String []getDBFieldNames()
+ {
+ return DB_FIELD_NAMES;
+ }
+
+ public String []getPrimaryKeyNames()
+ {
+ return PK_FIELD_NAMES;
+ }
+
+ public String []getDefaultLoadSet()
+ {
+ return DEFAULT_LOAD_SET;
+ }
+
+ public String getPrimaryKeyName()
+ {
+ return PK_FIELD_NAMES[ 0 ];
+ }
+
+ public Class> getFieldClass( String fieldName )
+ {
+ Integer index = getFieldIndex( fieldName );
+ Class> theClass = null;
+ switch( index )
+ {
+ case CurFormadores.ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurFormadores.DADOS_PESSOAS_ID_INDEX:
+ theClass = Integer.class;
+ break;
+ case CurFormadores.DELETED_DATE_INDEX:
+ theClass = java.sql.Timestamp.class;
+ break;
+ case CurFormadores.NOME_PROFISSIONAL_INDEX:
+ theClass = String.class;
+ break;
+ case CurFormadores.HABILITACAO_INDEX:
+ theClass = String.class;
+ break;
+ case CurFormadores.CAP_INDEX:
+ theClass = String.class;
+ break;
+ case CurFormadores.CAP_TSHST_INDEX:
+ theClass = String.class;
+ break;
+ }
+ return theClass;
+ }
+
+ public Integer getFieldIndex( String fieldName )
+ {
+ Integer index = FIELD_INDEXES.get( fieldName );
+ return index != null ? index : CurFormadores._INVALID__INDEX;
+ }
+
+ public String getTableName()
+ {
+ return TABLENAME;
+ }
+
+ public String getClassIdentifier()
+ {
+ return CLASS_IDENTIFIER;
+ }
+
+ @Override
+ protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
+ {
+ if( primaryKey == null )
+ {
+ primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, CurFormadores.PK_FIELD_NAMES );
+ primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
+ }
+ setId( ( Integer ) array.get( row, col + 0 ) );
+ }
+
+ @Override
+ public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
+ {
+ return primaryKey;
+ }
+
+ public void initLazyLoadFields()
+ {
+ }
+
+ public boolean isPropertyLoaded( String fieldName )
+ {
+ if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
+ {
+ return true;
+ }
+ else
+ {
+ return LAZY_LOADED_OBJECTS.get( fieldName );
+ }
+ }
+}
diff --git a/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurFormadoresCursos.java b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurFormadoresCursos.java
new file mode 100644
index 00000000..9a4824d0
--- /dev/null
+++ b/tags/Site antigo e SIPRPSoft/AnaliseAcidentesTrabalho/src/java/db/data/siprp_local/inner/CurFormadoresCursos.java
@@ -0,0 +1,481 @@
+/*
+* CurFormadoresCursos.java
+*
+* Generated by com.evutils.codegen.EntityObjectGenerator
+*
+* Use but DON'T TOUCH
+* -> (can't touch this)
+*/
+package db.data.siprp_local.inner;
+
+
+public class CurFormadoresCursos extends com.evolute.entity.evo.EvoDataObject
+{
+ private static final java.util.HashMap FIELD_INDEXES = new java.util.HashMap