blob: b084e8b5d166e548a54760a2ae39e48429e433bb [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="CommonSalesForecastDecorator">
<section>
<actions>
<set field="headerItem" value="Forecast"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="pre-body">
<include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
</decorator-section>
<decorator-section name="left-column">
<include-screen name="leftbar" location="component://marketing/widget/sfa/CommonScreens.xml"/>
</decorator-section>
<decorator-section name="body">
<section>
<widgets>
<section>
<condition><not><if-empty field="salesForecastId"/></not></condition>
<widgets>
<include-menu name="SalesForecastTabBar" location="${parameters.mainMenuLocation}"/>
</widgets>
</section>
</widgets>
</section>
<container style="no-clear">
<decorator-section-include name="body"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindSalesForecast">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindSalesForecast"/>
<set field="headerItem" value="Forecast"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="pre-body">
<include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
<decorator-section-include name="pre-body"/>
</decorator-section>
<decorator-section name="left-column">
<include-screen name="leftbar" location="component://marketing/widget/sfa/CommonScreens.xml"/>
</decorator-section>
<decorator-section name="body">
<section>
<widgets>
<container style="no-clear">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<section>
<widgets>
<container style="button-bar"><link target="EditSalesForecast" text="${uiLabelMap.SfaNewSalesForecast}" style="buttontext"/></container>
</widgets>
</section>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindSalesForecast" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="SalesForecastSearchResults" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</decorator-section>
</decorator-screen>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSalesForecast">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditSalesForecast"/>
<set field="tabButtonItem" value="EditSalesForecast"/>
<set field="salesForecastId" from-field="parameters.salesForecastId"/>
<entity-one entity-name="SalesForecast" value-field="salesForecast"/>
</actions>
<widgets>
<decorator-screen name="CommonSalesForecastDecorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.SfaEditSalesForecast}">
<section>
<condition><not><if-empty field="salesForecastId"/></not></condition>
<widgets>
<container style="button-bar">
<link target="EditSalesForecast" text="${uiLabelMap.SfaNewSalesForecast}" style="buttontext"/>
</container>
</widgets>
</section>
<include-form name="EditSalesForecast" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSalesForecastDetail">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditSalesForecastDetail"/>
<set field="tabButtonItem" value="EditSalesForecastDetail"/>
<set field="salesForecastId" from-field="parameters.salesForecastId"/>
</actions>
<widgets>
<decorator-screen name="CommonSalesForecastDecorator">
<decorator-section name="body">
<section>
<widgets>
<screenlet title="${uiLabelMap.SfaAddSalesForecastDetail} ${uiLabelMap.CommonFor} [${salesForecastId}]">
<include-form name="AddSalesForecastDetail" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.SfaListSalesForecastDetail}">
<include-form name="ListSalesForecastDetails" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>