ilscipio/scipio-erp

View on GitHub
applications/accounting/widget/contracts/AgreementScreens.xml

Summary

Maintainability
Test Coverage
<?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">

    <!-- SCIPIO: NOTE: The old parameters.agreementDecoratorLocation pattern that existed here has been supplanted
        by the decorator default-fallback-location pattern for parameters.mainDecoratorLocation (see CommonScreens.xml). -->

    <!-- Agreement -->
    <screen name="FindAgreement">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindAgreement" />
            </actions>
            <widgets>
                <decorator-screen name="CommonAgreementDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <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="${styles.link_nav} ${styles.action_add}" />
                                </container>
                            </decorator-section>
                            <decorator-section name="search-options">
                                <include-form name="FindAgreements" location="component://accounting/widget/contracts/AgreementForms.xml" />
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListAgreements" location="component://accounting/widget/contracts/AgreementForms.xml" />
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreement">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="agreements" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
                <entity-and entity-name="AgreementItem" list="agreementItems">
                    <field-map field-name="agreementId" from-field="agreement.agreementId"/>
                </entity-and>
                <set field="titleProperty" value="${groovy: context.agreement ? 'PageTitleEditAgreement' : 'AccountingNewAgreement'}" />
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <not>
                                    <if-empty field="agreement" />
                                </not>
                            </condition>
                            <widgets>
                                <container style="${styles.grid_row}">
                                    <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                        <platform-specific>
                                            <html>
                                                <html-template location="component://accounting/webapp/accounting/agreement/CopyAgreement.ftl" />
                                            </html>
                                        </platform-specific>
                                    </container>
                                </container>
                                <screenlet>
                                    <include-form name="EditAgreement" location="component://accounting/widget/contracts/AgreementForms.xml" />
                                </screenlet>
                                <include-form name="ListAgreementItems" location="component://accounting/widget/contracts/AgreementForms.xml" />
                                <include-form name="ListAgreementTerms" location="component://accounting/widget/contracts/AgreementForms.xml" />
                            </widgets>
                            <fail-widgets>
                                <screenlet>
                                    <include-form name="EditAgreement" location="component://accounting/widget/contracts/AgreementForms.xml" />
                                </screenlet>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementItems">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementItems" />
                <set field="activeSubMenuItem" value="AgreementItems" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
                <entity-and entity-name="AgreementItem" list="agreementItems">
                    <field-map field-name="agreementId" from-field="agreement.agreementId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="CommonAgreementDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementItems" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementItem">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementItem" />
                <set field="activeSubMenuItem" value="AgreementItems" />
                <set field="buttonBarItem" value="EditAgreementItem" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
                <property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default"
                    default="USD" />
                <set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId" />
                <entity-one entity-name="AgreementItem" value-field="agreementItem" />
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementItem" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementTerms">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementTerm" />
                <set field="activeSubMenuItem" value="AgreementTerms" />
                <set field="buttonBarItem" value="EditAgreementTerms" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
            </actions>
            <widgets>
                <decorator-screen name="CommonAgreementDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="AgreementTermPanel" collapsible="true"> <!-- title="${uiLabelMap.PageTitleEditAgreementTerm}" -->
                            <include-form name="AddAgreementTerm" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <include-form name="ListAgreementTerms" location="component://accounting/widget/contracts/AgreementForms.xml" />
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementPromoAppls">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementPromoAppls" />
                <set field="activeSubMenuItem" value="ListAgreementPromoAppls" />
                <set field="buttonBarItem" value="ListAgreementPromoAppls" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
                <entity-one entity-name="AgreementItem" value-field="agreementItem" />
                <entity-and entity-name="AgreementPromoAppl" list="agreementPromoAppls">
                    <field-map field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="sequenceNum" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementPromoAppls" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementPromoAppl">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementPromoAppl" />
                <set field="activeSubMenuItem" value="ListAgreementPromoAppls" />
                <set field="buttonBarItem" value="ListAgreementPromoAppls" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
                <set field="agreementTermId" from-field="parameters.agreementTermId" />
                <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="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementPromoAppl" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementItemTerms">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementItemTerms" />
                <set field="activeSubMenuItem" value="ListAgreementItemTerms" />
                <set field="buttonBarItem" value="ListAgreementItemTerms" />
                <set field="agreementId" from-field="parameters.agreementId" />
                <entity-one entity-name="Agreement" value-field="agreement" />
                <entity-one entity-name="AgreementItem" value-field="agreementItem" />
                <entity-and entity-name="AgreementTerm" list="agreementTerms">
                    <field-map field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementItemTerms" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementItemTerm">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementItemTerm" />
                <set field="activeSubMenuItem" value="ListAgreementItemTerms" />
                <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="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementItemTerm" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementItemProducts">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementItemProducts" />
                <set field="activeSubMenuItem" value="ListAgreementItemProducts" />
                <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 field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="productId" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementItemProducts" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementItemFacilities">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementItemFacilities" />
                <set field="activeSubMenuItem" value="ListAgreementItemWarehouses" />
                <set field="buttonBarItem" value="ListAgreementItemFacilities" />
                <entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true" />
                <entity-one entity-name="AgreementItem" value-field="agreementItem" />
                <entity-and entity-name="AgreementFacilityAppl" list="agreementFacilities">
                    <field-map field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="facilityId" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementItemFacilities" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </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 field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="productId" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <screenlet title="${uiLabelMap.AccountingAgreement}">
                            <include-form name="ViewAgreementInfoForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <screenlet title="${uiLabelMap.AccountingAgreementItem}">
                            <include-form name="ViewAgreementItemInfoForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <screenlet title="${uiLabelMap.AccountingAgreementItemProductsForReport}">
                            <include-form name="ListAgreementItemProductsForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementItemFacilitiesReport">
        <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="AgreementFacilityAppl" list="agreementFacilities">
                    <field-map field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="facilityId" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <screenlet title="${uiLabelMap.AccountingAgreement}">
                            <include-form name="ViewAgreementInfoForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <screenlet title="${uiLabelMap.AccountingAgreementItem}">
                            <include-form name="ViewAgreementItemInfoForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementItemProduct">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementItemProduct" />
                <set field="activeSubMenuItem" value="ListAgreementItemProducts" />

                <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="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementItemProduct" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementItemFacility">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementItemFacility" />
                <set field="activeSubMenuItem" value="ListAgreementItemWarehouses" />

                <set field="agreementId" from-field="parameters.agreementId" />
                <set field="agreementItemSeqId" from-field="parameters.agreementItemSeqId" />
                <set field="facilityId" from-field="parameters.facilityId" />

                <entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true" />
                <entity-one entity-name="AgreementItem" value-field="agreementItem" />
                <entity-one entity-name="AgreementFacilityAppl" value-field="agreementFacilityAppl" auto-field-map="true" />
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementItemFacility" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementItemSupplierProducts">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementItemProducts" />
                <set field="activeSubMenuItem" value="ListAgreementItemSupplierProducts" />
                <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 field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="productId" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container>
                            <link target="ListAgreementItemSupplierProductsReport" text="${uiLabelMap.CommonPrint}" style="${styles.link_run_sys} ${styles.action_export}" target-window="_BLANK">
                                <parameter param-name="agreementId" from-field="agreement.agreementId" />
                                <parameter param-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId" />
                            </link>
                        </container>
                        <screenlet>
                            <include-form name="ListAgreementItemSupplierProducts" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </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="PartyUiLabels" 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 field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                    <order-by field-name="productId" />
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <screenlet title="${uiLabelMap.AccountingAgreement}">
                            <include-form name="ViewAgreementInfoForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <screenlet title="${uiLabelMap.AccountingAgreementItem}">
                            <include-form name="ViewAgreementItemInfoForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <screenlet title="${uiLabelMap.AccountingAgreementItemSupplierProductsForReport}">
                            <include-form name="ListAgreementItemSupplierProductsForReport" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementItemSupplierProduct">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementItemProduct" />
                <set field="activeSubMenuItem" 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="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                            <decorator-section name="body">
                            </decorator-section>
                        </decorator-screen>
                    </widgets>
                    <fail-widgets>
                        <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                            <decorator-section name="body">
                                <label style="heading">${uiLabelMap.AccountingAgreementIsNotSetForSupplierProducts}
                                </label>
                            </decorator-section>
                        </decorator-screen>
                    </fail-widgets>
                </section>
            </widgets>
        </section>
    </screen>
    
    <screen name="ListAgreementItemParties">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementItemParties" />
                <set field="activeSubMenuItem" value="ListAgreementItemParties" />
                <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 field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementItemParties" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementItemParty">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementItemParty" />
                <set field="activeSubMenuItem" value="ListAgreementItemParties" />
                <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="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementItemParty" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ListAgreementGeographicalApplic">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListAgreementGeographicalApplic" />
                <set field="activeSubMenuItem" value="ListAgreementGeographicalApplic" />
                <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 field-name="agreementId" from-field="agreement.agreementId"/>
                    <field-map field-name="agreementItemSeqId" from-field="agreementItem.agreementItemSeqId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListAgreementGeographicalApplic" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="EditAgreementGeographicalApplic">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementGeographicalApplic" />
                <set field="activeSubMenuItem" value="ListAgreementGeographicalApplic" />
                <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="AgreementSubDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditAgreementGeographicalApplic" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementWorkEffortApplics">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementWorkEffortApplics" />
                <set field="activeSubMenuItem" value="AgreementWorkEffort" />
                <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.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="AgreementWorkEffortApplicsPanel" title="${uiLabelMap.AccountingAddAgreementWorkEffortApplic}"
                            collapsible="true">
                            <include-form name="AddAgreementWorkEffortApplic" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <include-form name="ListAgreementWorkEffortApplics" location="component://accounting/widget/contracts/AgreementForms.xml" />
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditAgreementRoles">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindAgreementRoles" />
                <set field="activeSubMenuItem" value="AgreementRoles" />
                <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true" />
                <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.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="add-agreement-roles" title="${uiLabelMap.PageTitleAddAgreementRoles}" collapsible="true">
                            <include-form name="AddAgreementRole" location="component://accounting/widget/contracts/AgreementForms.xml" />
                        </screenlet>
                        <include-form name="ListAgreementRoles" location="component://accounting/widget/contracts/AgreementForms.xml" />
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>