58 lines
3.7 KiB
Plaintext
Executable File
58 lines
3.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"
|
|
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
|
|
|
|
<p:panelGrid id="filtersOffice" columns="4" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_branch}" />
|
|
</f:facet>
|
|
<p:outputLabel value="#{msg_general.lbl_branch}:" />
|
|
<p:inputText id="fpkmod" value="#{officeAndBranchController.office.mfilters['pk.branchcode']}" style="width: 40px;" disabled="true" />
|
|
<p:inputText id="fname" value="#{officeAndBranchController.office.mfilelds['branchdesc']}" style="width: 350px;" disabled="true" />
|
|
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{officeAndBranchController.openBranchLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{officeAndBranchController.onReturnBranchLov}" update="filtersOffice, dataContentOffice" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controlsOffice" styleClass="m-controls">
|
|
<maia:pageControls controller="#{officeAndBranchController.office}"
|
|
queryProcess=":formTable:tabmenus:filtersOffice"
|
|
queryUpdate=":formTable:tabmenus:filtersOffice :formTable:tabmenus:tableOffice"
|
|
createUpdate=":formDialogOffice:pEdit"
|
|
dialogWidgetVar="dialogOffice" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="dataContentOffice" columns="1" styleClass="m-dataContentOffice">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_offices}" />
|
|
</f:facet>
|
|
<p:dataTable id="tableOffice" var="row" value="#{officeAndBranchController.office.lrecord}" rows="200" rowKey="#{row.rowkey()}" selectionMode="single" style="min-width: 300px; width: auto;" >
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" sortBy="#{row.pk.officecode}">
|
|
<h:outputText value="#{row.pk.officecode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.description}">
|
|
<h:outputText value="#{row.description}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_address}" resizable="true" sortBy="#{row.address}">
|
|
<h:outputText value="#{row.address}" />
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}" update=":formDialogOffice:pEdit" oncomplete="dialogOffice.show();" styleClass="m-action-button" icon="ui-icon-pencil" process="@this, :formTable:tabmenus:tableOffice"
|
|
action="#{officeAndBranchController.openEdit()}">
|
|
<f:setPropertyActionListener target="#{officeAndBranchController.office.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{officeAndBranchController.office.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:tabmenus:tableOffice" styleClass="m-action-button" icon="ui-icon-trash" action="#{officeAndBranchController.office.remove()}" process="@this, :formTable:tabmenus:tableOffice" >
|
|
<f:setPropertyActionListener target="#{officeAndBranchController.office.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
|
|
</ui:composition> |