187 lines
13 KiB
Plaintext
Executable File
187 lines
13 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">
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{transactionProcessController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:tranprocess"
|
|
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="fpkmod" value="#{msg_general.lbl_module}:" />
|
|
<p:inputText id="fpkmod" value="#{transactionProcessController.mfilters['pk.transactionmodule']}" style="width: 32px;" immediate="true" disabled="true" required="true" />
|
|
|
|
<p:outputLabel for="fpktran" value="#{msg_general.lbl_transaction}:" />
|
|
<p:inputText id="fpktran" value="#{transactionProcessController.mfilters['pk.transactioncode']}" style="width: 40px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fname" value="#{msg_general.lbl_description}:" />
|
|
<p:inputText id="fname" value="#{transactionProcessController.mfilelds['transactionname']}" style="width: 300px;" disabled="true" />
|
|
|
|
<p:commandButton id="lovtran" icon="ui-icon-link" actionListener="#{transactionProcessController.openTransactionLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionProcessController.onReturnTransactionLov}" update="filters,tranprocess" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{transactionProcessController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:filters :formTable:tranprocess"
|
|
createUpdate=":formProcess:pEdit"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_compmantenimiento}" />
|
|
</f:facet>
|
|
<p:dataTable id="tranprocess" var="row" value="#{transactionProcessController.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
|
|
<p:column headerText="#{msg_general.lbl_process}" resizable="true" style="width:50px" sortBy="#{row.processcode}">
|
|
<h:outputText value="#{row.processcode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_description}" resizable="true" style="width:150px" >
|
|
<h:outputText value="#{row.modifiedData['nprocess']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_order}" resizable="true" style="width:50px" sortBy="#{row.executionorder}">
|
|
<h:outputText value="#{row.executionorder}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_state}" resizable="true" style="width:50px" sortBy="#{row.status}">
|
|
<h:outputText value="#{row.status}" />
|
|
</p:column>
|
|
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}" update=":formProcess:pEdit" oncomplete="PF('dialog').show()" styleClass="m-action-button" icon="ui-icon-pencil" process="@this, :formTable:tranprocess">
|
|
<f:setPropertyActionListener target="#{transactionProcessController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{transactionProcessController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:tranprocess" styleClass="m-action-button" icon="ui-icon-trash" action="#{transactionProcessController.remove()}" process="@this, :formTable:tranprocess">
|
|
<f:setPropertyActionListener target="#{transactionProcessController.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=":formProcess:btnprocess">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_createoredit}" />
|
|
</f:facet>
|
|
<h:form id="formProcess">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid id="pEdit" columns="3" >
|
|
|
|
<p:outputLabel for="processdesc" value="#{msg_general.lbl_description}:" />
|
|
<h:panelGrid columns="1">
|
|
<p:inputText id="processdesc" value="#{transactionProcessController.record.modifiedData['nprocess']}" style="width: 425px;" disabled="true" required="true"/>
|
|
</h:panelGrid>
|
|
<p:message for="processdesc" />
|
|
|
|
<p:outputLabel for="process" value="#{msg_general.lbl_process}:" />
|
|
<h:panelGrid columns="2">
|
|
<p:inputText id="process" value="#{transactionProcessController.record.processcode}" required="true" maxlength="150" style="width:425px;" disabled="true"/>
|
|
<p:commandButton id="btnprocess" icon="ui-icon-link" actionListener="#{transactionProcessController.openProcessLov()}" process="@this" styleClass="m-lov-button"
|
|
rendered="#{transactionProcessController.newRow}">
|
|
<p:ajax event="dialogReturn" listener="#{transactionProcessController.onReturnPrcoessLov}" update="process, processdesc" />
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
<p:message for="process" />
|
|
|
|
|
|
<p:outputLabel for="order" value="#{msg_general.lbl_order}:" />
|
|
<p:inputText id="order" value="#{transactionProcessController.record.executionorder}" required="true" maxlength="2" style="width:25px;">
|
|
<pe:keyFilter mask="int"/>
|
|
</p:inputText>
|
|
<p:message for="order" />
|
|
|
|
|
|
<p:outputLabel for="status" value="#{msg_general.lbl_state}:" />
|
|
<p:selectOneMenu id="status" value="#{transactionProcessController.record.status}" effect="fade" style="width:80px" required="true">
|
|
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true" />
|
|
<f:selectItem itemLabel="ACTIVO" itemValue="A" />
|
|
<f:selectItem itemLabel="INACTIVO" itemValue="I" />
|
|
</p:selectOneMenu>
|
|
<p:message for="status" />
|
|
|
|
|
|
<p:outputLabel for="cache" value="#{msg_general.lbl_cache}:" />
|
|
<p:selectOneMenu id="cache" value="#{transactionProcessController.record.managecache}" effect="fade" style="width:80px" required="true">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:message for="cache" />
|
|
|
|
<p:outputLabel for="isflow" value="#{msg_general.lbl_isflow}:" />
|
|
<p:selectOneMenu id="isflow" value="#{transactionProcessController.record.isflow}" effect="fade" style="width:80px" required="true">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:message for="isflow" />
|
|
|
|
|
|
<p:outputLabel for="rule" value="#{msg_general.lbl_rule}:" />
|
|
<h:panelGrid columns="4">
|
|
<p:inputText id="rule" value="#{transactionProcessController.record.rulename}" style="width: 120px;" disabled="true" />
|
|
<p:inputText id="ruledesc" value="#{transactionProcessController.record.modifiedData['ruledesc']}" style="width: 300px;" disabled="true" />
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{transactionProcessController.openRuleLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionProcessController.onReturnRuleLov}" update="rule, ruledesc" />
|
|
</p:commandButton>
|
|
<p:commandButton icon="ui-icon-trash" actionListener="#{transactionProcessController.removerule()}" process="@this" styleClass="m-lov-button" update="rule, ruledesc">
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
<p:message for="rule" />
|
|
|
|
<p:outputLabel for="flow" value="#{msg_general.lbl_flow}:" />
|
|
<h:panelGrid columns="4">
|
|
<p:inputText id="flow" value="#{transactionProcessController.record.processname}" style="width: 120px;" disabled="true" />
|
|
<p:inputText id="flowdesc" value="#{transactionProcessController.record.modifiedData['flowdesc']}" style="width: 300px;" disabled="true" />
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{transactionProcessController.openFlowLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionProcessController.onReturnFlowLov}" update="flow, flowdesc" />
|
|
</p:commandButton>
|
|
<p:commandButton icon="ui-icon-trash" actionListener="#{transactionProcessController.removeflow()}" process="@this" styleClass="m-lov-button" update="flow, flowdesc">
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
<p:message for="flow" />
|
|
|
|
|
|
<p:outputLabel for="fpk" value="#{msg_general.lbl_message}:" />
|
|
<h:panelGrid columns="4">
|
|
<p:inputText id="fpk" value="#{transactionProcessController.record.flowmessagecode}" style="width: 120px;" disabled="true" />
|
|
<p:inputText id="fdescription" value="#{transactionProcessController.record.modifiedData['messagedesc']}" style="width: 300px;" disabled="true" />
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{transactionProcessController.openMessageTemplateLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionProcessController.onReturnMessageTemplateLov}" update="fpk, fdescription" />
|
|
</p:commandButton>
|
|
<p:commandButton icon="ui-icon-trash" actionListener="#{transactionProcessController.removemessage()}" process="@this" styleClass="m-lov-button" update="fpk, fdescription">
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
<p:message for="fpk" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="2" styleClass="m-dialog-controls">
|
|
<p:commandButton value="#{msg_general.btn_update}"
|
|
action="#{transactionProcessController.update()}"
|
|
update=":formTable:tranprocess :formProcess"
|
|
process="@this, pEdit"
|
|
icon="ui-icon-disk"
|
|
oncomplete="if(args.validationFailed){return false;} PF('dialog').hide()" />
|
|
<p:commandButton value="#{msg_general.btn_cancell}" oncomplete="PF('dialog').hide()" icon="ui-icon-trash" process="@this" />
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |