ilscipio/scipio-erp

View on GitHub
applications/party/widget/partymgr/PartyClassificationScreens.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">

    <screen name="EditPartyClassifications">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleViewPartyClassifications"/>
                <set field="activeSubMenuItem" value="EditPartyClassifications"/>

                <set field="labelTitleProperty" value="PartyClassifications"/>

                <set field="partyId" from-field="parameters.partyId"/>
                <entity-one entity-name="Party" value-field="party"/>
            </actions>
            <widgets>
                <!-- NOTE: this would go under Find Parties menu rather than Classifications in top menu (if were still there) -->
                <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="AddPartyClassificationPanel" title="${uiLabelMap.PartyClassifications}" collapsible="true">
                            <include-form name="AddPartyClassification" location="component://party/widget/partymgr/PartyClassificationForms.xml"/>
                        </screenlet>
                        <include-form name="ListPartyClassifications" location="component://party/widget/partymgr/PartyClassificationForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditPartyClassificationGroupParties">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleViewPartyClassificationGroupParties"/>
                <set field="activeSubMenuItem" value="EditPartyClassificationGroupParties"/>

                <set field="labelTitleProperty" value="PartyClassificationGroupParties"/>

                <set field="partyClassificationGroupId" from-field="parameters.partyClassificationGroupId"/>
                <entity-one entity-name="PartyClassificationGroup" value-field="partyClassificationGroup"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonPartyClassificationDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="AddPartyClassificationGroupPartiesPanel" title="${uiLabelMap.PartyClassificationGroups}" collapsible="true">
                            <include-form name="AddPartyClassificationParty" location="component://party/widget/partymgr/PartyClassificationForms.xml"/>
                        </screenlet>
                        <include-form name="ListPartyClassificationGroupParties" location="component://party/widget/partymgr/PartyClassificationForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindPartyClassificationGroups">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindPartyClassificationGroups"/>
                <set field="activeSubMenuItem" value="FindPartyClassificationGroups"/>

                <set field="labelTitleProperty" value="PartyClassificationGroups"/>

                <set field="partyId" from-field="parameters.partyId"/>
                <entity-one entity-name="Party" value-field="party"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonPartyClassificationDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <container style="button-bar"><link target="EditPartyClassificationGroup" style="${styles.link_nav} ${styles.action_add}" text="${uiLabelMap.PartyCreateNewPartyClassificationGroup}"/></container>
                            <container style="screenlet-body">
                                <include-form name="ListPartyClassificationGroups" location="component://party/widget/partymgr/PartyClassificationForms.xml"/>
                            </container>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditPartyClassificationGroup">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditPartyClassificationGroup"/>
                <set field="activeSubMenuItem" value="EditPartyClassificationGroup"/>

                <set field="labelTitleProperty" value="PartyClassificationGroup"/>

                <set field="partyClassificationGroupId" from-field="parameters.partyClassificationGroupId"/>
                <set field="partyId" value=""/>
                <entity-one entity-name="PartyClassificationGroup" value-field="partyClassificationGroup"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonPartyClassificationDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditPartyClassificationGroup" location="component://party/widget/partymgr/PartyClassificationForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>