<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 
    Document   : ListaPlanos
    Created on : Aug 29, 2008, 2:57:16 PM
    Author     : lluis
-->
<jsp:root version="2.1" 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:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    <script>
                        function checkEmptyTables()
                        {
                            var tableId1 = "_form1:table1:tableRowGroup1:_emptyDataColumn:_emptyDataText";
                            var tableId2 = "_form1:table2:tableRowGroup2:_emptyDataColumn:_emptyDataText";                            
                            var tableId3 = "_form1:table3:tableRowGroup3:_emptyDataColumn:_emptyDataText";                            
                            
                            var t1 = document.getElementById(tableId1);

                            if(t1 != null)
                            {
                                //alert( t1.innerHTML );                                
                                t1.innerHTML = '';                                
                            }

                        }
                    </script>
                </webuijsf:head>
                <webuijsf:body id="body1" onLoad="checkEmptyTables();">
                    <webuijsf:form id="form1">
                        <div style="height: 24px; left: 0px; top: 0px; width: 100%">
                            <jsp:directive.include file="Header.jspf"/>
                        </div>
                        <h:panelGrid columns="1" id="gridBaseLayout" lang="pt" style="height: 96px; width: 100%" styleClass="centerBlock" width="336">
                            <h:panelGrid columns="1" id="gridLayout" style="height: 24px; width: 80%" styleClass="centerBlock">
                                <webuijsf:staticText escape="false" id="staticText4" style="font-size: 36px" text="&amp;nbsp;"/>
                                <h:panelGrid columnClasses="gridColCenter" columns="1" id="gridMsg" style="height: 24px; width: 100%">
                                    <webuijsf:staticText id="lblMsg" styleClass="labelMsg  "/>
                                </h:panelGrid>
                                <h:panelGrid binding="#{ListaPlanos.gridActual}" columnClasses="gridColCenter" columns="1" id="gridActual"
                                    style="height: 24px; width: 100%" styleClass="gridPlanosList">
                                    <webuijsf:staticText id="staticText1" style="font-size: 18px" text="Actual"/>
                                    <webuijsf:staticText escape="false" id="staticText2" style="font-size: 14px" text=" "/>
                                    <webuijsf:staticText id="staticText3" styleClass="label" text="Processos com dados pendentes"/>
                                    <h:panelGrid columns="1" id="gridPanel1" style="height: 24px; width: 80%" styleClass="centerBlock" width="456">
                                        <webuijsf:table augmentTitle="false" binding="#{ListaPlanos.table1}" id="table1" style="width: 100%"
                                            styleClass="centerBlock" width="100%">
                                            <webuijsf:tableRowGroup binding="#{ListaPlanos.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                                sourceData="#{SessionBean1.planosActualDataProvider}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Data da visita" id="tableColumn1" sort="data_visita">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goEditarPlano_action}" id="lnkDataActivo" text="#{currentRow.value['data_visita_str']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Técnico de HST" id="tableColumn2" sort="tecnico_hs_nome">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goEditarPlano_action}" id="lnkTecnicoHsActivo" text="#{currentRow.value['tecnico_hs_nome']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Fase" id="tableColumn3" sort="fase">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goEditarPlano_action}" id="lnkFaseActivo" text="#{currentRow.value['fase_nome']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Plano" id="tableColumn10">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goImprimirPlano_action}" id="lnkPlanoActivo"
                                                        style="color: #008000;" text="imprimir"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Loja" id="tableColumn13" sort="loja_nome">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goEditarPlano_action}" id="lnkLojaActivo" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid columnClasses="gridColCenter" columns="1" id="gridSeguimento1" style="height: 24px; width: 100%" styleClass="gridPlanosList">
                                    <webuijsf:staticText id="staticText7" style="font-size: 18px" text="Em seguimento"/>
                                    <webuijsf:staticText escape="false" id="staticText8" style="font-size: 14px" text=" "/>
                                    <h:panelGrid columns="1" id="gridPanel2" style="height: 24px; width: 80%" styleClass="centerBlock" width="456">
                                        <webuijsf:table augmentTitle="false" id="table2" style="width: 100%" styleClass="centerBlock" width="100%">
                                            <webuijsf:tableRowGroup binding="#{ListaPlanos.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                                sourceData="#{SessionBean1.planosSeguimentoDataProvider}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Data da visita" id="tableColumn4" sort="data_visita_str">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromSeguimento_action}" id="hyperlink1" text="#{currentRow.value['data_visita_str']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Técnico de HST" id="tableColumn5" sort="tecnico_hs_nome">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromSeguimento_action}" id="hyperlink2" text="#{currentRow.value['tecnico_hs_nome']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Fase" id="tableColumn6" sort="fase_nome">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromSeguimento_action}" id="hyperlink3" text="#{currentRow.value['fase_nome']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Plano" id="tableColumn11">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goImprimirPlanoFromSeguimento_action}" id="hyperlink4"
                                                        style="color: #008000;" text="imprimir"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Loja" id="tableColumn14">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromSeguimento_action}" id="hyperlink5" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid columnClasses="gridColCenter" columns="1" id="gridConcluidos" style="height: 24px; width: 100%" styleClass="gridPlanosList">
                                    <webuijsf:staticText escape="false" id="staticText14" style="font-size: 18px" text="Conclu&amp;iacute;dos"/>
                                    <webuijsf:staticText escape="false" id="staticText15" style="font-size: 14px" text=" "/>
                                    <h:panelGrid columns="1" id="gridPanel4" style="height: 24px; width: 80%" styleClass="centerBlock" width="456">
                                        <webuijsf:table augmentTitle="false" id="table3" style="width: 100%" styleClass="centerBlock" width="100%">
                                            <webuijsf:tableRowGroup binding="#{ListaPlanos.tableRowGroup3}" id="tableRowGroup3" rows="10"
                                                sourceData="#{SessionBean1.planosConcluidosDataProvider}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Data da visita" id="tableColumn7" sort="data_visita_str">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromConcluidos_action}" id="hyperlink6" text="#{currentRow.value['data_visita_str']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Técnico de HST" id="tableColumn8" sort="tecnico_hs_nome">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromConcluidos_action}" id="hyperlink7" text="#{currentRow.value['tecnico_hs_nome']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Fase" id="tableColumn9" sort="fase_nome">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromConcluidos_action}" id="hyperlink8" text="#{currentRow.value['fase_nome']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Plano" id="tableColumn12">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goImprimirPlanoFromConcluidos_action}" id="hyperlink9"
                                                        style="color: #008000;" text="imprimir"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Loja" id="tableColumn15">
                                                    <webuijsf:hyperlink actionExpression="#{ListaPlanos.goVerPlanoFromConcluidos_action}" id="hyperlink10" text="#{currentRow.value['nome_estabelecimento']}"/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                </h:panelGrid>
                                <h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel3" style="height: 24px; width: 50%" styleClass="centerBlock">
                                    <webuijsf:panelGroup id="groupPanel1" style="border-bottom: solid white 2px; ">
                                        <webuijsf:staticText escape="false" id="staticText5" text="Software desenvolvido por&amp;nbsp;"/>
                                        <webuijsf:image id="image1" url="/resources/images/logo_evolute_small.png"/>
                                        <webuijsf:staticText escape="false" id="staticText6" text="&amp;nbsp;&amp;copy; 2008"/>
                                    </webuijsf:panelGroup>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    </webuijsf:form>
                    <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"));
                    </script>
                    <script type="text/javascript">
                    try {
                    var pageTracker = _gat._getTracker("UA-6942416-1");
                    pageTracker._trackPageview();
                    } catch(err) {}</script>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
