72 lines
4.1 KiB
Plaintext
Executable File
72 lines
4.1 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"
|
|
template="/WEB-INF/templates/template.xhtml"
|
|
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
|
|
<ui:define name="content">
|
|
<title>ELEGIR SANCION</title>
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{sancionarLovController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:tcatalog"
|
|
focusContainer=":formTable:filters" />
|
|
|
|
<p:panelGrid id="filters" columns="2" styleClass="m-filters" style="width:800px">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
|
|
|
|
<p:outputLabel for="fpk" value="#{msg_armas.lbl_falta}:" />
|
|
|
|
<p:selectOneMenu id="fpk" var="p" value="#{sancionarLovController.mfilters['tipofalta']}"
|
|
style="width:300px" panelStyle="width: 500px">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
|
|
<f:selectItems value="#{sancionarLovController.lsancion}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
|
|
</p:selectOneMenu>
|
|
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls" >
|
|
<p:commandButton value="#{msg_general.btn_query}" update="data-content" icon="ui-icon-search" action="#{sancionarLovController.query()}" process="@this, filters"/>
|
|
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev" action="#{sancionarLovController.previous()}" />
|
|
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next" action="#{sancionarLovController.next()}" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content" style="width:800px">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_catalogo}" />
|
|
</f:facet>
|
|
<p:dataTable id="tcatalog" var="row" value="#{sancionarLovController.lrecord}" rows="200" style="min-width: 300px; width: auto;" rowKey="#{row.rowkey()}"
|
|
selectionMode="single" selection="#{sancionarLovController.record}" >
|
|
<p:ajax event="rowSelect" listener="#{sancionarLovController.setcatalog()}" />
|
|
|
|
|
|
<p:column headerText="#{msg_armas.lbl_falta}" resizable="true" style="width:300px">
|
|
<h:outputText value="#{row.modifiedData['nfalta']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_tramite}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['ntramite']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_tipoDeFalta}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['ntipoFalta']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_sancion}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['nsancion']}" />
|
|
</p:column>
|
|
<p:column >
|
|
<p:commandButton icon="ui-icon-copy" actionListener="#{sancionarLovController.setcatalog(row)}" />
|
|
</p:column>
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
</ui:define>
|
|
</ui:composition> |