197 lines
13 KiB
Plaintext
Executable File
197 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:outputScript library="js" name="bpm.js"/>
|
|
<h:form id="formTable">
|
|
<ui:include src="/WEB-INF/templates/queryEvent.xhtml">
|
|
<ui:param name="controller" value="#{transactionLogController}" />
|
|
<ui:param name="paramQueryProcess" value="filters" />
|
|
<ui:param name="paramQueryUpdate" value="bpmLog" />
|
|
<ui:param name="paramSaveProcess" value="" />
|
|
<ui:param name="paramSaveUpdate" value="" />
|
|
<ui:param name="focus" value="formTable\\:lovtran"/>
|
|
</ui:include>
|
|
|
|
<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="#{transactionLogController.mfilters['transactionmodule']}" style="width: 32px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fpktran" value="#{msg_general.lbl_transaction}:" />
|
|
<p:inputText id="fpktran" value="#{transactionLogController.mfilters['transactioncode']}" style="width: 40px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fname" value="#{msg_general.lbl_description}:" />
|
|
<p:inputText id="fname" value="#{transactionLogController.mfilelds['transactionname']}" style="width: 300px;" disabled="true" />
|
|
|
|
<p:commandButton id="lovtran" icon="ui-icon-link" actionListener="#{transactionLogController.openTransactionLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{transactionLogController.onReturnTransactionLov}" update="filters,bpmLog" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{transactionLogController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:bpmLog"
|
|
createUpdate=""
|
|
dialogWidgetVar=""
|
|
showNextBtn="true"
|
|
showPreviousBtn="true"
|
|
showCreateBtn="false"
|
|
showSaveBtn="false"/>
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_bpm.htbl_monitoring}" />
|
|
</f:facet>
|
|
<p:dataTable id="bpmLog" var="row" value="#{transactionLogController.lTransactionLogResult}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.hashCode()}" >
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:150px" sortBy="#{row['solicitudenumber']}">
|
|
<h:outputText value="#{row['solicitudenumber']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_usuario}" resizable="true" style="width:150px" sortBy="#{row['usercode']}">
|
|
<h:outputText value="#{row['usercode']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true">
|
|
<h:outputText value="#{row['name']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_terminal}" resizable="true">
|
|
<h:outputText value="#{row['terminalcode']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_date}" resizable="true">
|
|
<h:outputText value="#{row['time']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_duration}" resizable="true">
|
|
<h:outputText value="#{row['duration']}" />
|
|
</p:column>
|
|
<p:column>
|
|
<p:commandButton value="#{msg_general.btn_edit}" update=":formBpmLog" oncomplete="PF('dialogLogBpm').show()" styleClass="m-action-button"
|
|
icon="ui-icon-pencil" process="@this, bpmLog" action="#{transactionLogController.queryMonitor()}">
|
|
<f:setPropertyActionListener target="#{transactionLogController.tLogResult}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{transactionLogController.processId}" value="#{row['processid']}" />
|
|
<f:setPropertyActionListener target="#{transactionLogController.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{transactionLogController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
<p:remoteCommand name="showFlow" actionListener="#{transactionLogController.showFlow()}" update="@this, :formBpmLog" process="@this" oncomplete="startFlow()" />
|
|
<p:remoteCommand name="showTask" actionListener="#{transactionLogController.showTask()}" update="@this, :formBpmLog:selectedActivity" process="@this" />
|
|
</h:form>
|
|
|
|
<p:dialog id="bpmLogPopup" onShow="startFlow()" widgetVar="dialogLogBpm" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode" styleClass="m-dialog monitor-dialog" width="90%" height="50%">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_information}" />
|
|
</f:facet>
|
|
<h:form id="formBpmLog">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:outputText id="aname" value="#{transactionLogController.aname}" styleClass="m-bpm-log-title" />
|
|
<br />
|
|
<p:commandButton icon="ui-icon-seek-prev" disabled="#{!transactionLogController.enableFlowButton}" value="#{msg_general.btn_last}" actionListener="#{transactionLogController.showLastFlow()}" oncomplete="startFlow()" update="@this, :formBpmLog" process="@this" />
|
|
<br />
|
|
<div id="work" class="m-flow-container">
|
|
<p:graphicImage id="imageFlow" styleClass="m-image-flow" value="#{transactionLogController.imageFlowName}" />
|
|
</div>
|
|
|
|
<h:panelGrid columns="1">
|
|
<h:panelGrid id="transactionFlowInfo" columns="1">
|
|
<h:outputLabel value="#{msg_bpm.lbl_origin_flow_transaction}:" />
|
|
<h:outputText value="#{transactionLogController.trn}" />
|
|
<p:dataTable value="#{transactionLogController.lorigin}" var="row">
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true">
|
|
<h:outputText value="#{row['NAME']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_value}" resizable="true" styleClass="m-white-space-mormal">
|
|
<h:outputText value="#{row['VALUE']}" />
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid id="selectedActivity" columns="1">
|
|
<h:outputLabel value="#{msg_bpm.lbl_selected_activity}:" />
|
|
<h:outputText id="tsel" value="#{transactionLogController.actualTaskName}" />
|
|
<p:dataTable id="taskTable" value="#{transactionLogController.lActualTaskInfo}" var="row" rowKey="#{row.taskId}" selectionMode="single">
|
|
<p:column headerText="#{msg_general.lbl_creation}" resizable="true">
|
|
<h:outputText value="#{row.created}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_usuario}" resizable="true">
|
|
<h:outputText value="#{row.userId}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true">
|
|
<h:outputText value="#{row.aditionalData['name']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_bpm.lbl_waiting_time}" resizable="true">
|
|
<h:outputText value="#{row.expectedTimeString}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_bpm.lbl_real_time}" resizable="true">
|
|
<h:outputText value="#{row.realTimeString}" />
|
|
</p:column>
|
|
<p:column>
|
|
<p:commandButton icon="ui-icon-comment" value="#{msg_general.btn_show}" update=":formTaskDetail" oncomplete="PF('dialogTaskDetail').show()" action="#{transactionLogController.queryTaskDetail()}" styleClass="m-action-button" process="@this, taskTable">
|
|
<f:setPropertyActionListener target="#{transactionLogController.taskInfoSelected}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{transactionLogController.showRow}" value="#{true}" />
|
|
<f:setPropertyActionListener target="#{transactionLogController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
</p:dataTable>
|
|
<h:inputHidden id="lFlowsResponseJson" value="#{transactionLogController.lFlowsResponseJson}" />
|
|
</h:panelGrid>
|
|
</h:panelGrid>
|
|
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
<p:dialog id="taskDetailPopup" widgetVar="dialogTaskDetail" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode" styleClass="m-dialog" width="60%" height="50%">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_bpm.lbl_task_detail}" />
|
|
</f:facet>
|
|
<h:form id="formTaskDetail">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid columns="1">
|
|
<h:panelGrid id="transactionDetailInfo" columns="1">
|
|
<h:outputLabel value="#{msg_general.lbl_transaction}" />
|
|
<p:dataTable value="#{transactionLogController.ltaskDetailData}" var="row">
|
|
<p:column headerText="#{msg_general.lbl_name}" resizable="true">
|
|
<h:outputText value="#{row['NAME']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_value}" resizable="true" styleClass="m-white-space-mormal">
|
|
<h:outputText value="#{row['VALUE']}" />
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:panelGrid>
|
|
<h:panelGrid id="transactionDetailComments" columns="1" >
|
|
<h:outputLabel value="#{msg_general.lbl_history}" />
|
|
<p:dataTable value="#{transactionLogController.ltaskDetailComments}" var="row">
|
|
<p:column headerText="#{msg_general.lbl_creation}">
|
|
<h:outputText value="#{row['date']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_usuario}">
|
|
<h:outputText value="#{row['user']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_name}" style="width:40px;">
|
|
<h:outputText value="#{row['name']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_bpm.lbl_comment}">
|
|
<h:outputText value="#{row['comment']}" />
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:panelGrid>
|
|
<h:outputLabel value="#{msg_bpm.lbl_comment}:" />
|
|
<h:inputText id="comentario" value="#{transactionLogController.comment}" onkeypress="Maia.forceupper(event, this)" />
|
|
<p:commandButton value="#{msg_bpm.lbl_commentate}" icon="ui-icon-comment"
|
|
oncomplete="if(args.validationFailed){return false;} PF('dialogTaskDetail').hide()"
|
|
action="#{transactionLogController.saveComment()}"
|
|
process="@this, comentario"/>
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |