Files
ofbiz-framework/applications/workeffort/widget/LookupForms.xml
T
Scott Gray 12566c26b9 Wherever possible changed ELI queries to limit the result set to the actual rows required of the query, should improve time
and memory performance if a cursor isn't being used on large result sets quite a bit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808820 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 08:58:10 +00:00

183 lines
11 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">
<!-- WorkEffort Lookup forms -->
<form name="lookupWorkEffort" target="LookupWorkEffort" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="WorkEffort" default-field-type="find"/>
<field name="workEffortId" title="${uiLabelMap.WorkEffortWorkEffortId}"><text-find/></field>
<field name="workEffortParentId"><text-find/></field>
<field name="workEffortName"><text-find/></field>
<field name="workEffortTypeId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="WorkEffortType" key-field-name="workEffortTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="workEffortPurposeTypeId" >
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="WorkEffortPurposeType" key-field-name="workEffortPurposeTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}">
<drop-down allow-empty="true">
<entity-options entity-name="StatusItem" key-field-name="statusId" description="[General] ${description}">
<entity-constraint name="statusTypeId" value="CALENDAR_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
<entity-options entity-name="StatusItem" key-field-name="statusId" description="[Task] ${description}">
<entity-constraint name="statusTypeId" value="TASK_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
<entity-options entity-name="StatusItem" key-field-name="statusId" description="[Event] ${description}">
<entity-constraint name="statusTypeId" value="EVENT_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="workEffortParentId"><lookup target-form-name="LookupWorkEffort"/></field>
<field name="facilityId"><lookup target-form-name="LookupFacility"/></field>
<field name="fixedAssetId"><lookup target-form-name="LookupFixedAsset"/></field>
<field name="scopeEnumId">
<drop-down allow-empty="true">
<entity-options entity-name="Enumeration" key-field-name="enumId" description="${description}">
<entity-constraint name="enumTypeId" value="WORK_EFF_SCOPE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="moneyUomId" title="${uiLabelMap.CommonCurrency}">
<drop-down allow-empty="true">
<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="workflowPackageId"><ignored/></field>
<field name="workflowPackageVersion"><ignored/></field>
<field name="workflowProcessId"><ignored/></field>
<field name="workflowProcessVersion"><ignored/></field>
<field name="workflowActivityId"><ignored/></field>
<field name="recurrenceInfoId"><ignored/></field>
<field name="runtimeDataId"><ignored/></field>
<field name="noteId"><ignored/></field>
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field>
</form>
<form name="lookupWorkEffortShort" target="LookupWorkEffortShort" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<field name="workEffortId" title="${uiLabelMap.WorkEffortWorkEffortId}"><text-find/></field>
<field name="workEffortParentId"><text-find/></field>
<field name="workEffortName"><text-find/></field>
<field name="workEffortTypeId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="WorkEffortType" key-field-name="workEffortTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="workEffortPurposeTypeId" >
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="WorkEffortPurposeType" key-field-name="workEffortPurposeTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}">
<drop-down allow-empty="true">
<entity-options entity-name="StatusItem" key-field-name="statusId" description="[General] ${description}">
<entity-constraint name="statusTypeId" value="CALENDAR_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
<entity-options entity-name="StatusItem" key-field-name="statusId" description="[Task] ${description}">
<entity-constraint name="statusTypeId" value="TASK_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
<entity-options entity-name="StatusItem" key-field-name="statusId" description="[Event] ${description}">
<entity-constraint name="statusTypeId" value="EVENT_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="workEffortParentId"><lookup target-form-name="LookupWorkEffort"/></field>
<field name="facilityId"><lookup target-form-name="LookupFacility"/></field>
<field name="fixedAssetId"><lookup target-form-name="LookupFixedAsset"/></field>
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field>
</form>
<form name="listLookupWorkEffort" list-name="listIt" target="" title="" type="list" paginate-target="LookupWorkEffort"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<service service-name="performFind" result-map="result" result-map-list="listIt">
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="WorkEffort"/>
<field-map field-name="orderBy" value="workEffortId"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="workEffortId" title="${uiLabelMap.WorkEffortWorkEffortId}" widget-style="buttontext">
<hyperlink also-hidden="false" target-type="plain" description="${workEffortId}" target="javascript:set_value('${workEffortId}')"/>
</field>
<field name="workEffortName"><display/></field>
<field name="workEffortTypeId"><display-entity entity-name="WorkEffortType"/></field>
<field name="contactMechTypeId"><display-entity entity-name="ContactMechType"/></field>
<field name="marketingCampaignId"><display-entity description="${campaignName}" entity-name="MarketingCampaign"/></field>
</form>
<!-- Timesheet Lookup forms -->
<form name="lookupTimesheet" target="LookupTimesheet" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="Timesheet" default-field-type="find"/>
<field name="timesheetId" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}"><text-find/></field>
<field name="partyId"><lookup target-form-name="LookupPartyName"/></field>
<field name="clientPartyId"><lookup target-form-name="LookupPartyName"/></field>
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field>
</form>
<form name="listLookupTimesheet" list-name="listIt" target="" title="" type="list" paginate-target="LookupPerson"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<service service-name="performFind" result-map="result" result-map-list="listIt">
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="Timesheet"/>
<field-map field-name="orderBy" value="timesheetId"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="timesheetId" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}" widget-style="buttontext">
<hyperlink also-hidden="false" target-type="plain" description="${timesheetId}" target="javascript:set_value('${timesheetId}')"/>
</field>
<field name="partyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
<field name="clientPartyId"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
</form>
</forms>