maia_modificado/.svn/pristine/66/66c6ed7092307a8e2c1302d4453...

69 lines
4.2 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"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<p:panelGrid id="filtersqc" columns="2" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<p:outputLabel for="fquerycode" value="#{msg_general.lbl_query_code}:" />
<p:inputText id="fquerycode" value="#{queryController.queryprocess.mfilters['pk.querycode']}" maxlength="50" style="width: 160px;" onkeyup="Maia.forceupper(event, this);" />
<p:outputLabel for="fprocesscode" value="#{msg_general.lbl_executeprocessclass}:" />
<p:inputText id="fprocesscode" value="#{queryController.queryprocess.mfilters['processcode']}" maxlength="150" style="width: 480px;" />
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{queryController}" childController="#{queryController.queryprocess}"
queryProcess=":formTable:tabquery:filtersqc"
queryUpdate=":formTable:tabquery:dt-querycode"
createUpdate=":formdialogqueryprocess:pEdit"
dialogWidgetVar="dialogqueryprocess"
showSaveBtn="false" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_general.tab_bycode}"/>
</f:facet>
<p:dataTable id="dt-querycode" var="row" value="#{queryController.queryprocess.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:150px" sortBy="#{row.pk.querycode}">
<h:outputText value="#{row.pk.querycode}" />
</p:column>
<p:column headerText="#{msg_general.lbl_sequence}" resizable="true" style="width:60px" sortBy="#{row.pk.sequence}">
<h:outputText value="#{row.pk.sequence}" />
</p:column>
<p:column headerText="#{msg_general.lbl_executeprocessclass}" resizable="true" style="width:150px" sortBy="#{row.processcode}">
<h:outputText value="#{row.processcode}"/>
</p:column>
<p:column headerText="#{msg_general.lbl_description}" resizable="true" style="width:150px">
<h:outputText value="#{queryController.queryprocess.record.modifiedData['shortdesc']}"/>
</p:column>
<p:column headerText="#{msg_general.lbl_order}" resizable="true" style="width:150px" sortBy="#{row.executionorder}">
<h:outputText value="#{row.executionorder}"/>
</p:column>
<p:column headerText="#{msg_general.lbl_state}" resizable="true" style="width:150px" sortBy="#{row.status}">
<h:outputText value="#{row.status}"/>
</p:column>
<p:column>
<p:commandButton value="#{msg_general.btn_edit}" update=":formdialogqueryprocess:pEdit" oncomplete="PF('dialogqueryprocess').show()"
styleClass="m-action-button" icon="ui-icon-pencil" process="@this">
<f:setPropertyActionListener target="#{queryController.queryprocess.record}" value="#{row}" />
<f:setPropertyActionListener target="#{queryController.queryprocess.showRow}" value="#{false}" />
<f:setPropertyActionListener target="#{queryController.queryprocess.newRow}" value="#{false}" />
</p:commandButton>
</p:column>
<p:column>
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:tabquery:dt-querycode" styleClass="m-action-button" icon="ui-icon-trash"
action="#{queryController.queryprocess.remove()}" process="@this">
<f:setPropertyActionListener target="#{queryController.queryprocess.record}" value="#{row}" />
</p:commandButton>
</p:column>
</p:dataTable>
</p:panelGrid>
</ui:composition>