Author: hansbak
Date: Fri Jul 17 06:59:33 2009 New Revision: 794988 URL: http://svn.apache.org/viewvc?rev=794988&view=rev Log: make the contactlist email display properly as a communicatin event Modified: ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml Modified: ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml?rev=794988&r1=794987&r2=794988&view=diff ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml Fri Jul 17 06:59:33 2009 @@ -273,6 +273,11 @@ <form name="ViewCommEvent" type="single" default-map-name="communicationEvent" header-row-style="header-row" default-table-style="basic-table"> <field name="communicationEventId"><display/></field> + <field name="contactListId" use-when="contactListId!=null"> + <display-entity entity-name="ContactList" description="${contactListName}"> + <sub-hyperlink target="/marketing/control/EditContactList?contactListId=${communicationEvent.contactListId}" description="[${communicationEvent.contactListId}]" target-type="inter-app"/> + </display-entity> + </field> <field name="partyIdFrom" use-when=""my"==void" title="${uiLabelMap.PartyPartyFrom}"> <display-entity entity-name="PartyNameView" key-field-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName}"> <sub-hyperlink target="viewprofile" description="[${partyIdFrom}]"> @@ -305,6 +310,7 @@ <sort-order> <field-group collapsible="false" initially-collapsed="false"> <sort-field name="communicationEventId"/> + <sort-field name="contactListId"/> <sort-field name="partyIdFrom"/> <sort-field name="partyIdTo"/> <sort-field name="statusId"/> Modified: ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml?rev=794988&r1=794987&r2=794988&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml Fri Jul 17 06:59:33 2009 @@ -214,13 +214,31 @@ </container> <container style="righthalf"> <label style="h1" text="${uiLabelMap.CommonRelatedInformation}"/> - <screenlet title="${uiLabelMap.PartyCommEventRoles}"> - <include-form name="ViewCommRoles" - location="component://party/webapp/partymgr/communication/CommForms.xml"/> - </screenlet> + <section> + <condition> + <if-empty field="communicationEvent.contactListId"/> + </condition> + <widgets> + <screenlet title="${uiLabelMap.PartyCommEventRoles}"> + <include-form name="ViewCommRoles" location="component://party/webapp/partymgr/communication/CommForms.xml"/> + </screenlet> + </widgets> + <fail-widgets> + <section> + <actions> + <set field="entityName" value="ContactListCommStatus"/> + <set field="requestParameters.communicationEventId" from-field="parameters.communicationEventId"/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.MarketingContactListCommStatus}"> + <include-form name="ListContactListCommStatuses" location="component://marketing/webapp/marketing/contact/ContactListForms.xml"/> + </screenlet> + </widgets> + </section> + </fail-widgets> + </section> <screenlet title="${uiLabelMap.PartyCommContent}"> - <include-form name="listCommContent" - location="component://party/webapp/partymgr/communication/CommForms.xml"/> + <include-form name="listCommContent" location="component://party/webapp/partymgr/communication/CommForms.xml"/> </screenlet> <section> <actions> @@ -244,24 +262,10 @@ </actions> <widgets> <screenlet title="${uiLabelMap.OrderRequestList}"> - <include-form name="ListRequests" - location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + <include-form name="ListRequests" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> </screenlet> </widgets> </section> - <section> - <actions> - <set field="entityName" value="ContactListCommStatus"/> - <set field="requestParameters.communicationEventId" - from-field="parameters.communicationEventId"/> - </actions> - <widgets> - <screenlet title="${uiLabelMap.MarketingContactListCommStatus}"> - <include-form name="ListContactListCommStatuses" - location="component://marketing/webapp/marketing/contact/ContactListForms.xml"/> - </screenlet> - </widgets> - </section> </container> </widgets> </section> @@ -272,19 +276,19 @@ <screenlet title="${parent} ${uiLabelMap.PartyCommunicationEvent}"> <section> <condition> - <or><!-- have for e-mails a special form --> - <if-compare field="communicationEvent.communicationEventTypeId" - operator="equals" value="EMAIL_COMMUNICATION"/> - <if-compare field="communicationEvent.communicationEventTypeId" - operator="equals" value="AUTO_EMAIL_COMM"/> - </or> + <and> + <or><!-- have for e-mails a special form --> + <if-compare field="communicationEvent.communicationEventTypeId" operator="equals" value="EMAIL_COMMUNICATION"/> + <if-compare field="communicationEvent.communicationEventTypeId" operator="equals" value="AUTO_EMAIL_COMM"/> + </or> + <if-empty field="communicationEvent.contactListId"/> + </and> </condition> <widgets> <section> <condition> <or> - <if-compare field="communicationEvent.statusId" - operator="equals" value="COM_UNKNOWN_PARTY"/> + <if-compare field="communicationEvent.statusId" operator="equals" value="COM_UNKNOWN_PARTY"/> <if-empty field="communicationEvent.partyIdFrom"/> </or> </condition> @@ -296,17 +300,14 @@ <container> <label style="h2" text="${uiLabelMap.PartyEmailMessage}"/> </container> - <include-form name="allocateMsgToPartyForm" - location="component://party/webapp/partymgr/communication/CommForms.xml"/> + <include-form name="allocateMsgToPartyForm" location="component://party/webapp/partymgr/communication/CommForms.xml"/> </screenlet> </widgets> </section> - <include-form name="ViewEmail" - location="component://party/webapp/partymgr/communication/CommForms.xml"/> + <include-form name="ViewEmail" location="component://party/webapp/partymgr/communication/CommForms.xml"/> </widgets> <fail-widgets> - <include-form name="ViewCommEvent" - location="component://party/webapp/partymgr/communication/CommForms.xml"/> + <include-form name="ViewCommEvent" location="component://party/webapp/partymgr/communication/CommForms.xml"/> </fail-widgets> </section> </screenlet> |
Free forum by Nabble | Edit this page |