Author: hansbak
Date: Thu Mar 11 06:14:56 2010
New Revision: 921699
URL: http://svn.apache.org/viewvc?rev=921699&view=rev
Log:
ebaystore: item status list from ebay which status is active, sold, unsold
Modified:
ofbiz/trunk/specialpurpose/ebaystore/config/EbayStoreUiLabels.xml
ofbiz/trunk/specialpurpose/ebaystore/servicedef/services.xml
ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/controller.xml
ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml
ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml
ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml
Modified: ofbiz/trunk/specialpurpose/ebaystore/config/EbayStoreUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/config/EbayStoreUiLabels.xml?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/config/EbayStoreUiLabels.xml (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/config/EbayStoreUiLabels.xml Thu Mar
11 06:14:56 2010
@@ -275,4 +275,10 @@
<property key="EbayAutoSendItemDispatchEmail">
<value xml:lang="en">Automatic send item dispatched notification
email</value>
</property>
+ <property key="EbayUnsold">
+ <value xml:lang="en">unsold</value>
+ </property>
+ <property key="EbayActive">
+ <value xml:lang="en">Active</value>
+ </property>
</resource>
\ No newline at end of file
Modified: ofbiz/trunk/specialpurpose/ebaystore/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/servicedef/services.xml?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/servicedef/services.xml (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/servicedef/services.xml Thu Mar 11
06:14:56 2010
@@ -384,4 +384,19 @@ under the License.
<attribute name="jobId" mode="IN" type="String" optional="false"/>
<attribute name="productStoreId" mode="IN" type="String"
optional="false"/>
</service>
+ <service name="getMyeBaySelling" engine="java" transaction-timeout="3600"
+ location="org.ofbiz.ebaystore.EbayStore" invoke="getMyeBaySelling"
auth="true">
+ <attribute name="productStoreId" mode="IN" type="String"
optional="false"/>
+ <attribute name="entriesPerPage" mode="IN" type="String"
optional="true"/>
+ <attribute name="pageNumber" mode="IN" type="String" optional="true"/>
+ <attribute name="listingType" mode="IN" type="String" optional="true"/>
+ <attribute name="activeItems" mode="OUT" type="List" optional="true"/>
+ <attribute name="soldItems" mode="OUT" type="List" optional="true"/>
+ <attribute name="unsoldItems" mode="OUT" type="List" optional="true"/>
+ <attribute name="scheduledItems" mode="OUT" type="List"
optional="true"/>
+ <attribute name="activeSize" mode="OUT" type="Integer"
optional="true"/>
+ <attribute name="soldSize" mode="OUT" type="Integer" optional="true"/>
+ <attribute name="unsoldeSize" mode="OUT" type="Integer"
optional="true"/>
+ <attribute name="scheduledSize" mode="OUT" type="Integer"
optional="true"/>
+ </service>
</services>
\ No newline at end of file
Modified:
ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
(original)
+++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
Thu Mar 11 06:14:56 2010
@@ -63,6 +63,7 @@ import com.ebay.sdk.ApiException;
import com.ebay.sdk.SdkException;
import com.ebay.sdk.SdkSoapException;
import com.ebay.sdk.call.*;
+import com.ebay.sdk.util.eBayUtil;
import com.ebay.soap.eBLBaseComponents.AmountType;
import com.ebay.soap.eBLBaseComponents.CheckoutStatusCodeType;
import com.ebay.soap.eBLBaseComponents.CurrencyCodeType;
@@ -77,14 +78,20 @@ import com.ebay.soap.eBLBaseComponents.G
import com.ebay.soap.eBLBaseComponents.GetStoreOptionsResponseType;
import com.ebay.soap.eBLBaseComponents.GetStoreRequestType;
import com.ebay.soap.eBLBaseComponents.GetStoreResponseType;
+import com.ebay.soap.eBLBaseComponents.ItemSortTypeCodeType;
+import com.ebay.soap.eBLBaseComponents.ListingTypeCodeType;
import com.ebay.soap.eBLBaseComponents.MerchDisplayCodeType;
import com.ebay.soap.eBLBaseComponents.OfferType;
+import com.ebay.soap.eBLBaseComponents.OrderTransactionType;
+import com.ebay.soap.eBLBaseComponents.OrderType;
+import com.ebay.soap.eBLBaseComponents.PaginationType;
import com.ebay.soap.eBLBaseComponents.SecondChanceOfferDurationCodeType;
import com.ebay.soap.eBLBaseComponents.SellingManagerProductDetailsType;
import
com.ebay.soap.eBLBaseComponents.SellingManagerProductInventoryStatusType;
import com.ebay.soap.eBLBaseComponents.SellingManagerProductType;
import com.ebay.soap.eBLBaseComponents.SellingManagerTemplateDetailsArrayType;
import com.ebay.soap.eBLBaseComponents.SellingManagerTemplateDetailsType;
+import com.ebay.soap.eBLBaseComponents.SellingStatusType;
import com.ebay.soap.eBLBaseComponents.SetStoreCategoriesRequestType;
import com.ebay.soap.eBLBaseComponents.SetStoreCategoriesResponseType;
import com.ebay.soap.eBLBaseComponents.SetStoreRequestType;
@@ -110,10 +117,14 @@ import com.ebay.soap.eBLBaseComponents.S
import com.ebay.soap.eBLBaseComponents.StoreThemeType;
import com.ebay.soap.eBLBaseComponents.StoreType;
import com.ebay.soap.eBLBaseComponents.TaskStatusCodeType;
+import com.ebay.soap.eBLBaseComponents.TransactionType;
import com.ebay.soap.eBLBaseComponents.UserType;
import com.ebay.soap.eBLBaseComponents.VerifyAddSecondChanceItemResponseType;
import java.sql.Timestamp;
+
+import javax.swing.table.AbstractTableModel;
+import javax.swing.table.TableModel;
import com.ebay.soap.eBLBaseComponents.DetailLevelCodeType;
import com.ebay.soap.eBLBaseComponents.ItemArrayType;
@@ -1819,4 +1830,272 @@ public class EbayStore {
}
return ServiceUtil.returnSuccess("Add Second Chance Offer
Successful.");
}
+
+ public static Map<String, Object> getMyeBaySelling(DispatchContext dctx,
Map<String, ? extends Object> context) {
+ Map<String, Object>result = FastMap.newInstance();
+ LocalDispatcher dispatcher = dctx.getDispatcher();
+ GenericValue userLogin = (GenericValue) context.get("userLogin");
+ Delegator delegator = dctx.getDelegator();
+ Locale locale = (Locale) context.get("locale");
+ String productStoreId = (String) context.get("productStoreId");
+ List unsoldItems = FastList.newInstance();
+ try {
+ Map<String, Object> inMap = FastMap.newInstance();
+ inMap.put("productStoreId", productStoreId);
+ inMap.put("userLogin", userLogin);
+ Map<String, Object> resultUser =
dispatcher.runSync("getEbayStoreUser", inMap);
+ String userID = (String) resultUser.get("userLoginId");
+ ApiContext apiContext =
EbayStoreHelper.getApiContext(productStoreId, locale, delegator);
+ GetMyeBaySellingCall api = new GetMyeBaySellingCall(apiContext);
+ ItemListCustomizationType itemListType = new
ItemListCustomizationType();
+ itemListType.setInclude(Boolean.TRUE);
+ itemListType.setSort(ItemSortTypeCodeType.START_TIME_DESCENDING);
+
+ String entriesPerPage = (String) context.get("entriesPerPage");
+ String pageNumber = (String) context.get("pageNumber");
+ String listingType = (String) context.get("listingType");
+
+ PaginationType page = new PaginationType();
+ if (UtilValidate.isNotEmpty(entriesPerPage)) {
+ page.setEntriesPerPage(Integer.valueOf(entriesPerPage));
+ }
+ if (UtilValidate.isNotEmpty(pageNumber)) {
+ page.setPageNumber(Integer.valueOf(pageNumber));
+ }
+ itemListType.setPagination(page);
+ if (UtilValidate.isNotEmpty(listingType)) {
+
itemListType.setListingType(ListingTypeCodeType.valueOf(listingType));
+ }
+ DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {
+ DetailLevelCodeType.RETURN_ALL,
+ DetailLevelCodeType.ITEM_RETURN_ATTRIBUTES,
+ DetailLevelCodeType.ITEM_RETURN_DESCRIPTION
+ };
+ api.setDetailLevel(detailLevels);
+ api.setActiveList(itemListType);
+ api.setScheduledList(itemListType);
+ api.setSoldList(itemListType);
+ api.getMyeBaySelling();
+ ItemType[] tempActiveItems = null;
+ if (api.getReturnedActiveList() != null) tempActiveItems =
(api.getReturnedActiveList().getItemArray()).getItem();
+ final ItemType[] activeItems = tempActiveItems;
+ // Display active items in table.
+ TableModel dataModel = new AbstractTableModel() {
+ public int getColumnCount() { return 0; }
+ public int getRowCount() { return activeItems == null ? 0 :
activeItems.length;}
+ public Map<String, Object> getValueAt(int row, int col) {
+ ItemType item = activeItems[row];
+ return itemToColumns(item);
+ }
+ };
+ //add To List
+ List<Map> activeList = getDataModelToList(dataModel);
+ int activeSize = dataModel.getRowCount();
+ ItemType[] tempItems = null;
+ if (api.getReturnedScheduledList() != null) tempItems =
(api.getReturnedScheduledList().getItemArray()).getItem();
+ final ItemType[] scheItems = tempItems;
+ // Display Scheduled items in table.
+ dataModel = new AbstractTableModel() {
+ public int getColumnCount() { return 0; }
+ public int getRowCount() { return scheItems == null ? 0 :
scheItems.length;}
+ public Map<String, Object> getValueAt(int row, int col) {
+ ItemType item = scheItems[row];
+ return schItemToColumns(item);
+ }
+ };
+ // set data
+ List<Map> scheduledList = getDataModelToList(dataModel);
+ int scheduledSize = dataModel.getRowCount();
+ OrderTransactionType[] tempSoldItems = null;
+ if (api.getReturnedSoldList() != null)
+ tempSoldItems =
(api.getReturnedSoldList().getOrderTransactionArray()).getOrderTransaction();
+ final OrderTransactionType[] soldItems = tempSoldItems;
+ // Display Sold items in table.
+ dataModel = new AbstractTableModel() {
+ public int getColumnCount() { return 0; }
+ public int getRowCount() { return soldItems == null ? 0 :
soldItems.length;}
+ public Map<String, Object> getValueAt(int row, int col) {
+ OrderTransactionType orderTrans = soldItems[row];
+ return OrderToColumns(orderTrans);
+ }
+ };
+ // add to list
+ List<Map> soldList = getDataModelToList(dataModel);
+ int soldSize = dataModel.getRowCount();
+ ItemType[] tempUnSoldItems = null;
+ if (api.getReturnedUnsoldList() != null) tempUnSoldItems =
(api.getReturnedUnsoldList().getItemArray()).getItem();
+ final ItemType[] unSoldItems = tempUnSoldItems;
+ // Display unsold items in table.
+ dataModel = new AbstractTableModel() {
+ public int getColumnCount() { return 0; }
+ public int getRowCount() { return unSoldItems == null ? 0 :
unSoldItems.length;}
+ public Map<String, Object> getValueAt(int row, int col) {
+ ItemType item = unSoldItems[row];
+ return unsoldItemToColumns(item);
+ }
+ };
+ // add to list
+ List<Map> unsoldList = getDataModelToList(dataModel);
+ int unsoldSize = dataModel.getRowCount();
+ //list to result
+ result.put("activeItems", activeList);
+ result.put("soldItems", soldList);
+ result.put("unsoldItems", unsoldList);
+ result.put("scheduledItems", scheduledList);
+ //page control to result;
+ result.put("activeSize", activeSize);
+ result.put("soldSize", soldSize);
+ result.put("unsoldeSize", unsoldSize);
+ result.put("scheduledSize", scheduledSize);
+ } catch (Exception e) {
+ return ServiceUtil.returnError(e.getMessage());
+ }
+ return result;
+ }
+ // set output data list (MyeBaySelling)
+ private static List<Map> getDataModelToList(TableModel dataModel) {
+ List<Map> list = FastList.newInstance();
+ for (int rowIndex = 0; rowIndex < dataModel.getRowCount(); rowIndex++)
{
+ list.add((Map<String, Object>) dataModel.getValueAt(rowIndex, 0));
+ }
+ return list;
+ }
+ static Map<String, Object> itemToColumns(ItemType item) {
+ Map<String, Object> cols = FastMap.newInstance();
+ int i = 0;
+ cols.put("itemId", item.getItemID() != null ? item.getItemID() : "");
+ cols.put("title", item.getTitle() != null ? item.getTitle() : "");
+
+ SellingStatusType sst = item.getSellingStatus();
+ String currentPrice = null;
+ String bidCount = null;
+ if (sst != null) {
+ AmountType amt = sst.getCurrentPrice();
+ currentPrice = amt != null ? (new
Double(amt.getValue()).toString()) : "";
+ bidCount = sst.getBidCount() != null ?
sst.getBidCount().toString() : "";
+ }
+ cols.put("currentPrice", currentPrice);
+ cols.put("bidCount", bidCount);
+
+ java.util.Calendar startTime = item.getListingDetails() == null ? null
: item.getListingDetails().getStartTime();
+ cols.put("startTime", startTime != null ?
eBayUtil.toAPITimeString(startTime.getTime()) : "");
+
+ Integer quantity = item.getQuantity();
+ String quantityStr = null;
+ if (quantity != null) {
+ quantityStr = quantity.toString();
+ }
+ cols.put("quantity", quantityStr);
+ cols.put("listingType", item.getListingType().value());
+ return cols;
+ }
+
+ static Map<String, Object> schItemToColumns(ItemType item) {
+ Map<String, Object> cols = FastMap.newInstance();
+ int i = 0;
+ cols.put("itemId", item.getItemID() != null ? item.getItemID() : "");
+ cols.put("title", item.getTitle() != null ? item.getTitle() : "");
+
+ java.util.Calendar startTime = item.getListingDetails() == null ? null
: item.getListingDetails().getStartTime();
+ cols.put("startTime", startTime != null ?
eBayUtil.toAPITimeString(startTime.getTime()) : "");
+ AmountType amt = item.getStartPrice();
+ cols.put("StartPrice", amt != null ? (new
Double(amt.getValue()).toString()) : "");
+
+ Integer quantity = item.getQuantity();
+ String quantityStr = null;
+ if (quantity != null) {
+ quantityStr = quantity.toString();
+ }
+ cols.put("quantity", quantityStr);
+ cols.put("listingType", item.getListingType().value());
+ return cols;
+ }
+
+ static Map<String, Object> unsoldItemToColumns(ItemType item) {
+ Map<String, Object> cols = FastMap.newInstance();
+ int i = 0;
+ cols.put("itemId", item.getItemID() != null ? item.getItemID() : "");
+ cols.put("title", item.getTitle() != null ? item.getTitle() : "");
+
+ AmountType amt = item.getStartPrice();
+ cols.put("price", amt != null ? (new
Double(amt.getValue()).toString()) : "");
+
+ java.util.Calendar startTime = item.getListingDetails() == null ? null
: item.getListingDetails().getStartTime();
+ cols.put("startTime", startTime != null ?
eBayUtil.toAPITimeString(startTime.getTime()) : "");
+
+ java.util.Calendar endTime = item.getListingDetails() == null ? null :
item.getListingDetails().getEndTime();
+ cols.put("endTime", endTime != null ?
eBayUtil.toAPITimeString(endTime.getTime()) : "");
+
+ Integer quantity = item.getQuantity();
+ String quantityStr = null;
+ if (quantity != null) {
+ quantityStr = quantity.toString();
+ }
+ cols.put("quantity", quantityStr);
+ cols.put("listingType", item.getListingType().value());
+ return cols;
+ }
+
+ static Map<String, Object> OrderToColumns(OrderTransactionType order) {
+ Map<String, Object> cols = FastMap.newInstance();
+ int i = 0;
+ TransactionType transaction = order.getTransaction();
+ OrderType orders = order.getOrder();
+ ItemType item = transaction.getItem();
+ String itemId = null;
+ String title = null;
+ String status = null;
+ String endTime = null;
+ if (item != null) {
+ itemId = item.getItemID();
+ title = item.getTitle();
+ SellingStatusType sst = item.getSellingStatus();
+ if (sst != null) status = new
Double((sst.getCurrentPrice()).getValue()).toString();
+ endTime =
eBayUtil.toAPITimeString(item.getListingDetails().getEndTime().getTime());
+ }
+ cols.put("itemId", itemId);
+ cols.put("title", title);
+ cols.put("price", status);
+ cols.put("endTime", endTime);
+ UserType buyer = transaction.getBuyer();
+ String user = null;
+ if (buyer != null) user = buyer.getUserID();
+ cols.put("buyer", user);
+ cols.put("listingType", item.getListingType().value());
+ Date paidTime = null;
+ String checkoutStatus = null;
+ String shippedStatus = null;
+ String shippedTime = null;
+ String unpaidItemStatus = null;
+ int quantity = 0;
+ String transactionId = null;
+ double totalAmount = 0;
+ String creationTime = null;
+ if (orders.getCheckoutStatus() != null) {
+ checkoutStatus = orders.getCheckoutStatus().getStatus().value();
+ }
+ if (orders.getPaidTime() != null) {
+ paidTime = orders.getPaidTime().getTime();
+ }
+ if (orders.getShippedTime() != null) {
+ shippedTime =
eBayUtil.toAPITimeString(orders.getShippedTime().getTime());
+ }
+ if (transaction.getBuyerPaidStatus() != null) {
+ unpaidItemStatus =
transaction.getBuyerPaidStatus().values().toString();
+ }
+ quantity = transaction.getQuantityPurchased();
+ transactionId = transaction.getTransactionID().toString();
+ totalAmount = orders.getTotal().getValue();
+ creationTime = orders.getCreatedTime().getTime().toString();
+
+ cols.put("paidTime", paidTime);
+ cols.put("checkoutStatus", checkoutStatus);
+ cols.put("shippedTime", shippedTime);
+ cols.put("unpaidItemStatus", unpaidItemStatus);
+ cols.put("quantity", quantity);
+ cols.put("transactionId", transactionId);
+ cols.put("totalAmount", totalAmount);
+ cols.put("creationTime", creationTime);
+ return cols;
+ }
}
\ No newline at end of file
Modified:
ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/controller.xml?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
---
ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/controller.xml
(original)
+++
ofbiz/trunk/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/controller.xml
Thu Mar 11 06:14:56 2010
@@ -147,7 +147,7 @@
<response name="success" type="view" value="AutomationPreferences"/>
<response name="error" type="view" value="AutomationPreferences"/>
</request-map>
- <request-map uri="editEmailTemplate">
+ <request-map uri="editEmailTemplate">
<security https="true" auth="true"/>
<response name="success" type="view" value="editEmailTemplate"/>
</request-map>
@@ -303,6 +303,11 @@
<response name="error" type="view" value="MakeSecondChanceOffer"/>
<response name="success" type="view" value="SoldListing"/>
</request-map>
+ <!-- Unsold Listing -->
+ <request-map uri="unsoldListing">
+ <security auth="true" https="true"/>
+ <response name="success" type="view" value="UnsoldListing"/>
+ </request-map>
<!-- end of request mappings -->
<!-- View Mappings -->
@@ -330,11 +335,13 @@
<view-map name="exportProductListing" type="screen"
page="component://ebaystore/widget/EbayStoreScreens.xml#exportProductListing"/>
<view-map name="productsearch" type="screen"
page="component://ebaystore/widget/EbayStoreScreens.xml#productsearchexport"/>
<!-- Active -->
- <view-map name="ActiveListing" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#EbayActiveListing"/>
+ <view-map name="ActiveListing" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#ActiveListing"/>
<view-map name="AssignAutomaticRule" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#AssignAutomaticRule"/>
<!-- Sold -->
<view-map name="SoldListing" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#SoldListing"/>
<view-map name="OpenUnpaid" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#OpenUnpaid"/>
<view-map name="MakeSecondChanceOffer" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#MakeSecondChanceOffer"/>
+ <!-- Unsold -->
+ <view-map name="UnsoldListing" type="screen"
page="component://ebaystore/widget/EbaySellingManagerScreens.xml#UnsoldListing"/>
<!-- end of view mappings -->
</site-conf>
Modified:
ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml
(original)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerForms.xml Thu
Mar 11 06:14:56 2010
@@ -83,7 +83,6 @@ value="${bsh:billingAccount != null ? or
<field name="listingType"><display
description="${listingType}"/></field>
<field name="quantity"><display description="${quantity}"/></field>
<field name="transactionId"><display
description="${transactionId}"/></field>
- <field name="salePrice"><display description="${salePrice}"/></field>
<field name="totalAmount"><display
description="${totalAmount}"/></field>
<field name="creationTime"><display description="${creationTime}"
type="date"/></field>
<field name="paidTime"><display description="${paidTime}"
type="date"/></field>
@@ -467,4 +466,41 @@ value="${bsh:billingAccount != null ? or
<field name="isRunBlockItem" position="1" title="Enable to automatic
block item that out of stock"><check></check></field>
<field name="submitButton" title="${uiLabelMap.CommonSave}"><submit
button-type="button"/></field>
</form>
+ <!-- Active Listing -->
+ <form name="ActiveItemList" type="list" target="doAction"
list-name="activeItemList"
+ odd-row-style="alternate-row" header-row-style="header-row-2"
default-table-style="basic-table hover-bar" use-row-submit="true"
separate-columns="true">
+ <field name="itemId"><display/></field>
+ <field name="title"><display/></field>
+ <field name="price"><display/></field>
+ <field name="bidCount"><display/></field>
+ <field name="startTime"><display/></field>
+ <field name="quantity"><display/></field>
+ <field name="listingType"><display/></field>
+ </form>
+ <!-- Unsold Listing -->
+ <form name="UnsoldItemList" type="list" target="doAction"
list-name="unsoldItemList"
+ odd-row-style="alternate-row" header-row-style="header-row-2"
default-table-style="basic-table hover-bar" use-row-submit="true"
separate-columns="true">
+ <field name="productStoreId"><hidden
value="${parameters.productStoreId}"/></field>
+ <field name="itemId"><display/></field>
+ <field name="title"><display/></field>
+ <field name="quantity"><display/></field>
+ <field name="price"><display/></field>
+ <field name="startTime"><display/></field>
+ <field name="endTime"><display/></field>
+ <field name="quantity"><display/></field>
+ <field name="listingType"><display/></field>
+ </form>
+ <!-- item list options -->
+ <form name="ItemOption" type="single" target="${target}">
+ <field name="productStoreId"><hidden
value="${parameters.productStoreId}"/></field>
+ <field name="listingType" action="document.ItemOption.submit()"
event="onchange">
+ <drop-down>
+ <option key="" description="All"/>
+ <option key="AUCTION" description="Auction Only"/>
+ <option key="FIXED_PRICE_ITEM" description="Fixed Price Item
Only"/>
+ <option key="STORES_FIXED_PRICE" description="Stores Inventory
Only"/>
+ </drop-down>
+ </field>
+ <field name="submitButton"><submit/></field>
+ </form>
</forms>
\ No newline at end of file
Modified:
ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml
(original)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbaySellingManagerScreens.xml
Thu Mar 11 06:14:56 2010
@@ -341,19 +341,19 @@
<screen name="SoldListing">
<section>
<actions>
- <service service-name="getEbaySoldItems" result-map="result">
+ <service service-name="getMyeBaySelling" result-map="result">
<field-map field-name="productStoreId"
from-field="parameters.productStoreId"/>
- <field-map field-name="status"
from-field="parameters.status"/>
- <field-map field-name="period"
from-field="parameters.period"/>
</service>
<set field="soldItemList" from-field="result.soldItems"/>
+ <set field="target" value="soldListing"/>
</actions>
<widgets>
<decorator-screen name="EbaySoldListing">
<decorator-section name="body">
- <screenlet title="Sold Listing">
- <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="SoldItemList"/>
- </screenlet>
+ <screenlet title="Sold Listing">
+ <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="ItemOption"/>
+ <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="SoldItemList"/>
+ </screenlet>
</decorator-section>
</decorator-screen>
</widgets>
@@ -434,4 +434,74 @@
</widgets>
</section>
</screen>
+ <screen name="EbayActiveListing">
+ <section>
+ <actions>
+ <set field="sellingManagerItem" value="activeListing"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="SellingManagerDecorator"
location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <decorator-section-include name="body"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ActiveListing">
+ <section>
+ <actions>
+ <service service-name="getMyeBaySelling" result-map="result">
+ <field-map field-name="productStoreId"
from-field="parameters.productStoreId"/>
+ </service>
+ <set field="activeItemList" from-field="result.activeItems"/>
+ <set field="target" value="activeListing"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="EbayActiveListing">
+ <decorator-section name="body">
+ <screenlet title="Active Listing">
+ <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="ItemOption"/>
+ <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="ActiveItemList"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EbayUnsoldListing">
+ <section>
+ <actions>
+ <set field="sellingManagerItem" value="unsoldListing"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="SellingManagerDecorator"
location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <decorator-section-include name="body"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="UnsoldListing">
+ <section>
+ <actions>
+ <service service-name="getMyeBaySelling" result-map="result">
+ <field-map field-name="productStoreId"
from-field="parameters.productStoreId"/>
+ </service>
+ <set field="unsoldItemList" from-field="result.unsoldItems"/>
+ <set field="target" value="unsoldListing"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="EbayUnsoldListing">
+ <decorator-section name="body">
+ <screenlet title="Unsold Listing">
+ <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="ItemOption"/>
+ <include-form
location="component://ebaystore/widget/EbaySellingManagerForms.xml"
name="UnsoldItemList"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
</screens>
\ No newline at end of file
Modified: ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml?rev=921699&r1=921698&r2=921699&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/widget/EbayStoreMenus.xml Thu Mar 11
06:14:56 2010
@@ -66,11 +66,21 @@
<parameter param-name="productStoreId"
value="${parameters.productStoreId}"/>
</link>
</menu-item>
+ <menu-item name="activeListing" title="${uiLabelMap.EbayActive}">
+ <link target="activeListing">
+ <parameter param-name="productStoreId"
value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
<menu-item name="soldListing" title="${uiLabelMap.EbaySold}">
<link target="soldListing">
<parameter param-name="productStoreId"
value="${parameters.productStoreId}"/>
</link>
</menu-item>
+ <menu-item name="unsoldListing" title="${uiLabelMap.EbayUnsold}">
+ <link target="unsoldListing">
+ <parameter param-name="productStoreId"
value="${parameters.productStoreId}"/>
+ </link>
+ </menu-item>
<menu-item name="automationPreferences" title="Automation Preferences">
<link target="automationPreferences">
<parameter param-name="productStoreId"
value="${parameters.productStoreId}"/>