svn commit: r981865 - /ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml

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

svn commit: r981865 - /ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml

jacopoc
Author: jacopoc
Date: Tue Aug  3 13:27:18 2010
New Revision: 981865

URL: http://svn.apache.org/viewvc?rev=981865&view=rev
Log:
Simlified service definitions for CRUD operations on the TechDataCalendarWeek entity: this also fix the calendar week editor that was broken.


Modified:
    ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml

Modified: ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml?rev=981865&r1=981864&r2=981865&view=diff
==============================================================================
--- ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml (original)
+++ ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml Tue Aug  3 13:27:18 2010
@@ -44,50 +44,22 @@ under the License.
         <attribute name="calendarId" type="String" mode="IN" optional="false"/>
     </service>
 
-    <service name="createCalendarWeek" engine="simple"
+    <service name="createCalendarWeek" engine="simple" default-entity-name="TechDataCalendarWeek"
             location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml" invoke="createCalendarWeek">
         <description>Create a Calendar Week</description>
-        <attribute name="calendarWeekId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="mondayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="mondayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="tuesdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="tuesdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="wednesdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="wednesdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="thursdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="thursdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="fridayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="fridayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="saturdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="saturdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="sundayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="sundayCapacity" type="BigDecimal" mode="IN" optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateCalendarWeek" engine="simple"
+    <service name="updateCalendarWeek" engine="simple" default-entity-name="TechDataCalendarWeek"
             location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml" invoke="updateCalendarWeek">
         <description>Update a Calendar Week</description>
-        <attribute name="calendarWeekId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="mondayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="mondayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="tuesdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="tuesdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="wednesdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="wednesdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="thursdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="thursdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="fridayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="fridayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="saturdayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="saturdayCapacity" type="BigDecimal" mode="IN" optional="true"/>
-        <attribute name="sundayStartTime" type="java.sql.Time" mode="IN" optional="true"/>
-        <attribute name="sundayCapacity" type="BigDecimal" mode="IN" optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeCalendarWeek" engine="simple"
+    <service name="removeCalendarWeek" engine="simple" default-entity-name="TechDataCalendarWeek"
             location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml" invoke="removeCalendarWeek">
         <description>Remove a Calendar Week</description>
-        <attribute name="calendarWeekId" type="String" mode="IN" optional="false"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
     <service name="createCalendarExceptionDay" engine="simple"