148 lines
9.6 KiB
Plaintext
Executable File
148 lines
9.6 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="#{transactionReportController}"
|
|
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="#{transactionReportController.mfilters['pk.transactionmodule']}" style="width: 32px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fpktran" value="#{msg_general.lbl_transaction}:" />
|
|
<p:inputText id="fpktran" value="#{transactionReportController.mfilters['pk.transactioncode']}" style="width: 32px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fpkver" value="#{msg_general.lbl_version}:" />
|
|
<p:inputText id="fpkver" value="#{transactionReportController.mfilters['pk.transactionversion']}" style="width: 32px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fpkver" value="#{msg_general.lbl_description}:" />
|
|
<p:inputText id="fname" value="#{transactionReportController.mfilelds['transactionname']}" style="width: 300px;" disabled="true" />
|
|
|
|
<p:commandButton id="lovtran" icon="ui-icon-link" actionListener="#{transactionReportController.openTransactionLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionReportController.onReturnTransactionLov}" update="filters,tranprocess" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{transactionReportController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":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="PROCESOS DE REPORTE" />
|
|
</f:facet>
|
|
<p:dataTable id="tranprocess" var="row" value="#{transactionReportController.lrecord}" rows="200" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
|
|
<p:column headerText="#{msg_general.lbl_process}" resizable="true" sortBy="#{row.processcode}">
|
|
<h:outputText value="#{row.processcode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_shortdescription}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['processdesc']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_order}" resizable="true" sortBy="#{row.executionorder}">
|
|
<h:outputText value="#{row.executionorder}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_state}" resizable="true" sortBy="#{row.status}">
|
|
<h:outputText value="#{row.status}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_cache}" resizable="true" sortBy="#{row.status}">
|
|
<h:outputText value="#{row.managecache}" />
|
|
</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="#{transactionReportController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{transactionReportController.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{transactionReportController.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="#{transactionReportController.remove()}" process="@this, :formTable:tranprocess">
|
|
<f:setPropertyActionListener target="#{transactionReportController.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:">
|
|
<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="#{transactionReportController.record.modifiedData['processdesc']}" style="width: 390px;" 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="#{transactionReportController.record.processcode}" required="true" maxlength="150" style="width:390px;" disabled="true"/>
|
|
<p:commandButton id="btnprocess" icon="ui-icon-link" actionListener="#{transactionReportController.openProcessLov()}" process="@this" styleClass="m-lov-button"
|
|
rendered="#{transactionReportController.newRow}">
|
|
<p:ajax event="dialogReturn" listener="#{transactionReportController.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="#{transactionReportController.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="#{transactionReportController.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="#{transactionReportController.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" />
|
|
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="2" >
|
|
<p:commandButton value="#{msg_general.btn_update}" update=":formTable:tranprocess, :formProcess"
|
|
action="#{transactionReportController.update()}" 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> |