svn commit: r597011 - in /ofbiz/trunk/applications/workeffort/entitydef: entitygroup.xml entitymodel_view.xml

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

svn commit: r597011 - in /ofbiz/trunk/applications/workeffort/entitydef: entitygroup.xml entitymodel_view.xml

hansbak-2
Author: hansbak
Date: Wed Nov 21 01:46:55 2007
New Revision: 597011

URL: http://svn.apache.org/viewvc?rev=597011&view=rev
Log:
 add view to facilitate the party -> project -> phase -> task principle

Modified:
    ofbiz/trunk/applications/workeffort/entitydef/entitygroup.xml
    ofbiz/trunk/applications/workeffort/entitydef/entitymodel_view.xml

Modified: ofbiz/trunk/applications/workeffort/entitydef/entitygroup.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/entitydef/entitygroup.xml?rev=597011&r1=597010&r2=597011&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/entitydef/entitygroup.xml (original)
+++ ofbiz/trunk/applications/workeffort/entitydef/entitygroup.xml Wed Nov 21 01:46:55 2007
@@ -44,6 +44,7 @@
     <entity-group group="org.ofbiz" entity="WorkEffortAndFulfillment" />
     <entity-group group="org.ofbiz" entity="WorkEffortAndPartyAssign" />
     <entity-group group="org.ofbiz" entity="WorkEffortAndSalesOpportunity" />
+    <entity-group group="org.ofbiz" entity="WorkEffortParentPartyAndChild" />  
     <entity-group group="org.ofbiz" entity="WorkEffortAssoc" />
     <entity-group group="org.ofbiz" entity="WorkEffortAssocView" />
     <entity-group group="org.ofbiz" entity="WorkEffortAssocAttribute" />

Modified: ofbiz/trunk/applications/workeffort/entitydef/entitymodel_view.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/entitydef/entitymodel_view.xml?rev=597011&r1=597010&r2=597011&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/entitydef/entitymodel_view.xml (original)
+++ ofbiz/trunk/applications/workeffort/entitydef/entitymodel_view.xml Wed Nov 21 01:46:55 2007
@@ -352,7 +352,52 @@
         <key-map field-name="roleTypeId"/>
       </relation>
     </view-entity>
-    <view-entity entity-name="WorkEffortAndGoods" package-name="org.ofbiz.workeffort.workeffort"
+
+  <view-entity entity-name="WorkEffortParentPartyAndChild"
+    package-name="org.ofbiz.workeffort.workeffort"
+    title="WorkEffort for use in party -> project -> phase -> task">
+    <member-entity entity-alias="WEP" entity-name="WorkEffort"/>
+    <member-entity entity-alias="WEPA" entity-name="WorkEffortPartyAssignment"/>
+    <member-entity entity-alias="WE" entity-name="WorkEffort"/>
+    <alias-all entity-alias="WE"/>
+    <alias-all entity-alias="WEPA">
+      <exclude field="facilityId"/>
+    </alias-all>
+    <alias entity-alias="WEP" field="workEffortParentId" name="projectId"/>
+    <alias entity-alias="WEP" field="workEffortId" name="phaseId"/>
+    <alias entity-alias="WEP" field="workEffortName" name="phaseName"/>
+    <alias entity-alias="WEPA" name="partyAssignFacilityId" field="facilityId"/>
+    <view-link entity-alias="WEP" rel-entity-alias="WE">
+      <key-map field-name="workEffortId" rel-field-name="workEffortParentId"/>
+    </view-link>
+    <view-link entity-alias="WEP" rel-entity-alias="WEPA">
+      <key-map field-name="workEffortParentId" rel-field-name="workEffortId"/>
+    </view-link>
+    <relation type="one-nofk" rel-entity-name="WorkEffort">
+      <key-map field-name="workEffortId"/>
+    </relation>
+    <relation type="one-nofk" rel-entity-name="WorkEffortPartyAssignment">
+      <key-map field-name="workEffortId"/>
+      <key-map field-name="partyId"/>
+      <key-map field-name="roleTypeId"/>
+      <key-map field-name="fromDate"/>
+    </relation>
+    <relation type="one-nofk" rel-entity-name="Party">
+      <key-map field-name="partyId"/>
+    </relation>
+    <relation type="one-nofk" rel-entity-name="Person">
+      <key-map field-name="partyId"/>
+    </relation>
+    <relation type="one-nofk" rel-entity-name="PartyRole">
+      <key-map field-name="partyId"/>
+      <key-map field-name="roleTypeId"/>
+    </relation>
+    <relation type="one-nofk" rel-entity-name="RoleType">
+      <key-map field-name="roleTypeId"/>
+    </relation>
+  </view-entity>
+  
+  <view-entity entity-name="WorkEffortAndGoods" package-name="org.ofbiz.workeffort.workeffort"
         title="WorkEffort and related WorkEffortGoodStandard">
       <description>WorkEffort and its WorkEffortGoodStandard</description>
       <member-entity entity-alias="WE" entity-name="WorkEffort"></member-entity>