ilscipio/scipio-erp

View on GitHub
applications/workeffort/widget/LookupForms.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<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"> <!-- orig: default-table-style=-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="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    <form name="lookupWorkEffortShort" target="LookupWorkEffortShort" title="" type="single"
        header-row-style="header-row"> <!-- orig: default-table-style=-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="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><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"> <!-- orig: default-table-style=-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="${styles.link_nav_info_id}">
            <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"> <!-- orig: default-table-style=-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="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    <form name="listLookupTimesheet" list-name="listIt" target="" title="" type="list" paginate-target="LookupPerson"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-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="${styles.link_nav_info_id}">
            <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>