| <?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="FindSalesOpportunity"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="SfaFindOpportunities"/> |
| <set field="headerItem" value="Opportunities"/> |
| <set field="helpAnchor" value="_sfa_salesopportunity_findlist_screen"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="left-column"> |
| <include-screen name="leftbar" location="component://marketing/widget/sfa/CommonScreens.xml"/> |
| </decorator-section> |
| <decorator-section name="body"> |
| <container style="no-clear"> |
| <screenlet title="${uiLabelMap.SfaFindOpportunities}"> |
| <container><link target="EditSalesOpportunity" text="${uiLabelMap.CommonCreate}" style="buttontext"/></container> |
| <include-form name="FindSalesOpportunity" location="component://marketing/widget/sfa/forms/OpportunityForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.SfaFindResults}"> |
| <include-form name="ListSalesOpportunity" location="component://marketing/widget/sfa/forms/OpportunityForms.xml"/> |
| </screenlet> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditSalesOpportunity"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="SfaEditOpportunity"/> |
| <set field="tabButtonItem" value="EditSalesOpportunity"/> |
| <set field="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <entity-one entity-name="SalesOpportunity" value-field="salesOpportunity"/> |
| <service service-name="findPartyInSalesOpportunityRole" result-map="accountPartyResult"> |
| <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <field-map field-name="roleTypeId" value="ACCOUNT"/> |
| </service> |
| <service service-name="findPartyInSalesOpportunityRole" result-map="leadPartyResult"> |
| <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <field-map field-name="roleTypeId" value="LEAD"/> |
| </service> |
| <set field="leadPartyId" from-field="leadPartyResult.partyId"/> |
| <entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/> |
| <entity-and entity-name="PartyRelationshipAndDetail" list="partyAccount"> |
| <field-map field-name="partyIdTo" from-field="communicationEvent.partyIdFrom"/> |
| <field-map field-name="roleTypeIdFrom" value="ACCOUNT"/> |
| <field-map field-name="roleTypeIdTo" value="CONTACT"/> |
| </entity-and> |
| <set field="accountPartyId" from-field="accountPartyResult.partyId" default-value="${partyAccount[0].partyIdFrom}"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonOpportunityDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <container style="no-clear"> |
| <screenlet title="${uiLabelMap.SfaEditOpportunity}"> |
| <include-form name="EditSalesOpportunity" location="component://marketing/widget/sfa/forms/OpportunityForms.xml"/> |
| </screenlet> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="ViewSalesOpportunity"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="SfaOpportunityInfo"/> |
| <set field="tabButtonItem" value="ViewSalesOpportunity"/> |
| <set field="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <entity-one entity-name="SalesOpportunity" value-field="salesOpportunity"/> |
| <service service-name="findPartyInSalesOpportunityRole" result-map="accountPartyResult"> |
| <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <field-map field-name="roleTypeId" value="ACCOUNT"/> |
| </service> |
| <set field="accountParty.accountPartyId" from-field="accountPartyResult.partyId"/> |
| <service service-name="findPartyInSalesOpportunityRole" result-map="leadPartyResult"> |
| <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <field-map field-name="roleTypeId" value="LEAD"/> |
| </service> |
| <set field="leadParty.leadPartyId" from-field="leadPartyResult.partyId"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonOpportunityDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <container style="no-clear"> |
| <screenlet title="${uiLabelMap.SfaOpportunityInfo}"> |
| <include-form name="ViewSalesOpportunity" location="component://marketing/widget/sfa/forms/OpportunityForms.xml"/> |
| </screenlet> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="OpportunityCommEvent"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleListCommunications"/> |
| <set field="tabButtonItem" value="PartyCommEvents"/> |
| <set field="subTabButtonItem" value="CommunicationEvent"/> |
| <set field="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <service service-name="findPartyInSalesOpportunityRole" result-map="leadPartyResult"> |
| <field-map field-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/> |
| <field-map field-name="roleTypeId" value="LEAD"/> |
| </service> |
| <set field="partyId" from-field="leadPartyResult.partyId" default-value="${parameters.partyId}"/> |
| <entity-and entity-name="Party" list="partyperson"> |
| <field-map field-name="partyId" from-field="partyId"/> |
| <field-map field-name="partyTypeId" value="PERSON"/> |
| </entity-and> |
| <entity-condition entity-name="CommunicationEventAndRole" list="commEvents"> |
| <condition-expr field-name="partyId" operator="equals" value="${partyId}"/> |
| <order-by field-name="-entryDate"/> |
| </entity-condition> |
| <entity-and entity-name="PartyRelationship" list="contacts" filter-by-date="true"> |
| <field-map field-name="partyIdFrom" from-field="partyId"/> |
| <field-map field-name="roleTypeIdFrom" value="ACCOUNT"/> |
| <field-map field-name="roleTypeIdTo" value="CONTACT"/> |
| <order-by field-name="partyIdTo"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonOpportunityDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <include-menu name="CommEventTabBar" location="${parameters.communicationMenuLocation}"/> |
| <include-menu name="CommSubTabBar" location="${parameters.communicationMenuLocation}"/> |
| <screenlet title="${uiLabelMap.PageTitleListCommunications} ${partyId}"> |
| <include-form name="ListCommEvents" location="component://party/widget/partymgr/CommunicationEventForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |