ilscipio/scipio-erp

View on GitHub
applications/accounting/widget/settings/SettingScreens.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">
   
    <!-- Migrated from PeriodScreens  -->
    <screen name="AddCustomTimePeriod">
        <section>
            <actions>
                <set field="titleProperty" value="AccountingAddCustomTimePeriod"/>
                <set field="activeSubMenuItem" value="TimePeriods"/>
                <script location="component://accounting/webapp/accounting/WEB-INF/actions/period/EditCustomTimePeriod.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://accounting/webapp/accounting/period/AddCustomTimePeriod.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditCustomTimePeriod">
        <section>
            <actions>
                <set field="titleProperty" value="AccountingTimePeriods"/>
                <set field="activeSubMenuItem" value="TimePeriods"/>
                <script location="component://accounting/webapp/accounting/WEB-INF/actions/period/EditCustomTimePeriod.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://accounting/webapp/accounting/period/EditCustomTimePeriod.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <!-- Migrated from AP/ApScreens.xml -->
     <screen name="EditVendor">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="findVendors"/>
                <set field="titleProperty" value="AccountingApPageTitleEditVendor"/>
                <set field="partyId" from-field="parameters.partyId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditVendor" location="component://accounting/widget/ap/VendorForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="FindVendors">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="findVendors"/>
                <set field="titleProperty" value="AccountingApPageTitleFindVendors"/>
                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
                <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonSettingsDecorator" 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="editVendor" text="${uiLabelMap.CommonNew} ${uiLabelMap.PartyVendor}" style="${styles.link_nav} ${styles.action_add}"/>
                                </container>
                            </decorator-section>
                            <decorator-section name="search-options">
                                <include-form name="FindVendors" location="component://accounting/widget/ap/VendorForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListVendors" location="component://accounting/widget/ap/VendorForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="Journals">
        <section>
            <actions>
                <!-- <set field="activeMenuItem" value="settings"/> -->
                <set field="activeSubMenuItem" value="Journals"/>
                <set field="titleProperty" value="AccountingGlJournals"/>
                <set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditGlJournal" location="component://accounting/widget/settings/GlSetupForms.xml"/>
                        </screenlet>
                        <include-form name="ListGlJournals" location="component://accounting/widget/settings/GlSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
</screens>