<?xml version="1.0" encoding="UTF-8" ?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
    <!-- QuantityBreak forms -->
    <form name="ListQuantityBreaks" target="" title="" type="list"  list-name="quantityBreaks"
        paginate-target="ListQuantityBreaks" odd-row-style="alternate-row" default-table-style="basic-table">
        <auto-fields-entity entity-name="QuantityBreak" default-field-type="display"/>
        <field name="quantityBreakId" widget-style="buttontext">
            <hyperlink description="${quantityBreakId}" target="ListQuantityBreaks" also-hidden="false">
                <parameter param-name="quantityBreakId"/>
            </hyperlink>
        </field>
        <field name="quantityBreakTypeId" title="${uiLabelMap.CommonType}"><display-entity also-hidden="false" entity-name="QuantityBreakType"/></field>
        <field name="deleteLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonRemove}" target="deleteQuantityBreak" also-hidden="false">
                <parameter param-name="quantityBreakId"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditQuantityBreak" type="single" target="createQuantityBreak" title="" default-map-name="quantityBreak"
        header-row-style="header-row" default-table-style="basic-table">
        <alt-target use-when="quantityBreak!=null" target="updateQuantityBreak"/>
        <auto-fields-entity entity-name="QuantityBreak" default-field-type="edit"/>
        <field name="quantityBreakId"><hidden/></field>
        <field name="quantityBreakTypeId" title="${uiLabelMap.CommonType}">
            <drop-down allow-empty="true">
                <entity-options entity-name="QuantityBreakType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <form name="ListShipmentMethodTypes" target="" title="" type="list"  list-name="shipmentMethodTypes"
        paginate-target="ListShipmentMethodTypes" odd-row-style="alternate-row" default-table-style="basic-table">
        <auto-fields-entity entity-name="ShipmentMethodType" default-field-type="display"/>
        <field name="shipmentMethodTypeId" widget-style="buttontext">
            <hyperlink description="${shipmentMethodTypeId}" target="ListShipmentMethodTypes" also-hidden="false">
                <parameter param-name="shipmentMethodTypeId"/>
            </hyperlink>
        </field>
        <field name="deleteLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonRemove}" target="deleteShipmentMethodType" also-hidden="false">
                <parameter param-name="shipmentMethodTypeId"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditShipmentMethodType" type="single" target="createShipmentMethodType" title="" default-map-name="shipmentMethodType"
        header-row-style="header-row" default-table-style="basic-table">
        <alt-target use-when="shipmentMethodType!=null" target="updateShipmentMethodType"/>
        <auto-fields-service service-name="createShipmentMethodType" default-field-type="edit"/>
        <field name="shipmentMethodTypeId" use-when="shipmentMethodType!=null"><display/></field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <form name="ListCarrierShipmentMethods" target="" title="" type="list"  list-name="carrierShipmentMethods"
        paginate-target="ListCarrierShipmentMethods" odd-row-style="alternate-row" default-table-style="basic-table">
        <auto-fields-entity entity-name="CarrierShipmentMethod" default-field-type="display"/>
        <field name="shipmentMethodTypeId"><display-entity also-hidden="false" entity-name="ShipmentMethodType"/></field>
        <field name="roleTypeId"><display-entity also-hidden="false" entity-name="RoleType"/></field>
        <field name="editLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonEdit}" target="ListCarrierShipmentMethods" also-hidden="false">
                <parameter param-name="shipmentMethodTypeId"/>
                <parameter param-name="partyId"/>
                <parameter param-name="roleTypeId"/>
            </hyperlink>
        </field>
        <field name="deleteLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonRemove}" target="deleteCarrierShipmentMethod" also-hidden="false">
                <parameter param-name="shipmentMethodTypeId"/>
                <parameter param-name="partyId"/>
                <parameter param-name="roleTypeId"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditCarrierShipmentMethod" type="single" target="createCarrierShipmentMethod" title="" default-map-name="carrierShipmentMethod"
        header-row-style="header-row" default-table-style="basic-table">
        <alt-target use-when="carrierShipmentMethod!=null" target="updateCarrierShipmentMethod"/>
        <auto-fields-service service-name="createCarrierShipmentMethod" default-field-type="edit"/>
        <field name="shipmentMethodTypeId" use-when="carrierShipmentMethod==null">
            <drop-down allow-empty="false">
                <entity-options entity-name="ShipmentMethodType" description="${description} [${shipmentMethodTypeId}]">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="shipmentMethodTypeId" use-when="carrierShipmentMethod!=null"><display/></field>
        <field name="partyId" use-when="carrierShipmentMethod!=null"><display/></field>
        <field name="partyId" use-when="carrierShipmentMethod==null">
            <lookup target-form-name="LookupPartyName"/>
        </field>
        <field name="roleTypeId" use-when="carrierShipmentMethod!=null"><display/></field>
        <field name="roleTypeId" use-when="carrierShipmentMethod==null">
            <drop-down allow-empty="false" no-current-selected-key="CARRIER">
                <entity-options entity-name="RoleType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="sequenceNumber" tooltip="${uiLabelMap.ProductUsedForDisplayOrdering}"><text/></field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>

    <form name="ListShipmentTimeEstimates" target="" title="" type="list"  list-name="shipmentTimeEstimates"
        paginate-target="ListShipmentTimeEstimates" odd-row-style="alternate-row" default-table-style="basic-table">
        <field name="shipmentMethodTypeId"><display-entity entity-name="ShipmentMethodType" description="${description} [${shipmentMethodTypeId}]"/></field>
        <field name="partyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
        <field name="roleTypeId"><display-entity entity-name="RoleType"/></field>
        <field name="geoIdFrom"><display-entity entity-name="Geo" key-field-name="geoId" description="${geoName}"/></field>
        <field name="geoIdTo"><display-entity entity-name="Geo" key-field-name="geoId" description="${geoName}"/></field>
        <field name="fromDate"><display type="date-time"/></field>
        <field name="thruDate"><display type="date-time"/></field>
        <field name="leadTime"><display/></field>
        <field name="leadTimeUomId"><display-entity entity-name="Uom" key-field-name="uomId"/></field>
        <field name="editLink" title=" " widget-style="buttontext">
            <hyperlink target="ListShipmentTimeEstimates" description="${uiLabelMap.CommonEdit}" also-hidden="false">
                <auto-parameters-service service-name="updateShipmentTimeEstimate"/>
            </hyperlink>
        </field>
        <field name="expireLink" title=" " widget-style="buttontext">
            <hyperlink target="expireShipmentTimeEstimate" description="${uiLabelMap.CommonExpire}" also-hidden="false">
                <auto-parameters-service service-name="expireShipmentTimeEstimate"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditShipmentTimeEstimate" type="single" target="createShipmentTimeEstimate" title="" default-map-name="shipmentTimeEstimate"
        header-row-style="header-row" default-table-style="basic-table">
        <alt-target use-when="shipmentTimeEstimate != null" target="updateShipmentTimeEstimate"/>
        <field name="shipmentMethodTypeId"><display-entity entity-name="ShipmentMethodType" description="${description} [${shipmentMethodTypeId}]"/></field>
        <field name="partyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
        <field name="roleTypeId"><display-entity entity-name="RoleType"/></field>
        <field name="geoIdTo" use-when="shipmentTimeEstimate == null"><lookup target-form-name="LookupGeo" default-value="_NA_"/></field>
        <field name="geoIdTo" use-when="shipmentTimeEstimate != null"><display-entity entity-name="Geo" key-field-name="geoId" description="${geoName}"/></field>
        <field name="geoIdFrom" use-when="shipmentTimeEstimate == null"><lookup target-form-name="LookupGeo" default-value="_NA_"/></field>
        <field name="geoIdFrom" use-when="shipmentTimeEstimate != null"><display-entity entity-name="Geo" key-field-name="geoId" description="${geoName}"/></field>
        <field name="fromDate" use-when="shipmentTimeEstimate == null"><date-time/></field>
        <field name="fromDate" use-when="shipmentTimeEstimate != null"><display/></field>
        <field name="thruDate"><date-time/></field>
        <field name="leadTime" required-field="true"><text/></field>
        <field name="leadTimeUomId">
            <drop-down no-current-selected-key="TF_day" current="selected">
                <entity-options entity-name="Uom" description="${description}" key-field-name="uomId">
                    <entity-constraint name="uomTypeId" value="TIME_FREQ_MEASURE"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
</forms>
