ilscipio/scipio-erp

View on GitHub
applications/marketing/widget/sfa/ServicesScreens.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="PartyCommunicationEvents">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleCommEvents"/>
                <set field="activeSubMenuItem" value="MyCommunicationEvents"/>
                <script location="component://marketing/webapp/sfa/WEB-INF/action/services/FindMyCommunication.groovy"/>
            </actions>
            <widgets>
                <!-- 
                <decorator-screen name="CommonSfaAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="MyCommunicationEvents"/>
                    </decorator-section>
                </decorator-screen>
                -->
                <decorator-screen name="CommonServiceDecorator" location="component://marketing/widget/sfa/CommonScreens.xml">
                    <decorator-section name="body">
                        <!--<include-menu name="AccountSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>-->
                        <!--<include-menu name="AccountFindTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>-->
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="search-options">
                                <!--<include-form name="FindAccounts" location="component://marketing/widget/sfa/forms/AccountForms.xml"/>-->
                                <platform-specific><html><html-template location="component://marketing/webapp/sfa/services/FindMyCommunication.ftl"/></html></platform-specific>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-screen name="PartyCommunicationEventsResults"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="PartyCommunicationEventsResults">
        <section>
            <actions>
                <set field="internalNotesOnly" from-field="internalNotesOnly" default-value="false"/>
                <set field="partyId" from-field="communicationPartyId" default-value="${userLogin.partyId}"/>
                <entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
                <script location="component://marketing/webapp/sfa/WEB-INF/action/services/MyCommunicationList.groovy"/>
            </actions>
            <widgets>
                <platform-specific><html><html-template location="component://marketing/webapp/sfa/services/MyCommunicationList.ftl"/></html></platform-specific>
                <!-- <include-form name="ListPartyCommEvents" location="component://party/widget/partymgr/CommunicationEventForms.xml"/> -->
            </widgets>
        </section>
    </screen>
    
    
    <screen name="FindRequest">
        <section>
            <actions>
                <set field="titleProperty" value="OrderFindRequests"/>
                <set field="activeSubMenuItem" value="FindRequest"/>
                <set field="entityName" value="CustRequest"/>

            </actions>
            <widgets>
                <decorator-screen name="CommonServiceDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <!-- duplicate?
                            <decorator-section name="menu-bar">
                                <container style="button-bar">
                                    <link target="request" text="${uiLabelMap.OrderNewRequest}" style="${styles.link_nav} ${styles.action_add}"/>
                                </container>
                            </decorator-section> -->
                            <decorator-section name="search-options">
                                <include-form name="FindRequests" location="component://order/widget/ordermgr/CustRequestForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListRequests" location="component://order/widget/ordermgr/CustRequestForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
         </section>
    </screen>
    
    <screen name="ViewRequest">
        <section>
            <actions>
                <set field="MainColumnStyle" value="rightonly"/>
                <set field="activeSubMenuItem" value="FindRequest"/>
                <set field="titleProperty" value="PageTitleViewRequest"/>
                <set field="showRequestManagementLinks" value="Y"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonServiceDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ViewCustRequest" location="component://order/widget/ordermgr/CustRequestScreens.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditRequest">
        <section>
            <actions>
                <set field="titleProperty" value="OrderRequest"/>
                <set field="activeSubMenuItem" value="FindRequest"/>
                <set field="custRequestId" from-field="parameters.custRequestId"/>
                <entity-one entity-name="CustRequest" value-field="custRequest"/>
                <set field="statusId" from-field="custRequest.statusId"/>
                <entity-one entity-name="StatusItem" value-field="currentStatus"/>
                <entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonServiceDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <section>
                                <condition>
                                    <if-compare field="parameters.small" operator="equals" value="Y"/>
                                </condition>
                                <widgets>
                                    <include-form name="EditSmallCustRequest" location="component://order/widget/ordermgr/CustRequestForms.xml"/>
                                </widgets>
                                <fail-widgets>
                                    <include-form name="EditCustRequest" location="component://order/widget/ordermgr/CustRequestForms.xml"/>
                                </fail-widgets>
                            </section>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

</screens>