ilscipio/scipio-erp

View on GitHub
applications/order/widget/ordermgr/OrderEntryOrderScreens.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="quickFinalizeOrder">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="orderentry"/>
                <!--<set field="titleProperty" value="PageTitleCheckoutOptions"/>-->
                <!--<set field="titleProperty" value="OrderQuickFinalizeOrder"/>-->
                <set field="stepLabelId" value="PageTitleCheckoutOptions"/><!-- SCIPIO -->
                <set field="stepTitleId" value="PageTitleCheckoutOptions"/><!-- SCIPIO -->
                <set field="checkoutType" value="quick"/><!-- SCIPIO -->
                <set field="layoutSettings.javaScriptsFooter[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutOptions.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/StorePaymentOptions.groovy"/>
                <property-to-field resource="order" property="orderPreference.giftEnable" field="giftEnable" default="Y"/>
            </actions>
            <widgets>
                <!-- SCIPIO
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">-->
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <!--<label style="heading" text="${uiLabelMap.OrderQuickFinalizeOrder}"/>-->
                        <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/checkoutoptions.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="CustSettings">
        <section>
            <actions>
                <set field="stepLabelId" value="PartyParties"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShipSettings.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/custsettings.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ShipSettings">
        <section>
            <actions>
                <set field="stepTitleId" value="OrderOrderEntryShipToSettings"/>
                <set field="stepLabelId" value="FacilityShipping"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShipSettings.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/shipsettings.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditShipAddress">
        <section>
            <actions>
                <set field="stepTitleId" value="OrderOrderEntryShipToSettings"/>
                <set field="stepLabelId" value="FacilityShipping"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShipSettings.groovy"/>
                
                <set field="dependentForm" value="checkoutsetupform"/>
                <set field="paramKey" value="countryGeoId"/>
                <set field="mainId" value="countryGeoId"/>
                <set field="dependentId" value="stateProvinceGeoId"/>
                <set field="requestName" value="getAssociatedStateList"/>
                <set field="responseName" value="stateList"/>
                <set field="dependentKeyName" value="geoId"/>
                <set field="descName" value="geoName"/>
                <set field="selectedDependentOption" from-field="mechMap.postalAddress.stateProvinceGeoId" default-value="_none_"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html>
                                <html-template location="component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/>
                                <html-template location="component://order/webapp/ordermgr/entry/editShipAddress.ftl"/>
                            </html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="SetItemShipGroups">
        <section>
            <actions>
                <set field="stepTitleId" value="SetItemShipGroups"/>
                <set field="stepLabelId" value="OrderShipGroups"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/SetShoppingCart.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/SetItemShipGroups.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="OptionSettings">
        <section>
            <actions>
                <!-- SCIPIO: This was horribly generic
                <set field="stepTitleId" value="OrderOrderOptionSettings"/>
                <set field="stepLabelId" value="CommonOptions"/>-->
                <set field="stepTitleId" value="OrderShippingOptions"/>
                <set field="stepLabelId" value="OrderShippingOptions"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/OptionSettings.groovy"/>
                <property-to-field resource="order" property="orderPreference.giftEnable" field="giftEnable" default="Y"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/optionsettings.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="BillSettings">
        <section>
            <actions>
                <set field="stepTitleId" value="OrderOrderEntryPaymentSettings"/>
                <set field="stepLabelId" value="AccountingPayment"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/BillSettings.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                      <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/billsettings.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                  </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="SetAdditionalParty">
        <section>
            <actions>
                <set field="stepTitleId" value="PartyAdditionalPartyEntry"/>
                <set field="stepLabelId" value="PartyParties"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/SetAdditionalParty.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/AdditionalPartyListing.groovy"/>
                
                <!-- asmslect parameters, must be prefixed by asm_ for setMultipleSelectJs.ftl -->
                <!--set field="asm_multipleSelectForm"  value="addAdditionalPartyForm"/>
                <set field="asm_multipleSelect"  value="additionalRoleTypeId"/>
                <set field="asm_formSize" value="700"/>
                <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="CommonOrderCheckoutDecorator" 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/entry/setAdditionalParty.ftl"/></html>
                        </platform-specific>
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/additionalPartyListing.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="OrderTerms">
        <section>
            <actions>
                <set field="stepTitleId" value="OrderOrderEntryOrderTerms"/>
                <set field="stepLabelId" value="OrderOrderTerms"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/OrderTerms.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://order/webapp/ordermgr/entry/orderterms.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="ConfirmOrder">
        <section>
            <actions>
                <set field="stepTitleId" value="OrderOrderConfirmation"/>
                <set field="stepLabelId" value="OrderReviewOrder"/>
                <property-to-field resource="order" property="orderPreference.giftEnable" field="giftEnable" default="Y"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutReview.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/entry/order/orderheaderinfo.ftl"/></html>
                                </platform-specific>
                            </container>
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/entry/order/orderpaymentinfo.ftl"/></html>
                                </platform-specific>
                            </container>
                        </container>
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/entry/order/shipGroupConfirmSummary.ftl"/></html>
                                </platform-specific>
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/entry/order/orderitems.ftl"/></html>
                                </platform-specific>
                            </container>
                        </container>
                    </decorator-section>
                  </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="checkoutshippingaddress">
        <section>
            <actions>
                <set field="rightbarScreenName" value="rightbar"/>
                <set field="MainColumnStyle" value="rightonly"/>

                <set field="titleProperty" value="PageTitleCheckoutOptions"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutShippingAddress.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/checkoutshippingaddress.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="checkoutpayment">
        <section>
            <actions>
                <set field="rightbarScreenName" value="rightbar"/>
                <set field="MainColumnStyle" value="rightonly"/>
                <set field="stepLabelId" value="AccountingPayment"/>

                <set field="titleProperty" value="PageTitleCheckoutOptions"/>
                <set field="layoutSettings.javaScriptsFooter[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/StorePaymentOptions.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderCheckoutDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/checkoutpayment.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="customertaxinfo">
        <!-- meant to be included, generally through a screens.render type of thing -->
        <section>
            <actions>
                <set field="customerTaxInfoTemplateLocation" value="component://order/webapp/ordermgr/entry/customertaxinfo.ftl" />
            </actions>
            <widgets>
                <include-screen name="customertaxinfoimpl" />
            </widgets>
        </section>
    </screen>
    <!-- SCIPIO: Reusable actions -->
    <screen name="customertaxinfoimpl">
        <!-- meant to be included, generally through a screens.render type of thing -->
        <section>
            <actions>
                <set field="partyId" from-field="userLogin.partyId"/>
                <entity-condition entity-name="PartyTaxAuthInfoAndDetail" list="partyTaxAuthInfoAndDetailList">
                    <condition-expr field-name="partyId" from-field="partyId"/>
                    <order-by field-name="geoCode"/>
                    <order-by field-name="groupName"/>
                </entity-condition>
                <entity-condition entity-name="TaxAuthorityAndDetail" list="taxAuthorityAndDetailList">
                    <order-by field-name="geoCode"/>
                    <order-by field-name="groupName"/>
                </entity-condition>
            </actions>
            <widgets>
                <platform-specific><html><html-template location="${customerTaxInfoTemplateLocation}"/></html></platform-specific>
            </widgets>
        </section>
    </screen>
    <screen name="LookupBulkAddSupplierProductsInApprovedOrder">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleLookupBulkAddSupplierProduct"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddSupplierProducts.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="screenlet">
                            <platform-specific>
                                <html><html-template location="component://order/webapp/ordermgr/entry/OrderEntryCatalogTabBar.ftl"/></html>
                            </platform-specific>
                            <container style="screenlet-body">
                                <include-form location="component://order/widget/ordermgr/OrderForms.xml" name="LookupBulkAddSupplierProductsInApprovedOrder"></include-form>
                            </container>
                        </container>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="splitship">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleSplitItemsForShipping"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/SplitShip.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/SplitShip.ftl"/></html></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>