maia_modificado/.svn/pristine/c7/c7ec3187eec1589f5ec7f0e7360...

71 lines
4.5 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>LOV: #{msg_general.lvh_transaction}</title>
<h:body>
<p:focus context="formTable"></p:focus>
<h:form id="formTable">
<maia:pageEvents controller="#{transactionBpmELovController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:tcatalog"
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="fpkmodule" value="#{msg_general.lbl_module}:" />
<p:inputText id="fpkmodule" value="#{transactionBpmELovController.mfilters['pk.transactionmodule']}" maxlength="4" style="width: 35px;" />
<p:outputLabel for="fpkcode" value="#{msg_general.lbl_transaction}:" />
<p:inputText id="fpkcode" value="#{transactionBpmELovController.mfilters['pk.transactioncode']}" maxlength="4" style="width: 35px;" />
<p:outputLabel for="fpkname" value="#{msg_general.lbl_description}:" />
<p:inputText id="fpkname" value="#{transactionBpmELovController.mfilters['name']}" maxlength="60" style="width: 350px;" 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="#{transactionBpmELovController.query()}" process="@this, filters"/>
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev" action="#{transactionBpmELovController.previous()}" />
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next" action="#{transactionBpmELovController.next()}" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_general.htbl_transaction}" />
</f:facet>
<p:dataTable id="tcatalog" var="row" value="#{transactionBpmELovController.lTransactionLog}" rows="200" style="min-width: 300px; width: auto;" rowKey="#{row.hashCode()}"
selectionMode="single" selection="#{transactionBpmELovController.objeto}" >
<p:ajax event="rowSelect" listener="#{transactionBpmELovController.setTransaction()}" />
<p:column headerText="#{msg_general.lbl_module}" resizable="true" sortBy="#{row['pk_transactionmodule']}">
<h:outputText value="#{row['pk_transactionmodule']}" />
</p:column>
<p:column headerText="#{msg_general.lbl_transaction}" resizable="true" sortBy="#{row['pk_transactioncode']}">
<h:outputText value="#{row['pk_transactioncode']}" />
</p:column>
<p:column headerText="#{msg_general.lbl_version}" resizable="true" sortBy="#{row['pk_transactionversion']}">
<h:outputText value="#{row['pk_transactionversion']}" />
</p:column>
<p:column headerText="#{msg_general.lbl_name}" resizable="true" sortBy="#{row['name']}">
<h:outputText value="#{row['name']}" />
</p:column>
<p:column >
<p:commandButton icon="ui-icon-copy" actionListener="#{transactionBpmELovController.setTransaction(row)}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</h:body>
</ui:define>
</ui:composition>