ilscipio/scipio-erp

View on GitHub
applications/product/widget/facility/ShipmentGatewayConfigScreens.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="GenericShipmentGatewayConfigDecorator">
        <section>
            <actions>
                <set field="activeSubMenu" from-field="activeSubMenu" default-value="component://product/widget/facility/FacilityMenus.xml#ShipmentGatewayConfig" />
            </actions>
            <widgets>
                <decorator-screen name="CommonFacilityAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <label style="heading">${uiLabelMap[labelTitleProperty]}</label>
                        <decorator-section-include name="body"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="FindShipmentGatewayConfig">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindShipmentGatewayConfig"/>
                <set field="activeSubMenuItem" value="shipmentGatewayConfigTab"/>
                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
                <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="GenericShipmentGatewayConfigDecorator">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="search-options">
                                <include-form name="FindShipmentGatewayConfig" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListShipmentGatewayConfig" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="EditShipmentGatewayConfig">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleUpdateShipmentGatewayConfig"/>
                <set field="activeSubMenuItem" value="shipmentGatewayConfigTab"/> 
                
                <set field="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/>
                <entity-one entity-name="ShipmentGatewayConfig" value-field="shipmentGatewayConfig"/>
                <entity-one entity-name="ShipmentGatewayDhl" value-field="shipmentGatewayDhl">
                    <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/>
                </entity-one>
                <entity-one entity-name="ShipmentGatewayFedex" value-field="shipmentGatewayFedex">
                    <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/>
                </entity-one>
                <entity-one entity-name="ShipmentGatewayUsps" value-field="shipmentGatewayUsps">
                    <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/>
                </entity-one>
                <entity-one entity-name="ShipmentGatewayUps" value-field="shipmentGatewayUps">
                    <field-map field-name="shipmentGatewayConfigId" from-field="parameters.shipmentGatewayConfigId"/>
                </entity-one>
            </actions>
            <widgets>
                <decorator-screen name="GenericShipmentGatewayConfigDecorator">
                    <decorator-section name="body">
                        <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfig}">
                            <include-form name="EditShipmentGatewayConfig" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                        </screenlet>
                        <section>
                            <condition>
                                <not><if-empty field="shipmentGatewayDhl"/></not>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigDhl}">
                                    <include-form name="EditShipmentGatewayConfigDhl" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                                </screenlet>
                            </widgets>
                        </section>
                        <section>
                            <condition>
                                <not><if-empty field="shipmentGatewayFedex"/></not>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigFedex}">
                                    <include-form name="EditShipmentGatewayConfigFedex" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                                </screenlet>
                            </widgets>
                        </section>
                        <section>
                            <condition>
                                <not><if-empty field="shipmentGatewayUps"/></not>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigUps}">
                                    <include-form name="EditShipmentGatewayConfigUps" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                                </screenlet>
                            </widgets>
                        </section>
                        <section>
                            <condition>
                                <not><if-empty field="shipmentGatewayUsps"/></not>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.PageTitleUpdateShipmentGatewayConfigUsps}">
                                    <include-form name="EditShipmentGatewayConfigUsps" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                                </screenlet>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="FindShipmentGatewayConfigTypes">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindShipmentGatewayConfigTypes"/>
                <set field="activeSubMenuItem" value="shipmentGatewayConfigTypesTab"/> 
                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
                <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="GenericShipmentGatewayConfigDecorator">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="search-options">
                                <include-form name="FindShipmentGatewayConfigTypes" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListShipmentGatewayConfigTypes" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="EditShipmentGatewayConfigType">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleUpdateShipmentGatewayConfigType"/>
                <set field="activeSubMenuItem" value="shipmentGatewayConfigTypesTab"/> 
                
                <set field="shipmentGatewayConfTypeId" from-field="parameters.shipmentGatewayConfTypeId"/>
                <entity-one entity-name="ShipmentGatewayConfigType" value-field="shipmentGatewayConfigType"/>
            </actions>
            <widgets>
                <decorator-screen name="GenericShipmentGatewayConfigDecorator">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditShipmentGatewayConfigType" location="component://product//widget/facility/ShipmentGatewayConfigForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>