100 lines
5.5 KiB
Plaintext
Executable File
100 lines
5.5 KiB
Plaintext
Executable File
<ui:composition
|
|
xmlns:h="http://java.sun.com/jsf/html"
|
|
xmlns:f="http://java.sun.com/jsf/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">
|
|
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{flowsController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:group"
|
|
saveProcess=""
|
|
saveUpdate=":formTable:group"
|
|
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="fpk" value="#{msg_bpm.lbl_code}:" />
|
|
<p:inputText id="fpk" value="#{flowsController.mfilters['pk.flowcode']}" maxlength="30" style="width: 160px;"/>
|
|
|
|
<p:outputLabel for="fdesc" value="#{msg_bpm.lbl_description}:" />
|
|
<p:inputText id="fdesc" value="#{flowsController.mfilters['description']}" maxlength="250" style="width: 480px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{flowsController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:group"
|
|
createUpdate=":formFlows:pEdit"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_bpm.htbl_flows}" />
|
|
</f:facet>
|
|
<p:dataTable id="group" var="row" value="#{flowsController.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
<p:column headerText="#{msg_bpm.lbl_code}" resizable="true" style="width:150px" sortBy="#{row.pk.flowcode}">
|
|
<h:outputText value="#{row.pk.flowcode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_bpm.lbl_description}" resizable="true" sortBy="#{row.description}">
|
|
<h:outputText value="#{row.description}" />
|
|
</p:column>
|
|
<p:column>
|
|
<p:commandButton value="#{msg_bpm.btn_edit}" update=":formFlows:pEdit" oncomplete="dialog.show();Maia.focus('formTable\\:idSave');" styleClass="m-action-button" icon="ui-icon-pencil" process="@this, group">
|
|
<f:setPropertyActionListener target="#{flowsController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{flowsController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column>
|
|
<p:commandButton value="#{msg_bpm.btn_delete}" update=":formTable:group" styleClass="m-action-button" icon="ui-icon-trash" action="#{flowsController.remove()}" process="@this, group" oncomplete="Maia.focus('formTable\\:idSave');">
|
|
<f:setPropertyActionListener target="#{flowsController.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
<p:dialog widgetVar="dialog" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog" focus=":formFlows:flowcode">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_createoredit}" />
|
|
</f:facet>
|
|
<h:form id="formFlows">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid id="pEdit" columns="3" bodyrows="1" >
|
|
<p:outputLabel for="flowcode" value="#{msg_bpm.lbl_code}:" />
|
|
<h:outputText rendered="#{!flowsController.newRow}" value="#{flowsController.record.pk.flowcode}"/>
|
|
<p:inputText id="flowcode"
|
|
rendered="#{flowsController.newRow}"
|
|
value="#{flowsController.record.pk.flowcode}"
|
|
required="true" maxlength="30"
|
|
style="width:160px;" />
|
|
<p:message for="flowcode" />
|
|
|
|
<p:outputLabel for="descripcion" value="#{msg_bpm.lbl_description}:" />
|
|
<p:inputText id="descripcion"
|
|
value="#{flowsController.record.description}"
|
|
required="true" maxlength="250"
|
|
onkeyup="Maia.forceupper(event, this);" style="width:480px;" />
|
|
<p:message for="descripcion" />
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="2" styleClass="m-dialog-controls">
|
|
<maia:dialogControls controller="#{flowsController}"
|
|
process=":formFlows:pEdit"
|
|
update=":formFlows:pEdit :formTable:group"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |