maia_modificado/.svn/pristine/ab/ab3b1d4e78cffbd05c9c735f7a0...

49 lines
2.6 KiB
Plaintext
Executable File

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<p:panelGrid columns="1">
<f:facet name="header">
<h:outputText value="#{msg_armas.lbl_seleccionarguardias}" />
</f:facet>
<h:panelGroup layout="block">
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{tramiteArmasController.guardias}"
queryProcess=""
queryUpdate=":formSolicitud:tabtramite:dtGuardias"
showCreateBtn="false" showSaveBtn="false" showNextBtn="false" showPreviousBtn="false"/>
</h:panelGrid>
<p:panelGrid columns="1">
<f:facet name="header">
<h:outputText value="#{msg_armas.lbl_listadoguardias}" />
</f:facet>
<h:panelGrid styleClass="m-data-content">
<h:panelGroup layout="block" style="float:right;">
<h:panelGrid columns="2" styleClass="m-data-content" style="min-width: 150px!important;" rendered="#{!tramiteArmasController.deshabilitarPantalla}">
<p:outputLabel for="txtSeleccionarGuardias" value="#{msg_armas['lbl_seleccionartodos']}"/>
<p:selectBooleanCheckbox id="txtSeleccionarGuardias" value="#{tramiteArmasController.guardias.mfilelds['seleccionarTodos']}" >
<p:ajax listener="#{tramiteArmasController.guardias.seleccionarTodos}" global="false" process="@this" update=":formSolicitud:tabtramite:dtGuardias"/>
</p:selectBooleanCheckbox>
</h:panelGrid>
</h:panelGroup>
<p:dataTable id="dtGuardias" value="#{tramiteArmasController.guardias.lrecord}" var="row" rows="5000" style="width: 700px;" rowKey="#{row.rowkey()}" selectionMode="single">
<p:column headerText="#{msg_armas['lbl_cedula']}">
<h:outputText value="#{row.modifiedData['gcedula']}" />
</p:column>
<p:column headerText="#{msg_armas['lbl_nombre']}" sortBy="#{row.modifiedData['gnombre']}" style="width: 300px">
<h:outputText value="#{row.modifiedData['gnombre']}" />
</p:column>
<p:column headerText="#{msg_armas['lbl_estado']}">
<h:outputText value="#{row.estado == 'APT' ? 'APTO':'NO APTO'}" />
</p:column>
<p:column headerText="#{msg_armas['lbl_seleccionar']}" rendered="#{!tramiteArmasController.deshabilitarPantalla}">
<p:selectBooleanCheckbox value="#{row.modifiedData['seleccionado']}"/>
</p:column>
</p:dataTable>
</h:panelGrid>
</p:panelGrid>
</h:panelGroup>
</p:panelGrid>
</ui:composition>