97 lines
5.4 KiB
Plaintext
Executable File
97 lines
5.4 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:c="http://java.sun.com/jstl/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"
|
|
template="/WEB-INF/templates/template.xhtml">
|
|
|
|
<ui:define name="content">
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{permisosAutorizacionesController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:catalogdetail"
|
|
saveProcess=""
|
|
saveUpdate=""
|
|
focusContainer=":formTable:filters" />
|
|
|
|
<p:panelGrid id="filters" columns="9" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
<p:outputLabel for="fpkmod" value="#{msg_general.lbl_identification}:" />
|
|
<p:inputText id="fpkmod" value="#{permisosAutorizacionesController.tcustPersonDetail.identification}" style="width: 140px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fname" value="#{msg_general.lbl_name}:" />
|
|
<p:inputText id="fname" value="#{permisosAutorizacionesController.tcustPersonDetail.name}" style="width: 360px;" disabled="true" />
|
|
|
|
|
|
<p:commandButton id="lovCatalog" icon="ui-icon-link" actionListener="#{permisosAutorizacionesController.openLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{permisosAutorizacionesController.onReturnPersonLov}" update="filters,data-content" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{permisosAutorizacionesController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=""
|
|
createUpdate=""
|
|
dialogWidgetVar="" showCreateBtn="false" showSaveBtn="false"/>
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_catalogdetail}" />
|
|
</f:facet>
|
|
<p:dataTable id="catalogdetail" var="row" value="#{permisosAutorizacionesController.lrecord}" rows="15" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" >
|
|
<h:outputText value="#{row.pk}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_armas.lbl_tipotramite}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['description']}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_armas.lbl_tipoautorizacion}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['descriptionTipoAut']}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_general.lbl_category}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['descriptiontram']}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_armas.lbl_usoactividad}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['descriptionact']}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_armas.lbl_fechaEmision}" resizable="true" >
|
|
<h:outputText value="#{row.fechaemision}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_armas.lbl_fechaexpiracion}" resizable="true" >
|
|
<h:outputText value="#{row.fechaexpiracion}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="#{msg_armas.lbl_ruta}" resizable="true" >
|
|
<h:outputText value="#{row.xpath}" />
|
|
</p:column>
|
|
|
|
<p:column styleClass="m-action-column" headerText="Descarga">
|
|
<p:column styleClass="m-action-column" headerText="#{msg_armas.lbl_documento}"
|
|
resizable="true" style="width:50px;text-align: center;" rendered="#{row.xpath != null}">
|
|
<maia:alfrescoDocDownload controllerAlfresco="#{permisosAutorizacionesController.alfrescoController}"
|
|
xPathLocation="#{row.xpath}" label="#{msg_armas.btn_descargarDocumentos}" immediate="true" />
|
|
</p:column>
|
|
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
|
|
</ui:define>
|
|
</ui:composition> |