blob: 3f8e093b97f552d0cc72e18e740d85741f4e8041 [file] [log] [blame]
<?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">
<form name="LookupProduct" target="LookupProduct" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<!-- <auto-fields-entity entity-name="Product" default-field-type="hidden"/> -->
<field name="productId" title="${uiLabelMap.ProductProductId}"><text-find/></field>
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><text-find/></field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><text-find/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}">
<drop-down allow-empty="true">
<entity-options entity-name="ProductType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="primaryProductCategoryId" title="${uiLabelMap.ProductPrimaryCategory}">
<drop-down allow-empty="true">
<entity-options entity-name="ProductCategory" key-field-name="productCategoryId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<!-- NOTE DEJ20070829 not sure why this is here, but it doesn't seem applicable for a general product lookup, also doesn't handle case where isVariant is null <field name="isVariant"><hidden value="N"/></field> -->
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListLookupProduct" list-name="listIt" title="" type="list" paginate-target="LookupProduct"
odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="Product"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<row-actions>
<set field="hasVariants" value="${groovy: org.apache.ofbiz.entity.util.EntityUtil.filterByDate(delegator.findByAnd('ProductAssoc', org.apache.ofbiz.base.util.UtilMisc.toMap('productId', productId, 'productAssocTypeId', 'PRODUCT_VARIANT'), null, true)).size() > 0}" type="Boolean"/>
</row-actions>
<field name="productId" title="${uiLabelMap.ProductProductId}" widget-style="buttontext">
<hyperlink description="${productId}" target="javascript:set_value('${productId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}"><display-entity entity-name="ProductType"/></field>
<field name="searchVariants" title=" " widget-style="buttontext" use-when="hasVariants">
<hyperlink description="${uiLabelMap.ProductVariants}" target="LookupVariantProduct" also-hidden="false" target-type="plain">
<parameter param-name="productId"/>
</hyperlink>
</field>
</form>
<form name="LookupSupplierProduct" target="LookupSupplierProduct" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<field name="partyId"><hidden/></field>
<field name="productId" title="${uiLabelMap.ProductProductId}"><text-find/></field>
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><text-find/></field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><text-find/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}">
<drop-down allow-empty="true">
<entity-options entity-name="ProductType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListLookupSupplierProduct" list-name="listIt" title="" type="list" paginate-target="LookupSupplierProduct"
odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="SupplierProductAndProduct"/>
<field-map field-name="orderBy" value="productId"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="productId" title="${uiLabelMap.ProductProductId}" widget-style="buttontext">
<hyperlink description="${productId}" target="javascript:set_value('${productId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}"><display-entity entity-name="ProductType"/></field>
<field name="supplierProductId"><display/></field>
<field name="minimumOrderQuantity"><display/></field>
<field name="lastPrice"><display currency="${currencyUomId}" type="currency"/></field>
</form>
<form name="LookupVirtualProduct" extends="LookupProduct" default-map-name= "inputFields" target="LookupVirtualProduct" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<field name="isVirtual"><hidden value="Y"/></field>
</form>
<form name="ListLookupVirtualProduct" list-name="listIt" title="" type="list" extends="ListLookupProduct"
paginate-target="LookupVirtualProduct" odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="Product"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="productId" title="${uiLabelMap.ProductProductId}" widget-style="buttontext">
<hyperlink description="${productId}" target="javascript:set_value('${productId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}"><display-entity entity-name="ProductType"/></field>
</form>
<form name="LookupProductAndPrice" target="LookupProductAndPrice" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<!-- <auto-fields-entity entity-name="Product" default-field-type="hidden"/> -->
<field name="productId" title="${uiLabelMap.ProductProductId}"><text-find/></field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><text-find/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}">
<drop-down allow-empty="true">
<entity-options entity-name="ProductType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="description" title="${uiLabelMap.CommonDescription}"><text-find/></field>
<field name="primaryProductCategoryId">
<drop-down allow-empty="true">
<entity-options entity-name="ProductCategory" key-field-name="productCategoryId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
<drop-down allow-empty="false" no-current-selected-key="${defaultCurrencyUomId}">
<entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom">
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="productPriceTypeId" title="${uiLabelMap.ProductPriceType}">
<drop-down allow-empty="false" no-current-selected-key="DEFAULT_PRICE">
<entity-options entity-name="ProductPriceType" key-field-name="productPriceTypeId">
</entity-options>
</drop-down>
</field>
<field name="productPricePurposeId">
<drop-down allow-empty="false" no-current-selected-key="PURCHASE">
<entity-options entity-name="ProductPricePurpose" key-field-name="productPricePurposeId">
</entity-options>
</drop-down>
</field>
<field name="price" title="${uiLabelMap.ProductPrice}"><range-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="filterByDate"><hidden value="Y"/></field>
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListLookupProductAndPrice" list-name="listIt" title="" type="list"
paginate-target="LookupProductAndPrice" odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="ProductAndPriceView"/>
<field-map field-name="orderBy" value="productId"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<row-actions>
<set field="hasVariants" value="${groovy: delegator.findByAnd('ProductAssoc', org.apache.ofbiz.base.util.UtilMisc.toMap('productId', productId, 'productAssocTypeId', 'PRODUCT_VARIANT'), null, true).size() > 0}" type="Boolean"/>
</row-actions>
<!--
<field name="productId" title=" " widget-style="buttontext" use-when="isVirtual==null||&quot;${isVirtual}&quot;.equals(&quot;N&quot;)">
<hyperlink description="${productId}" target="javascript:set_value('${productId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="productId" title="${uiLabelMap.ProductProductId}" use-when="isVirtual!=null&amp;&amp;&quot;${isVirtual}&quot;.equals(&quot;Y&quot;)"><display/></field>
-->
<field name="productId" widget-style="buttontext">
<hyperlink description="${productId}" target="javascript:set_value('${productId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field>
<field name="productTypeId" title="${uiLabelMap.ProductProductType}"><display-entity entity-name="ProductType"/></field>
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}"><display/></field>
<field name="price" title="${uiLabelMap.ProductPrice}"><display/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display/></field>
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display/></field>
<field name="searchVariants" title=" " widget-style="buttontext" use-when="hasVariants">
<hyperlink description="${uiLabelMap.ProductVariants}" target="LookupVariantProduct" also-hidden="false" target-type="plain">
<parameter param-name="productId"/>
</hyperlink>
</field>
</form>
<form name="LookupProductCategory" target="LookupProductCategory" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="ProductCategory" default-field-type="find"/>
<field name="productCategoryTypeId">
<drop-down allow-empty="true">
<entity-options entity-name="ProductCategoryType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="showInSelect">
<drop-down allow-empty="true">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
<option key="N" description="${uiLabelMap.CommonNo}"/>
</drop-down>
</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="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
<sort-order>
<field-group>
<sort-field name="productCategoryId"/>
<sort-field name="categoryName"/>
</field-group>
<field-group title="${uiLabelMap.CommonAdvancedSearch}" collapsible="true" initially-collapsed="true">
<sort-field name="productCategoryTypeId"/>
<sort-field name="primaryParentCategoryId"/>
<sort-field name="description"/>
<sort-field name="longDescription"/>
<sort-field name="showInSelect"/>
<sort-field name="categoryImageUrl"/>
<sort-field name="linkOneImageUrl"/>
<sort-field name="linkTwoImageUrl"/>
<sort-field name="detailScreen"/>
</field-group>
</sort-order>
</form>
<form name="ListLookupProductCategory" list-name="listIt" title="" type="list"
paginate-target="LookupProductCategory" odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="ProductCategory"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<auto-fields-entity entity-name="ProductCategory" default-field-type="display"/>
<field name="productCategoryTypeId"><display-entity entity-name="ProductCategoryType"/></field>
<field name="productCategoryId" title=" " widget-style="buttontext">
<hyperlink description="${productCategoryId}" target="javascript:set_value('${productCategoryId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="longDescription"><ignored/></field>
<field name="categoryImageUrl"><ignored/></field>
<field name="linkOneImageUrl"><ignored/></field>
<field name="linkTwoImageUrl"><ignored/></field>
<field name="detailScreen"><ignored/></field>
</form>
<form name="LookupProductFeature" target="LookupProductFeature" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="ProductFeature" default-field-type="find"/>
<field name="productFeatureTypeId">
<drop-down allow-empty="true">
<entity-options entity-name="ProductFeatureType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="productFeatureCategoryId">
<drop-down allow-empty="true">
<entity-options entity-name="ProductFeatureCategory">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</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="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListLookupProductFeature" list-name="listIt" title="" type="list" paginate-target="LookupProductFeature"
odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="ProductFeature"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<auto-fields-entity entity-name="ProductFeature" default-field-type="display"/>
<field name="productFeatureId" title=" " widget-style="buttontext">
<hyperlink description="${productFeatureId}" target="javascript:set_value('${productFeatureId}')" also-hidden="false" target-type="plain"/>
</field>
</form>
<form name="LookupProductStore" target="LookupProductStore" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<!-- <auto-fields-entity entity-name="ProductStore" default-field-type="find"/> -->
<field name="productStoreId"><text-find/></field>
<field name="storeName"><text-find/></field>
<field name="companyName"><text-find/></field>
<field name="payToPartyId"><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="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListLookupProductStore" list-name="listIt" target="" title="" type="list"
paginate-target="LookupProductStore" odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="ProductStore"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<!-- <auto-fields-entity entity-name="ProductStore" default-field-type="display"/> -->
<field name="productStoreId" widget-style="buttontext">
<hyperlink description="${productStoreId}" target="javascript:set_value('${productStoreId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="primaryStoreGroupId"><display/></field>
<field name="storeName"><display/></field>
<!-- <field name="companyName"><display/></field> -->
</form>
<form name="LookupCostComponentCalc" target="LookupCostComponentCalc" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<field name="costComponentCalcId" title="${uiLabelMap.ProductCostComponentCalcId}"><text-find/></field>
<field name="description" title="${uiLabelMap.CommonDescription}"><text-find/></field>
<field name="costGlAccountTypeId" title="${uiLabelMap.ProductCostGlAccountTypeId}">
<drop-down allow-empty="true">
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="offsettingGlAccountTypeId" title="${uiLabelMap.ProductOffsettingGlAccountTypeId}">
<drop-down allow-empty="true">
<entity-options entity-name="GlAccountType" key-field-name="glAccountTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</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="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListLookupCostComponentCalc" list-name="listIt" title="" type="list" paginate-target="LookupCostComponentCalc"
odd-row-style="alternate-row" default-table-style="basic-table" view-size="20">
<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="CostComponentCalc"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="costComponentCalcId" title="${uiLabelMap.ProductCostComponentCalcId}" widget-style="buttontext">
<hyperlink description="${costComponentCalcId}" target="javascript:set_value('${costComponentCalcId}')" also-hidden="false" target-type="plain"/>
</field>
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
<field name="costGlAccountTypeId" title="${uiLabelMap.ProductCostGlAccountTypeId}"><display/></field>
<field name="offsettingGlAccountTypeId" title="${uiLabelMap.ProductOffsettingGlAccountTypeId}"><display/></field>
</form>
</forms>