Author: hansbak
Date: Tue Jan 12 07:57:19 2010
New Revision: 898213

URL: http://svn.apache.org/viewvc?rev=898213&view=rev
Log:
add role information to selection and listing of communication events

Modified:
    ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml

Modified: 
ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml?rev=898213&r1=898212&r2=898213&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml 
(original)
+++ ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml 
Tue Jan 12 07:57:19 2010
@@ -350,7 +350,14 @@
         <!-- <field name="origCommEventId"><text-find/></field-->
         <field name="partyIdFrom" position="1" 
title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}"><lookup 
target-form-name="LookupPartyName"/></field>
         <field name="partyIdTo" position="2" 
title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonTo}"><lookup 
target-form-name="LookupPartyName"/></field>
-        <field name="partyId" position="2" title="${uiLabelMap.CommonPartyID} 
${uiLabelMap.PartyAnyRole}"><lookup target-form-name="LookupPartyName"/></field>
+        <field name="partyId" position="1" title="${uiLabelMap.CommonPartyID} 
${uiLabelMap.PartyAnyRole}"><lookup target-form-name="LookupPartyName"/></field>
+        <field name="roleTypeId" position="2">
+            <drop-down allow-empty="true">
+                <entity-options description="${description}" 
entity-name="RoleType">
+                    <entity-constraint name="parentTypeId" 
value="COMMEVENT_ROLE"/>
+                </entity-options>
+            </drop-down>
+        </field>
         <field name="communicationEventTypeId" position="1">
             <drop-down allow-empty="true">
                 <entity-options description="${description}" 
entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/>
@@ -408,21 +415,22 @@
             </hyperlink>
         </field>
         <field name="communicationEventTypeId" 
title="${uiLabelMap.CommonType}"><display-entity description="${description}" 
entity-name="CommunicationEventType" 
key-field-name="communicationEventTypeId"/></field>
-        <field name="partyIdFrom" title="${uiLabelMap.CommonPartyID} 
${uiLabelMap.CommonFrom}">
+        <field name="statusId">
+            <display-entity description="${description}" 
entity-name="StatusItem" key-field-name="statusId"/>
+        </field>
+        <field name="partyId" title="${uiLabelMap.CommonPartyID}">
             <display-entity description="${firstName} ${middleName} 
${lastName} ${groupName}" entity-name="PartyNameView" key-field-name="partyId">
                 <sub-hyperlink target="/partymgr/control/viewprofile" 
description="[${partyIdFrom}]" target-type="inter-app">
                     <parameter param-name="partyId" from-field="partyIdFrom"/>
                 </sub-hyperlink>
             </display-entity>
         </field>
-        <field name="partyIdTo" title="${uiLabelMap.CommonPartyID} 
${uiLabelMap.CommonTo}">
-            <display-entity description="${firstName} ${middleName} 
${lastName} ${groupName}" entity-name="PartyNameView" key-field-name="partyId">
-                <sub-hyperlink target="/partymgr/control/viewprofile" 
description="[${partyIdTo}]" target-type="inter-app">
-                    <parameter param-name="partyId" from-field="partyIdTo"/>
-                </sub-hyperlink>
-            </display-entity>
+        <field name="roleTypeId">
+            <display-entity description="${description}" 
entity-name="RoleType"/>
+        </field>
+        <field name="roleStatusId">
+            <display-entity description="${description}" 
entity-name="StatusItem" key-field-name="statusId"/>
         </field>
-        <field name="statusId"><display-entity description="${description}" 
entity-name="StatusItem" key-field-name="statusId"/></field>
         <field name="entryDate" title="${uiLabelMap.CommonCreated}"><display 
type="date"/></field>
         <field name="datetimeStarted" 
title="${uiLabelMap.CommonSend}"><display type="date"/></field>
     </form>


Reply via email to