54 lines
3.3 KiB
Plaintext
Executable File
54 lines
3.3 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="filtersBranch" columns="4" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
<p:outputLabel for="fpk" value="#{msg_general.lbl_code}:" />
|
|
<p:inputText id="fpk" value="#{officeAndBranchController.branch.mfilters['pk.branchcode']}" maxlength="3" style="width: 40px;">
|
|
<pe:keyFilter regEx="/[\d\-]/"/>
|
|
</p:inputText>
|
|
|
|
<p:outputLabel for="fdesc" value="#{msg_general.lbl_description}:" />
|
|
<p:inputText id="fdesc" value="#{officeAndBranchController.branch.mfilters['description']}" maxlength="80" style="width: 350px;"
|
|
onkeyup="Maia.forceupper(event, this);"/>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controlsBranch" styleClass="m-controls">
|
|
<maia:pageControls controller="#{officeAndBranchController.branch}"
|
|
queryProcess=":formTable:tabmenus:filtersBranch"
|
|
queryUpdate=":formTable:tabmenus:filtersBranch :formTable:tabmenus:tableBranch"
|
|
createUpdate=":formDialogBranch:pEdit"
|
|
dialogWidgetVar="dialgoBranch" />
|
|
</h:panelGrid>
|
|
<p:panelGrid id="dataContentBranch" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_branches}" />
|
|
</f:facet>
|
|
<p:dataTable id="tableBranch" var="row" value="#{officeAndBranchController.branch.lrecord}" rows="200" rowKey="#{row.rowkey()}" selectionMode="single" style="min-width: 250px; width: auto;" >
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" sortBy="#{row.pk.branchcode}">
|
|
<h:outputText value="#{row.pk.branchcode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.description}">
|
|
<h:outputText value="#{row.description}" />
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}" update=":formDialogBranch:pEdit" oncomplete="dialgoBranch.show();" styleClass="m-action-button" icon="ui-icon-pencil" process="@this, :formTable:tabmenus:tableBranch">
|
|
<f:setPropertyActionListener target="#{officeAndBranchController.branch.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{officeAndBranchController.branch.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:tabmenus:tableBranch" styleClass="m-action-button" icon="ui-icon-trash" action="#{officeAndBranchController.branch.remove()}" process="@this, :formTable:tabmenus:tableBranch" >
|
|
<f:setPropertyActionListener target="#{officeAndBranchController.branch.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
|
|
</ui:composition> |