show communications of the party of the opportunity the same organization as the opportunity itself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172990 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -299,6 +299,8 @@ under the License.
|
||||
<view-map name="LookupLeads" type="screen" page="component://marketing/widget/sfa/LookupScreens.xml#LookupLeads"/>
|
||||
<view-map name="LookupAccounts" type="screen" page="component://marketing/widget/sfa/LookupScreens.xml#LookupAccounts"/>
|
||||
<view-map name="LookupAccountLeads" type="screen" page="component://marketing/widget/sfa/LookupScreens.xml#LookupAccountLeads"/>
|
||||
|
||||
<view-map name="ListPartyCommEvents" type="screen" page="component://marketing/widget/sfa/OpportunityScreens.xml#OpportunityCommEvent"/>
|
||||
|
||||
<!-- end of view mappings -->
|
||||
</site-conf>
|
||||
|
||||
@@ -117,4 +117,45 @@ under the License.
|
||||
</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 list="contacts" entity-name="PartyRelationship" 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 location="component://party/widget/partymgr/PartyMenus.xml" name="CommEventTabBar"/>
|
||||
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="CommSubTabBar"/>
|
||||
<screenlet title="${uiLabelMap.PageTitleListCommunications} ${partyId}">
|
||||
<include-form location="component://party/widget/partymgr/CommunicationEventForms.xml" name="ListCommEvents"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
|
||||
@@ -46,6 +46,16 @@ under the License.
|
||||
</link>
|
||||
</menu-item>
|
||||
<menu-item name="PartyCommEvents" title="${uiLabelMap.PartyCommunications}">
|
||||
<condition>
|
||||
<and>
|
||||
<not><if-empty field="parameters.salesOpportunityId"/></not>
|
||||
<or>
|
||||
<not><if-empty field="leadPartyId"/></not>
|
||||
<not><if-empty field="leadParty.leadPartyId"/></not>
|
||||
<not><if-empty field="partyId"/></not>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<link target="ListPartyCommEvents">
|
||||
<parameter param-name="salesOpportunityId" from-field="parameters.salesOpportunityId"/>
|
||||
</link>
|
||||
|
||||
Reference in New Issue
Block a user