|  |  | <?xml version="1.0" encoding="UTF-8"?>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | <jsp:root version="1.2"
 | 
						
						
						
							|  |  | 	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
 | 
						
						
						
							|  |  | 	xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |     <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |     <f:view>
 | 
						
						
						
							|  |  |         <ui:page id="page">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |             <ui:html id="html">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |                 <ui:head id="head">
 | 
						
						
						
							|  |  |                     <ui:link id="link_css" url="/resources/stylesheet.css"/>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |                     <script type="text/javascript">
 | 
						
						
						
							|  |  | 					function showPdf()
 | 
						
						
						
							|  |  | 					{
 | 
						
						
						
							|  |  | 						sOptions = " width = '" + screen.availWidth + "'";
 | 
						
						
						
							|  |  | 						sOptions += " height= '" + screen.availHeight + "'";
 | 
						
						
						
							|  |  | 						var wOpen;
 | 
						
						
						
							|  |  | 						wOpen = window.open('./resources/pdfs/Ajuda.pdf','', sOptions );
 | 
						
						
						
							|  |  | 					   wOpen.focus();
 | 
						
						
						
							|  |  | 					   wOpen.moveTo(0,0);
 | 
						
						
						
							|  |  | 					   wOpen.resizeTo( screen.availWidth, screen.availHeight );
 | 
						
						
						
							|  |  | 					}
 | 
						
						
						
							|  |  |                     </script>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |                 </ui:head>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |                 <ui:body id="body" style="-rave-layout: grid">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 					<h:panelGrid columns="1" id="gridBase" style="height: 24px; left: 0px; top: 60px; position: absolute; width: 100%" styleClass="centerBlock" width="648">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 						<h:panelGrid columns="1" id="gridLayout" style="height: 15px; width: 80%" styleClass="centerBlock">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 							<!-- header -->
 | 
						
						
						
							|  |  | 							<ui:form id="form0">
 | 
						
						
						
							|  |  | 								<h:panelGrid columnClasses="gridColLeft, gridColRightBottom" columns="2" id="gridPanel8" style="border-bottom: solid #000000 1px; height: 24px; width: 100%" width="312">
 | 
						
						
						
							|  |  | 									<ui:panelGroup id="groupPanel5" style="height: 24px; width: 216px">
 | 
						
						
						
							|  |  |                                         <ui:image id="image1" url="/resources/images/SIPRP_logo_small.jpg"/>
 | 
						
						
						
							|  |  |                                         <ui:image height="40" id="image2" url="#{SessionBean1.logoEmpresaUrl}" width="150"/>
 | 
						
						
						
							|  |  | 									</ui:panelGroup>
 | 
						
						
						
							|  |  |                                     <h:panelGrid columnClasses="gridColRight" columns="1" id="gridPanel11" style="height: 24px; width: 100%">
 | 
						
						
						
							|  |  |                                         <ui:panelGroup id="groupPanel6">
 | 
						
						
						
							|  |  |                                             <ui:hyperlink action="#{EstatisticasProcesso.lnkPlanosActuacao_action}" binding="#{EstatisticasProcesso.lnkPlanosActuacao}" id="lnkPlanosActuacao" text="planos actuação>>"/>
 | 
						
						
						
							|  |  |                                         </ui:panelGroup>
 | 
						
						
						
							|  |  |                                         <ui:panelGroup id="groupPanel9" style="height: 24px">
 | 
						
						
						
							|  |  |                                             <ui:staticText binding="#{EstatisticasProcesso.lblUser}" escape="false" id="lblUser" styleClass="labelBold"/>
 | 
						
						
						
							|  |  |                                             <ui:staticText escape="false" id="staticText9" text="   "/>
 | 
						
						
						
							|  |  |                                             <ui:hyperlink action="#{EstatisticasProcesso.lnkNewUser_action}" disabled="true" id="lnkNewUser1" style="width: 120px" text="gerir utilizadores"/>
 | 
						
						
						
							|  |  |                                             <ui:staticText escape="false" id="staticText12" text=" | "/>
 | 
						
						
						
							|  |  |                                             <ui:hyperlink action="#{EstatisticasProcesso.lnkEditUser_action}" id="lnkEditUser1" text="alterar dados utilizador"/>
 | 
						
						
						
							|  |  |                                             <ui:staticText escape="false" id="staticText13" text=" | "/>
 | 
						
						
						
							|  |  |                                             <ui:hyperlink id="lnkAjuda1" onClick="showPdf();" style="" text="ajuda "/>
 | 
						
						
						
							|  |  |                                             <ui:staticText id="staticText15" style="width: 0px" text="|"/>
 | 
						
						
						
							|  |  |                                             <ui:hyperlink action="#{EstatisticasProcesso.lnkLogout_action}" id="lnkLogout1" text="sair>>"/>
 | 
						
						
						
							|  |  |                                         </ui:panelGroup>
 | 
						
						
						
							|  |  |                                     </h:panelGrid>
 | 
						
						
						
							|  |  |                                 </h:panelGrid>
 | 
						
						
						
							|  |  | 							</ui:form>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 							<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel10" style="height: 24px; width: 100%" width="504">
 | 
						
						
						
							|  |  | 								<ui:staticText binding="#{EstatisticasProcesso.txtMsg}" escape="false" id="txtMsg" style="color: rgb(204, 0, 0); font-weight: bold; height: 24px"/>
 | 
						
						
						
							|  |  | 							</h:panelGrid>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 							<!-- body -->
 | 
						
						
						
							|  |  | 							<h:panelGrid columnClasses="gridLayoutTopCols, gridLayoutTopCols" columns="1"
 | 
						
						
						
							|  |  | 								id="gridLayoutTop" style="height: 15px; position: relative; vertical-align: top; width: 100%">
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 								<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridEstatisticas" style="background-color: #f6f4e8; height: 24px; position: relative; width: 100%" width="360">
 | 
						
						
						
							|  |  | 									<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel1" style="height: 24px; width: 100%">
 | 
						
						
						
							|  |  | 										<ui:staticText id="staticText1" text="Estatisticas" style="font-size: 18px; font-weight: bold; height: 24px;"/>
 | 
						
						
						
							|  |  | 									</h:panelGrid>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 									<h:form id="formEstatistica">
 | 
						
						
						
							|  |  | 										<h:panelGrid id="panelGrid1" columns="2">
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelPOR" escape="false" text="POR:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:textField id="textPOR" binding="#{EstatisticasProcesso.textPOR}" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelNome" escape="false" text="Nome:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:textField id="textNome" binding="#{EstatisticasProcesso.textNome}" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelAnoOcorrencia" escape="false" text="Ano de ocorrência:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:textField id="textAnoOcorrencia" binding="#{EstatisticasProcesso.textAnoOcorrencia}" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelDataOcorrencia" escape="false" text="Data de ocorrência:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:calendar binding="#{EstatisticasProcesso.calDataOcorrencia}" dateFormatPattern="yyyy-MM-dd" id="calDataOcorrencia" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelHoraOcorrencia" escape="false" text="Hora de ocorrência:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:textField id="textHoraOcorrencia" binding="#{EstatisticasProcesso.textHoraOcorrencia}" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelHorasTrabalhadas" escape="false" text="Nº horas trabalhadas por turno:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:textField id="textHorasTrabalhadas" binding="#{EstatisticasProcesso.textHorasTrabalhadas}" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelDepartamento" escape="false" text="Departamento:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:textField id="textDepartamento" binding="#{EstatisticasProcesso.textDepartamento}" />
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelSeccao" escape="false" text="Secção:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:dropDown binding="#{EstatisticasProcesso.dropSeccoes}" id="dropSeccoes" style="height: 18px; width: 240px"/>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelCausas" escape="false" text="Causas do acidente:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:dropDown binding="#{EstatisticasProcesso.dropCausas}" id="dropCausas" style="height: 18px; width: 240px"/>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelTurno" escape="false" text="Turno de trabalho:" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:dropDown binding="#{EstatisticasProcesso.dropTurno}" id="dropTurno" style="height: 18px; width: 240px"/>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelFormacaoSHST" escape="false" text="Formação em SHST" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:panelGroup>
 | 
						
						
						
							|  |  | 												<ui:radioButton binding="#{EstatisticasProcesso.formacaoSHST_true}" id="formacaoSHST_true" name="formacaoSHST" />
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelFormacaoSHST_SIM" escape="false" text="Sim" />
 | 
						
						
						
							|  |  | 												<ui:radioButton binding="#{EstatisticasProcesso.formacaoSHST_false}" id="formacaoSHST_false" name="formacaoSHST" />
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelFormacaoSHST_NAO" escape="false" text="Não" />
 | 
						
						
						
							|  |  | 											</ui:panelGroup>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<!--
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelPostoAcidentado" escape="false" text="outras ocorrências/incidências no mesmo posto de trabalho com o colaborador acidentado" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:panelGroup>
 | 
						
						
						
							|  |  | 												<ui:radioButton binding="#{EstatisticasProcesso.postoAcidentado_true}" id="postoAcidentado_true" name="postoAcidentadoRadio" />
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelPostoAcidentado_SIM" escape="false" text="Sim" />
 | 
						
						
						
							|  |  | 												<ui:radioButton binding="#{EstatisticasProcesso.postoAcidentado_false}" id="postoAcidentado_false" name="postoAcidentadoRadio" />
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelPostoAcidentado_NAO" escape="false" text="Não" />
 | 
						
						
						
							|  |  | 											</ui:panelGroup>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:staticText id="labelOutrosColaboradores" escape="false" text="outras ocorrências/incidências semelhantes com outros colaboradores" styleClass="labelBold" />
 | 
						
						
						
							|  |  | 											<ui:panelGroup>
 | 
						
						
						
							|  |  | 												<ui:radioButton binding="#{EstatisticasProcesso.outrosColaboradores_true}" id="outrosColaboradores_true" name="outrosColaboradoresRadio" />
 | 
						
						
						
							|  |  | 												<ui:staticText id="labeloutrosColaboradores_SIM" escape="false" text="Sim" />
 | 
						
						
						
							|  |  | 												<ui:radioButton binding="#{EstatisticasProcesso.outrosColaboradores_false}" id="outrosColaboradores_false" name="outrosColaboradoresRadio" />
 | 
						
						
						
							|  |  | 												<ui:staticText id="labeloutrosColaboradores_NAO" escape="false" text="Não" />
 | 
						
						
						
							|  |  | 											</ui:panelGroup>
 | 
						
						
						
							|  |  | 											-->
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 											<ui:button id="buttonEstatistica" action="#{EstatisticasProcesso.buttonEstatistica_action}" text="Pesquisar" />
 | 
						
						
						
							|  |  | 										</h:panelGrid>
 | 
						
						
						
							|  |  | 									</h:form>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 									<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel2" style="height: 24px; width: 100%; margin-top: 50px;">
 | 
						
						
						
							|  |  | 										<ui:staticText id="staticText2" text="Resultados" style="font-size: 18px; font-weight: bold; height: 24px;" />
 | 
						
						
						
							|  |  | 									</h:panelGrid>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 									<ui:table id="tableEstatisticas" binding="#{EstatisticasProcesso.tableEstatisticas}" augmentTitle="false" style="width: 50%; margin-top: 20px;" styleClass="centerBlock">
 | 
						
						
						
							|  |  | 										<ui:tableRowGroup id="tableEstatisticasRow" rows="10" sourceData="#{EstatisticasProcesso.listEstatisticas}" sourceVar="row">
 | 
						
						
						
							|  |  | 											<ui:tableColumn id="tableEstatisticasColumn_Estado" headerText="Estado" style="width: 33%;">
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelEstado" text="#{row.value['estado']}" />
 | 
						
						
						
							|  |  | 											</ui:tableColumn>
 | 
						
						
						
							|  |  | 											<ui:tableColumn id="tableEstatisticasColumn_Fase" headerText="Fase">
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelFase" text="#{row.value['fase']}" />
 | 
						
						
						
							|  |  | 											</ui:tableColumn>
 | 
						
						
						
							|  |  | 											<ui:tableColumn id="tableEstatisticasColumn_Count" headerText="Contagem" style="width: 33%;">
 | 
						
						
						
							|  |  | 												<ui:staticText id="labelContagem" text="#{row.value['count']}" />
 | 
						
						
						
							|  |  | 											</ui:tableColumn>
 | 
						
						
						
							|  |  | 										</ui:tableRowGroup>
 | 
						
						
						
							|  |  | 									</ui:table>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 									<h:form>
 | 
						
						
						
							|  |  | 										<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel3" style="height: 24px; width: 100%; margin-top: 20px; margin-bottom: 20px;">
 | 
						
						
						
							|  |  | 											<ui:button id="buttonExport" binding="#{EstatisticasProcesso.buttonExport}" action="#{EstatisticasProcesso.buttonExport_action}" text="Exportar" rendered="false" />
 | 
						
						
						
							|  |  | 										</h:panelGrid>
 | 
						
						
						
							|  |  | 									</h:form>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 								</h:panelGrid>
 | 
						
						
						
							|  |  | 							</h:panelGrid>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 							<!-- footer -->
 | 
						
						
						
							|  |  | 							<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel9" style="height: 24px; width: 100%">
 | 
						
						
						
							|  |  | 								<ui:panelGroup id="groupPanel8" style="border-bottom: solid rgb(255, 255, 255) 1px; height: 21px">
 | 
						
						
						
							|  |  | 									<ui:staticText id="staticText6" text="Software desenvolvido por "/>
 | 
						
						
						
							|  |  | 									<ui:image height="21" id="image3" url="/resources/images/logo_evolute_small.png" width="100"/>
 | 
						
						
						
							|  |  | 									<ui:staticText escape="false" id="staticText7" text="&nbsp;&copy; 2008 "/>
 | 
						
						
						
							|  |  | 								</ui:panelGroup>
 | 
						
						
						
							|  |  | 							</h:panelGrid>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 						</h:panelGrid>
 | 
						
						
						
							|  |  | 					</h:panelGrid>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 					<!-- google analytics -->
 | 
						
						
						
							|  |  |                     <script type="text/javascript">
 | 
						
						
						
							|  |  |                     var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 | 
						
						
						
							|  |  |                     document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |                     try
 | 
						
						
						
							|  |  | 					{
 | 
						
						
						
							|  |  | 						var pageTracker = _gat._getTracker("UA-6942416-1");
 | 
						
						
						
							|  |  | 						pageTracker._trackPageview();
 | 
						
						
						
							|  |  |                     }
 | 
						
						
						
							|  |  | 					catch( err ) {}
 | 
						
						
						
							|  |  | 					</script>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |                 </ui:body>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |             </ui:html>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |         </ui:page>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  |     </f:view>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | </jsp:root>
 |