82 lines
4.7 KiB
Plaintext
Executable File
82 lines
4.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="filterssubpcurr" columns="4" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
|
|
<p:outputLabel for="fmodule" value="#{msg_general.lbl_module}:" />
|
|
<p:selectOneMenu id="fmodule"
|
|
value="#{productDefinitionController.subproductcurrency.mfilters['pk.modulecode']}"
|
|
var="p" style="width:300px" panelStyle="width:300px">
|
|
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{productDefinitionController.subproductcurrency.lmodules}" var="vmod" itemLabel="#{vmod.description}" itemValue="#{vmod.pk}" />
|
|
<p:ajax event="change" update=":formTable:tabproduct:filterssubpcurr, :formTable:tabproduct:dt-subproductcurr" listener="#{productDefinitionController.subproductcurrency.changemodule()}" process="@this, fmodule"/>
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="fproduct" value="#{msg_general.lbl_product}:" />
|
|
<p:selectOneMenu id="fproduct"
|
|
value="#{productDefinitionController.subproductcurrency.mfilters['pk.productcode']}"
|
|
var="p" style="width:300px" panelStyle="width:300px">
|
|
|
|
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true" />
|
|
<f:selectItems value="#{productDefinitionController.subproductcurrency.lproduct}" var="vprod" itemLabel="#{vprod.description}" itemValue="#{vprod.pk.productcode}" />
|
|
<p:ajax event="change" update=":formTable:tabproduct:filterssubpcurr, :formTable:tabproduct:dt-subproductcurr" listener="#{productDefinitionController.subproductcurrency.changeproduct()}" process="@this, fproduct"/>
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="fsubproduct" value="#{msg_general.lbl_subproduct}:" />
|
|
<p:selectOneMenu id="fsubproduct"
|
|
value="#{productDefinitionController.subproductcurrency.mfilters['pk.subproductcode']}"
|
|
var="p" style="width:300px" panelStyle="width:300px">
|
|
|
|
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true"/>
|
|
<f:selectItems value="#{productDefinitionController.subproductcurrency.lsubproduct}" var="vsubprod" itemLabel="#{vsubprod.description}" itemValue="#{vsubprod.pk.subproductcode}" />
|
|
<p:ajax event="change" update=":formTable:tabproduct:filterssubpcurr, :formTable:tabproduct:dt-subproductcurr" listener="#{productDefinitionController.subproductcurrency.changesubproduct()}" process="@this, fsubproduct"/>
|
|
</p:selectOneMenu>
|
|
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controlssubprodcurr" styleClass="m-controls">
|
|
<maia:pageControls controller="#{productDefinitionController}"
|
|
childController="#{productDefinitionController.subproductcurrency}"
|
|
queryProcess=":formTable:tabproduct:filterssubpcurr"
|
|
queryUpdate=":formTable:tabproduct:dt-subproductcurr, :formTable:tabproduct:filterssubpcurr"
|
|
createProcess=":formTable:tabproduct:filterssubpcurr"
|
|
createUpdate=":formDialogSubProdCurr:pEdit, :formTable:tabproduct:filterssubpcurr"
|
|
dialogWidgetVar="dialogsubprodcurr" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-contentsubpcurr" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_subproductcurrency}" />
|
|
</f:facet>
|
|
|
|
<p:dataTable id="dt-subproductcurr" var="row" value="#{productDefinitionController.subproductcurrency.lrecord}" rows="1200" 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.currencycode}">
|
|
<h:outputText value="#{row.pk.currencycode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.modifiedData['currencydesc']}">
|
|
<h:outputText value="#{row.modifiedData['currencydesc']}" />
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:tabproduct:dt-subproductcurr" styleClass="m-action-button" icon="ui-icon-trash" action="#{productDefinitionController.subproductcurrency.remove()}" process="@this">
|
|
<f:setPropertyActionListener target="#{productDefinitionController.subproductcurrency.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
|
|
|
|
|
|
|
|
</ui:composition> |