66 lines
4.1 KiB
Plaintext
Executable File
66 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">
|
|
<ui:define name="content">
|
|
<title>LOV: #{msg_customer.lvh_persons}</title>
|
|
<h:body>
|
|
<p:focus context="formTable"></p:focus>
|
|
<h:form id="formTable">
|
|
<ui:include src="/WEB-INF/templates/queryEvent.xhtml">
|
|
<ui:param name="controller" value="#{lovEmpleadoSbsController}" />
|
|
<ui:param name="paramQueryProcess" value="filters" />
|
|
<ui:param name="paramQueryUpdate" value="data-content" />
|
|
</ui:include>
|
|
|
|
<p:panelGrid id="filters" columns="2" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
|
|
<p:outputLabel for="fidenti" value="#{msg_customer.lbl_identification}:" />
|
|
<p:inputText id="fidenti" value="#{lovEmpleadoSbsController.mfilters['cedula']}" maxlength="15" style="width: 120px;" />
|
|
|
|
<p:outputLabel for="fnomb" value="#{msg_general.lbl_name}:" />
|
|
<p:inputText id="fnomb" value="#{lovEmpleadoSbsController.mfilters['nombres']}" maxlength="64" style="width: 390px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
|
|
<p:outputLabel for="fappe" value="#{msg_customer.lbl_surname}:" />
|
|
<p:inputText id="fappe" value="#{lovEmpleadoSbsController.mfilters['apellidos']}" maxlength="64" style="width: 390px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
|
|
</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="#{lovEmpleadoSbsController.query()}" process="@this, filters"/>
|
|
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev" action="#{lovEmpleadoSbsController.previous()}" />
|
|
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next" action="#{lovEmpleadoSbsController.next()}" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_customer.htbl_persons}" />
|
|
</f:facet>
|
|
<p:dataTable id="person" var="row" value="#{lovEmpleadoSbsController.lrecord}" rows="200" rowKey="#{row.rowkey()}" selectionMode="single" selection="#{lovEmpleadoSbsController.record}" >
|
|
<p:ajax event="rowSelect" listener="#{lovEmpleadoSbsController.setEmpleado}" />
|
|
|
|
<p:column headerText="#{msg_customer.lbl_identification}" resizable="true" style="width:50px" sortBy="#{row.cedula}">
|
|
<h:outputText value="#{row.cedula}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true" sortBy="#{row.nombre}">
|
|
<h:outputText value="#{row.nombre}" />
|
|
</p:column>
|
|
|
|
<p:column >
|
|
<p:commandButton icon="ui-icon-copy" actionListener="#{lovEmpleadoSbsController.setEmpleado(row)}" />
|
|
</p:column>
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
</h:body>
|
|
</ui:define>
|
|
</ui:composition> |