maia_modificado/.svn/pristine/cd/cdd96952aa8ef32722b41d639b1...

61 lines
3.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_flow}</title>
<h:body>
<h:form id="formTable">
<maia:pageEvents controller="#{tbpmFlowsLovController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:table"
focusContainer=":formTable:filters" />
<p:panelGrid id="filters" columns="4" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<p:outputLabel for="fpkc" value="#{msg_general.lbl_code}:" />
<p:inputText id="fpkc" value="#{tbpmFlowsLovController.mfilters['pk.flowcode']}" maxlength="30" style="width: 100px;"/>
<p:outputLabel for="fd" value="#{msg_general.lbl_description}:" />
<p:inputText id="fd" value="#{tbpmFlowsLovController.mfilters['description']}" maxlength="250" style="width: 300px;" onkeydown="Maia.forceupper(event, this);"/>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<p:commandButton value="#{msg_general.btn_query}" update="table" icon="ui-icon-search" action="#{tbpmFlowsLovController.query()}" process="@this, filters"/>
<p:commandButton value="#{msg_general.btn_previous}" update=":formTable:table" icon="ui-icon-seek-prev" action="#{tbpmFlowsLovController.previous()}" />
<p:commandButton value="#{msg_general.btn_next}" update=":formTable:table" icon="ui-icon-seek-next" action="#{tbpmFlowsLovController.next()}" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_general.htbl_flow}" />
</f:facet>
<p:dataTable id="table" var="row" value="#{tbpmFlowsLovController.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}"
selectionMode="single" selection="#{tbpmFlowsLovController.record}" >
<p:ajax event="rowSelect" listener="#{tbpmFlowsLovController.setTbpmFlows()}" />
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:90px" sortBy="#{row.pk.flowcode}">
<h:outputText value="#{row.pk.flowcode}" />
</p:column>
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.description}">
<h:outputText value="#{row.description}" />
</p:column>
<p:column >
<p:commandButton icon="ui-icon-copy" actionListener="#{tbpmFlowsLovController.setTbpmFlows(row)}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</h:body>
</ui:define>
</ui:composition>