applications/accounting/widget/controlling/CostScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="CostCenters">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="FormFieldTitle_costCenters"/>
<set field="activeSubMenuItem" value="CostCenters"/>
</actions>
<widgets>
<decorator-screen name="CommonControllingDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<actions>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" default-value="${defaultOrganizationPartyId}"/>
<service service-name="getGlAcctgAndAmountPercentage" result-map="result">
<field-map field-name="organizationPartyId"/>
</service>
<set field="glAcctgAndAmountPercentageList" from-field="result.glAcctgAndAmountPercentageList" type="List"/>
<set field="glAccountCategories" from-field="result.glAccountCategories" type="List"/>
</actions>
<widgets>
<screenlet>
<platform-specific>
<html>
<html-template location="component://accounting/webapp/accounting/ledger/CostCenters.ftl"/>
</html>
</platform-specific>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditCostCalcs">
<section>
<actions>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<set field="activeSubMenuItem" value="Costs"/>
<set field="titleProperty" value="PageTitleEditCostCalcs"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-condition entity-name="CostComponentCalc" list="allCostComponentCalcs"/>
<entity-one entity-name="CostComponentCalc" value-field="costComponentCalc"/>
</actions>
<widgets>
<decorator-screen name="CommonControllingDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="AccountingCostComponentCalcPanel" title="${uiLabelMap.AccountingCreateCostComponentCalc}" collapsible="true">
<include-form name="AddCostComponentCalc" location="component://accounting/widget/controlling/CostForms.xml"/>
</screenlet>
<include-form name="ListCostComponentCalc" location="component://accounting/widget/controlling/CostForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>