ilscipio/scipio-erp

View on GitHub
framework/common/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">
    <!-- Geo Lookup forms -->
    <form name="LookupGeo" target="LookupGeo" title="" type="single">
        <field name="geoId" title="${uiLabelMap.CommonGeoId}"><text-find/></field>
        <field name="geoTypeId" title="${uiLabelMap.CommonGeoTypeId}">
            <drop-down allow-empty="true">
                <entity-options key-field-name="geoTypeId" entity-name="GeoType" description="${description}">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="geoName" title="${uiLabelMap.CommonGeoName}"><text-find/></field>
        <field name="geoCode" title="${uiLabelMap.CommonGeoCode}"><text-find/></field>
        <field name="geoSecCode" title="${uiLabelMap.CommonGeoSecCode}"><text-find/></field>
        <field name="abbreviation" title="${uiLabelMap.CommonGeoAbbr}"><text-find/></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="listLookupGeo" list-name="listIt" target="" title="" type="list" paginate-target="LookupGeo">
        <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="Geo"/>
                <field-map field-name="orderBy" value="geoName"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="geoId" widget-style="${styles.link_nav_info_id}" title="${uiLabelMap.CommonGeoId}">
            <hyperlink also-hidden="false" target-type="plain" description="${geoId}" target="javascript:set_value('${geoId}')"/>
        </field>
        <field name="geoTypeId" title="${uiLabelMap.CommonGeoTypeId}">
            <display-entity key-field-name="geoTypeId" entity-name="GeoType" description="${description}"/>
        </field>
        <field name="geoName" title="${uiLabelMap.CommonGeoName}"><display/></field>
        <field name="geoCode" title="${uiLabelMap.CommonGeoCode}"><display/></field>
        <field name="geoSecCode" title="${uiLabelMap.CommonGeoSecCode}"><display/></field>
        <field name="abbreviation" title="${uiLabelMap.CommonGeoAbbr}"><display/></field>
        <field name="wellKnownText" title="${uiLabelMap.CommonGeoWellKnownText}"><display/></field>
    </form>

    <form name="LookupGeoName" extends="LookupGeo" target="LookupGeoName"/>
    <form name="listLookupGeoName" extends="listLookupGeo" paginate-target="LookupGeoName">
        <field name="geoId" widget-style="${styles.link_nav_info_id}" title="${uiLabelMap.CommonGeoId}">
            <hyperlink also-hidden="false" target-type="plain" description="${geoId}" target="javascript:set_values('${geoName}', '${geoId}')"/>
        </field>
    </form>

    <form name="LookupUserLogin" type="single" target="LookupUserLogin">
        <field name="userLoginId" title="${uiLabelMap.CommonUserLoginId}"><text-find/></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="ListLookedUpUserLogins" type="list" list-name="listIt" paginate-target="LookupUserLogin"
        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="orderBy" value="userLoginId"/>
                <field-map field-name="entityName" value="UserLogin"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="userLoginId" title="${uiLabelMap.CommonUserLoginId}" widget-style="${styles.link_run_sys} ${styles.action_select}">
            <hyperlink also-hidden="false" target-type="plain" description="${userLoginId}" target="javascript:set_value('${userLoginId}', '${userLoginId}', '${parameters.webSitePublishPoint}')"/>
        </field>
        <field name="enabled"><display/></field>
        <field name="hasLoggedOut"><display/></field>
        <field name="disabledDateTime"><display/></field>
    </form>

    <form name="LookupPortalPage" type="single" target="LookupPortalPage">
        <auto-fields-entity entity-name="PortalPage" default-field-type="find"/>
        <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="ListPortalPages" type="list" list-name="listIt" paginate-target="LookupPortalPage"
        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="orderBy" value="portalPageId"/>
                <field-map field-name="entityName" value="PortalPage"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <auto-fields-entity entity-name="PortalPage" default-field-type="display"/>
        <field name="portalPageId" widget-style="${styles.link_run_sys} ${styles.action_select}">
            <hyperlink also-hidden="false" target-type="plain" description="${portalPageId}" target="javascript:set_value('${portalPageId}')"/>
        </field>
    </form>

    <form name="LookupLocale" type="single" target="LookupLocale">
        <field name="localeString"><text-find hide-options="true"/></field>
        <field name="localeName" title="${uiLabelMap.CommonLanguageTitle}"><text-find hide-options="true"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>

    <form name="ListLocales" type="list" list-name="locales" paginate-target="LookupLocale"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <field name="localeString" widget-style="${styles.link_nav_info_id}">
            <hyperlink also-hidden="false" target-type="plain" description="${localeString}" target="javascript:set_value('${localeString}', '${localeName}')"/>
        </field>
        <field name="localeName" title="${uiLabelMap.CommonLanguageTitle}"><display/></field>
    </form>
</forms>