BTW I think that a better use of decorators is needed in SFA. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829498 13f79535-47bb-0310-9956-ffa450edef68
117 lines
6.5 KiB
XML
117 lines
6.5 KiB
XML
<?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"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<screen name="FindSalesOpportunity">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="SfaFindOpportunities"/>
|
|
<set field="headerItem" value="Opportunities"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="no-clear">
|
|
<screenlet title="${uiLabelMap.SfaFindOpportunities}">
|
|
<container><link target="EditSalesOpportunity" text="${uiLabelMap.CommonCreateNew}" 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>
|
|
</screens> |