| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| <screen name="WorkEffortSummary"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleWorkEffortRelatedSummary"/> |
| <set field="tabButtonItem" 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"> |
| <label text="${uiLabelMap.CommonName} " style="label"/><label text="${workEffort.workEffortName}"/> |
| <label text="${uiLabelMap.CommonType} " style="label"/><label text="${workEffortType.description}"/> |
| <label text="${uiLabelMap.CommonPurpose} " style="label"/><label text="${workEffortPurposeType.description}"/> |
| <label text="${uiLabelMap.CommonStatus} " style="label"/><label text="${currentStatusItem.description}"/> |
| </container> |
| <container style="screenlet-body"> |
| <label text="${uiLabelMap.WorkEffortPercentComplete} " style="label"/><label text="${workEffort.percentComplete}"/> |
| <label text="${uiLabelMap.CommonPriority} " style="label"/><label text="${workEffort.priority}"/> |
| <label text="${uiLabelMap.WorkEffortEstimatedStartDate} " style="label"/><label text="${workEffort.estimatedStartDate}"/> |
| <label text="${uiLabelMap.WorkEffortEstimatedCompletionDate} " style="label"/><label text="${workEffort.estimatedCompletionDate}"/> |
| </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 name="DisplayWorkEffortPartyAssigns" location="component://workeffort/widget/WorkEffortForms.xml"/> |
| </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 name="DisplayWorkEffortFixedAssetAssigns" location="component://workeffort/widget/WorkEffortForms.xml"/> |
| </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="buttontext"> |
| <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="buttontext"> |
| <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="buttontext"> |
| <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="buttontext"> |
| <parameter param-name="orderId" from-field="orderHeader.orderId"/> |
| </link> |
| <label text="${uiLabelMap.CommonType} " style="label"/><label text="${orderHeader.orderTypeDescription}"/> |
| <label text="${uiLabelMap.CommonStatus} " style="label"/><label text="${orderHeader.statusItemDescription}"/> |
| <label text="${uiLabelMap.CommonTotal} " style="label"/><label text="${orderHeader.grandTotal}"/> |
| <label text="${uiLabelMap.CommonDate} " style="label"/><label text="${orderHeader.orderDate}"/> |
| </container> |
| </widgets> |
| </section> |
| </iterate-section> |
| </container> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |