maia/.svn/pristine/41/41ec050fb027907b9893c7b12ed...

170 lines
11 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="#{endedFlowsController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:group, :formTable:filters"
saveProcess=""
saveUpdate=""
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="#{endedFlowsController.mfilters['transactionmodule']}" style="width: 35px;" disabled="true" />
<p:outputLabel for="fpktran" value="#{msg_general.lbl_transaction}:" />
<p:inputText id="fpktran" value="#{endedFlowsController.mfilters['transactioncode']}" style="width: 40px;" disabled="true" />
<p:outputLabel for="fname" value="#{msg_general.lbl_description}:" />
<p:inputText id="fname" value="#{endedFlowsController.mfilelds['transactionname']}" style="width: 300px;" disabled="true" />
<p:commandButton id="lovtran" icon="ui-icon-link" actionListener="#{endedFlowsController.openTransactionLov()}" process="@this" styleClass="m-lov-button">
<p:ajax event="dialogReturn" listener="#{endedFlowsController.onReturnTransactionLov}" update="filters,group" oncomplete="Maia.focus('formTable\\:idQuery');"/>
</p:commandButton>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel for="idFromDate" value="#{msg_bpm.lbl_fromdate}:"/>
<p:calendar id="idFromDate" value="#{endedFlowsController.fromdate}" showOn="button" navigator="true" pattern="#{msg_general.dateformat}" converter="converter.date" required="true"/>
<p:message for="idFromDate" id="msgFromDate"/>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:outputLabel for="idToDate" value="#{msg_bpm.lbl_todate}:"/>
<p:calendar id="idToDate" value="#{endedFlowsController.todate}" showOn="button" navigator="true" pattern="#{msg_general.dateformat}" converter="converter.date" required="true"/>
<p:message for="idToDate" id="msgToDate"/>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{endedFlowsController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:group, :formTable:filters"
createUpdate=":formGroup:pEdit"
dialogWidgetVar="dialog"
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_flows}" />
</f:facet>
<p:dataTable id="group" var="row" value="#{endedFlowsController.ltransactionlog}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.hashCode()}" selectionMode="single">
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:150px" sortBy="#{row['aditionaldata']}">
<h:outputText value="#{row['solicitudenumber']}" />
</p:column>
<p:column headerText="#{msg_general.lbl_usuario}" resizable="true" style="width:150px" sortBy="#{row['aditionaldata']}">
<h:outputText value="#{row['usercode']}" />
</p:column>
<p:column headerText="#{msg_bpm.lbl_creation}" resizable="true" sortBy="#{row['init']}">
<h:outputText value="#{row['init']}" />
</p:column>
<p:column headerText="#{msg_bpm.lbl_ended}" resizable="true" sortBy="#{row['end']}">
<h:outputText value="#{row['end']}" />
</p:column>
<p:column headerText="#{msg_bpm.lbl_duration}" resizable="true" sortBy="#{row['duration']}">
<h:outputText value="#{row['duration']}" />
</p:column>
<p:column>
<p:commandButton value="#{msg_bpm.btn_detail}" update=":formGroup:pEdit, :formGroup:detail" oncomplete="PF('dialog').show();" process="@this, group"
action="#{endedFlowsController.queryRequestDetail()}">
<f:setPropertyActionListener target="#{endedFlowsController.recordmap}" 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" width="70%"
styleClass="m-dialog">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_information}" />
</f:facet>
<h:form id="formGroup">
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
<h:panelGrid id="pEdit" columns="2" bodyrows="1" >
<p:outputLabel value="#{msg_bpm.lbl_transaction}:" />
<p:inputText value="#{endedFlowsController.mfilelds['transactionname']}" style="width:350px;" disabled="true"/>
<p:outputLabel value="#{msg_bpm.lbl_message}:" />
<p:inputText value="#{endedFlowsController.recordmap['aditionaldata']}" style="width:450px;" disabled="true"/>
</h:panelGrid>
<h:panelGrid columns="1" >
<p:dataTable id="detail" var="row" value="#{endedFlowsController.ltbpmactivities}" rows="200" style="width: auto;" rowKey="#{row.hashCode()}" selectionMode="single">
<p:column headerText="#{msg_bpm.lbl_activityname}" style="width:200px;" sortBy="#{row['activityname']}" >
<h:outputText value="#{row['activityname']}" />
</p:column>
<p:column headerText="#{msg_bpm.lbl_created}" resizable="true" sortBy="#{row['created']}">
<h:outputText value="#{row['created']}" />
</p:column>
<p:column>
<p:commandButton value="#{msg_bpm.btn_detail}" update=":formActivity" oncomplete="PF('dialogActivity').show();" process="@this">
<f:setPropertyActionListener target="#{endedFlowsController.activityDetail}" value="#{row}" />
</p:commandButton>
</p:column>
</p:dataTable>
</h:panelGrid>
<h:panelGrid columns="1" >
<p:commandButton id="idDetail" value="#{msg_general.btn_exit}" oncomplete="PF('dialog').hide();Maia.focus('formTable\\:idQuery');" process="@this" />
</h:panelGrid>
</h:form>
</p:dialog>
<p:dialog widgetVar="dialogActivity" 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_information}" />
</f:facet>
<h:form id="formActivity">
<h:panelGrid columns="1" >
<p:outputLabel value="#{msg_bpm.lbl_activityname}:" />
<p:inputTextarea value="#{endedFlowsController.activityDetail['activityname']}" cols="55" disabled="true"/>
<p:outputLabel value="#{msg_bpm.lbl_created}:" />
<p:inputText value="#{endedFlowsController.activityDetail['created']}" style="width: 150px;" disabled="true" />
<p:outputLabel value="#{msg_bpm.lbl_expectedtime}:" />
<p:inputText value="#{endedFlowsController.activityDetail['expectedtime']}" style="width: 150px;" disabled="true" />
<p:outputLabel value="#{msg_bpm.lbl_realtime}:" />
<p:inputText value="#{endedFlowsController.activityDetail['realtime']}" style="width: 150px;" disabled="true" />
<p:outputLabel value="#{msg_bpm.lbl_user}:" />
<p:inputText value="#{endedFlowsController.activityDetail['usercode']}" style="width: 250px;" disabled="true" />
<p:outputLabel value="#{msg_bpm.lbl_group}:" />
<p:inputText value="#{endedFlowsController.activityDetail['groupcode']}" style="width: 250px;" disabled="true" />
<p:outputLabel value="#{msg_bpm.lbl_response}:" />
<p:inputText value="#{endedFlowsController.activityDetail['response']}" style="width: 150px;" disabled="true" />
<p:outputLabel value="#{msg_bpm.lbl_observation}:" />
<p:inputTextarea value="#{endedFlowsController.activityDetail['obs']}" cols="55" disabled="true"/>
</h:panelGrid>
<h:panelGrid columns="1" >
<p:commandButton value="#{msg_general.btn_exit}" oncomplete="PF('dialogActivity').hide();Maia.focus('formGroup\\:idDetail');" process="@this" />
</h:panelGrid>
</h:form>
</p:dialog>
</ui:define>
</ui:composition>