ilscipio/scipio-erp

View on GitHub
applications/workeffort/widget/WorkEffortRelatedSummaryScreens.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="WorkEffortSummary">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleWorkEffortRelatedSummary"/>
                <set field="activeSubMenuItem" value="WorkEffortRelatedSummary"/>
                <set field="labelTitleProperty" value="PageTitleWorkEffortRelatedSummary"/>

                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <get-related-one value-field="workEffort" relation-name="WorkEffortType" to-value-field="workEffortType"/>
                <get-related-one value-field="workEffort" relation-name="CurrentStatusItem" to-value-field="currentStatusItem"/>
                <get-related-one value-field="workEffort" relation-name="WorkEffortPurposeType" to-value-field="workEffortPurposeType"/>
                <get-related-one value-field="workEffort" relation-name="ScopeEnumeration" to-value-field="scopeEnumeration"/>

                <entity-and entity-name="WorkEffortPartyAssignView" list="partyAssignments">
                    <field-map field-name="workEffortId"/>
                </entity-and>
                <entity-and entity-name="WorkEffortAndFixedAssetAssign" list="fixedAssetAssignments" filter-by-date="true">
                    <field-map field-name="workEffortId"/>
                </entity-and>
                <entity-and entity-name="WorkEffortCommunicationEventView" list="commEvents">
                    <field-map field-name="workEffortId"/>
                </entity-and>
                <entity-and entity-name="WorkEffortShoppingListView" list="shoppingLists">
                    <field-map field-name="workEffortId"/>
                </entity-and>
                <entity-and entity-name="WorkEffortQuoteView" list="quotes">
                    <field-map field-name="workEffortId"/>
                </entity-and>
                <entity-and entity-name="WorkEffortOrderHeaderView" list="orderHeaders">
                    <field-map field-name="workEffortId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="screenlet-body">
                            <container><label text="${uiLabelMap.CommonName}: " style="span"/><label text="${workEffort.workEffortName}" style="span"/></container>
                            <container><label text="${uiLabelMap.CommonType}: " style="span"/><label text="${workEffortType.description}" style="span"/></container>
                            <container><label text="${uiLabelMap.CommonPurpose}: " style="span"/><label text="${workEffortPurposeType.description}" style="span"/></container>
                            <container><label text="${uiLabelMap.CommonStatus}: " style="span"/><label text="${currentStatusItem.description}" style="span"/></container>
                        </container>
                        <container style="screenlet-body">
                            <container><label text="${uiLabelMap.WorkEffortPercentComplete}: " style="span"/><label text="${workEffort.percentComplete}" style="span"/></container>
                            <container><label text="${uiLabelMap.CommonPriority}: " style="span"/><label text="${workEffort.priority}" style="span"/></container>
                            <container><label text="${uiLabelMap.WorkEffortEstimatedStartDate}: " style="span"/><label text="${workEffort.estimatedStartDate}" style="span"/></container>
                            <container><label text="${uiLabelMap.WorkEffortEstimatedCompletionDate}: " style="span"/><label text="${workEffort.estimatedCompletionDate}" style="span"/></container>
                        </container>
                        <section>
                            <condition><not><if-empty field="partyAssignments"/></not></condition>
                            <widgets>
                                <horizontal-separator/>
                                <container style="h2">
                                    <label text="${uiLabelMap.PageTitleListWorkEffortPartyAssigns}"/>
                                </container>
                                <container style="screenlet-body">
                                    <include-form location="component://workeffort/widget/WorkEffortForms.xml" name="DisplayWorkEffortPartyAssigns"/>
                                </container>
                            </widgets>
                        </section>
                        <section>
                            <condition><not><if-empty field="fixedAssetAssignments"/></not></condition>
                            <widgets>
                                <horizontal-separator/>
                                <container style="h2">
                                    <label text="${uiLabelMap.PageTitleListWorkEffortFixedAssetAssigns}"/>
                                </container>
                                <container style="screenlet-body">
                                    <include-form location="component://workeffort/widget/WorkEffortForms.xml" name="DisplayWorkEffortFixedAssetAssigns"/>
                                </container>
                            </widgets>
                        </section>
                        <section>
                            <condition><not><if-empty field="commEvents"/></not></condition>
                            <widgets>
                                <horizontal-separator/>
                                <container style="h2">
                                    <label text="${uiLabelMap.WorkEffortCommEvents}"/>
                                </container>
                                <container style="screenlet-body">
                                    <iterate-section list="commEvents" entry="commEvent">
                                        <section>
                                            <widgets>
                                                <container>
                                                    <link target="/partymgr/control/EditCommunicationEvent" url-mode="inter-app" text="${commEvent.communicationEventId}" style="${styles.link_nav_info_id}">
                                                        <parameter param-name="communicationEventId" from-field="commEvent.communicationEventId"/>
                                                    </link>
                                                    <label text="${commEvent.subject}"/>
                                                </container>
                                            </widgets>
                                        </section>
                                    </iterate-section>
                                </container>
                            </widgets>
                        </section>
                        <section>
                            <condition><not><if-empty field="shoppingLists"/></not></condition>
                            <widgets>
                                <horizontal-separator/>
                                <container style="h2">
                                    <label text="${uiLabelMap.WorkEffortShopLists}"/>
                                </container>
                                <container style="screenlet-body">
                                    <iterate-section list="shoppingLists" entry="shopList">
                                        <section>
                                            <widgets>
                                                <container>
                                                    <link target="/partymgr/control/editShoppingList" url-mode="inter-app" text="${shopList.shoppingListId}" style="${styles.link_nav_info_id}">
                                                        <parameter param-name="shoppingListId" from-field="shopList.shoppingListId"/>
                                                    </link>
                                                    <label text="${shopList.listName} ${shopList.description}"/>
                                                </container>
                                            </widgets>
                                        </section>
                                    </iterate-section>
                                </container>
                            </widgets>
                        </section>
                        <section>
                            <condition><not><if-empty field="quotes"/></not></condition>
                            <widgets>
                                <horizontal-separator/>
                                <container style="h2">
                                    <label text="${uiLabelMap.WorkEffortQuotes}"/>
                                </container>
                                <container style="screenlet-body">
                                    <iterate-section list="quotes" entry="quote">
                                        <section>
                                            <widgets>
                                                <container>
                                                    <link target="/ordermgr/control/EditQuote" url-mode="inter-app" text="${quote.quoteId}" style="${styles.link_nav_info_id}">
                                                        <parameter param-name="quoteId" from-field="quote.quoteId"/>
                                                    </link>
                                                    <label text="${quote.quoteName} ${quote.description}"/>
                                                </container>
                                            </widgets>
                                        </section>
                                    </iterate-section>
                                </container>
                            </widgets>
                        </section>
                        <section>
                            <condition><not><if-empty field="quotes"/></not></condition>
                            <widgets>
                                <horizontal-separator/>
                                <container style="h2">
                                    <label text="${uiLabelMap.WorkEffortOrderHeaders}"/>
                                </container>
                                <container style="screenlet-body">
                                    <iterate-section list="orderHeaders" entry="orderHeader">
                                        <section>
                                            <widgets>
                                                <container>
                                                    <link target="/ordermgr/control/orderview" url-mode="inter-app" text="${orderHeader.orderId}" style="${styles.link_nav_info_id}">
                                                        <parameter param-name="orderId" from-field="orderHeader.orderId"/>
                                                    </link>
                                                    <container><label text="${uiLabelMap.CommonType}: " style="span"/><label text="${orderHeader.orderTypeDescription}" style="span"/></container>
                                                    <container><label text="${uiLabelMap.CommonStatus}: " style="span"/><label text="${orderHeader.statusItemDescription}" style="span"/></container>
                                                    <container><label text="${uiLabelMap.CommonTotal}: " style="span"/><label text="${orderHeader.grandTotal}" style="span"/></container>
                                                    <container><label text="${uiLabelMap.CommonDate}: " style="span"/><label text="${orderHeader.orderDate}" style="span"/></container>
                                                </container>
                                            </widgets>
                                        </section>
                                    </iterate-section>
                                </container>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>