Author: ashish
Date: Thu Sep 17 05:43:32 2009 New Revision: 816060 URL: http://svn.apache.org/viewvc?rev=816060&view=rev Log: Here comes the GUI support for eBay Configurations (CRUD operation for EbayConfig entity). Modified: ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/controller.xml ofbiz/trunk/specialpurpose/ebay/widget/EbayForms.xml ofbiz/trunk/specialpurpose/ebay/widget/EbayMenus.xml ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml Modified: ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml?rev=816060&r1=816059&r2=816060&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml (original) +++ ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml Thu Sep 17 05:43:32 2009 @@ -22,6 +22,9 @@ <property key="EbayAddEbayShippingMethod"> <value xml:lang="en">Add Ebay Shipping Method</value> </property> + <property key="EbayAddEbayConfiguration"> + <value xml:lang="en">Add Ebay Configuration</value> + </property> <property key="EbayApplication"> <value xml:lang="en">Ebay Integration</value> <value xml:lang="fr">Intégration Ebay</value> @@ -35,6 +38,9 @@ <value xml:lang="it">OFBiz</value> <value xml:lang="th">OFBiz</value> </property> + <property key="EbayConfigurations"> + <value xml:lang="en">Ebay Configurations</value> + </property> <property key="EbayEBayOrders"> <value xml:lang="en">eBay Orders Import</value> </property> Modified: ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml?rev=816060&r1=816059&r2=816060&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml (original) +++ ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml Thu Sep 17 05:43:32 2009 @@ -138,6 +138,21 @@ <attribute name="orderItemList" type="List" mode="IN" optional="true"/> </service> + <service name="createEbayConfiguration" default-entity-name="EbayConfig" engine="entity-auto" invoke="create" auth="true"> + <description>Create a EbayConfiguration</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true" allow-html="any"/> + </service> + <service name="updateEbayConfiguration" default-entity-name="EbayConfig" engine="entity-auto" invoke="update" auth="true"> + <description>Update a EbayConfiguration</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true" allow-html="any"/> + </service> + <service name="deleteEbayConfiguration" default-entity-name="EbayConfig" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a EbayConfiguration</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + <service name="createEbayShippingMethod" default-entity-name="EbayShippingMethod" engine="entity-auto" invoke="create" auth="true"> <description>Create a EbayShippingMethod</description> <auto-attributes include="pk" mode="IN" optional="false"/> Modified: ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/controller.xml?rev=816060&r1=816059&r2=816060&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/controller.xml (original) +++ ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/controller.xml Thu Sep 17 05:43:32 2009 @@ -69,6 +69,31 @@ <response name="failure" type="view" value="ManageOrdersFromEbay"/> </request-map> + <!-- Ebay configuration setting request --> + + <request-map uri="EbayConfigurations"> + <security https="true" auth="true"/> + <response name="success" type="view" value="EbayConfigurations"/> + </request-map> + <request-map uri="createEbayConfiguration"> + <security https="true" auth="true"/> + <event type="service" invoke="createEbayConfiguration"/> + <response name="success" type="view" value="EbayConfigurations"/> + <response name="error" type="view" value="EbayConfigurations"/> + </request-map> + <request-map uri="updateEbayConfiguration"> + <security https="true" auth="true"/> + <event type="service" invoke="updateEbayConfiguration"/> + <response name="success" type="view" value="EbayConfigurations"/> + <response name="error" type="view" value="EbayConfigurations"/> + </request-map> + <request-map uri="deleteEbayConfiguration"> + <security https="true" auth="true"/> + <event type="service" invoke="deleteEbayConfiguration"/> + <response name="success" type="view" value="EbayConfigurations"/> + <response name="error" type="view" value="EbayConfigurations"/> + </request-map> + <request-map uri="EbayShippingMethods"> <security https="true" auth="true"/> <response name="success" type="view" value="EbayShippingMethods"/> @@ -123,6 +148,7 @@ <view-map name="ManageOrdersFromEbay" type="screen" page="component://ebay/widget/EbayScreens.xml#ManageOrdersFromEbay"/> <view-map name="EbayOrders" type="screen" page="component://ebay/widget/EbayScreens.xml#EbayOrders"/> + <view-map name="EbayConfigurations" type="screen" page="component://ebay/widget/EbayScreens.xml#EbayConfigurations"/> <view-map name="EbayShippingMethods" type="screen" page="component://ebay/widget/EbayScreens.xml#EbayShippingMethods"/> <!-- end of view mappings --> </site-conf> Modified: ofbiz/trunk/specialpurpose/ebay/widget/EbayForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/widget/EbayForms.xml?rev=816060&r1=816059&r2=816060&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebay/widget/EbayForms.xml (original) +++ ofbiz/trunk/specialpurpose/ebay/widget/EbayForms.xml Thu Sep 17 05:43:32 2009 @@ -102,6 +102,55 @@ <field name="submitButton" title="${uiLabelMap.EbayImportOrdersFromEbay}"><submit button-type="button"/></field> </form> + <!-- Ebay configuration settings forms --> + <form name="ListEbayConfigurations" type="list" list-name="eBayConfigurations" target="updateEbayConfiguration" + odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <actions> + <entity-condition entity-name="EbayConfig"> + <order-by field-name="productStoreId"/> + </entity-condition> + </actions> + <auto-fields-service service-name="updateEbayConfiguration"/> + <field name="productStoreId"><display/></field> + <field name="token"><textarea cols="60" rows="5"/></field> + <field name="customXml"><textarea cols="60" rows="5"/></field> + <field name="webSiteId"> + <drop-down allow-empty="true"> + <entity-options description="${siteName}" entity-name="WebSite"> + <entity-order-by field-name="siteName"/> + </entity-options> + </drop-down> + </field> + <field name="deleteEbayConfiguration" title="" widget-style="buttontext"> + <hyperlink target="deleteEbayConfiguration" description="${uiLabelMap.CommonDelete}" also-hidden="false"> + <parameter param-name="productStoreId"/> + </hyperlink> + </field> + <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field> + </form> + + <form name="AddEbayConfiguration" type="single" target="createEbayConfiguration" title=""> + <auto-fields-service service-name="createEbayConfiguration"/> + <field name="productStoreId"> + <drop-down allow-empty="false"> + <option key="" description="- ${uiLabelMap.CommonSelectAny} -"/> + <entity-options entity-name="ProductStore" description="${storeName} [${productStoreId}]"> + <entity-order-by field-name="storeName"/> + </entity-options> + </drop-down> + </field> + <field name="token"><textarea cols="60" rows="5"/></field> + <field name="customXml"><textarea cols="60" rows="5"/></field> + <field name="webSiteId"> + <drop-down allow-empty="true"> + <entity-options description="${siteName}" entity-name="WebSite"> + <entity-order-by field-name="siteName"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field> + </form> + <form name="ListEbayShippingMethods" type="list" list-name="eBayShippingMethods" target="updateEbayShippingMethod" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> <actions> Modified: ofbiz/trunk/specialpurpose/ebay/widget/EbayMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/widget/EbayMenus.xml?rev=816060&r1=816059&r2=816060&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebay/widget/EbayMenus.xml (original) +++ ofbiz/trunk/specialpurpose/ebay/widget/EbayMenus.xml Thu Sep 17 05:43:32 2009 @@ -19,9 +19,10 @@ --> <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd"> <menu name="EbayAppBar" title="${uiLabelMap.EbayApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <menu-item name="eBayConfigurations" title="${uiLabelMap.EbayConfigurations}"><link target="EbayConfigurations"/></menu-item> + <menu-item name="eBayShippingMethods" title="${uiLabelMap.EbayShippingMethodConfigurations}"><link target="EbayShippingMethods"/></menu-item> <menu-item name="export" title="${uiLabelMap.EbayExportToEbay}"><link target="advancedsearch"/></menu-item> <menu-item name="importOrders" title="${uiLabelMap.EbayImportSingleTransactionFromEbay}"><link target="ManageOrdersFromEbay"/></menu-item> <menu-item name="eBayOrders" title="${uiLabelMap.EbayEBayOrders}"><link target="eBayOrders"/></menu-item> - <menu-item name="eBayShippingMethods" title="${uiLabelMap.EbayShippingMethodConfigurations}"><link target="EbayShippingMethods"/></menu-item> </menu> </menus> Modified: ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml?rev=816060&r1=816059&r2=816060&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml (original) +++ ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml Thu Sep 17 05:43:32 2009 @@ -226,6 +226,26 @@ </section> </screen> + <screen name="EbayConfigurations"> + <section> + <actions> + <set field="titleProperty" value="EbayConfigurations"/> + <set field="headerItem" value="eBayConfigurations"/> + <set field="productStoreId" from-field="parameters.productStoreId"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <include-form name="ListEbayConfigurations" location="component://ebay/widget/EbayForms.xml"/> + <screenlet id="add-ebay-configuration" title="${uiLabelMap.EbayAddEbayConfiguration}" collapsible="true"> + <include-form name="AddEbayConfiguration" location="component://ebay/widget/EbayForms.xml"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EbayShippingMethods"> <section> <actions> |
Free forum by Nabble | Edit this page |