blob: 56b29758b578d6d0df7d36c91deaf68e7c31a382 [file] [log] [blame]
<?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">
<!-- 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 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 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">
<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="button"/></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 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 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 description="${workEffortId}" target="javascript:set_value('${workEffortId}')" also-hidden="false" target-type="plain"/>
</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="button"/></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 description="${timesheetId}" target="javascript:set_value('${timesheetId}')" also-hidden="false" target-type="plain"/>
</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>