ilscipio/scipio-erp

View on GitHub
applications/order/widget/ordermgr/OrderViewScreens.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="Main">
        <section>
            <actions>
                <set field="titleProperty" value="OrderManager"/>
                <set field="activeSubMenuItem" value="main"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsOrderTotalDay" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsOrderTotalMonth" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsReturnReasonWeek" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                        </container>
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="ListSalesOrders" location="component://order/widget/ordermgr/OrderViewScreens.xml"/>
                            </container>
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="BestSellingProducts" location="component://product/widget/catalog/ProductScreens.xml"/>
                            </container>
                            <!-- SCIPIO: Removed for now. Add back in if you want to use the Portal Concept instead.
                            <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <include-portal-page id="OrderPortalPage"/>
                            </container>-->
                        </container>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderHeaderView">
        <section>
            <actions>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap"/>
                <set field="title" value="${uiLabelMap.OrderOrder}: ${parameters.orderId}"/>
                <set field="activeSubMenuItem" value="Summary"/>
                <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/order.js" global="true"/>
                <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/OrderShippingInfo.js" global="true"/>
                <!-- <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>-->
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderViewWebSecure.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <not><if-empty field="orderHeader"/></not>
                            </condition>
                            <widgets>
                                <!--<include-menu location="component://order/widget/ordermgr/OrderMenus.xml" name="OrderSubTabBar"/> replaced by orderaction-->
                                <include-screen name="orderHeader"/>
                                <container style="${styles.grid_row}">
                                    <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                        <platform-specific>
                                            <html><html-template location="component://order/webapp/ordermgr/order/orderitems.ftl"/></html>
                                        </platform-specific>
                                    </container>
                                </container>
                                <include-screen name="orderFooter"/>
                            </widgets>
                            <fail-widgets>
                                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: ${parameters.orderId}"/>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="orderHeader">
        <section>
            <condition>
                <not><if-empty field="orderHeader"/></not>
            </condition>
            <widgets>
               <include-screen name="orderactions"/>
               <container style="${styles.grid_row}">
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="orderinfo"/>
                            <include-screen name="orderterms"/>
                    </container>
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="ordercontactinfo"/>
                    </container>
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="orderpaymentinfo"/>
                            <include-screen name="ordercustomerinfo"/>
                        <include-screen name="projectAssoOrder"/>
                    </container>
                </container>
            </widgets>
            <fail-widgets>
                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: [${orderId}]"></label>
            </fail-widgets>
        </section>
    </screen>
    <screen name="orderFooter">
        <section>
            <condition>
                <not><if-empty field="orderHeader"/></not>
            </condition>
            <widgets>
               <container style="${styles.grid_row}">
                    <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <!--  Move to seperate screen
                                <include-screen name="ordershippinginfo"/>-->
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/order/ordernotes.ftl"/></html>
                                </platform-specific>
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/order/transitions.ftl"/></html>
                                </platform-specific>
                                <include-screen name="OrderSalesReps"/>
                    </container>
                </container>
            </widgets>
            <fail-widgets>
                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: [${orderId}]"></label>
            </fail-widgets>
        </section>
    </screen>
    
    <screen name="orderinfo">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/orderinfo.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="orderterms">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/orderterms.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="orderpaymentinfo">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/orderpaymentinfo.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>

    <screen name="ordercustomerinfo">
        <section>
            <actions>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderCustomerView.groovy"/>
            </actions>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/ordercustomerinfo.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="projectAssoOrder">
        <section>
            <condition>
                <if-has-permission permission="PROJECTMGR" action="_VIEW"/>
            </condition>
            <actions>
            <set field="orderId" from-field="parameters.orderId"/>
            <entity-and entity-name="OrderHeaderAndWorkEffort" list="listProjectAssoOrder">
                <field-map field-name="orderId" from-field="orderId"/>
                <field-map field-name="workEffortTypeId" value="PROJECT"/>
            </entity-and>
            </actions>
            <widgets>
                <section>
                    <condition>
                        <not>
                            <if-empty field="listProjectAssoOrder"/>
                        </not>
                    </condition>
                    <widgets>
                        <screenlet title="${uiLabelMap.PageTitleProjectInformation}">
                            <include-form name="projectAssoOrder" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
                        </screenlet>
                    </widgets>
                    <fail-widgets></fail-widgets>
                </section>
            </widgets>
            <fail-widgets></fail-widgets>
        </section>
    </screen>
    
    <screen name="ordercontactinfo">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/ordercontactinfo.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="ordershippinginfo">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/ordershippinginfo.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="orderactions">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/orderactions.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderSalesReps">
        <section>
            <widgets>
                <platform-specific>
                    <html><html-template location="component://order/webapp/ordermgr/order/OrderSalesReps.ftl"/></html>
                </platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderHeaderListView">
        <section>
            <actions>
                <set field="titleProperty" value="OrderLookupOrder"/>
                <set field="activeSubMenuItem" value="orderlist"/>
                <set field="fromDate" type="Timestamp" from-field="parameters.filterDate"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderList.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/FilterOrderList.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/orderlist.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderItemEdit">
        <section>
            <actions>
                <set field="titleProperty" value="OrderEditItems"/>
                <set field="activeSubMenuItem" value="Summary"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderViewWebSecure.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container>
                            <link target="orderview?orderId=${orderId}" text="${uiLabelMap.OrderBackToOrder}" style="${styles.link_nav_cancel}"/>
                        </container>
                        <include-screen name="orderHeader"/>
                        <container style="clear"/>
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/editorderitems.ftl"/></html>
                        </platform-specific>
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/appendorderitem.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderFindOrder">
        <section>
            <actions>
                <set field="titleProperty" value="OrderFindOrder"/>
                <set field="activeSubMenuItem" value="OrderFindOrder"/>
                
                <!-- SCIPIO: run the query from groovy -->
                <set field="rsleArgs" type="NewMap" />
                <set field="rsleArgs.serviceName" value="findOrders" />
                <set field="rsleArgs.doExec" type="Boolean" 
                    value="${groovy: (parameters.doFindQuery == 'Y' || (parameters.doFindQuery != 'Y' &amp;&amp; context.requestMethod == 'POST'))}" />
                <script location="component://common/webcommon/WEB-INF/actions/includes/runServiceLikeEvent.groovy"/>
                <set field="isFindQueryExec" type="Boolean" from-field="rsleRes.isExec" />
                <set field="isFindQueryError" type="Boolean" from-field="rsleRes.isError" />
                <set field="isFindQueryInputError" type="Boolean" from-field="rsleRes.isServiceFailure" />

                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/FindOrders.groovy"/>
                <!-- SCIPIO: FIXME?: this hangs my rendering for unknown reasons and not currently used by the FTL
                <script location="component://content/webapp/content/WEB-INF/actions/print/FindPrinters.groovy"/>-->
                
                <!-- asmslect parameters, must be prefixed by asm_ for setMultipleSelectJs.ftl -->
                <set field="asm_multipleSelectForm"  value="lookuporder"/>
                <set field="asm_multipleSelect"  value="roleTypeId"/>
                <set field="asm_formSize" value="1000"/>
                <set field="asm_asmListItemPercentOfForm" value="95"/>
                <set field="asm_sortable" value="false"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="asm_title" value="${uiLabelMap.OrderPartySelectRoleForParty}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://common/webcommon/includes/setMultipleSelectJs.ftl"/></html></platform-specific>                        
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/findOrders.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderNewNote">
        <section>
            <actions>
                <set field="titleProperty" value="OrderAddNote"/>
                <set field="activeSubMenuItem" value="OrderNewNote"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/NewNote.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container>
                            <link target="orderview?orderId=${orderId}" text="${uiLabelMap.OrderBackToOrder}" style="${styles.link_nav_cancel}"/>
                        </container>
                        <screenlet>
                            <include-form name="OrderNewNote" location="component://order/widget/ordermgr/OrderForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderDeliveryScheduleInfo">
        <section>
            <actions>
                <set field="titleProperty" value="OrderViewEditDeliveryScheduleInfo"/>
                <set field="activeSubMenuItem" value="OrderDeliveryScheduleInfo"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderDeliveryScheduleInfo.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/OrderDeliveryScheduleInfo.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="OrderStats">
        <section>
            <actions>
                <set field="titleProperty" value="OrderOrderStatisticsPage"/>
                <set field="activeSubMenuItem" value="stats"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderStats.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="DashboardStatsOrderTotal" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/orderstats.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderReceivePayment">
        <section>
            <actions>
                <set field="titleProperty" value="OrderReceiveOfflinePayments"/>
                <set field="activeSubMenuItem" value="OrderReceivePayment"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/ReceivePayment.groovy"/>
                <entity-and entity-name="OrderRole" list="orderRoles">
                  <field-map field-name="orderId" value="${parameters.orderId}"/>
                  <field-map field-name="roleTypeId" value="BILL_FROM_VENDOR"/>
                </entity-and>
                <entity-and entity-name="PaymentMethod" list="paymentMethods">
                  <field-map field-name="partyId" from-field="orderRoles[0].partyId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/receivepayment.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="ViewImage">
        <section>
            <actions>
                <set field="titleProperty" value="OrderViewImage"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/ViewImage.groovy"/>
            </actions>
            <widgets>
                <platform-specific><html><html-template location="component://order/webapp/ordermgr/order/viewimage.ftl"/></html></platform-specific>
            </widgets>
        </section>
    </screen>
    
    <screen name="SendOrderConfirmation">
        <section>
            <actions>
                <set field="titleProperty" value="OrderSendConfirmationEmail"/>
                <set field="activeSubMenuItem" value="SendOrderConfirmation"/>
                <set field="emailType" value="PRDS_ODR_CONFIRM"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/SendConfirmationEmail.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/sendconfirmationemail.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="SendOrderCompletion">
        <section>
            <actions>
                <set field="titleProperty" value="OrderSendConfirmationEmail"/>
                <set field="activeSubMenuItem" value="SendOrderCompletion"/>
                <set field="emailType" value="PRDS_ODR_COMPLETE"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/SendConfirmationEmail.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/sendconfirmationemail.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="ListOrderTerms">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="ListOrderTerms"/>
                <set field="titleProperty" value="OrderOrderTerms"/>
                <entity-and entity-name="OrderTerm" list="orderTerms">
                    <field-map field-name="orderId" from-field="parameters.orderId"/>
                </entity-and>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="AddOrderTermPanel" title="${uiLabelMap.CommonAdd} ${uiLabelMap.OrderOrderTerms}" collapsible="true">
                            <include-form name="AddOrderTerm" location="component://order/widget/ordermgr/OrderForms.xml"/>
                        </screenlet>
                        <include-form name="ListOrderTerms" location="component://order/widget/ordermgr/OrderForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="OrderHistory">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="OrderHistory"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderHistory.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <label style="heading" text="${uiLabelMap.OrderOrderHistory} #${orderId}"/>
                        <screenlet>
                            <container>
                                <link target="orderview?orderId=${orderId}" text="${uiLabelMap.OrderBackToOrder}" style="${styles.link_nav_cancel}"/>
                            </container>
                            <include-screen name="OrderShipmentMethodHistory"/>
                            <include-screen name="OrderUnitPriceHistory"/>
                            <include-screen name="OrderQuantityHistory"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderShipping">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="OrderShipping"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap"/>
                <set field="title" value="${uiLabelMap.OrderShipmentInformation} ${orderId}"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderViewWebSecure.groovy"/>
                <set field="layoutSettings.javaScriptsFooter[]" value="/ordermgr-js/OrderShippingInfo.js" global="true"/>
                <set field="layoutSettings.javaScriptsFooter[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-menu location="component://order/widget/ordermgr/OrderMenus.xml" name="OrderShippingSubTabBar"/>
                        <screenlet>
                            <include-screen name="ordershippinginfo"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="OrderShipmentMethodHistory">
        <section>
            <condition>
                <not>
                    <if-empty field="orderShipmentHistories"/>
                </not>
            </condition>
            <widgets>
                <screenlet title="${uiLabelMap.OrderShipmentMethodHistory}">
                    <include-form location="component://order/widget/ordermgr/OrderForms.xml" name="OrderShipmentMethodHistory"/>
                </screenlet>
            </widgets>
        </section>
    </screen>

    <screen name="OrderUnitPriceHistory">
        <section>
            <condition>
                <not>
                    <if-empty field="orderUnitPriceHistories"/>
                </not>
            </condition>
            <widgets>
                <screenlet title="${uiLabelMap.OrderUnitPriceHistory}">
                    <include-form location="component://order/widget/ordermgr/OrderForms.xml" name="OrderUnitPriceHistory"/>
                </screenlet>
            </widgets>
        </section>
    </screen>

    <screen name="OrderQuantityHistory">
        <section>
            <condition>
                <not>
                    <if-empty field="orderQuantityHistories"/>
                </not>
            </condition>
            <widgets>
                <screenlet title="${uiLabelMap.OrderQuantityHistory}">
                    <include-form location="component://order/widget/ordermgr/OrderForms.xml" name="OrderQuantityHistory"/>
                </screenlet>
            </widgets>
        </section>
    </screen>

    <!-- Screens Specific to portlet -->
    <screen name="ListCustomerOrders">
        <section>
            <actions>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="MyPortalUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="partyId" from-field="userLogin.partyId"/>
                <set field="statusId" from-field="statusId"/>
                <set field="roleTypeId" from-field="roleTypeId"/>
                <set field="screenletTitle" from-field="uiLabelMap.MyPortalMyOrders"/>
            </actions>
            <widgets>
                <screenlet title="${screenletTitle} ${partyId} ${statusId}" navigation-form-name="ListCustomerOrders" >
                   <include-form name="ListCustomerOrders" location="component://order/widget/ordermgr/OrderForms.xml"/>
                </screenlet>
            </widgets>
        </section>
    </screen>

    <!-- TODO: Move to SCIPIO DashboardWidget.xml -->
    <screen name="ListSalesOrders">
        <section>
            <actions>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="fromDate" type="Timestamp" value="${nowTimestamp}"/>
                <set field="intervalPeriod" type="String" value="month"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderList.groovy"/>
            </actions>
            <widgets>
                <section>
                    <condition>
                        <if-has-permission permission="ORDERMGR" action="_VIEW"/>
                    </condition>
                    <widgets>
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/order/OrderListByDate.ftl"/></html>
                        </platform-specific>
                    </widgets>
                    <fail-widgets>
                        <label style="common-msg-error-perm" text="${uiLabelMap.OrderViewPermissionError}"/>
                    </fail-widgets>
                </section>
            </widgets>
        </section>
    </screen>

    <!-- TODO: Move to SCIPIO DashboardWidget.xml -->
    <screen name="ListPurchaseOrders">
        <section>
            <actions>
                <set field="partyId" from-field="userLogin.partyId"/>
                <set field="roleTypeId" value="SUPPLIER_AGENT"/>
            </actions>
            <widgets>
                <section>
                    <condition>
                        <if-has-permission permission="ORDERMGR" action="_VIEW"/>
                    </condition>
                    <widgets>
                        <screenlet title="${uiLabelMap.OrderPurchaseOrder}" navigation-form-name="ListPurchaseOrders" >
                            <include-form name="ListPurchaseOrders" location="component://order/widget/ordermgr/OrderForms.xml"/>
                        </screenlet>
                    </widgets>
                    <fail-widgets>
                        <label style="common-msg-error-perm" text="${uiLabelMap.OrderViewPermissionError}"/>
                    </fail-widgets>
                </section>
            </widgets>
        </section>
    </screen>
</screens>