Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='UTF-8' ?>
- <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- template="../template/template_relatorios.xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:p="http://primefaces.org/ui">
- <ui:define name="content">
- <h:form id="formNota">
- <p:growl life="10000" />
- <p:panel id="panelcenter">
- <h:panelGrid columns="2">
- <h:outputText value="Unidade: "/>
- <p:selectOneMenu id="unidade" value="#{relatoriosBean.idUnidade}" >
- <f:selectItem itemLabel="Selecione" itemValue="" />
- <f:selectItems value="#{relatoriosBean.unidades}" var="unidade"
- itemLabel="#{unidade.nome}" itemValue="#{unidade.id}" />
- <p:ajax update="panelcenter"/>
- </p:selectOneMenu>
- </h:panelGrid>
- <p:commandButton id="imprimir" value="Imprimir" type="button" icon="ui-icon-print">
- <p:printer target="RelatorioP" />
- </p:commandButton>
- <p:spacer height="20px"/>
- <p:panel rendered="#{relatoriosBean.idUnidade != null}" id="RelatorioP">
- <div id="cabecalho" style="page-break-before: auto; font-size: 12px" align="center">
- <h:graphicImage library="imagens" width="90" height="90" name="brasao.jpg"/>
- <P align="center">
- ESTADO DO ACRE<BR />
- SECRETARIA DE ESTADO DE EDUCAÇÃO E ESPORTE<BR />
- DIRETORIA DE INOVAÇÃO<BR />
- CENTRO DE ESTUDO DE LÍNGUAS <BR />
- <br/> <b>RELATÓRIO DE TURMAS POR UNIDADE</b> <br/>
- </P>
- </div>
- <div>
- <p:spacer height="20px"/>
- </div>
- <p:fieldset>
- <h:panelGrid columns="2">
- <h:graphicImage library="imagens" name="ativado.png" />
- <h:outputText style="font-style: italic;font-size: 10px;" value="Turma em aberto"/>
- <h:graphicImage library="imagens" name="desativado.png" />
- <h:outputText style="font-style: italic;font-size: 10px;" value="Turma finalizada"/>
- </h:panelGrid> </p:fieldset>
- <p:fieldset><center><br/>Gerado por ManagerCel em : <h:outputText value="#{relatoriosBean.data}"><f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" timeZone="GMT-3"/></h:outputText></center></p:fieldset>
- <p:dataTable rendered="#{relatoriosBean.idUnidade != null}" style="page-break-before: auto; font-size: 12px" id="tabelaturma" value="#{relatoriosBean.turmas}"
- var ="v" emptyMessage="Turma não encontrada!">
- <p:column headerText="Nome">
- <h:outputText value="#{v.nome}" />
- </p:column>
- <p:column headerText="Unidade">
- #{v.unidade.nome}
- </p:column>
- <p:column headerText="Idioma">
- #{v.idioma.nome}
- </p:column>
- <p:column style="text-align: center;" filterMatchMode="contains" filterStyle="width:50px" filterBy="#{v.semestre}">
- <f:facet name="header">
- <h:outputText value="Semestre"/>
- </f:facet>
- #{v.semestre}
- </p:column>
- <p:column headerText="Horário">
- #{v.horario.descricao}
- </p:column>
- <p:column headerText="Professor">
- #{v.professor.nome}
- </p:column>
- <p:column headerText="Status" style="text-align: center;">
- <h:graphicImage alt="Ativado" library="imagens"
- name="ativado.png" rendered="#{v.status == true}"/>
- <h:graphicImage library="imagens"
- name="desativado.png" rendered="#{v.status == false}"/>
- </p:column>
- </p:dataTable>
- <p:fieldset><center><br/>Gerado por ManagerCel em : <h:outputText value="#{relatoriosBean.data}"><f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" timeZone="GMT-3"/></h:outputText></center></p:fieldset>
- </p:panel></p:panel>
- </h:form>
- </ui:define>
- </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment