<?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 binding="#{FormMedico.page1}" id="page1">
            <ui:html binding="#{FormMedico.html1}" id="html1">
                <ui:head binding="#{FormMedico.head1}" id="head1">
                    <ui:link binding="#{FormMedico.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{FormMedico.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{FormMedico.form1}" id="form1">
                        <h:panelGrid binding="#{FormMedico.gridBase1}" columns="1" id="gridBase1"
                            style="height: 24px; left: 0px; top: 60px; position: absolute; width: 100%" styleClass="centerBlock" width="648">
                            <h:panelGrid binding="#{FormMedico.gridLayout1}" columns="1" id="gridLayout1" style="height: 15px; width: 80%" styleClass="centerBlock">
                                <h:panelGrid binding="#{FormMedico.gridPanel1}" columnClasses="gridColLeft, gridColRightBottom" columns="2" id="gridPanel1"
                                    style="border-bottom: solid #000000 1px; height: 24px; width: 100%" width="312">
                                    <ui:panelGroup binding="#{FormMedico.groupPanel1}" id="groupPanel1" style="height: 24px; width: 216px">
                                        <ui:image binding="#{FormMedico.image1}" id="image1" url="/resources/images/SIPRP_logo_small.jpg"/>
                                        <ui:image binding="#{FormMedico.image2}" id="image2" url="/resources/images/logo_auchan_small1.jpg"/>
                                    </ui:panelGroup>
                                    <ui:panelGroup binding="#{FormMedico.groupPanel2}" id="groupPanel2" style="height: 24px; width: 310px; top: 90%">
                                        <ui:staticText binding="#{FormMedico.lblUser}" escape="false" id="lblUser" styleClass="labelBold"/>
                                        <ui:staticText binding="#{FormMedico.staticText1}" escape="false" id="staticText1" text="   "/>
                                        <ui:hyperlink action="#{FormMedico.lnkEditUser_action}" binding="#{FormMedico.lnkEditUser}" id="lnkEditUser" text="alterar dados utilizador"/>
                                        <ui:staticText binding="#{FormMedico.staticText2}" escape="false" id="staticText2" text=" | "/>
                                        <ui:hyperlink action="#{FormMedico.lnkLogout_action}" binding="#{FormMedico.lnkLogout}" id="lnkLogout" text="sair&gt;&gt;"/>
                                    </ui:panelGroup>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormMedico.gridLayoutTop1}" columnClasses="gridLayoutTopCols, gridLayoutTopCols" columns="1"
                                    id="gridLayoutTop1" style="height: 15px; position: relative; vertical-align: top; width: 100%">
                                    <h:panelGrid binding="#{FormMedico.gridActual}" columnClasses="gridColCenter" columns="1" id="gridActual"
                                        style="background-color: #f6f4e8; height: 24px; position: relative; width: 100%" width="360">
                                        <h:panelGrid binding="#{FormMedico.gridPanel2}" columnClasses="gridColCenter" columns="1" id="gridPanel2"
                                            style="height: 24px; width: 100%" width="264">
                                            <ui:staticText binding="#{FormMedico.staticText4}" id="staticText4"
                                                style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Actual"/>
                                        </h:panelGrid>
                                        <ui:staticText binding="#{FormMedico.staticText5}" id="staticText5" text="Processos com dados pendentes"/>
                                        <h:panelGrid binding="#{FormMedico.gridPanel3}" id="gridPanel3" style="height: 24px; width: 100%"
                                            styleClass="centerBlock" width="456">
                                            <ui:table augmentTitle="false" binding="#{FormMedico.table1}" id="table1" style="width: 80%; height: 48px"
                                                styleClass="centerBlock" width="550">
                                                <ui:tableRowGroup binding="#{FormMedico.tableRowGroup1}" id="tableRowGroup1"
                                                    sourceData="#{SessionBean1.analisesActualDataProvider}" sourceVar="currentRow">
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn1}" headerText="Data do acidente" id="tableColumn1"
                                                        sort="data_acidente" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkDataAcidente_action}" binding="#{FormMedico.lnkDataAcidente}"
                                                            id="lnkDataAcidente" text="#{currentRow.value['data_acidente']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn2}" headerText="Nº acidente" id="tableColumn2" sort="nr"
                                                        style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkNr_action}" binding="#{FormMedico.lnkNr}" id="lnkNr" text="#{currentRow.value['analise_nr']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn12}" headerText="POR" id="tableColumn12" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkPor_action}" binding="#{FormMedico.lnkPor}" id="lnkPor" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn3}" headerText="Nome do acidentado" id="tableColumn3"
                                                        sort="nome_acidentado" style="width: 80%" width="60%">
                                                        <ui:hyperlink action="#{FormMedico.lnkNomeAcidentado_action}" binding="#{FormMedico.lnkNomeAcidentado}"
                                                            id="lnkNomeAcidentado" text="#{currentRow.value['nome_acidentado']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn10}" headerText="Fase" id="tableColumn10" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkFase_action}" binding="#{FormMedico.lnkFase}" id="lnkFase"
                                                            style="width: 96px; height: 24px" text="#{currentRow.value['fase']}"/>
                                                    </ui:tableColumn>
                                                </ui:tableRowGroup>
                                            </ui:table>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormMedico.gridSeguimento}" columns="1" id="gridSeguimento"
                                        style="background-color: #f6f4e8; position: relative; width: 100%" width="360">
                                        <h:panelGrid binding="#{FormMedico.gridPanel4}" columnClasses="gridColCenter" columns="1" id="gridPanel4"
                                            style="height: 24px; width: 100%" width="264">
                                            <ui:staticText binding="#{FormMedico.staticText6}" id="staticText6"
                                                style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Em seguimento"/>
                                        </h:panelGrid>
                                        <h:panelGrid binding="#{FormMedico.gridPanel5}" id="gridPanel5"
                                            style="background-color: #f6f4e8; height: 24px; width: 100%" styleClass="centerBlock" width="456">
                                            <ui:table augmentTitle="false" binding="#{FormMedico.table2}" id="table2" style="width: 80%; height: 48px"
                                                styleClass="centerBlock" width="740">
                                                <ui:tableRowGroup binding="#{FormMedico.tableRowGroup2}" id="tableRowGroup2"
                                                    sourceData="#{SessionBean1.analisesSeguimentoDataProvider}" sourceVar="currentRow">
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn4}" headerText="Data do acidente" id="tableColumn4"
                                                        sort="column1" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkDataAcidenteSeg_action}"
                                                            binding="#{FormMedico.lnkDataAcidenteSeg}" id="lnkDataAcidenteSeg" text="#{currentRow.value['data_acidente']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn5}" headerText="Nº acidente" id="tableColumn5"
                                                        sort="column2" style="width: 10%" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkNrSeg_action}" binding="#{FormMedico.lnkNrSeg}" id="lnkNrSeg" text="#{currentRow.value['analise_nr']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn13}" headerText="POR" id="tableColumn13" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkPorSeg_action}" binding="#{FormMedico.lnkPorSeg}" id="lnkPorSeg"
                                                            style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn6}" headerText="Nome do acidentado" id="tableColumn6"
                                                        sort="column3" style="width: 80%" width="60%">
                                                        <ui:hyperlink action="#{FormMedico.lnkNomeAcidentadoSeg_action}"
                                                            binding="#{FormMedico.lnkNomeAcidentadoSeg}" id="lnkNomeAcidentadoSeg" text="#{currentRow.value['nome_acidentado']}"/>
                                                    </ui:tableColumn>
                                                    <ui:tableColumn binding="#{FormMedico.tableColumn11}" headerText="Fase" id="tableColumn11" width="10%">
                                                        <ui:hyperlink action="#{FormMedico.lnkFaseSeg_action}" binding="#{FormMedico.lnkFaseSeg}"
                                                            id="lnkFaseSeg" style="width: 96px; height: 24px" text="#{currentRow.value['fase']}"/>
                                                    </ui:tableColumn>
                                                </ui:tableRowGroup>
                                            </ui:table>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormMedico.gridConcluidos}" columns="1" id="gridConcluidos"
                                    style="border: 1px solid #000000; height: 24px; background-color: #f6f4e8; width: 100%" width="360">
                                    <h:panelGrid binding="#{FormMedico.gridPanel6}" columnClasses="gridColCenter" columns="1" id="gridPanel6"
                                        style="height: 24px; width: 100%" width="264">
                                        <ui:staticText binding="#{FormMedico.staticText7}" escape="false" id="staticText7"
                                            style="font-size: 18px; font-weight: bold; height: 24px; width: 168px" text="Concluídos"/>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormMedico.gridPanel7}" columns="6" id="gridPanel7" style="height: 24px" width="576">
                                        <ui:panelGroup binding="#{FormMedico.groupPanel3}" id="groupPanel3" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormMedico.staticText8}" id="staticText8" style="height: 24px; width: 22px" text="Ano:"/>
                                            <ui:dropDown binding="#{FormMedico.drpAno}" id="drpAno" items="#{SessionBean1.anoOptions}"
                                                onChange="common_timeoutSubmitForm(this.form, 'gridBase1:gridLayout1:gridConcluidos:gridPanel7:groupPanel3:drpAno');"
                                                selected="#{SessionBean1.anoChoice}" style="width: 70px" valueChangeListener="#{FormMedico.drpAno_processValueChange}"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormMedico.groupPanel4}" id="groupPanel4" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormMedico.lblMes}" escape="false" id="lblMes" style="height: 24px; width: 22px"
                                                text="Mês:" visible="false"/>
                                            <ui:dropDown binding="#{FormMedico.drpMes}" id="drpMes" items="#{SessionBean1.mesOptions}"
                                                onChange="common_timeoutSubmitForm(this.form, 'gridBase1:gridLayout1:gridConcluidos:gridPanel7:groupPanel4:drpMes');"
                                                selected="#{SessionBean1.mesChoice}" style="width: 69px"
                                                valueChangeListener="#{FormMedico.drpMes_processValueChange}" visible="false"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormMedico.groupPanel5}" id="groupPanel5" style="height: 24px; width: 94px">
                                            <ui:staticText binding="#{FormMedico.lblDia}" id="lblDia" style="height: 24px; width: 22px" text="Dia:" visible="false"/>
                                            <ui:dropDown binding="#{FormMedico.drpDia}" id="drpDia" items="#{SessionBean1.diaOptions}"
                                                selected="#{SessionBean1.diaChoice}" valueChangeListener="#{FormMedico.drpDia_processValueChange}" visible="false"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormMedico.groupPanel7}" id="groupPanel7" style="height: 24px; width: 142px">
                                            <ui:staticText binding="#{FormMedico.staticText3}" escape="false" id="staticText3" style="height: 24px; width: 96px" text="POR:&amp;nbsp;"/>
                                            <ui:textField binding="#{FormMedico.txtPor}" id="txtPor" style="height: 24px; width: 96px"/>
                                        </ui:panelGroup>
                                        <ui:panelGroup binding="#{FormMedico.groupPanel6}" id="groupPanel6" style="height: 24px; width: 262px">
                                            <ui:staticText binding="#{FormMedico.staticText9}" id="staticText9" style="height: 24px; width: 46px" text="Nome:"/>
                                            <ui:textField binding="#{FormMedico.txtNome}" id="txtNome"/>
                                        </ui:panelGroup>
                                        <ui:button action="#{FormMedico.butPesquisar_action}" binding="#{FormMedico.butPesquisar}" id="butPesquisar" text="Pesquisar"/>
                                    </h:panelGrid>
                                    <h:panelGrid binding="#{FormMedico.gridPanel8}" columnClasses="gridColCenter" columns="1" id="gridPanel8"
                                        style="height: 24px; width: 80%" styleClass="centerBlock" width="456">
                                        <ui:table augmentTitle="false" binding="#{FormMedico.table3}" id="table3" style="width: 89%; height: 48px"
                                            styleClass="centerBlock" width="707">
                                            <ui:tableRowGroup binding="#{FormMedico.tableRowGroup3}" id="tableRowGroup3"
                                                sourceData="#{SessionBean1.analisesConcluidasDataProvider}" sourceVar="currentRow">
                                                <ui:tableColumn binding="#{FormMedico.tableColumn7}" headerText="Data do acidente" id="tableColumn7"
                                                    sort="column1" style="width: 10%">
                                                    <ui:hyperlink action="#{FormMedico.lnkDataConcluida_action}" binding="#{FormMedico.lnkDataConcluida}"
                                                        id="lnkDataConcluida" text="#{currentRow.value['data_acidente']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormMedico.tableColumn8}" headerText="Nº acidente" id="tableColumn8" sort="column2" style="width: 10%">
                                                    <ui:hyperlink action="#{FormMedico.lnkNrConcluida_action}" binding="#{FormMedico.lnkNrConcluida}"
                                                        id="lnkNrConcluida" text="#{currentRow.value['analise_nr']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormMedico.tableColumn14}" headerText="POR" id="tableColumn14" width="200">
                                                    <ui:hyperlink action="#{FormMedico.lnkPorConcluida_action}" binding="#{FormMedico.lnkPorConcluida}"
                                                        id="lnkPorConcluida" style="" text="#{currentRow.value['numero_mecanografico']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormMedico.tableColumn9}" headerText="Nome do acidentado" id="tableColumn9"
                                                    sort="column3" style="width: 80%">
                                                    <ui:hyperlink action="#{FormMedico.lnkNomeConcluida_action}" binding="#{FormMedico.lnkNomeConcluida}"
                                                        id="lnkNomeConcluida" text="#{currentRow.value['nome_acidentado']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{FormMedico.tableColumn15}" headerText="Estabelecimento" id="tableColumn15" width="200">
                                                    <ui:hyperlink action="#{FormMedico.lnkEstabConcluida_action}" binding="#{FormMedico.lnkEstabConcluida}"
                                                        id="lnkEstabConcluida" style="" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                </ui:tableColumn>
                                            </ui:tableRowGroup>
                                        </ui:table>
                                        <ui:staticText binding="#{FormMedico.txtSearchMsg}" escape="false" id="txtSearchMsg" rendered="false" style="color: rgb(204, 0, 0); height: 24px; width: 336px"/>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid binding="#{FormMedico.gridPanel9}" columnClasses="gridColCenter" columns="1" id="gridPanel9" style="height: 24px; width: 100%">
                                    <ui:panelGroup binding="#{FormMedico.groupPanel8}" id="groupPanel8" style="border-bottom: solid rgb(255, 255, 255) 1px; height: 21px">
                                        <ui:staticText binding="#{FormMedico.staticText10}" id="staticText10" text="Software desenvolvido por "/>
                                        <ui:image binding="#{FormMedico.image3}" height="21" id="image3" url="/resources/images/logo_evolute_small.png" width="100"/>
                                        <ui:staticText binding="#{FormMedico.staticText11}" escape="false" id="staticText11" text="&amp;nbsp;&amp;copy; 2008 "/>
                                    </ui:panelGroup>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
