73 lines
4.7 KiB
Plaintext
Executable File
73 lines
4.7 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>
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{transactionLovController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:transaction"
|
|
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="fpkm" value="#{msg_general.lbl_module}:" />
|
|
<pe:keyFilter mask="int" for="fpkm"/>
|
|
<p:inputText id="fpkm" value="#{transactionLovController.mfilters['pk.transactionmodule']}" maxlength="2" style="width: 25px;" />
|
|
|
|
<p:outputLabel for="fpkt" value="#{msg_general.lbl_transaction}:" />
|
|
<pe:keyFilter mask="int" for="fpkt"/>
|
|
<p:inputText id="fpkt" value="#{transactionLovController.mfilters['pk.transactioncode']}" maxlength="4" style="width: 40px;" />
|
|
|
|
<p:outputLabel for="fpkn" value="#{msg_general.lbl_name}:" />
|
|
<pe:keyFilter />
|
|
<p:inputText id="fpkn" value="#{transactionLovController.mfilters['name']}" maxlength="80" style="width: 380px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<p:commandButton value="#{msg_general.btn_query}" update="transaction" icon="ui-icon-search" action="#{transactionLovController.query()}" process="@this, filters"/>
|
|
<p:commandButton value="#{msg_general.btn_previous}" update=":formTable:transaction" icon="ui-icon-seek-prev" action="#{transactionLovController.previous()}" />
|
|
<p:commandButton value="#{msg_general.btn_next}" update=":formTable:transaction" icon="ui-icon-seek-next" action="#{transactionLovController.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="transaction" var="row" value="#{transactionLovController.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}"
|
|
selectionMode="single" selection="#{transactionLovController.record}" >
|
|
<p:ajax event="rowSelect" listener="#{transactionLovController.settransaction()}" />
|
|
|
|
<p:column headerText="#{msg_general.lbl_module}" resizable="true" style="width:50px" sortBy="#{row.pk.transactionmodule}">
|
|
<h:outputText value="#{row.pk.transactionmodule}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_transaction}" resizable="true" style="width:50px" sortBy="#{row.pk.transactioncode}">
|
|
<h:outputText value="#{row.pk.transactioncode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_version}" resizable="true" style="width:50px" 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="#{transactionLovController.settransaction(row)}" />
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
</h:body>
|
|
</ui:define>
|
|
</ui:composition> |