From a4ad44f33fae9c1bb3c2cd8a4d05169b76f03d8a Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Wed, 5 Jul 2006 05:31:23 +0000 Subject: [PATCH] Initial pass for subscription and related screens; still some cleanup needed though some basics are working; checking in progress before pausing for a few hours git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@419166 13f79535-47bb-0310-9956-ffa450edef68 --- .../product/config/ProductUiLabels.properties | 11 + .../product/entitydef/entitygroup.xml | 2 +- .../product/entitydef/entitymodel.xml | 55 ++-- .../subscription/SubscriptionServices.xml | 38 ++- .../servicedef/services_subscription.xml | 22 +- .../webapp/catalog/WEB-INF/controller.xml | 87 +++++- .../webapp/catalog/includes/appheader.ftl | 3 +- .../webapp/catalog/product/ProductForms.xml | 96 +++++- .../webapp/catalog/product/ProductTabBar.ftl | 1 + .../widget/catalog/CatalogCommonScreens.xml | 2 +- .../product/widget/catalog/ProductScreens.xml | 19 +- .../widget/catalog/SubscriptionForms.xml | 275 ++++++++++++++++++ .../widget/catalog/SubscriptionMenus.xml | 41 +++ .../widget/catalog/SubscriptionScreens.xml | 217 ++++++++++++++ .../common/config/CommonUiLabels.properties | 4 +- 15 files changed, 813 insertions(+), 60 deletions(-) create mode 100644 applications/product/widget/catalog/SubscriptionForms.xml create mode 100644 applications/product/widget/catalog/SubscriptionMenus.xml create mode 100644 applications/product/widget/catalog/SubscriptionScreens.xml diff --git a/applications/product/config/ProductUiLabels.properties b/applications/product/config/ProductUiLabels.properties index 76739539b2..fbbf34607d 100644 --- a/applications/product/config/ProductUiLabels.properties +++ b/applications/product/config/ProductUiLabels.properties @@ -141,6 +141,10 @@ PageTitleEditProductStoreShipSetup=Edit Product Store Ship Setup PageTitleEditProductStoreSurveys=Edit Product Store Surveys PageTitleEditProductStoreTaxSetup=Edit Product Store Tax Setup PageTitleEditProductStoreWebSites=Edit Product Store Web Sites +PageTitleEditProductSubscriptionResources=Edit Product Subscription Resources +PageTitleEditSubscription=Edit Subscription +PageTitleEditSubscriptionResource=Edit Subscription Resource +PageTitleEditSubscriptionResourceProducts=Edit Subscription Resource Products PageTitleEditShipmentItems=Edit Shipment Items PageTitleEditShipmentPackages=Edit Shipment Packages PageTitleEditShipmentPlan=Edit Shipment Plan @@ -155,6 +159,8 @@ PageTitleFindProductCatalog=Find Product Catalog PageTitleFindProductPriceRule=Find Product Price Rule PageTitleFindProductPromos=Find Product Promos PageTitleFindProductPromotionCode=Find Product Promotion Code +PageTitleFindSubscription=Find Subscription +PageTitleFindSubscriptionResource=Find Subscription Resource PageTitleViewProductStoreSegments=View Product Store Segments PageTitleLabelPrinting=Label Printing PageTitleLogin=Login @@ -758,6 +764,8 @@ ProductNewSegment=New Segment ProductNewShipment=New Shipment ProductNewShipmentEstimate=New Shipment Estimate ProductNewShipmentMethod=New Shipment Method +ProductNewSubscription=New Subscription +ProductNewSubscriptionResource=New Subscription Resource ProductNewVirtualProduct=New Virtual Product ProductNextShipment=Next Shipment ProductNoCategorySpecified=No category specified @@ -1167,6 +1175,9 @@ ProductStoreSurveyResultTemplatePath=Result Template Path ProductStores=Stores ProductStoresFor=Stores For ProductStyleSheet=Style Sheet +ProductSubscription=Subscription +ProductSubscriptions=Subscriptions +ProductSubscriptionResources=Subscription Resources ProductSubProduct=SubProduct ProductSubTitle=Sub-Title ProductSubject=Subject diff --git a/applications/product/entitydef/entitygroup.xml b/applications/product/entitydef/entitygroup.xml index 984ab802f9..0e065abf84 100644 --- a/applications/product/entitydef/entitygroup.xml +++ b/applications/product/entitydef/entitygroup.xml @@ -170,7 +170,6 @@ - @@ -243,6 +242,7 @@ + diff --git a/applications/product/entitydef/entitymodel.xml b/applications/product/entitydef/entitymodel.xml index 7cef0874d9..db06435fca 100644 --- a/applications/product/entitydef/entitymodel.xml +++ b/applications/product/entitydef/entitymodel.xml @@ -2278,34 +2278,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3592,6 +3564,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/applications/product/script/org/ofbiz/product/subscription/SubscriptionServices.xml b/applications/product/script/org/ofbiz/product/subscription/SubscriptionServices.xml index bc9e54a8f4..73c06721c1 100644 --- a/applications/product/script/org/ofbiz/product/subscription/SubscriptionServices.xml +++ b/applications/product/script/org/ofbiz/product/subscription/SubscriptionServices.xml @@ -19,7 +19,7 @@ under the License. - + @@ -34,7 +34,7 @@ under the License. - + @@ -72,7 +72,7 @@ under the License. - + @@ -83,16 +83,17 @@ under the License. - + - + + - + @@ -100,4 +101,29 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/applications/product/servicedef/services_subscription.xml b/applications/product/servicedef/services_subscription.xml index 6749af8c4f..48c902c2c1 100644 --- a/applications/product/servicedef/services_subscription.xml +++ b/applications/product/servicedef/services_subscription.xml @@ -28,7 +28,6 @@ under the License. - Update a Subscription Record @@ -56,14 +55,31 @@ under the License. Create a SubscriptionResource Record - + - Update a SubscriptionResource Record + + + Create a ProductSubscriptionResource Record + + + + + Update a ProductSubscriptionResource Record + + + + + Delete a ProductSubscriptionResource Record + + diff --git a/applications/product/webapp/catalog/WEB-INF/controller.xml b/applications/product/webapp/catalog/WEB-INF/controller.xml index 2b6a97ded4..7414461084 100644 --- a/applications/product/webapp/catalog/WEB-INF/controller.xml +++ b/applications/product/webapp/catalog/WEB-INF/controller.xml @@ -1369,7 +1369,7 @@ - + @@ -1393,6 +1393,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2082,6 +2155,8 @@ + + @@ -2149,6 +2224,13 @@ + + + + + + + @@ -2205,6 +2287,8 @@ + + @@ -2213,6 +2297,5 @@ - diff --git a/applications/product/webapp/catalog/includes/appheader.ftl b/applications/product/webapp/catalog/includes/appheader.ftl index 35da83eda4..372521751a 100644 --- a/applications/product/webapp/catalog/includes/appheader.ftl +++ b/applications/product/webapp/catalog/includes/appheader.ftl @@ -1,5 +1,5 @@ <#-- - * Copyright (c) 2003 The Open For Business Project - www.ofbiz.org + * Copyright (c) 2003-2006 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -44,6 +44,7 @@ + <#if userLogin?has_content> diff --git a/applications/product/webapp/catalog/product/ProductForms.xml b/applications/product/webapp/catalog/product/ProductForms.xml index 80d52097eb..3a1721a350 100644 --- a/applications/product/webapp/catalog/product/ProductForms.xml +++ b/applications/product/webapp/catalog/product/ProductForms.xml @@ -85,7 +85,7 @@ - + @@ -135,7 +135,7 @@ - + @@ -143,7 +143,7 @@ - + @@ -154,7 +154,7 @@ - + @@ -451,8 +451,8 @@ -