69 lines
4.1 KiB
Plaintext
Executable File
69 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>#{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="#{personLovController}" />
|
|
<ui:param name="paramQueryProcess" value="filters" />
|
|
<ui:param name="paramQueryUpdate" value="data-content" />
|
|
</ui:include>
|
|
|
|
<p:panelGrid id="filters" columns="6" 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}:" />
|
|
<pe:keyFilter />
|
|
<p:inputText id="fidenti" value="#{personLovController.mfilters['identification']}" maxlength="15" style="width: 120px;" />
|
|
|
|
<p:outputLabel for="fname" value="#{msg_general.lbl_name}:" />
|
|
<pe:keyFilter />
|
|
<p:inputText id="fname" value="#{personLovController.mfilters['name']}" maxlength="80" 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="#{personLovController.querydatabaseFiltro('CED')}" process="@this, filters"/>
|
|
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev" action="#{personLovController.previous()}" />
|
|
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next" action="#{personLovController.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="#{personLovController.lrecord}" rows="200" rowKey="#{row.rowkey()}" selectionMode="single" selection="#{personLovController.record}" >
|
|
<p:ajax event="rowSelect" listener="#{personLovController.setperson}" />
|
|
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:50px">
|
|
<h:outputText value="#{row.pk.personcode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_customer.lbl_identification}" resizable="true" style="width:70px" sortBy="#{row.identification}">
|
|
<h:outputText value="#{row.identification}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true" sortBy="#{row.name}" style="width:260px" >
|
|
<h:outputText value="#{row.name}" />
|
|
</p:column>
|
|
|
|
<p:column >
|
|
<p:commandButton icon="ui-icon-copy" actionListener="#{personLovController.setPerson(row)}" />
|
|
</p:column>
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
</h:body>
|
|
</ui:define>
|
|
</ui:composition> |