ilscipio/scipio-erp

View on GitHub
applications/workeffort/widget/CustRequestScreens.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="RequestList">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortRequests"/>
                <!-- TODO: needs decorator and submenu
                <set field="activeSubMenuItem" value="requestlist"/>-->
                <set field="activeSubMenuItem" value="request"/>
                <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}"/>

                <set field="custRequestId" from-field="parameters.custRequestId"/>
                <entity-one entity-name="CustRequest" value-field="custRequest"/>
                <script location="component://workeffort/webapp/workeffort/WEB-INF/actions/request/RequestList.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet title="${uiLabelMap.WorkEffortMyRequestList}">
                            <include-form name="ListRequests" location="component://workeffort/widget/CustRequestForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>