applications/accounting/widget/controlling/BudgetScreens.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">
<!-- SCIPIO: NOTE: The old parameters.budgetDecoratorLocation pattern that existed here has been supplanted
by the decorator default-fallback-location pattern for parameters.mainDecoratorLocation (see CommonScreens.xml). -->
<screen name="ListBudgets">
<section>
<actions>
<set field="titleProperty" value="AccountingFindBudgets"/>
<set field="activeSubMenuItem" value="ListBudgets"/>
</actions>
<widgets>
<decorator-screen name="CommonControllingDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<section>
<condition>
<if-service-permission service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
</condition>
<widgets>
<container style="button-bar">
<link target="EditBudget" text="${uiLabelMap.AccountingNewBudget}" style="${styles.link_nav} ${styles.action_add}"/>
</container>
</widgets>
</section>
</decorator-section>
<decorator-section name="search-options">
<include-form location="component://accounting/widget/controlling/BudgetForms.xml" name="FindBudgetOptions"/>
</decorator-section>
<decorator-section name="search-results">
<include-screen name="BudgetSearchResults"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BudgetSearchResults">
<section>
<condition>
<if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<include-form name="ListBudgets" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</widgets>
</section>
</screen>
<!-- create and/or update a budget -->
<screen name="EditBudget">
<section>
<actions>
<set field="activeSubMenuItem" value="EditBudget"/>
<set field="budgetId" from-field="parameters.budgetId"/>
<entity-one entity-name="Budget" value-field="budget"/>
<set field="titleProperty" value="${groovy: context.budget ? 'PageTitleEditBudget' : 'AccountingNewBudget'}"/>
</actions>
<widgets>
<decorator-screen name="CommonBudgetDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="EditBudget" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BudgetOverview">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleBudgetOverview"/>
<set field="activeSubMenuItem" value="BudgetOverview"/>
<set field="budgetId" from-field="parameters.budgetId"/>
<entity-one entity-name="Budget" value-field="budget"/>
<entity-and entity-name="BudgetRole" list="budgetRoles">
<field-map field-name="budgetId" from-field="parameters.budgetId"/>
<order-by field-name="partyId"/>
</entity-and>
<entity-and entity-name="BudgetStatus" list="budgetStatuses">
<field-map field-name="budgetId" from-field="parameters.budgetId"/>
<order-by field-name="statusId"/>
</entity-and>
<entity-and entity-name="BudgetItem" list="budgetItems">
<field-map field-name="budgetId" from-field="parameters.budgetId"/>
<order-by field-name="budgetItemSeqId"/>
</entity-and>
<entity-and entity-name="BudgetReview" list="budgetReviews">
<field-map field-name="budgetId" from-field="budgetId"/>
<order-by field-name="budgetReviewId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonBudgetDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingBudgetHeader}">
<include-form name="BudgetHeader" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
<container style="${styles.grid_large}6">
<screenlet title="${uiLabelMap.AccountingBudgetStatus}" navigation-form-name="BudgetStatus">
<include-form name="BudgetStatus" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
</container>
<container style="${styles.grid_large}6">
<screenlet title="${uiLabelMap.AccountingBudgetRoles}" navigation-form-name="BudgetRoles">
<include-form name="BudgetRoles" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
</container>
<container style="clear"/>
<screenlet title="${uiLabelMap.AccountingBudgetItems}" navigation-form-name="BudgetItems">
<include-form name="BudgetItems" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
<container style="clear"/>
<screenlet title="${uiLabelMap.AccountingBudgetReviews}" navigation-form-name="BudgetReviews">
<include-form name="BudgetReviews" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditBudgetItems">
<section>
<actions>
<property-map resource="AccountingEntityLabels" map-name="uiLabelMap" global="true"/>
<set field="viewIndex" from-field="parameters.viewIndex"/>
<set field="viewSize" from-field="parameters.viewSize"/>
<set field="titleProperty" value="PageTitleListBudget"/>
<set field="activeSubMenuItem" value="BudgetItem"/>
<set field="budgetId" from-field="parameters.budgetId"/>
<set field="budgetItemSeqId" from-field="parameters.budgetItemSeqId"/>
<entity-one entity-name="Budget" value-field="budget"/>
<entity-one entity-name="BudgetItem" value-field="budgetItem"/>
<entity-and entity-name="BudgetItem" list="budgetItems">
<field-map field-name="budgetId" from-field="parameters.budgetId"/>
<order-by field-name="budgetItemSeqId"/>
</entity-and>
<entity-condition entity-name="BudgetItemType" list="budgetItemTypes"/>
</actions>
<widgets>
<decorator-screen name="CommonBudgetDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.AccountingBudgetItemsAdd}">
<include-form name="EditBudgetItem" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.AccountingBudgetItems}">
<include-form name="EditBudgetItems" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BudgetRoles">
<section>
<actions>
<set field="titleProperty" value="PageTitleListBudgetRoles"/>
<set field="activeSubMenuItem" value="BudgetRoles"/>
<set field="budgetId" from-field="parameters.budgetId"/>
<entity-one entity-name="Budget" value-field="budget"/>
<entity-and entity-name="BudgetRole" list="budgetRoles">
<field-map field-name="budgetId" from-field="budgetId"/>
<order-by field-name="partyId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonBudgetDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="PartyBudgetRolePanel" title="${uiLabelMap.AccountingPartyRoleAdd}" collapsible="true">
<include-form name="EditBudgetRole" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
<include-form name="ListBudgetRoles" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="BudgetReviews">
<section>
<actions>
<set field="titleProperty" value="PageTitleListBudgetReviews"/>
<set field="activeSubMenuItem" value="BudgetReviews"/>
<set field="budgetId" from-field="parameters.budgetId"/>
<entity-one entity-name="Budget" value-field="budget"/>
<entity-and entity-name="BudgetReview" list="budgetReviews">
<field-map field-name="budgetId" from-field="budgetId"/>
<order-by field-name="budgetReviewId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonBudgetDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="BudgetReviewPanel" title="${uiLabelMap.AccountingBudgetReviewAdd}" collapsible="true">
<include-form name="EditBudgetReview" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</screenlet>
<include-form name="ListBudgetReviews" location="component://accounting/widget/controlling/BudgetForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>