306 lines
13 KiB
Plaintext
Executable File
306 lines
13 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="#{transactionController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:transac"
|
|
focusContainer=":formTable:filters" />
|
|
|
|
<p:panelGrid id="filters" columns="8" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
<p:outputLabel for="fmodule" value="#{msg_general.lbl_module}:" />
|
|
<p:inputText id="fmodule"
|
|
value="#{transactionController.mfilters['pk.transactionmodule']}"
|
|
maxlength="4" style="width: 32px;"
|
|
onkeydown="Maia.forceupper(event, this);" />
|
|
|
|
<p:outputLabel for="ftransaccion"
|
|
value="#{msg_general.lbl_transaction}:" />
|
|
<p:inputText id="ftransaccion"
|
|
value="#{transactionController.mfilters['pk.transactioncode']}"
|
|
maxlength="4" style="width: 40px;"
|
|
onkeydown="Maia.forceupper(event, this);" />
|
|
|
|
<p:outputLabel for="fname" value="#{msg_general.lbl_name}:" />
|
|
<p:inputText id="fname"
|
|
value="#{transactionController.mfilters['name']}" maxlength="60"
|
|
style="width: 480px;" onkeyup="Maia.forceupper(event, this);" />
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{transactionController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:transac"
|
|
createUpdate=":formTransaction: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_transaction}" />
|
|
</f:facet>
|
|
<p:dataTable id="transac" var="row"
|
|
value="#{transactionController.lrecord}" rows="200"
|
|
style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}"
|
|
selectionMode="single">
|
|
|
|
<p:column headerText="#{msg_general.lbl_module}" resizable="true"
|
|
style="width:32px" sortBy="#{row.pk}">
|
|
<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 headerText="#{msg_general.lbl_page}" resizable="true"
|
|
sortBy="#{row.jsfpage}">
|
|
<h:outputText value="#{row.jsfpage}" />
|
|
</p:column>
|
|
|
|
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}"
|
|
update=":formTransaction:pEdit" oncomplete="PF('dialog').show()"
|
|
styleClass="m-action-button" icon="ui-icon-pencil"
|
|
process="@this, transac">
|
|
<f:setPropertyActionListener
|
|
target="#{transactionController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener
|
|
target="#{transactionController.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener
|
|
target="#{transactionController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}"
|
|
update=":formTable:transac" styleClass="m-action-button"
|
|
icon="ui-icon-trash" action="#{transactionController.remove()}"
|
|
process="@this, transac">
|
|
<f:setPropertyActionListener
|
|
target="#{transactionController.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">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_createoredit}" />
|
|
</f:facet>
|
|
<h:form id="formTransaction">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true" />
|
|
<h:panelGrid id="pEdit" columns="1" bodyrows="1">
|
|
<h:panelGrid columns="4">
|
|
|
|
<p:outputLabel for="module" value="#{msg_general.lbl_module}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="module" disabled="#{!transactionController.newRow}"
|
|
value="#{transactionController.record.pk.transactionmodule}"
|
|
var="p" style="width:300px" panelStyle="width:300px"
|
|
required="true">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{transactionController.lmodule}" var="vmod"
|
|
itemLabel="#{vmod.description}" itemValue="#{vmod.pk}" />
|
|
</p:selectOneMenu>
|
|
<p:message for="module" />
|
|
|
|
<p:outputLabel for="transaction"
|
|
value="#{msg_general.lbl_transaction}:" />
|
|
<pe:keyFilter mask="int" for="transaction"/>
|
|
<h:outputText rendered="#{!transactionController.newRow}"
|
|
value="#{transactionController.record.pk.transactioncode}" />
|
|
<p:inputText id="transaction"
|
|
rendered="#{transactionController.newRow}"
|
|
value="#{transactionController.record.pk.transactioncode}"
|
|
required="true" maxlength="4" onkeyup="Maia.forceupper(event, this);"
|
|
style="width:160px;" />
|
|
<p:message for="transaction" />
|
|
|
|
<p:outputLabel for="version" value="#{msg_general.lbl_version}:" />
|
|
<pe:keyFilter mask="int" for="version"/>
|
|
<h:outputText rendered="#{!transactionController.newRow}"
|
|
value="#{transactionController.record.pk.transactionversion}" />
|
|
<p:inputText id="version"
|
|
rendered="#{transactionController.newRow}"
|
|
value="#{transactionController.record.pk.transactionversion}"
|
|
required="true" maxlength="2" onkeyup="Maia.forceupper(event, this);"
|
|
style="width:160px;" />
|
|
<p:message for="version" />
|
|
|
|
<p:outputLabel for="name" value="#{msg_general.lbl_name}:" />
|
|
<br />
|
|
<p:inputText id="name" value="#{transactionController.record.name}"
|
|
maxlength="80" onkeyup="Maia.forceupper(event, this);"
|
|
style="width:300px;" />
|
|
<p:message for="name" />
|
|
|
|
<p:outputLabel for="page" value="#{msg_general.lbl_page}:" />
|
|
<pe:keyFilter />
|
|
<p:inputText id="page"
|
|
value="#{transactionController.record.jsfpage}"
|
|
maxlength="80"
|
|
style="width:300px;" />
|
|
<p:message for="page" />
|
|
|
|
<p:outputLabel for="querycode" value="#{msg_general.lbl_querycode}:" />
|
|
<pe:keyFilter mask="alphanum" for="querycode"/>
|
|
<p:inputText id="querycode"
|
|
value="#{transactionController.record.querycode}"
|
|
maxlength="50" onkeyup="Maia.forceupper(event, this);"
|
|
style="width:300px;" />
|
|
<p:message for="querycode" />
|
|
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="7">
|
|
<p:outputLabel for="autoqry" value="#{msg_general.lbl_autoquery}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="autoqry"
|
|
value="#{transactionController.record.autoquery}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:spacer height="opx;" width="20px;"/>
|
|
<p:outputLabel for="internal" value="#{msg_general.lbl_internal}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="internal"
|
|
value="#{transactionController.record.internal}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
|
|
|
|
<p:outputLabel for="processname"
|
|
value="#{msg_general.lbl_processname}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="processname"
|
|
value="#{transactionController.record.financialprocess}"
|
|
effect="fade" style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:spacer height="opx;" width="20px;"/>
|
|
<p:outputLabel for="affectimmobilization"
|
|
value="#{msg_general.lbl_affectimmobilization}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="affectimmobilization"
|
|
value="#{transactionController.record.immobilization}"
|
|
effect="fade" style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="queryagain"
|
|
value="#{msg_general.lbl_queryagain}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="queryagain"
|
|
value="#{transactionController.record.queryagain}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:spacer height="opx;" width="20px;"/>
|
|
<p:outputLabel for="branchamong"
|
|
value="#{msg_general.lbl_branchamong}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="branchamong"
|
|
value="#{transactionController.record.branchamong}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="completeitem"
|
|
value="#{msg_general.lbl_completeitem}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="completeitem"
|
|
value="#{transactionController.record.completetariffitems}"
|
|
effect="fade" style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:spacer height="opx;" width="20px;"/>
|
|
<p:outputLabel for="cache" value="#{msg_general.lbl_cache}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="cache"
|
|
value="#{transactionController.record.managecache}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="signature"
|
|
value="#{msg_general.lbl_signature}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="signature"
|
|
value="#{transactionController.record.signature}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:spacer height="opx;" width="20px;"/>
|
|
<p:outputLabel for="inbox" value="#{msg_general.lbl_inbox}:" />
|
|
<pe:keyFilter />
|
|
<p:selectOneMenu id="inbox"
|
|
value="#{transactionController.record.inbox}" effect="fade"
|
|
style="width:80px">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="6">
|
|
<p:outputLabel for="fpk" value="#{msg_general.lbl_message}:" />
|
|
<p:outputLabel value="" />
|
|
<p:inputText id="fpk" value="#{transactionController.record.messagecode}" style="width: 40px;" disabled="true" />
|
|
<p:inputText id="fdescription" value="#{transactionController.record.modifiedData['messagedesc']}" style="width: 300px;" disabled="true" />
|
|
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{transactionController.openMessageTemplateLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionController.onReturnMessageTemplateLov}" update="fpk, fdescription" />
|
|
</p:commandButton>
|
|
<p:commandButton icon="ui-icon-trash" actionListener="#{transactionController.removemessage()}" process="@this" styleClass="m-lov-button" update="fpk, fdescription">
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="2" styleClass="m-dialog-controls">
|
|
<maia:dialogControls controller="#{transactionController}"
|
|
process=":formTransaction:pEdit"
|
|
update=":formTransaction:pEdit, :formTable:transac "
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |