Files
ofbiz-framework/applications/accounting/widget/AgreementScreens.xml
T
Ashish Vijaywargiya 6c6627be6b Patch applied from JIRA issue https://issues.apache.org/jira/browse/OFBIZ-1794.
Now the agreement will be applied for the Registered user in Ecommerce Section.

Thanks Ratnesh Upadhyay & Ravindra Mandre for your patch.
Special thanks to Rishi Solanki for helping and Jacopo for useful comments.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667006 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 08:43:19 +00:00

929 lines
54 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-name="agreement"/></not>
</condition>
<widgets>
<platform-specific>
<html><html-template location="component://accounting/webapp/accounting/agreement/AgreementTabBar.ftl"/></html>
</platform-specific>
<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="agreement"/>
<set field="tabButtonItem" value="agreement"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
</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>
<container style="button-bar">
<link target="EditAgreement" text="${uiLabelMap.AccountingNewAgreement}" style="buttontext"/>
</container>
<screenlet title="${uiLabelMap.PageTitleFindAgreement}">
<section>
<widgets>
<include-form name="FindAgreements" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleListAgreement}">
<section>
<widgets>
<include-form name="ListAgreements" location="component://accounting/webapp/accounting/agreement/AgreementForms.xml"/>
</widgets>
</section>
</screenlet>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.AcccountingViewPermissionError}</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="agreement"/>
<set field="tabButtonItem" value="AgreementMain"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-name="agreement"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field-name="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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-and entity-name="AgreementItem" list-name="agreementItems">
<field-map env-name="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?agreementId=${agreement.agreementId}" text="${uiLabelMap.AccountingNewAgreementItem}" style="buttontext"/>
</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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container style="button-bar">
<link target="EditAgreementItem?agreementId=${agreement.agreementId}" text="${uiLabelMap.AccountingNewAgreementItem}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementTerms"/>
<set field="buttonBarItem" value="EditAgreementTerms"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-name="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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementPromoAppls"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="AgreementPromoAppl" list-name="agreementPromoAppls">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="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?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.AccountingNewAgreementPromoAppl}" style="buttontext"/>
</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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem" auto-field-map="true"/>
<entity-one entity-name="AgreementPromoAppl" value-name="agreementPromoAppl" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementPromoAppl?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.AccountingNewAgreementPromoAppl}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemTerms"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="AgreementTerm" list-name="agreementTerms">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemTerm?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.AccountingNewAgreementItemTerm}" style="buttontext"/>
</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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem" auto-field-map="true"/>
<entity-one entity-name="AgreementTerm" value-name="agreementTerm" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemTerm?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.AccountingNewAgreementItemTerm}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemProducts"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="AgreementProductAppl" list-name="agreementProducts">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemProduct?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
<link target="ListAgreementItemProductsReport?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.CommonPrint}" style="buttontext"/>
</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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="AgreementProductAppl" list-name="agreementProducts">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-one entity-name="AgreementProductAppl" value-name="agreementProductAppl" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemProduct?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemSupplierProducts"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="SupplierProduct" list-name="agreementProducts">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemSupplierProduct?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
<link target="ListAgreementItemSupplierProductsReport?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.CommonPrint}" style="buttontext"/>
</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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="SupplierProduct" list-name="agreementProducts">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-one entity-name="SupplierProduct" value-name="agreementProductAppl" auto-field-map="true"/>
</actions>
<widgets>
<section>
<condition>
<and>
<not><if-empty field-name="agreement.partyIdTo"/></not>
<not><if-empty field-name="agreementItem.currencyUomId"/></not>
</and>
</condition>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemSupplierProduct?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementItemParties"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="AgreementPartyApplic" list-name="agreementParties">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemParty?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.CommonNew}" style="buttontext"/>
</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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-one entity-name="AgreementPartyApplic" value-name="agreementPartyApplic" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementItemParty?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.CommonNew}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementItems"/>
<set field="buttonBarItem" value="ListAgreementGeographicalApplic"/>
<entity-one entity-name="Agreement" value-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem"/>
<entity-and entity-name="AgreementGeographicalApplic" list-name="agreementGeographicalApplics">
<field-map env-name="agreement.agreementId" field-name="agreementId"/>
<field-map env-name="agreementItem.agreementItemSeqId" field-name="agreementItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementGeographicalApplic?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.CommonNew}" style="buttontext"/>
</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="agreement"/>
<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-name="agreement" auto-field-map="true"/>
<entity-one entity-name="AgreementItem" value-name="agreementItem" auto-field-map="true"/>
<entity-one entity-name="AgreementGeographicalApplic" value-name="agreementGeographicalApplic" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonAgreementDecorator" location="${parameters.agreementDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="EditAgreementGeographicalApplic?agreementId=${agreement.agreementId}&amp;agreementItemSeqId=${agreementItem.agreementItemSeqId}" text="${uiLabelMap.CommonNew}" style="buttontext"/>
</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="agreement"/>
<set field="tabButtonItem" value="AgreementWorkEffortAppls"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-name="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="agreement"/>
<set field="tabButtonItem" value="AgreementRoles"/>
<set field="agreementId" from-field="parameters.agreementId"/>
<entity-one entity-name="Agreement" value-name="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>