Author: hansbak
Date: Sun Dec 16 01:41:11 2007 New Revision: 604587 URL: http://svn.apache.org/viewvc?rev=604587&view=rev Log: added deletePartyToWorkEffortAssignment service to set automatically the thrudate Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml ofbiz/trunk/applications/workeffort/servicedef/services.xml Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=604587&r1=604586&r2=604587&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original) +++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Sun Dec 16 01:41:11 2007 @@ -261,6 +261,12 @@ </if-compare-field> <store-value value-name="workEffortPartyAssignment"/> </simple-method> + <simple-method method-name="deletePartyToWorkEffortAssignment" short-description="Update WorkEffortPartyAssignment entity"> + <set-service-fields service-name="updatePartyToWorkEffortAssignment" map-name="parameters" to-map-name="del"/> + <now-date-to-env env-name="del.thruDate"/> + <log level="always" message="==========${del}"></log> + <call-service service-name="updatePartyToWorkEffortAssignment" in-map-name="del"/> + </simple-method> <simple-method method-name="unassignPartyFromWorkEffort" short-description="Service that deletes a WorkEffortPartyAssignment entity"> <entity-one entity-name="WorkEffortPartyAssignment" value-name="workEffortPartyAssignment"/> <remove-value value-name="workEffortPartyAssignment"/> Modified: ofbiz/trunk/applications/workeffort/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services.xml?rev=604587&r1=604586&r2=604587&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/servicedef/services.xml (original) +++ ofbiz/trunk/applications/workeffort/servicedef/services.xml Sun Dec 16 01:41:11 2007 @@ -100,13 +100,19 @@ <override name="statusId" optional="false"/> </service> <service name="updatePartyToWorkEffortAssignment" default-entity-name="WorkEffortPartyAssignment" engine="simple" - location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updatePartyToWorkEffortAssignment"> + location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updatePartyToWorkEffortAssignment"> <description>Update a WorkEffortPartyAssignment Entity</description> <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/> <auto-attributes mode="IN" include="pk" optional="false"/> <auto-attributes mode="IN" include="nonpk" optional="true"> <exclude field-name="statusDateTime"/> </auto-attributes> + </service> + <service name="deletePartyToWorkEffortAssignment" default-entity-name="WorkEffortPartyAssignment" engine="simple" + location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deletePartyToWorkEffortAssignment"> + <description>delete/set the thrudate on the WorkEffortPartyAssignment Entity to today</description> + <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/> + <auto-attributes mode="IN" include="pk" optional="false"/> </service> <service name="unassignPartyFromWorkEffort" default-entity-name="WorkEffortPartyAssignment" engine="simple" location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="unassignPartyFromWorkEffort"> |
Free forum by Nabble | Edit this page |