ilscipio/scipio-erp

View on GitHub
applications/product/widget/catalog/FindScreens.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.
-->

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">

    <screen name="advancedsearch">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleAdvancedSearch"/>
                <!--<set field="activeSubMenuItem" value="AdvancedSearch"/>-->

                <entity-condition entity-name="ProductCategory" list="productCategories">
                    <condition-expr field-name="showInSelect" operator="not-equals" value="N"/>
                    <order-by field-name="description"/>
                </entity-condition>
                <entity-condition entity-name="ProdCatalog" list="prodCatalogs">
                    <order-by field-name="catalogName"/>
                </entity-condition>
                <script location="component://product/webapp/catalog/WEB-INF/actions/find/advancedsearchoptions.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonFindDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/find/advancedsearch.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="keywordsearch">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleSearchResults"/>
                <script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonFindDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/find/keywordsearch.ftl"/></html>
                        </platform-specific>
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/find/keywordsearchactions.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="exportproducts">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleProductExport"/>
                <set field="productExportList" from-field="parameters.productExportList"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonFindDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/find/exportproducts.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>                
            </widgets>
        </section>
    </screen>

    <screen name="FindProductById">
        <section>
            <actions>
                <set field="titleProperty" value="ProductFindProductWithIdValue"/>

                <set field="idValue" from-field="parameters.idValue"/>
                <entity-one entity-name="Product" value-field="idProduct" auto-field-map="false">
                    <field-map field-name="productId" from-field="idValue"/>
                </entity-one>

                <entity-condition entity-name="GoodIdentification" list="goodIdentifications">
                    <condition-expr field-name="idValue" from-field="idValue"/>
                    <order-by field-name="productId"/>
                </entity-condition>
            </actions>
            <widgets>
                <decorator-screen name="CommonCatalogAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="left-column" use-when="${context.widePage != true}" override-by-auto-include="true">
                        <include-screen name="leftbar" location="component://product/widget/catalog/CommonScreens.xml"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://product/webapp/catalog/find/FindProductById.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>