svn commit: r672481 - in /ofbiz/trunk/applications/party: entitydef/entitygroup.xml entitydef/entitymodel.xml webapp/partymgr/communication/CommForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r672481 - in /ofbiz/trunk/applications/party: entitydef/entitygroup.xml entitydef/entitymodel.xml webapp/partymgr/communication/CommForms.xml

hansbak-2
Author: hansbak
Date: Sat Jun 28 02:08:17 2008
New Revision: 672481

URL: http://svn.apache.org/viewvc?rev=672481&view=rev
Log:
be able to send an internal note to users which login regularly

Modified:
    ofbiz/trunk/applications/party/entitydef/entitygroup.xml
    ofbiz/trunk/applications/party/entitydef/entitymodel.xml
    ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml

Modified: ofbiz/trunk/applications/party/entitydef/entitygroup.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitygroup.xml?rev=672481&r1=672480&r2=672481&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/entitydef/entitygroup.xml (original)
+++ ofbiz/trunk/applications/party/entitydef/entitygroup.xml Sat Jun 28 02:08:17 2008
@@ -130,6 +130,7 @@
     <entity-group group="org.ofbiz" entity="PartyNameContactMechView" />
     <entity-group group="org.ofbiz" entity="PartyNameHistory" />
     <entity-group group="org.ofbiz" entity="PartyNameView" />
+    <entity-group group="org.ofbiz" entity="PartyNameVisitView" />
     <entity-group group="org.ofbiz" entity="PartyNote" />
     <entity-group group="org.ofbiz" entity="PartyNoteView" />
     <entity-group group="org.ofbiz" entity="PartyProfileDefault" />

Modified: ofbiz/trunk/applications/party/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitymodel.xml?rev=672481&r1=672480&r2=672481&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/party/entitydef/entitymodel.xml Sat Jun 28 02:08:17 2008
@@ -1930,7 +1930,6 @@
     <member-entity entity-alias="PTYCM" entity-name="ContactMech"/>
     <alias entity-alias="PTY" name="partyId"/>
     <alias entity-alias="PTY" name="partyTypeId"/>
-    <alias entity-alias="PTY" name="description"/>
     <alias entity-alias="PER" name="firstName"/>
     <alias entity-alias="PER" name="middleName"/>
     <alias entity-alias="PER" name="lastName"/>
@@ -2006,7 +2005,40 @@
         <key-map field-name="partyId"/>
       </relation>
     </view-entity>
-    <entity entity-name="PartyNote"
+  <view-entity entity-name="PartyNameVisitView"
+    package-name="org.ofbiz.party.party"
+    title="Party Name visit View Entity">
+    <member-entity entity-alias="PTY" entity-name="Party"/>
+    <member-entity entity-alias="PER" entity-name="Person"/>
+    <member-entity entity-alias="PTYGRP" entity-name="PartyGroup"/>
+    <member-entity entity-alias="VISIT" entity-name="Visit"/>
+    <alias entity-alias="PTY" name="partyId"/>
+    <alias entity-alias="PTY" name="partyTypeId"/>
+    <alias entity-alias="PER" name="firstName"/>
+    <alias entity-alias="PER" name="middleName"/>
+    <alias entity-alias="PER" name="lastName"/>
+    <alias entity-alias="PER" name="firstNameLocal"/>
+    <alias entity-alias="PER" name="lastNameLocal"/>
+    <alias entity-alias="PER" name="personalTitle"/>
+    <alias entity-alias="PER" name="suffix"/>
+    <alias entity-alias="PTYGRP" name="groupName"/>
+    <alias entity-alias="PTYGRP" name="groupNameLocal"/>
+    <alias entity-alias="VISIT" name="webappName"/>
+    <alias entity-alias="VISIT" name="fromDate"/>
+    <view-link entity-alias="PTY" rel-entity-alias="PER" rel-optional="true">
+      <key-map field-name="partyId"/>
+    </view-link>
+    <view-link entity-alias="PTY" rel-entity-alias="PTYGRP" rel-optional="true">
+      <key-map field-name="partyId"/>
+    </view-link>
+    <view-link entity-alias="PTY" rel-entity-alias="VISIT" rel-optional="false">
+      <key-map field-name="partyId"/>
+    </view-link>
+    <relation type="one-nofk" rel-entity-name="Party">
+      <key-map field-name="partyId"/>
+    </relation>
+  </view-entity>
+  <entity entity-name="PartyNote"
             package-name="org.ofbiz.party.party"
             title="Party Note Entity">
       <field name="partyId" type="id-ne"></field>

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=672481&r1=672480&r2=672481&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml Sat Jun 28 02:08:17 2008
@@ -212,12 +212,17 @@
     </form>
     
     <form name="NewInternalNote" type="single" target="createCommunicationEvent" default-map-name="communicationEvent">
+        <actions>
+            <script location="component://mypage/script/recentVisitor.groovy"/>
+        </actions>
         <field name="communicationEventTypeId"><hidden value="COMMENT_NOTE"/></field>
         <field name="parentCommEventId"><hidden value="${parentCommEventId}"/></field>
         <field name="statusId"><hidden value="COM_ENTERED"/></field>
         <field name="partyIdFrom"><hidden value="${partyIdFrom}"/></field>
         <field name="partyIdTo" title="${uiLabelMap.PartyPartyTo}">
-            <lookup target-form-name="LookupPartyName"/>
+            <drop-down>
+                <list-options list-name="recentParties" key-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName}"/>
+            </drop-down>
         </field>
         <field name="subject"><text size="60"/></field>
         <field name="contentMimeTypeId"><hidden value="text/plain"/></field>