git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@965918 13f79535-47bb-0310-9956-ffa450edef68
263 lines
15 KiB
XML
263 lines
15 KiB
XML
<?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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
<screen name="ebayStores">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="${uiLabelMap.EbayStore}"/>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-menu name="EbaySubTabBar" location="component://ebaystore/widget/EbayStoreMenus.xml"/>
|
|
<screenlet title="Ebay Accounts">
|
|
<include-form name="EbayAccountList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ebayStoreDetail">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="${uiLabelMap.EbayStoreSetting}"/>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="ebayStoreSetting"/>
|
|
<script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/store/RetrieveStoreOptions.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.EbayStoreSetting}">
|
|
<platform-specific>
|
|
<html><html-template location="component://ebaystore/webapp/ebaystore/store/StoreSetting.ftl"/></html>
|
|
</platform-specific>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="exportCategoryEbayStore">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="EbayExportAllCategoryToEbayStore"/>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="ebayExportAllCategoryToEbayStore"/>
|
|
<set field="productStoreId" value="${parameters.productStoreId}"/>
|
|
<entity-and entity-name="ProdCatalogCategory" list="categoriesList">
|
|
<field-map field-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
|
<order-by field-name="productCategoryId"/>
|
|
</entity-and>
|
|
<entity-one entity-name="ProdCatalog" value-field="prodCatalog">
|
|
<field-map field-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
|
<select-field field-name="catalogName"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="parameters.productCategoryId"/>
|
|
</not>
|
|
</condition>
|
|
<actions>
|
|
<entity-and entity-name="ProductCategoryRollup" list="categoriesRollupList">
|
|
<field-map field-name="parentProductCategoryId" from-field="parameters.productCategoryId"/>
|
|
<order-by field-name="productCategoryId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="categoriesRollupList"/>
|
|
</not>
|
|
</condition>
|
|
<actions>
|
|
<set field="categoriesList" from-field="nullField"/>
|
|
<set field="categoriesList" from-field="categoriesRollupList"/>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet>
|
|
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
|
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
|
<include-form name="ListCategories" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
|
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
|
<label text="Not found child category"/>
|
|
</screenlet>
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<screenlet>
|
|
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
|
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
|
<include-form name="ListCategories" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
<link name="exportCategoriesSelectedToEbayStore" target="exportCategoriesSelectedToEbayStore" style="buttontext" text="${uiLabelMap.EbayExportToEbayStore}">
|
|
<parameter param-name="productStoreId" from-field="productStoreId"/>
|
|
<parameter param-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
|
<parameter param-name="partyId" from-field="parameters.partyId"/>
|
|
</link>
|
|
</screenlet>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- ebay account -->
|
|
<screen name="NewEbayAccount">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="NewEbayAccount"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="New Ebay Account">
|
|
<include-form name="NewEbayAccount" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Export product listing -->
|
|
<screen name="exportProductListing">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleAdvancedSearch"/>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="exportProductListing"/>
|
|
<entity-condition entity-name="ProductCategory" list="productCategories">
|
|
<condition-expr field-name="showInSelect" operator="not-equals" value="N"/>
|
|
<order-by field-name="description"/>
|
|
</entity-condition>
|
|
<script location="component://product/webapp/catalog/WEB-INF/actions/find/advancedsearchoptions.groovy"/>
|
|
<script location="component://ebay/webapp/ebay/WEB-INF/actions/find/EbayAdvancedSearch.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://ebaystore/webapp/ebaystore/store/ebayApiKeywordSearch.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="productSearchResults">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleSearchResults"/>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="exportProductListing"/>
|
|
<set field="toEbayStore" default-value="Y"/>
|
|
<set field="productStoreId" from-field="parameters.productStoreId"/>
|
|
<script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://ebay/webapp/ebay/find/EbayKeywordSearch.ftl"/></html>
|
|
</platform-specific>
|
|
<platform-specific>
|
|
<html><html-template location="component://ebay/webapp/ebay/find/ebayExportLink.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="prepareProductListing">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleSearchResults"/>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="exportProductListing"/>
|
|
<!--set field="layoutSettings.javaScripts[+0]" value="/ebaystore/js/itemSpecifics.js" global="true"/-->
|
|
<!--entity-condition entity-name="Geo" list="countries">
|
|
<condition-expr field-name="geoTypeId" value="COUNTRY"/>
|
|
<order-by field-name="geoName"/>
|
|
</entity-condition-->
|
|
<set field="productStoreId" from-field="parameters.productStoreId"/>
|
|
<set field="search_CategoryId" type="String" from-field="parameters.SEARCH_CATEGORY_ID"/>
|
|
<entity-one entity-name="EbayConfig" value-field="ebayConfig">
|
|
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
|
</entity-one>
|
|
<script location="component://ebaystore/webapp/ebaystore/WEB-INF/actions/store/PrepareProductListing.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://ebaystore/webapp/ebaystore/store/productsearchExport.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="errorMessageList">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="ebayStore"/>
|
|
<set field="tabButtonItem" value="errorMessageList"/>
|
|
<entity-and entity-name="EBayLogMessagesInfo" list="errorMsgList">
|
|
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
|
<order-by field-name="createDatetime DESC"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.EbayErrorMessageList}">
|
|
<include-form name="errorMessageList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|