Container to Screenlet conversion for Accounting component. For now followed the CamelCase pattern starting with the First letter as capital one. Thanks Awdesh Singh Parihar for your patch and Ratnesh Upadhyay for your Support. Special thanks to Vikas Mayur and Adrian Crum for their useful comments. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@666968 13f79535-47bb-0310-9956-ffa450edef68
75 lines
4.2 KiB
XML
75 lines
4.2 KiB
XML
<?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.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<form name="ListCostComponentCalc" type="list" list-name="allCostComponentCalcs" use-row-submit="true" target="updateCostComponentCalc"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<auto-fields-entity entity-name="CostComponentCalc" default-field-type="display"/>
|
|
<field name="costComponentCalcId" widget-style="buttontext"></field>
|
|
<field name="costGlAccountTypeId">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="offsettingGlAccountTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="updateCostComponentCalc" title="${uiLabelMap.CommonUpdate}"><submit/></field>
|
|
<field name="costCustomMethodId"><display-entity entity-name="CustomMethod" key-field-name="customMethodId" description="${description}"/></field>
|
|
<field name="deleteCostComponentCalc" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink target="deleteCostComponentCalc?costComponentCalcId=${costComponentCalcId}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
|
|
</field>
|
|
</form>
|
|
<form name="AddCostComponentCalc" type="single" target="createCostComponentCalc"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createCostComponentCalc"/>
|
|
<field name="costGlAccountTypeId">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="offsettingGlAccountTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId" description="${description}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
|
|
<drop-down allow-empty="false" no-current-selected-key="${defaultCurrencyUomId}">
|
|
<entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
|
|
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
|
|
<entity-order-by field-name="abbreviation"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="costCustomMethodId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="CustomMethod" key-field-name="customMethodId" description="${description}">
|
|
<entity-constraint name="customMethodTypeId" operator="equals" value="COST_FORMULA"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit">
|
|
<submit button-type="button"/>
|
|
</field>
|
|
</form>
|
|
</forms> |