64 lines
3.8 KiB
Plaintext
Executable File
64 lines
3.8 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_destinos}</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="#{lovDestinosSbsController}" />
|
|
<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_general.lbl_code}:" />
|
|
<p:inputText id="fidenti" value="#{lovDestinosSbsController.mfilters['cod_destino']}" maxlength="6" style="width: 120px;">
|
|
<pe:keyFilter mask="num"/>
|
|
</p:inputText>
|
|
|
|
<p:outputLabel for="fnomb" value="#{msg_general.lbl_name}:" />
|
|
<p:inputText id="fnomb" value="#{lovDestinosSbsController.mfilters['nom_destino']}" 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="#{lovDestinosSbsController.query()}" process="@this, filters"/>
|
|
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev" action="#{lovDestinosSbsController.previous()}" />
|
|
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next" action="#{lovDestinosSbsController.nextDestino()}" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_viaticos.htbl_destinos}" />
|
|
</f:facet>
|
|
<p:dataTable id="person" var="row" value="#{lovDestinosSbsController.ldestinos}" rows="200" rowKey="#{row}" selectionMode="single" selection="#{lovDestinosSbsController.destino}" >
|
|
<p:ajax event="rowSelect" listener="#{lovDestinosSbsController.setDes()}" />
|
|
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:50px" sortBy="#{row[0]}">
|
|
<h:outputText value="#{row[0]}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true" sortBy="#{row[1]}">
|
|
<h:outputText value="#{row[1]}" />
|
|
</p:column>
|
|
|
|
<p:column >
|
|
<p:commandButton icon="ui-icon-copy" actionListener="#{lovDestinosSbsController.setDestinoSbs(row)}" />
|
|
</p:column>
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
</h:body>
|
|
</ui:define>
|
|
</ui:composition> |