maia/.svn/pristine/c6/c6841a27f35d5c9a49779d9af66...

95 lines
5.4 KiB
Plaintext
Executable File

<ui:composition
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:pe="http://primefaces.org/ui/extensions"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<h:panelGrid columns="7" id="controls-documentos" styleClass="m-controls">
<maia:pageControls controller="#{documentoHabilitanteController}"
queryProcess=""
queryUpdate=":formSolicitud:tabtramite:dt-table-documentos"
showSaveBtn="false"
showQueryBtn="false"
showCreateBtn="false"
showNextBtn="false"
showPreviousBtn="false"/>
</h:panelGrid>
<p:panelGrid columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_armas.tab_documentos}" />
</f:facet>
<h:panelGroup layout="block" style="float:right;">
<h:panelGrid columns="2" styleClass="m-data-content" style="min-width: 150px!important;">
<p:outputLabel for="txtSeleccionarDocumentos2" value="#{msg_armas['lbl_seleccionartodos']}"/>
<p:selectBooleanCheckbox id="txtSeleccionarDocumentos2" >
<p:ajax listener="#{documentoHabilitanteController.seleccionarTodos}" global="false" process="@this, :formSolicitud:tabtramite:dt-table-documentos" update=":formSolicitud:tabtramite:dt-table-documentos"/>
</p:selectBooleanCheckbox>
</h:panelGrid>
</h:panelGroup>
<p:dataTable id="dt-table-documentos"
value="#{documentoHabilitanteController.lrecord}"
var="row" style="width: 100%;" rowIndexVar="rowIndex" rowKey="#{row.rowkey()}" selectionMode="single"
rows="10" paginator="true" paginatorPosition="top" paginatorTemplate="{PreviousPageLink} {NextPageLink}" scrollable="true" scrollWidth="1024">
<p:column headerText="#{msg_armas.lbl_No}" style="width:20px;text-align: center;" >
<p:outputLabel value="#{rowIndex + 1}"></p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_tipotramite}" style="width:50px;text-align: center;">
<p:outputLabel value="#{row.modifiedData['destipoTramite']}"></p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_tramite}" style="width:65px;text-align: center;">
<p:outputLabel value="#{row.modifiedData['destipoAutorizacion']}"></p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_categoria}" style="width:60px;text-align: center;" >
<p:outputLabel value="#{row.modifiedData['descategoria']}"></p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_usoActividad}" style="width:60px;text-align: center;">
<p:outputLabel value="#{row.modifiedData['desusoactividad']}"></p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_ubicacion}" style="width:60px;text-align: center;">
<p:outputLabel value="#{documentoHabilitanteController.ubicacion(row)}"></p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_estado}" style="width:60px;">
<p:outputLabel value="#{documentoHabilitanteController.estado(row)}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_fechaEmision}" style="width:60px;text-align: center;">
<p:outputLabel value="#{row.fechaemision}">
<f:convertDateTime pattern="#{msg_general.dateformat}"/>
</p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_fechaexpiracion}" style="width:60px;text-align: center;">
<p:outputLabel value="#{row.fechaexpiracion}">
<f:convertDateTime pattern="#{msg_general.dateformat}"/>
</p:outputLabel>
</p:column>
<p:column headerText="#{msg_armas.lbl_codigoarma}" style="width:45px;text-align: center;">
<h:outputText value="#{row.modifiedData['carma']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_clase}" style="width:60px;text-align: center;">
<h:outputText value="#{row.modifiedData['clase']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_tipo2}" style="width:80px;">
<h:outputText value="#{row.modifiedData['tipo']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_marca}" style="width:30px;text-align: center;">
<h:outputText value="#{row.modifiedData['marca']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_calibre}" style="width:40px;text-align: center;">
<h:outputText value="#{row.modifiedData['calibre']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_serie}" style="width:50px;text-align: center;">
<h:outputText value="#{row.modifiedData['lote']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_seleccionar}" style="width:60px;">
<p:selectBooleanCheckbox value="#{row.modifiedData['seleccionado']}">
<!-- <f:attribute name="documentoSeleccionado" value="#{rowIndex}"/>
<p:ajax listener="#{documentoHabilitanteController.validaNoSeleccionDocAnteriores}" process="@this" update="@this"/> -->
</p:selectBooleanCheckbox>
</p:column>
</p:dataTable>
</p:panelGrid>
</ui:composition>