(OFBIZ-9229) Refactoring various list forms into grids Refactoring various list form references in screen widgets This was reverted and is now back with bugs fixed Thanks: Pierre Smits git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787184 13f79535-47bb-0310-9956-ffa450edef68
79 lines
4.1 KiB
XML
79 lines
4.1 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"
|
|
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<grid name="ListCostComponentCalc" 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" paginate-target="EditCostCalcs">
|
|
<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"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="offsettingGlAccountTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="updateCostComponentCalc" title="${uiLabelMap.CommonUpdate}"><submit/></field>
|
|
<field name="costCustomMethodId"><display-entity entity-name="CustomMethod" key-field-name="customMethodId"/></field>
|
|
<field name="deleteCostComponentCalc" title=" " widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.CommonDelete}" target="deleteCostComponentCalc" also-hidden="false">
|
|
<parameter param-name="costComponentCalcId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</grid>
|
|
|
|
<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"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="offsettingGlAccountTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
|
|
<drop-down allow-empty="false" no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
|
|
<entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom">
|
|
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="costCustomMethodId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="CustomMethod" key-field-name="customMethodId">
|
|
<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>
|