| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd"> |
| |
| <simple-method method-name="createCostComponentCalc" short-description="Create a CostComponentCalc entry"> |
| <make-value entity-name="CostComponentCalc" value-field="newEntity"/> |
| <sequenced-id sequence-name="CostComponentCalc" field="costComponentCalcId"/> |
| <set from-field="costComponentCalcId" field="newEntity.costComponentCalcId"/> |
| <field-to-result field="costComponentCalcId" result-name="costComponentCalcId"/> |
| <set-nonpk-fields map="parameters" value-field="newEntity"/> |
| <create-value value-field="newEntity"/> |
| </simple-method> |
| <simple-method method-name="updateCostComponentCalc" short-description="Update a CostComponentCalc entry"> |
| <entity-one entity-name="CostComponentCalc" value-field="costComponentCalc"/> |
| <set-nonpk-fields map="parameters" value-field="costComponentCalc"/> |
| <store-value value-field="costComponentCalc"/> |
| </simple-method> |
| <simple-method method-name="removeCostComponentCalc" short-description="Remove a CostComponentCalc entry"> |
| <entity-one entity-name="CostComponentCalc" value-field="costComponentCalc"/> |
| <remove-value value-field="costComponentCalc"/> |
| </simple-method> |
| <simple-method method-name="createWorkEffortCostCalc" short-description="Create a WorkEffortCostCalc entry"> |
| <make-value entity-name="WorkEffortCostCalc" value-field="newEntity"/> |
| <set-pk-fields map="parameters" value-field="newEntity"/> |
| <set-nonpk-fields map="parameters" value-field="newEntity"/> |
| <if-empty field="newEntity.fromDate"> |
| <now-timestamp field="newEntity.fromDate"/> |
| </if-empty> |
| <create-value value-field="newEntity"/> |
| </simple-method> |
| <simple-method method-name="removeWorkEffortCostCalc" short-description="Remove a WorkEffortCostCalc entry"> |
| <entity-one entity-name="WorkEffortCostCalc" value-field="workEffortCostCalc"/> |
| <remove-value value-field="workEffortCostCalc"/> |
| </simple-method> |
| </simple-methods> |