maia/.svn/pristine/6a/6a18fc115d710fb892226e1ff47...

170 lines
9.7 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="#{queryController}"
queryProcess=":formTable:tabquery:filtersqc, :formTable:tabquery:filterstra"
queryUpdate=":formTable:tabquery:dt-querycode, :formTable:tabquery:dt-transacqry"
saveProcess=":formTable:tabquery:dt-querycode, :formTable:tabquery:dt-transacqry"
saveUpdate=":formTable:tabquery:dt-querycode, :formTable:tabquery:dt-transacqry"
focusContainer=":formTable:tabquery:filterstra" />
<h:panelGrid columns="1" styleClass="m-controls">
<maia:pageControls controller="#{queryController}"
queryProcess=":formTable:tabquery:filterstra :formTable:tabquery:filtersqc"
queryUpdate=":formTable:tabquery:dt-transacqry :formTable:tabquery:dt-querycode"
showCreateBtn="false" showNextBtn="false" showPreviousBtn="false" showQueryBtn="false" />
</h:panelGrid>
<p:tabView id="tabquery" cache="true" styleClass="m-tab-inner">
<p:ajax event="tabChange" listener="#{queryController.onTabChange}" />
<p:tab id="ttransaction" title="#{msg_general.tab_transactionprocess}">
<ui:include src="_transaction.xhtml" />
</p:tab>
<p:tab id="queryprocess" title="#{msg_general.tab_bycode}">
<ui:include src="_querycode.xhtml" />
</p:tab>
</p:tabView>
</h:form>
<p:dialog widgetVar="dialogqueryprocess" 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="formdialogqueryprocess">
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
<h:panelGrid id="pEdit" columns="3" bodyrows="1" >
<p:outputLabel for="code" value="#{msg_general.lbl_query_code}:" />
<p:inputText id="code" value="#{queryController.queryprocess.record.pk.querycode}" maxlength="50"
onkeyup="Maia.forceupper(event, this);" style="width:300px;" required="true">
<pe:keyFilter />
</p:inputText>
<p:message for="code" />
<p:outputLabel for="fdescription" value="#{msg_general.lbl_description}:" />
<p:inputText id="fdescription" value="#{queryController.queryprocess.record.modifiedData['messagedesc']}" style="width: 405px;" disabled="true" />
<p:message for="fdescription" />
<p:outputLabel for="fpk" value="#{msg_general.lbl_processname}:" />
<p:inputText id="fpk" value="#{queryController.queryprocess.record.processcode}" required="true" maxlength="150" style="width:405px;" disabled="true"/>
<p:commandButton icon="ui-icon-link" actionListener="#{queryController.queryprocess.openProcessLov()}" process="@this" styleClass="m-lov-button">
<p:ajax event="dialogReturn" listener="#{queryController.queryprocess.onReturnProcessLov}" update="fpk, fdescription" />
</p:commandButton>
<p:outputLabel for="ord" value="#{msg_general.lbl_order}:" />
<p:inputText id="ord" value="#{queryController.queryprocess.record.executionorder}" maxlength="2"
onkeyup="Maia.forceupper(event, this);" style="width:25px;" required="true">
<pe:keyFilter mask="int" />
</p:inputText>
<p:message for="ord" />
<p:outputLabel for="status" value="#{msg_general.lbl_state}:" />
<p:selectOneMenu id="status"
value="#{queryController.queryprocess.record.status}" effect="fade"
style="width:80px">
<f:selectItem itemLabel="ACTIVO" itemValue="A" />
<f:selectItem itemLabel="INACTIVO" itemValue="I" />
<pe:keyFilter />
</p:selectOneMenu>
<p:outputLabel value="" />
</h:panelGrid>
<h:panelGrid columns="2" styleClass="m-dialog-controls">
<maia:dialogControls controller="#{queryController.queryprocess}"
process=":formdialogqueryprocess:pEdit"
update=":formTable:tabquery:dt-querycode, :formdialogqueryprocess:pEdit"
dialogWidgetVar="dialogqueryprocess" />
</h:panelGrid>
</h:form>
</p:dialog>
<p:dialog widgetVar="dialogtrans" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode"
hideEffect="explode" styleClass="m-dialog" focus=":formDialogTran:btnprocess" >
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_createoredit}" />
</f:facet>
<h:form id="formDialogTran">
<p:messages id="messages" autoUpdate="true" globalOnly="true" />
<h:panelGrid id="pEdit" columns="3" bodyrows="1">
<p:outputLabel for="fdescription" value="#{msg_general.lbl_description}:" />
<p:inputText id="fdescription" value="#{queryController.transactionquery.record.modifiedData['shortdesc']}" style="width: 405px;" disabled="true" />
<p:message for="fdescription"/>
<p:outputLabel for="fpk" value="#{msg_general.lbl_process}:" />
<h:panelGrid columns="2">
<p:inputText id="fpk" value="#{queryController.transactionquery.record.processcode}" required="true" maxlength="150" style="width:405px;" disabled="true"/>
<p:commandButton id="btnprocess" icon="ui-icon-link" actionListener="#{queryController.transactionquery.openProcessLov()}" process="@this" styleClass="m-lov-button">
<p:ajax event="dialogReturn" listener="#{queryController.transactionquery.onReturnProcessLov}" update="fpk, fdescription" />
</p:commandButton>
</h:panelGrid>
<p:message for="fpk"/>
<p:outputLabel for="order" value="#{msg_general.lbl_order}:" />
<p:inputText id="order" value="#{queryController.transactionquery.record.executionorder}" maxlength="80"
onkeyup="Maia.forceupper(event, this);" style="width:30px;" required="true">
<pe:keyFilter mask="int" />
</p:inputText>
<p:message for="order"/>
<p:outputLabel for="status" value="#{msg_general.lbl_state}:" />
<p:selectOneMenu id="status"
value="#{queryController.transactionquery.record.status}" effect="fade"
style="width:80px">
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true" />
<f:selectItem itemLabel="ACTIVO" itemValue="A" />
<f:selectItem itemLabel="INACTIVO" itemValue="I" />
<pe:keyFilter />
</p:selectOneMenu>
<p:message for="status"/>
<p:outputLabel for="isflow" value="#{msg_general.lbl_isflow}:" />
<p:selectOneMenu id="isflow"
value="#{queryController.transactionquery.record.isflow}" effect="fade"
style="width:80px">
<f:selectItem itemLabel="NO" itemValue="N" />
<f:selectItem itemLabel="SI" itemValue="Y" />
<pe:keyFilter />
</p:selectOneMenu>
<p:message for="isflow"/>
<p:outputLabel for="frule" value="#{msg_general.lbl_rule}:" />
<h:panelGrid columns="3">
<p:inputText id="frule" value="#{queryController.transactionquery.record.rulename}" maxlength="150" style="width:105px;" disabled="true"/>
<p:inputText id="frdescription" value="#{queryController.transactionquery.record.modifiedData['ruledesc']}" style="width: 300px;" disabled="true" />
<p:commandButton icon="ui-icon-link" actionListener="#{queryController.transactionquery.openRuleLov()}" process="@this" styleClass="m-lov-button">
<p:ajax event="dialogReturn" listener="#{queryController.transactionquery.onReturnRuleLov}" update="frule, frdescription" />
</p:commandButton>
</h:panelGrid>
<p:message for="frule"/>
<p:outputLabel for="flow" value="#{msg_general.lbl_flow}:" />
<h:panelGrid columns="3">
<p:inputText id="flow" value="#{queryController.transactionquery.record.processname}" maxlength="150" style="width:105px;" disabled="true"/>
<p:inputText id="ffdescription" value="#{queryController.transactionquery.record.modifiedData['flowdesc']}" style="width: 300px;" disabled="true" />
<p:commandButton icon="ui-icon-link" actionListener="#{queryController.transactionquery.openFlowLov()}" process="@this" styleClass="m-lov-button">
<p:ajax event="dialogReturn" listener="#{queryController.transactionquery.onReturnFlowLov}" update="flow, ffdescription" />
</p:commandButton>
</h:panelGrid>
<p:message for="flow"/>
</h:panelGrid>
<h:panelGrid columns="2" styleClass="m-dialog-controls">
<maia:dialogControls controller="#{queryController.transactionquery}"
process=":formDialogTran:pEdit"
update=":formTable:tabquery:dt-transacqry, :formDialogTran:pEdit"
dialogWidgetVar="dialogtrans" />
</h:panelGrid>
</h:form>
</p:dialog>
</ui:define>
</ui:composition>