Files
ofbiz-framework/applications/accounting/widget/AgreementScreens.xml
T

974 lines
55 KiB
XML

<?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"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<!-- Custom apps can use their own agreement decorator by specifying its
location in parameters.agreementDecoratorLocation -->
<screen name="CommonAgreementDecorator">
<section>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="acctgAgreementPermissionCheck" main-action="VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field="agreement"/></not>
</condition>
<widgets>
<include-menu name="AgreementTabBar" location="component://accounting/widget/Menus.xml"/>
<section>
<condition>
<not><if-empty field="agreementItem"/></not>
</condition>
<widgets>
<include-menu name="AgreementItemTabBar" location="component://accounting/widget/Menus.xml"/>
</widgets>
</section>
<container>
<label style="h1">${agreement.description} [${agreement.agreementId}] </label>
</container>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.AccountingViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- list all assets in a tabular format -->
<screen name="FindAgreement">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindAgreement"/>
<set field="headerItem" value="agreements"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="acctgAgreementPermissionCheck" main-action="VIEW"/>
</condition>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="EditAgreement" text="${uiLabelMap.AccountingNewAgreement}" style="buttontext"/>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindAgreements" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListAgreements" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.AccountingViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreement">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreement"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementMain"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-field="agreement"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field="agreement"/></not>
</condition>
<widgets>
<container style="button-bar">
<link target="EditAgreement" text="${uiLabelMap.AccountingNewAgreement}" style="buttontext"/>
</container>
</widgets>
</section>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreement}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreement" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
<platform-specific>
<html><html-template location="component://accounting/webapp/accounting/agreement/CopyAgreement.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementItems">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementItems"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-and entity-name="AgreementItem" list="agreementItems">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container style="button-bar">
<link target="EditAgreementItem" text="${uiLabelMap.AccountingNewAgreementItem}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementItems}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItems" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementItem">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementItem"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="EditAgreementItem"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container style="button-bar">
<link target="EditAgreementItem" text="${uiLabelMap.AccountingNewAgreementItem}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementItem}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementItem" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementTerms">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementTerm"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementTerms"/>
<set field="buttonBarItem" value="EditAgreementTerms"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<screenlet id="AgreementTermPanel" title="${uiLabelMap.PageTitleEditAgreementTerm}" collapsible="true">
<include-form name="AddAgreementTerm" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</screenlet>
<include-form name="ListAgreementTerms" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementPromoAppls">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementPromoAppls"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementPromoAppls"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="AgreementPromoAppl" list="agreementPromoAppls">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
<order-by field-name="sequenceNum"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementPromoAppl" text="${uiLabelMap.AccountingNewAgreementPromoAppl}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementPromoAppls}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementPromoAppls" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementPromoAppl">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementPromoAppl"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementPromoAppls"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementTermId" from-field="parameters.agreementTermId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem" auto-field-map="true"/>
<entity-one entity-name="AgreementPromoAppl" value-field="agreementPromoAppl" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementPromoAppl" text="${uiLabelMap.AccountingNewAgreementPromoAppl}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementPromoAppl}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementPromoAppl" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementItemTerms">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementItemTerms"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemTerms"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="AgreementTerm" list="agreementTerms">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemTerm" text="${uiLabelMap.AccountingNewAgreementItemTerm}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementItemTerms}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItemTerms" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementItemTerm">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementItemTerm"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemTerms"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId"/>
<set field="agreementTermId" from-field="parameters.agreementTermId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem" auto-field-map="true"/>
<entity-one entity-name="AgreementTerm" value-field="agreementTerm" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemTerm" text="${uiLabelMap.AccountingNewAgreementItemTerm}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementItemTerm}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementItemTerm" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementItemProducts">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementItemProducts"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemProducts"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="AgreementProductAppl" list="agreementProducts">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
<link target="ListAgreementItemProductsReport" text="${uiLabelMap.CommonPrint}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementItemProducts}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItemProducts" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementItemProductsReport">
<section>
<actions>
<set field="titleProperty" value="AccountingPageTitleAgreementPriceList"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="AgreementProductAppl" list="agreementProducts">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAgreement}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ViewAgreementInfoForReport" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAgreementItem}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ViewAgreementItemInfoForReport" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAgreementItemProductsForReport}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItemProductsForReport" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementItemProduct">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementItemProduct"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId"/>
<set field="productId" from-field="parameters.productId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-one entity-name="AgreementProductAppl" value-field="agreementProductAppl" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementItemProduct}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementItemProduct" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementItemSupplierProducts">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementItemProducts"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemSupplierProducts"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="SupplierProduct" list="agreementProducts">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemSupplierProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
<link target="ListAgreementItemSupplierProductsReport" text="${uiLabelMap.CommonPrint}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementItemProducts}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItemSupplierProducts" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementItemSupplierProductsReport">
<section>
<actions>
<set field="titleProperty" value="AccountingPageTitleAgreementPriceList"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="SupplierProduct" list="agreementProducts">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAgreement}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ViewAgreementInfoForReport" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAgreementItem}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ViewAgreementItemInfoForReport" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingAgreementItemSupplierProductsForReport}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItemSupplierProductsForReport" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementItemSupplierProduct">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementItemProduct"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemSupplierProducts"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId"/>
<set field="productId" from-field="parameters.productId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-one entity-name="SupplierProduct" value-field="agreementProductAppl" auto-field-map="true"/>
</actions>
<widgets>
<section>
<condition>
<and>
<not><if-empty field="agreement.partyIdTo"/></not>
<not><if-empty field="agreementItem.currencyUomId"/></not>
</and>
</condition>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemSupplierProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementItemProduct}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementItemSupplierProduct" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="h2">${uiLabelMap.AccountingAgreementIsNotSetForSupplierProducts}</label>
</container>
</decorator-section>
</decorator-screen>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
<screen name="ListAgreementItemParties">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementItemParties"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemParties"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="AgreementPartyApplic" list="agreementParties">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemParty" text="${uiLabelMap.CommonNew}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementItemParties}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementItemParties" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementItemParty">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementItemParty"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemParties"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId"/>
<set field="partyId" from-field="parameters.partyId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-one entity-name="AgreementPartyApplic" value-field="agreementPartyApplic" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemParty" text="${uiLabelMap.CommonNew}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementItemParty}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementItemParty" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListAgreementGeographicalApplic">
<section>
<actions>
<set field="titleProperty" value="PageTitleListAgreementGeographicalApplic"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementGeographicalApplic"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem"/>
<entity-and entity-name="AgreementGeographicalApplic" list="agreementGeographicalApplics">
<field-map from-field="agreement.agreementId" field-name="agreementId"/>
<field-map from-field="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementGeographicalApplic" text="${uiLabelMap.CommonNew}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleListAgreementGeographicalApplic}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListAgreementGeographicalApplic" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementGeographicalApplic">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementGeographicalApplic"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementGeographicalApplic"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId"/>
<set field="geoId" from-field="parameters.geoId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-field="agreementItem" auto-field-map="true"/>
<entity-one entity-name="AgreementGeographicalApplic" value-field="agreementGeographicalApplic" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementGeographicalApplic" text="${uiLabelMap.CommonNew}" style="buttontext">
<parameter param-name="agreementId" from-field="agreement.agreementId"/>
<parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
</link>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditAgreementGeographicalApplic}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditAgreementGeographicalApplic" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementWorkEffortAppls">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditAgreementWorkEffortAppls"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementWorkEffortAppls"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<screenlet id="AgreementWorkEffortApplsPanel" title="${uiLabelMap.AccountingAddAgreementWorkEffortAppl}" collapsible="true">
<include-form name="AddAgreementWorkEffortAppl" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</screenlet>
<include-form name="ListAgreementWorkEffortAppls" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditAgreementRoles">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindAgreementRoles"/>
<set field="headerItem" value="agreements"/>
<set field="tabButtonItem" value="AgreementRoles"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<screenlet id="add-agreement-roles" title="${uiLabelMap.PageTitleAddAgreementRoles}" collapsible="true">
<section>
<widgets>
<include-form name="AddAgreementRole" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</screenlet>
<include-form name="ListAgreementRoles" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>