git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@498895 13f79535-47bb-0310-9956-ffa450edef68
109 lines
7.6 KiB
XML
109 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed 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"
|
|
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-form.xsd">
|
|
|
|
<form name="EditProduct" type="single"
|
|
target="updateProduct" title="" default-map-name="product"
|
|
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
|
|
|
|
<alt-target use-when="product==null" target="createProduct"/>
|
|
|
|
<field use-when="product==null" name="isCreate"><hidden value="true"/></field>
|
|
|
|
<field use-when="product!=null" name="productId" title="${uiLabelMap.ProductProductId}" tooltip="${uiLabelMap.ProductNotModificationRecreatingProduct}"><display/></field>
|
|
<field use-when="product==null&&productId==null" name="productId" title="${uiLabelMap.ProductProductId}"><text size="20" maxlength="20"/></field>
|
|
<field use-when="product==null&&productId!=null" name="productId" title="${uiLabelMap.ProductProductId}" tooltip="${uiLabelMap.ProductNotFindProductId} [${productId}]"><text size="20" maxlength="20"/></field>
|
|
|
|
<field name="productTypeId"><hidden value="FINISHED_GOOD"/></field>
|
|
<field name="primaryProductCategoryId"><hidden/></field>
|
|
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><text size="30" maxlength="60"/></field>
|
|
<field name="brandName" title="${uiLabelMap.ProductBrandName}" ><text size="30" maxlength="60"/></field>
|
|
<field name="manufacturerPartyId" title="${uiLabelMap.AccountingFixedAssetManufacturerId}" ><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="comments" title="${uiLabelMap.CommonComments}"><text size="60" maxlength="250"/></field>
|
|
<field name="requireInventory"><hidden value="N"/></field>
|
|
<field name="autoCreateKeywords"><hidden value="N"/></field>
|
|
<field name="primaryProductCategoryId" title="${uiLabelMap.ProductPrimaryCategory}" widget-style="selectBox">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="ProductCategory" key-field-name="productCategoryId" description="${description} [${productCategoryId}]">
|
|
<entity-constraint name="productCategoryTypeId" value="CATALOG_CATEGORY"/>
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="Update" use-when="product!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
<field name="submitButton" title="Create" use-when="product==null" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
<field use-when="product!=null" name="lastUpdatedByText" title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext">
|
|
<display description="[${product.lastModifiedByUserLogin}] ${uiLabelMap.CommonOn} ${product.lastModifiedDate}" also-hidden="false"/>
|
|
</field>
|
|
<field use-when="product!=null" name="createdByText" title="${uiLabelMap.ProductCreatedBy}:" widget-style="tabletext">
|
|
<display description="[${product.createdByUserLogin}] ${uiLabelMap.CommonOn} ${product.createdDate}" also-hidden="false"/>
|
|
</field>
|
|
</form>
|
|
<!-- List Product -->
|
|
<form name="ListProducts" type="list" list-name="listIt" paginate-target="${submitTarget}"
|
|
default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext"
|
|
default-title-area-style="viewOneTR1" even-row-style="viewManyTR2" odd-row-style="viewManyTR1">
|
|
<actions>
|
|
<service service-name="performFind" result-map-name="result" result-map-list-name="listIt">
|
|
<field-map field-name="inputFields" env-name="parameters"/>
|
|
<field-map field-name="entityName" value="Product"/>
|
|
</service>
|
|
</actions>
|
|
<field name="productId" title="${uiLabelMap.CommonId}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${productId}" target="EditProduct?productId=${productId}"/>
|
|
</field>
|
|
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
|
|
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field>
|
|
<field name="searchVariants" title="" widget-style="buttontext" use-when="isVirtual!=null&&"${isVirtual}".equals("Y")">
|
|
<hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.ProductVariants}" target="LookupVariantProduct?productId=${productId}"/>
|
|
</field>
|
|
</form>
|
|
<form name="lookupProduct"
|
|
default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox"
|
|
target="${submitTarget}" type="single">
|
|
<!-- <auto-fields-entity entity-name="Product" default-field-type="hidden" /> -->
|
|
<field name="productId" title="${uiLabelMap.CommonId}"><text-find default-option="contains" ignore-case="true"/></field>
|
|
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><text-find default-option="contains" ignore-case="true"/></field>
|
|
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><text-find default-option="contains" ignore-case="true"/></field>
|
|
<field name="primaryProductCategoryId"><hidden/></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="isVariant"><hidden value="N"/></field> -->
|
|
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="listLookupProduct"
|
|
default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext"
|
|
list-name="listIt" paginate-target="${submitTarget}"
|
|
title="" type="list">
|
|
<actions>
|
|
<service service-name="performFind" result-map-name="result" result-map-list-name="listIt">
|
|
<field-map field-name="inputFields" env-name="parameters"/>
|
|
<field-map field-name="entityName" value="Product"/>
|
|
</service>
|
|
</actions>
|
|
<field name="productId" title="${uiLabelMap.CommonId}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" target-type="plain" description="${productId}" target="javascript:set_values('${productId}', '${internalName}')"/>
|
|
</field>
|
|
<field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field>
|
|
<field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field>
|
|
<field name="primaryProductCategoryId" title="Category"><display/></field>
|
|
<field name="searchVariants" title="" widget-style="buttontext" use-when="isVirtual!=null&&"${isVirtual}".equals("Y")">
|
|
<hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.ProductVariants}" target="LookupVariantProduct?productId=${productId}"/>
|
|
</field>
|
|
</form>
|
|
</forms>
|